LC-X5 Flashing Guide (NVIDIA Jetson Thor)
This guide explains how to flash an LC-X5 using catdogai/lzc-x5-flash:39.2, including the default mode, preparing a disk layout for LVM, reflashing only NVMe, and updating only the QSPI boot firmware.
The commands follow the current LC-X5 flashing workflow. Official parameter descriptions are based on Jetson Linux R39.2. R39.2 corresponds to JetPack 7.2, with a target system based on Ubuntu 24.04 and Linux 6.8. See NVIDIA JetPack 7.2 Downloads and Release Information. Do not mix BSPs, rootfs images, or QSPI firmware from other versions, or images for other device models.
Flashing rewrites the partitions and system on the selected storage and may erase existing data. Back up any files you need before proceeding, and confirm the module model, target SSD, and partition configuration. Initializing, expanding, and recovering a dual-disk LVM setup also involve disk writes.
1. Choose a Flashing Method
| Requirement | Method | Main effect |
|---|---|---|
| First installation or complete reinstallation of LC-X5 | Default flashing mode | Updates boot firmware and the system disk according to the board configuration |
| Create an APP recovery system and prepare an LVM runtime system | LC-X5 custom NVMe partition mode | Flashes the disk using the custom XML; LVM initialization continues after boot |
| Boot firmware works correctly; only the SSD system needs reinstalling | --external-only | Reflashes the specified NVMe without updating QSPI |
| Repair or update boot firmware | --qspi-only | Updates QSPI boot firmware without reinstalling the NVMe rootfs |
2. Before Flashing
2.1 Host and Equipment
Prepare the following equipment and environment:
- A Linux flashing host. x86_64 Ubuntu 22.04 or 24.04 is recommended; see the Release Notes for the officially supported flashing host distributions for R39.2.
- A working Docker installation and permission to run containers with USB device access.
- An LC-X5 with the target NVMe SSD installed, and a stable power supply.
- A USB cable that supports data transfer, connecting the host to the device's Recovery port. A direct connection to the host is recommended.
- A monitor and keyboard, or a serial console for viewing device boot logs.
- Enough disk space on the host for the container image, BSP, generated images, and logs. Check
df -hfirst; space requirements vary with the rootfs and partition sizes.
The container commands below assume a native Linux host. The container still depends on the host's USB and kernel environment; Docker Desktop on Windows/macOS should not be treated as an equivalent flashing environment.
Connect only one device to be flashed when performing this procedure for the first time. On the flashing host, lsblk shows host disks; it cannot identify the Jetson's internal SSD connected through Recovery USB.
2.2 Select the Module Configuration
| Jetson Thor module | NVIDIA module number | Board configuration <board> | Force Recovery USB ID |
|---|---|---|---|
| T5000, 128 GB RAM | P3834-0008 | jetson-agx-thor-devkit | 0955:7026 |
| T4000, 64 GB RAM | P3834-0000 | jetson-agx-thor-t4000 | 0955:7226 |
Configuration names and USB IDs are from the NVIDIA R39.2 Quick Start. Confirm the model using the module label and matching BSP. Custom carrier boards also require adaptations from the device vendor; using the same module does not make another carrier board's BSP suitable.
3. Enter Force Recovery Mode
3.1 Use the Physical Buttons
Accessing the physical buttons requires removing the bottom cover. When the device is already powered on:
- Press and hold the Force Recovery / RECOVERY button.
- While holding RECOVERY, briefly press and release the RESET button.
- Release RECOVERY.
When the device is powered off, you can also hold RECOVERY, press and release POWER, then release RECOVERY.
3.2 Enter Programmatically from Running System (EFI Variable)
When the system is running and you want to enter Recovery without opening the case or need automated/remote orchestration, you can trigger Force Recovery on the next reboot by modifying an EFI runtime variable via efivarfs.
Why does sudo reboot --force forced-recovery fail?
On older architectures like AGX Orin, the kernel PMC driver intercepts forced-recovery and writes to the PMC_SCRATCH0 register. Jetson Thor (T264) uses the standard ARM PSCI 1.0 reset mechanism (via ATF SMC calls), which does not forward kernel reboot arguments. Instead, Thor delegates recovery boot control to the EDK2 UEFI NVRAM variable BoardRecoveryBoot.
Variable Details
- Variable GUID and Name:
BoardRecoveryBoot-781e084c-a330-417c-b678-38e696380cb9 - Path:
/sys/firmware/efi/efivars/BoardRecoveryBoot-781e084c-a330-417c-b678-38e696380cb9- The GUID suffix is NVIDIA's unified vendor namespace GUID (
gNVIDIATokenSpaceGuid), identical across all Jetson models. In scripts, you can hardcode it or dynamically match it using a wildcard:bashEFIVAR=$(ls /sys/firmware/efi/efivars/BoardRecoveryBoot-* 2>/dev/null | head -n1)
- The GUID suffix is NVIDIA's unified vendor namespace GUID (
- Storage Structure (5 bytes total):
- First 4 bytes are the EFI attribute header (little-endian uint32
0x07=NonVolatile | BootServiceAccess | RuntimeAccess):\x07\x00\x00\x00 - 5th byte is the boolean payload:
\x01(enable Recovery on next boot) /\x00(normal boot)
- First 4 bytes are the EFI attribute header (little-endian uint32
- One-shot Behavior: UEFI automatically clears this variable once it detects the flag and enters Force Recovery, preventing subsequent reboots from getting stuck in Recovery.
Command-line Implementation (Shell)
Run with root or sudo permissions on the target Jetson device:
# Locate the EFI variable path (fixed NVIDIA namespace GUID, or dynamic wildcard match)
EFIVAR=$(ls /sys/firmware/efi/efivars/BoardRecoveryBoot-* 2>/dev/null | head -n1)
[ -z "$EFIVAR" ] && echo "BoardRecoveryBoot variable not found" && exit 1
# 1. Clear the immutable attribute protection on efivars
sudo chattr -i "$EFIVAR"
# 2. Write EFI attribute header (0x07) + Payload (0x01 = trigger Recovery)
printf "\x07\x00\x00\x00\x01" | sudo tee "$EFIVAR" > /dev/null
# 3. Restore the immutable flag (recommended security practice)
sudo chattr +i "$EFIVAR"
# 4. Perform a normal reboot
sudo rebootPython Implementation (Automation / Remote Maintenance)
import glob
import os
import subprocess
matches = glob.glob("/sys/firmware/efi/efivars/BoardRecoveryBoot-*")
if not matches:
raise FileNotFoundError("EFI variable BoardRecoveryBoot not found")
EFIVAR_PATH = matches[0]
def enter_recovery_and_reboot():
# Clear immutable flag
subprocess.run(["chattr", "-i", EFIVAR_PATH], check=True)
# 4 bytes Attributes (0x00000007) + 1 byte Value (0x01)
data = bytes([0x07, 0x00, 0x00, 0x00, 0x01])
with open(EFIVAR_PATH, "wb") as f:
f.write(data)
subprocess.run(["chattr", "+i", EFIVAR_PATH], check=True)
subprocess.run(["reboot"], check=True)
if __name__ == "__main__":
enter_recovery_and_reboot()3.3 Use the UEFI Menu
If the device can still enter UEFI, try the menu path used in the current LC-X5 workflow:
- Press Esc repeatedly when the NVIDIA logo appears during startup.
- Go to Device Manager → NVIDIA Configuration → Boot Configuration.
- Enable Boot Into Recovery, save the settings, and continue or restart.
Menu names and locations may vary with firmware. Afterward, confirm the Recovery USB ID on the host. If it does not appear, use the physical buttons to enter Force Recovery. A Linux recovery shell or LC-X5 APP recovery does not mean the device has entered USB flashing mode.
3.4 Confirm That the Host Detects the Device
Run on the flashing host:
lsusb -d 0955:For T5000, you should see 0955:7026; for T4000, 0955:7226. The device name may include NVIDIA Corp. or APX. If the matching device is absent, check the data cable, Recovery port, power supply, and button sequence before running the flashing command.
4. Start the Container and Prepare the BSP
4.1 Create a Working Directory
On the flashing host, create a directory for logs and files:
mkdir -p ~/lc-x5-flash/workspace
cd ~/lc-x5-flashHere, workspace is a host directory mapped to /workspace inside the container. Files placed in /workspace remain on the host.
4.2 Start the Flashing Container
docker run -it --rm \
--privileged \
--network host \
--pid host \
-v /dev/bus/usb:/dev/bus/usb \
-v /dev:/dev \
-v "${PWD}/workspace:/workspace" \
catdogai/lzc-x5-flash:39.2 \
bashIf the current user lacks Docker permissions, run docker run with sudo prepended.
| Parameter | Purpose |
|---|---|
--privileged | Allows the flashing tools to access USB and device nodes and perform required system operations |
--network host | Uses the host network environment |
--pid host | Use the host PID namespace |
/dev/bus/usb, /dev mounts | Access Recovery USB and device nodes after re-enumeration |
workspace mount | Preserves logs and manually saved artifacts |
--rm | Deletes the container when it exits |
Mounting
/workspacedoes not automatically preserve/Linux_for_Tegrafrom the image. When the container exits, changes and new files in unmounted directories are deleted with it. Copy logs or artifacts you need to/workspacebefore exiting.
4.3 Prepare the LC-X5 Flashing Environment
Run the following commands inside the container, proceeding to each step only after the previous one succeeds:
cd /Linux_for_Tegra
sudo ./tools/l4t_flash_prerequisites.sh
sudo ./apply_binaries.sh --openrm
sudo ./twsetup/install.shl4t_flash_prerequisites.shinstalls NVIDIA flashing dependencies.apply_binaries.shapplies NVIDIA binary components to the rootfs. The Thor workflow in R39.2 still accepts--openrm, but this parameter no longer changes the result. See the official BSP preparation steps.twsetup/install.shis a companion installation step. Follow the prompts in the image; it is not a standard NVIDIA BSP command.
Check the key paths and the parameters supported by the current script:
pwd
ls -ld bootloader kernel rootfs nv_tegra
ls -l l4t_initrd_flash.sh jetson-agx-thor-*.conf
sudo ./l4t_initrd_flash.sh -h
lsusb -d 0955:This guide uses the top-level ./l4t_initrd_flash.sh entry point in the LC-X5 BSP. The official tools directory is tools/kernel_flash/. If using an unmodified BSP, invoke the script according to its actual location and the guide for that version. If companion scripts are missing, check the image first rather than skipping installation steps.
4.4 Read Disk Capacity and Calculate EXT_NUM_SECTORS
Boot the device from Force Recovery into a temporary initrd, then read the target NVMe capacity over USB from the flashing host/container. The query does not require a working operating system on the SSD.
Read Disk Capacity in Recovery and Calculate EXT_NUM_SECTORS
1 Start the Temporary Recovery Environment
Force Recovery initially runs in BootROM, before Linux disk-query interfaces exist. First load a recovery/initrd into RAM so that its NVMe driver can discover the disk.
Complete the container and BSP preparation above, connect only one target, and enter Force Recovery. Run the following inside the flashing container, in /Linux_for_Tegra. This is a T4000 example; for T5000, change the board configuration to jetson-agx-thor-devkit:
sudo ./l4t_initrd_flash.sh --boot-rootfs --initrd \
jetson-agx-thor-t4000 externalThis combination selects a temporary Thor initrd with USB networking/SSH and stops in RAM. It prepares the query environment without starting partition flashing or booting an installed operating system. NVIDIA documents this temporary boot entry point in Thor initrd usage. Using --initrd alone is a different entry point; it does not imply that ADB will be available.
2 Read the NVMe List and Paste SIZE into the Calculator
Once the temporary environment is ready, run the calculator's second-step query on the flashing host/container. It uses USB SSH to reach the target. For one device, the default address is fc00:1:1::2, with temporary initrd credentials root / root. These credentials belong to the temporary environment rather than the installed operating system.
The command reads target sysfs and lists NVMe disk names, exact byte counts, read-only status, models and serial numbers. It calculates SIZE in bytes directly without requiring lsblk inside initrd.
EXT_NUM_SECTORS calculator
Start temporary recovery, read the target NVMe size over USB, then paste SIZE below.
XML sector_size = 512 bytes (fixed)
1. Start recovery on the target
Put the target in Force Recovery mode and connect only one device. Run this command in /Linux_for_Tegra on the flashing host or in its flashing container. It starts a temporary initrd in RAM; it does not require an installed OS.
sudo ./l4t_initrd_flash.sh --boot-rootfs --initrd jetson-agx-thor-t4000 external2. Read the NVMe disks over USB SSH
Run this command on the same flashing host or in the same container after recovery starts. Log in to the temporary initrd as root, with password root, at fc00:1:1::2. Match the target disk by DISK, MODEL and SERIAL; RO=0 means writable. SIZE is already the exact byte count.
ssh root@fc00:1:1::2 'sh -s' <<'RECOVERY'
printf '%-14s %-16s %-3s %s\n' DISK SIZE RO 'MODEL / SERIAL'
for disk in /sys/block/nvme*n*; do
[ -r "$disk/size" ] || continue
sectors=$(cat "$disk/size")
model=$(cat "$disk/device/model" 2>/dev/null)
serial=$(cat "$disk/device/serial" 2>/dev/null)
printf '%-14s %-16s %-3s %s / %s\n' "${disk##*/}" "$((sectors * 512))" "$(cat "$disk/ro")" "$model" "$serial"
done
RECOVERY3. Paste the selected disk’s SIZE
Paste the complete integer from the selected disk’s SIZE column. Do not add a unit, commas or scientific notation.
Example reading: 250059350016 bytes. This is not a measurement of your disk.
Calculated parameter
Use the complete SIZE number from the command above. Place the copied parameter after sudo env, followed by your flashing script and its arguments.
Example output:
DISK SIZE RO MODEL / SERIAL
nvme0n1 250059350016 0 KINGSTON SNVS250G / EXAMPLE_A
nvme1n1 1000204886016 0 SSD 1TB / EXAMPLE_BSelect the target by its model and serial number. RO set to 0 means writable, not empty. Copy the complete SIZE number, such as 250059350016, into step three to obtain EXT_NUM_SECTORS=488397168. Calculate disks individually rather than adding capacities.
The calculator is fixed to XML using sector_size="512" and applies:
EXT_NUM_SECTORS = floor(SIZE / 512)Save the result, enter Force Recovery again, then use sudo env in section 5 to pass the capacity, regenerate images, and flash. Do not start flashing by removing --initrd from the temporary boot command; use the complete flashing command in section 5.
The default Thor layout in R39.2 assumes an NVMe drive larger than approximately 234 GiB. For smaller drives, set the actual capacity; see the NVMe capacity limitation in the R39.2 Release Notes. -S <size> controls APP size, separately from the whole-disk sector count; APP, the other partitions and GPT must all fit. See NVIDIA Partition Configuration for layout fields.
3 If the Device Is Already in the ADB Flashing Environment
If the companion flashing tools have already started an ADB environment, read capacity directly without running the temporary boot command above. Check inside the flashing container, in /Linux_for_Tegra:
ADB=./unified_flash/out/bsp_images/tools/flashtools/flash/adb
sudo "${ADB}" devicesThe device must appear as device. Replace the serial number and run the following commands. The last line converts the target's 512-byte-unit reading into SIZE in bytes. Paste the final numeric output into step three:
THOR_SERIAL='<设备序列号>'
sudo "${ADB}" -s "${THOR_SERIAL}" pull \
/sys/block/nvme0n1/size /workspace/nvme0n1-sectors.txt
python3 -c 'from pathlib import Path; print(int(Path("/workspace/nvme0n1-sectors.txt").read_text().strip()) * 512)'For the second disk, replace nvme0n1 with nvme1n1. Pulling the file also works when ADB shell reports fork failed: No such file or directory but the file-transfer service remains available. If the ADB path is absent or no device appears, first start the temporary USB SSH environment above. BootROM itself does not provide a queryable Linux system.
4 Distinguish the LC-X5 Custom XML from NVIDIA's Original XML
The LC-X5 custom partition commands in this guide use:
/Linux_for_Tegra/flash_l4t_t264_nvme.xmlNVIDIA's original NVMe configuration is usually located at:
/Linux_for_Tegra/tools/kernel_flash/flash_l4t_t264_nvme.xmlEven with identical filenames, the contents and partition purposes may differ. When setting up LC-X5 APP recovery and LVM runtime, use the companion custom layout; do not substitute the original XML.
Check the custom file inside the container:
test -f flash_l4t_t264_nvme.xml
grep -nE 'sector_size|num_sectors|partition name=|APP|DATA_PV' \
flash_l4t_t264_nvme.xmlWhen you later run lzc-thor provision, the layout must contain the APP and DATA_PV partitions required by that tool. If the XML is missing or its layout does not match, obtain the correct companion file first.
5. Flash the Device
Choose the option in this section that fits your needs; do not run all of them in sequence. Run all commands inside the container, in /Linux_for_Tegra, with the device in Force Recovery mode. After changing the method, capacity, module, or XML, regenerate the corresponding images rather than reusing artifacts from the previous run.
For official parameter descriptions, see Flashing Support for Jetson Thor (R39.2).
5.1 Custom NVMe Partition Mode: Prepare the Layout for LVM
This mode prepares the LC-X5 LVM storage layout. The command first flashes the specified NVMe using the LC-X5 custom XML; --external-device alone does not automatically combine two SSDs into LVM.
T5000:
sudo ./l4t_initrd_flash.sh \
--external-device nvme0n1 \
-c flash_l4t_t264_nvme.xml \
jetson-agx-thor-devkit externalT4000:
sudo ./l4t_initrd_flash.sh \
--external-device nvme0n1 \
-c flash_l4t_t264_nvme.xml \
jetson-agx-thor-t4000 externalTo override capacity, pass the parameter explicitly with sudo env. This T4000 example assumes a measured target capacity of 488397168 sectors; replace it with your actual reading or calculator result:
sudo env EXT_NUM_SECTORS=488397168 ./l4t_initrd_flash.sh \
--external-device nvme0n1 \
-c flash_l4t_t264_nvme.xml \
jetson-agx-thor-t4000 externalAvoid EXT_NUM_SECTORS=488397168 sudo ...: sudo may filter the preceding environment variable. For T5000, use the same parameter syntax and change the board configuration to jetson-agx-thor-devkit.
After flashing and booting, check the layout and initialization status on the LC-X5:
lsblk -o NAME,PATH,SIZE,TYPE,FSTYPE,PARTLABEL,MOUNTPOINTS
findmnt /
sudo lzc-thor provision statusIf the companion workflow has not yet created the LVM runtime, follow the provision workflow in the LC-X5 Configuration Guide to complete APP recovery and LVM initialization. This workflow has two stages, each of which restarts the device; do not skip the recovery environment checks.
Only after the root filesystem uses /dev/aipod_vg/lv_root should you add the second disk through the expand-lvm workflow in the same guide. First verify its model and serial number, then run a read-only dry run:
# /dev/nvme1n1 仅为示例,请替换为已核对的第二块盘
sudo lzc-thor expand-lvm --disk /dev/nvme1n1 --dry-runLVM expansion does not provide disk mirroring or redundancy. Once member disks become part of the root filesystem, losing any member disk may prevent the system from booting.
5.2 Reflash Only NVMe Without Updating QSPI
Use this when QSPI works correctly and is compatible with the target BSP, and only the SSD system needs reinstalling. The following example is for T4000:
sudo ./l4t_initrd_flash.sh \
--external-only \
--external-device nvme0n1 \
-c flash_l4t_t264_nvme.xml \
jetson-agx-thor-t4000 externalFor T5000, replace the configuration name with jetson-agx-thor-devkit.
--external-only still rewrites the external disk's partitions and system; it is not an incremental update that preserves data. If QSPI is damaged or its version is incompatible, this method cannot repair the boot firmware.
After generating the external image, you can also check the target device recorded for this run:
grep -n '^external_device=' tools/kernel_flash/images/external/flash.cfgThis file may only exist after image generation, or it may be left over from a previous task. It records the flashing configuration and does not replace verification of the SSD model, serial number, and initrd enumeration results.
5.3 Update Only the QSPI Boot Firmware
QSPI stores boot-chain firmware, including the bootloader and UEFI. This operation does not reinstall the NVMe system or update the Linux kernel, GPU driver, or CUDA.
T5000:
sudo ./l4t_initrd_flash.sh \
--qspi-only jetson-agx-thor-devkit mmcblk0p1T4000:
sudo ./l4t_initrd_flash.sh \
--qspi-only jetson-agx-thor-t4000 mmcblk0p1mmcblk0p1 is the positional argument used in the official QSPI-only example. In this mode, it should not be interpreted as flashing an eMMC system disk.
Update QSPI only when the model is correct and the firmware matches the system version. A black screen after the NVIDIA logo may relate to boot firmware, but it can also result from the boot order, SSD, rootfs, or display service. Diagnose it using the troubleshooting section first.
5.4 Save Flashing Logs
Pipe the chosen command to tee to save logs. The following uses the default T5000 mode as an example; this command itself performs flashing:
set -o pipefail
sudo ./l4t_initrd_flash.sh jetson-agx-thor-devkit internal \
2>&1 | tee "/workspace/flash-$(date +%Y%m%d-%H%M%S).log"pipefail preserves the flashing command's failure status in the pipeline, preventing successful log saving from masking a flashing failure. For another mode, substitute the corresponding flashing command while retaining the capacity and XML parameters.
6. Boot and Verify After Flashing
6.1 Wait for Completion, Then Restart
Restart the device only after the tool explicitly reports success and exits. Do not disconnect power while writing to disk or updating QSPI.
After flashing, Thor may remain at an initrd prompt instead of automatically entering the installed Linux system. Press RESET, or power-cycle the device after confirming that flashing has finished. See the official restart steps after flashing.
If UEFI Boot Manager appears, select the boot entry for the freshly flashed NVMe. Remove any ISO installation USB drive that is no longer needed to avoid entering the installer again.
6.2 Complete First-Boot Setup
If the NVIDIA/Ubuntu first-boot wizard appears, follow its prompts to create a user and set the password, time zone, and network. If the image has a preconfigured user, sign in according to the delivery instructions; do not assume all images use the same default password.
6.3 Verify Versions, Disks, and GPU
Run the following commands on the flashed LC-X5:
cat /etc/nv_tegra_release
uname -r
dpkg-query -W nvidia-l4t-core
findmnt /
lsblk -o NAME,PATH,SIZE,TYPE,FSTYPE,PARTLABEL,MOUNTPOINTS
df -h /
nvidia-smi
sudo nvpmodel -qCheck the following:
nvidia-l4t-corematches the target BSP's R39.2 version; the container tag alone does not establish the device version.- The root filesystem comes from the expected disk or logical volume, and its capacity matches the selected layout.
- The driver recognizes the GPU. If
nvidia-smifails, continue checking the packages and kernel logs. - In LVM mode, also run
sudo pvs,sudo vgs, andsudo lvsto verify the member disks and/dev/aipod_vg/lv_root.
For general initialization, JetPack packages, Docker, the AI Pod agent, VNC, and storage maintenance, see LC-X5 Configuration and lzc-thor Usage. Confirm that the companion first-boot workflow has completed before initializing as needed.
7. Troubleshooting
7.1 The Host Cannot Detect the Recovery Device
- Confirm that the USB cable supports data transfer and is connected to the Recovery port.
- Keep the power connected and repeat the RECOVERY + RESET sequence.
- Check
lsusb -d 0955:on the host. If necessary, usesudo dmesg -wto observe USB connection and disconnection logs. - If the host detects the device but the container does not, check the
/devmount and container permissions, then runlsusbinside the container.
The absence of a normal desktop display in Recovery mode does not mean the device is damaged; use the USB enumeration results to confirm its state.
7.2 Waiting for Target Boot or USB/ADB Timeouts
- Check the power supply, data cable, and USB state after device re-enumeration.
- Verify that the correct T5000/T4000 configuration is selected and BSP preparation is complete.
- Disconnect USB peripherals not involved in flashing, re-enter Force Recovery, and retry.
- Save the host flashing logs and device serial logs to determine whether the failure occurs during image generation, initrd startup, disk detection, or writing.
ADB queries apply only after initrd has started. Repeated capacity queries will not resolve an empty adb devices result.
7.3 Partition Capacity Exceeds the Disk, or GPT or Disk Writing Fails
Read the target disk's /sys/block/nvme0n1/size again and verify EXT_NUM_SECTORS, the XML's sector_size/num_sectors, and the total size of APP and the other partitions. Even for an SSD advertised as 256 GB, use the actual reading to check whether it meets the default layout requirements.
For example, a target disk has 488397168 sectors (250059350016 bytes), but the BSP generates a layout using its 234 GiB default (490733568 sectors). It then attempts to write at offset 251255569920, with a length of 16896 bytes, for secondary_gpt. The end of the write exceeds the actual disk capacity by approximately 1.20 GB. This can produce nvdd error BadParameter (0x4), followed by propagated errors 59 and 121; successful earlier e2fsck and resize2fs steps do not verify the whole-disk layout.
Use the calculator in this section to obtain the actual sector count, pass it through sudo env, and regenerate the images. Do not reuse old artifacts with --reuse or --flash-only. DATA_PV in a custom layout may also extend beyond the disk; moving only the backup GPT is insufficient.
After generation, check bootloader/secureflash.xml and its num_sectors, then unified_flash/out/bsp_images/flash_workspace/flash-images/FileToFlash.txt and its secondary_gpt: the write offset plus length must not exceed the whole-disk byte count. For the example disk above, the correct offset for a 33-sector backup GPT is 250059333120. Do not edit only flash.cfg.
7.4 Black Screen After the NVIDIA Logo or Failure to Enter the System
Troubleshoot in this order:
Confirm that flashing succeeded and that you manually restarted the device afterward.
Press Esc to check whether UEFI detects the SSD, then check Boot Manager and the boot order.
If SSH login still works, check the display and system services first:
bashsystemctl --failed systemctl status display-manager sudo journalctl -b -p err --no-pager sudo dmesg -T | grep -Ei 'nvme|I/O error|ext4|nvidia|drm'If the system cannot boot, use serial logs to determine whether NVMe is missing, rootfs cannot be found, or the device is stuck in a recovery environment. With dual-disk LVM, also check that all member disks are connected.
If only NVMe was flashed previously and the evidence points to damaged QSPI or firmware that does not match the BSP, use QSPI-only mode to update the boot firmware.
Reflashing QSPI alone cannot repair a damaged rootfs or replace a missing LVM member disk.
7.5 Logs or Artifacts Are Missing After the Container Exits
--rm deletes the container; only files in mounted directories remain on the host. Save logs to /workspace, which corresponds to ~/lc-x5-flash/workspace on the host. Before exiting, save any required XML, logs, and records of the parameters used for this run.
8. Official Guides and Further Reading
Official development documentation matching the version used in this guide:
| Official resource | Topics to consult |
|---|---|
| JetPack 7.2 Downloads and Release Information | R39.2 mapping, BSP and sample rootfs downloads |
| Jetson Linux R39.2 Quick Start | BSP preparation, module configurations, Recovery and USB IDs |
| Flashing Support for Jetson Thor | initrd, NVMe, QSPI-only, single-partition and mass flashing |
| Partition Configuration | XML, partitions, sector sizes, and capacity settings |
| UEFI Adaptation | Boot order, boot modes, and recovery boot settings |
| R39.2 Release Notes (PDF) | Supported hosts, capacity limitations, and known issues |
| NVIDIA Jetson Documentation Archive | Find developer guides and release notes for the actual BSP version |
Developer kit operations and other installation methods:
| Official guide | Applicable scenarios |
|---|---|
| Thor Developer Kit Hardware Layout | Reference for the developer kit's Recovery, power, and debug interfaces |
| Thor Quick Start: Create an ISO Installation USB Drive | Install the official system using a USB drive of at least 16 GB |
| Thor BSP Setup: ISO, SDK Manager, and Scripts | Compare installation paths and upgrade scope |
| Install Jetson Software with SDK Manager | Graphical flashing and SDK installation |
| SDK Manager System Requirements | Host resources and system compatibility requirements |
| Thor UEFI and Jetson ISO Compatibility | Confirm that the firmware and ISO are compatible |
Developer kit guides with /latest/ in their URLs change with new NVIDIA releases and may already use R39.2.1 or later. The commands in this guide still use the companion 39.2 image. Check versions before downloading or flashing, and do not directly replace files in the current BSP with newer ones.
Also retain the bundled instructions for reference: Linux_for_Tegra/tools/kernel_flash/README_initrd_flash.txt. Backup and restore instructions are in Linux_for_Tegra/tools/backup-restore/README_backup_restore.txt; before use, confirm that the version supports the current device and storage layout.