LC-X3 Flashing Guide (Jetson AGX Orin / JetPack 7.2.1)
Use catdogai/lzc-x3:jetpack-7.2.1 to flash an NVMe system on an LC-X3 / Jetson AGX Orin with a T912 v1.2 carrier board. The image includes the Jetson Linux R39.2.1 BSP, vendor adaptations, flashing dependencies, a custom T234 partition XML, and preinstalled lzc-jetson-orin-flash 0.2.6. Once the container starts, you can run the flashing command.
JetPack 7.2.1 corresponds to Jetson Linux R39.2.1. For version details, see the NVIDIA JetPack Downloads page. For USB flashing parameters, see the R39.2.1 Quick Start and Flashing Support. The target system is based on Ubuntu 24.04. Other carrier boards require a matching vendor BSP.
Data will be erased
The full flashing command in this guide includes --erase-all, which erases the device's storage. Back up your system, models, containers, and application data first. For the first flash, install only the target NVMe drive and disconnect other data drives. Subsequent provisioning, reset, and storage expansion operations also write to disk; verify the drive names and their purpose before proceeding.
1. Prepare for Flashing
- A native x86_64 Linux host, preferably Ubuntu 22.04, with Docker installed and permission to run privileged containers. The image architecture is linux/amd64, while the device rootfs inside it is ARM64.
- At least 80 GB of free host disk space is recommended for the image, the container's writable layer, and the generated 32 GiB system image. Temporary files are also created during generation.
- An LC-X3 with a target NVMe drive of at least 128 GB installed and a stable power supply connected.
- A USB Type-C cable that supports data transfer, connecting the host to the LC-X3's Recovery port. Connect it directly to the host if possible.
- A monitor and keyboard, or a serial console, for the first boot and troubleshooting LVM initialization.
The container relies on the host's USB, network, and kernel, so this procedure is intended for native Linux. Connect only one device for your first flash. The host's lsblk output lists host drives; it cannot identify the Jetson's internal NVMe drive while the device is in Recovery mode.
2. Enter Force Recovery Mode
When the device is powered on, hold RECOVERY, briefly press and release RESET, then release RECOVERY. The buttons are inside the enclosure; remove the bottom cover if necessary. When the device is powered off, hold RECOVERY, press POWER, then release RECOVERY.
If the device can still enter UEFI, you can also press Esc at the NVIDIA logo during startup and look for Device Manager → NVIDIA Configuration → Boot Configuration → Boot Into Recovery. Enable it, save, and reboot. Menus vary by firmware version; use USB detection to confirm that the device is in Recovery mode.
Check on the flashing host:
lsusb -d 0955:Common AGX Orin Recovery USB IDs are 0955:7023 and, for some modules, 0955:7223. The device name usually contains NVIDIA or APX. For the corresponding module numbers, see the official Quick Start. If no device is detected, check the cable, port, power supply, and button sequence first.
USB Force Recovery and LZC Orin APP recovery, described later, are different environments. The latter is the recovery system on the SSD.
3. Start the Flashing Container
After obtaining the supplied offline archive lzc-x3-jetpack-7.2.1.tar.zst, import it on the flashing host (requires zstd):
set -o pipefail
zstd -dc lzc-x3-jetpack-7.2.1.tar.zst | docker loadOnce the image is published to a registry, you can also obtain it with docker pull catdogai/lzc-x3:jetpack-7.2.1.
With a new image that includes host NFS management, run the following command directly. Rebuild or import the updated image first; an existing image with the same tag does not update automatically. Images that can reuse existing NFS shares have the cloud.lazycat.x3.flash-runtime label set to host-nfs-v2.
mkdir -p ~/lc-x3-flash/workspace
cd ~/lc-x3-flash
sudo docker run -it --rm \
--privileged \
--network host \
--pid host \
-e X3_FLASH_HOST_NETWORK=1 \
-e X3_FLASH_MANAGE_HOST_NFS=1 \
-v /dev/bus/usb:/dev/bus/usb \
-v /dev:/dev \
-v "${PWD}/workspace:/workspace" \
catdogai/lzc-x3:jetpack-7.2.1 \
bashThe image entrypoint uses --pid host and the included nsenter to manage services on the flashing host, and --network host for initrd flashing communication. Host service management is enabled only with X3_FLASH_MANAGE_HOST_NFS=1. No extra host /proc or Docker socket mount is needed, and there is no startup script to download. Before opening the shell, it completes these checks:
- Acquires a host session lock. If the host has NFS shares, it reuses the healthy host NFS/RPC server and adds only the session's flash export, without stopping or restarting existing services. Otherwise, it records and temporarily stops host NFS/RPC, checks ports 111/2049, then starts the container services. It exits early if an RPC process does not belong to the host services.
- Confirms that the image entrypoint has mounted
tools/kernel_flash/tmpandimageson temporary ext4 storage, avoiding the Docker overlay export error. - Creates separate NFS export configuration for localhost and the default USB flashing subnet
fc00:1:1::/48. When reusing host NFS, it mounts the same temporary ext4 flash directory at the same host path and skips service restarts and global export reloads in NVIDIA's scripts. It opens Bash after NVIDIA's network argument and export checks pass. The entrypoint only opens a shell; you run the flashing command yourself.
When you run exit in Bash or use docker stop, the image entrypoint removes the session's exports and temporary storage. When reusing host NFS, it preserves existing shares and services. When using container NFS, it stops the container services and restores the host services that were running before startup. It also cleans up on startup failure or catchable exit signals, without changing service startup settings. Exit existing flashing containers first.
Reuse mode requires Python 3 on the host and a host flash export path that is absent or an empty directory. The entrypoint refuses to cover existing contents, mounts, symlinks, or overlapping NFS shares. Existing business shares can continue running; use a separate flashing host if their paths overlap the flash directory.
Compatibility with older images
For an image that already has the temporary ext4 entrypoint but does not include host service management, download the compatibility launcher start-x3-flash.sh, save it in your working directory, and run sudo bash ./start-x3-flash.sh. This compatibility path works only on hosts without existing NFS shares and does not require rebuilding the old image. If the check reports that tmp or images is still on overlay, obtain an image with the temporary ext4 entrypoint; chmod or exports entries cannot fix that filesystem limitation. Hosts with business NFS shares require an updated image with reuse support.
Temporary ext4 storage has a default logical capacity of 96 GiB, consumes host disk space as data is written, and is discarded when the container exits. To increase its capacity, add -e X3_FLASH_STORAGE_SIZE=128G to the Docker command.
The container starts in /Linux_for_Tegra by default. NVIDIA binaries, vendor adaptations, the default user, and the Orin deb package are already prepared. There is no need to rerun apply_binaries.sh or twsetup/install.sh, or install flashing dependencies online.
Check inside the container:
cd /Linux_for_Tegra
lsusb -d 0955:
findmnt -T tools/kernel_flash/tmp -o TARGET,SOURCE,FSTYPE
findmnt -T tools/kernel_flash/images -o TARGET,SOURCE,FSTYPE
showmount -e localhost
cat rootfs/etc/nv_tegra_release
ls -l ../flash_l4t_t234_nvme.xml ../lzc-jetson-orin-flash_arm64.debBoth flashing directories should show ext4, and the NFS export list should include /Linux_for_Tegra/tools/kernel_flash/images. The versions should be R39.2, REVISION 2.1, and Orin package version 0.2.6. The original deb package is kept in /usr/local/share/jetson-orin-flash/; /lzc-jetson-orin-flash_arm64.deb is a fixed link to it.
Save logs
/workspace maps to the host's workspace directory. Under /Linux_for_Tegra, the flashing tmp and images directories use temporary ext4 storage inside the container. The container and generated flashing artifacts are deleted on exit. Save any logs or files you want to keep in /workspace.
4. Flash the NVMe Drive
Run the following command inside the container, in /Linux_for_Tegra:
sudo ./tools/kernel_flash/l4t_initrd_flash.sh \
--external-device nvme0n1p1 \
-c ../flash_l4t_t234_nvme.xml \
--erase-all jetson-agx-orin-devkit externalnvme0n1p1is the target partition on the Jetson, not a host drive.../flash_l4t_t234_nvme.xmlpoints to the custom LC-X3 XML at the image's root directory. It retains the R39.2.1 T234 boot partitions, fixes APP at 32 GiB, and adds DATA_PV (partition ID 16) for subsequent LVM setup.- The image already sets
jetson-agx-orin-devkit.conf'sROOTFSSIZEto 32GiB, so this command does not need an additional-Sargument. If you use the original BSP yourself, you must also specify-S 32GiBand install the matching vendor adaptations and deb package. - NVIDIA's original XML is at
tools/kernel_flash/flash_l4t_t234_nvme.xml. Its partitions serve different purposes; keep the custom XML path above if you intend to use provision afterward.
The template retains the EXT_NUM_SECTORS placeholder. By default, the BSP generates partitions using a 57 GiB external disk geometry. During provisioning, DATA_PV is expanded to the actual end of the SSD. The minimum 128 GB requirement provides space for a block-level clone of APP. This layout uses a single, unencrypted rootfs.
Keep the power supply and USB cable connected during flashing. Wait for the tool to report success and the device to reboot. To save terminal output as well, run the same command in this form:
set -o pipefail
sudo ./tools/kernel_flash/l4t_initrd_flash.sh \
--external-device nvme0n1p1 \
-c ../flash_l4t_t234_nvme.xml \
--erase-all jetson-agx-orin-devkit external \
2>&1 | tee /workspace/lc-x3-flash.log4.1 Read Target Disk Capacity and Calculate EXT_NUM_SECTORS
From Force Recovery, boot a temporary initrd and query the target disk over USB. A working operating system on the SSD is not required. The initial BootROM stage cannot query the disk; first load a Linux RAM environment with the NVMe driver.
Inside the prepared flashing container, in /Linux_for_Tegra, connect only one target, enter Force Recovery, and run:
sudo ./tools/kernel_flash/l4t_initrd_flash.sh --initrd \
jetson-agx-orin-devkit externalThis command stops in the temporary initrd. See NVIDIA Orin initrd usage. Run the calculator's second-step USB SSH query on the same flashing host/container. For one device, the default address is fc00:1:1::2, with temporary credentials root / root; follow the connection information printed by the tools.
The query lists target NVMe names, SIZE in bytes, read-only status, models and serial numbers. Select the target and paste its complete SIZE number into step three, for example 250059350016. With this guide's XML setting, sector_size="512", the calculator produces 488397168. Calculate disks individually rather than adding capacities.
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.
Module: AGX Orin
sudo ./tools/kernel_flash/l4t_initrd_flash.sh --initrd jetson-agx-orin-devkit 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.
Save the result and enter Force Recovery again, then pass the capacity to the complete flashing command below, regenerate images, and flash.
For example, if the measured capacity is 488397168 sectors, or 250059350016 bytes, pass the parameter inside the flashing container as follows. Replace the example with your target disk's actual reading:
sudo env EXT_NUM_SECTORS=488397168 ./tools/kernel_flash/l4t_initrd_flash.sh \
--external-device nvme0n1p1 \
-c ../flash_l4t_t234_nvme.xml \
--erase-all jetson-agx-orin-devkit externalPut the assignment after sudo env to avoid sudo filtering the preceding variable in EXT_NUM_SECTORS=488397168 sudo .... Whole-disk sector count and APP size controlled by -S are separate parameters. Regenerate images after changing capacity or layout; do not reuse old partition tables with --reuse or --flash-only. All partitions and GPT must fit within the actual disk capacity.
5. First Boot and LVM Initialization
Run the following commands on the LC-X3 system. The default username is nvidia and the password is nvidia; change the password after logging in. Log in using a monitor, or connect over SSH using the device's LAN address. If USB networking is ready, you can also try ssh nvidia@192.168.55.1.
First, wait for the vendor's twInit.service to finish initialization. The device may automatically reboot once:
systemctl status twInit.service --no-pager
ls /boot/twbsp
lsblk -o NAME,SIZE,FSTYPE,PARTLABEL,MOUNTPOINTS /dev/nvme0n1You should see an approximately 32 GiB APP partition (p1) and DATA_PV (p16). /boot/twbsp should contain the vendor DTB and tegra234-p3737-0000-twboard-config.dtbo. If APP occupies almost the entire drive or DATA_PV is missing, recheck the flashing XML. Do not turn the current root partition directly into an LVM PV.
For the first provisioning operation, run from the writable APP system:
sudo lzc-orin provision --dry-run
sudo lzc-orin provision --yesThe first stage prepares the initramfs and boot entries, then reboots automatically. The second stage boots from read-only APP into a temporary provision target and automatically clones APP to ssd_vg/ssd_lv. On success, it reboots again directly into the writable LVM runtime. The second stage has no SSH access; you do not need to log in again to start the clone manually. You can monitor progress through a serial console.
After completion, verify:
sudo lzc-orin provision status
findmnt /
findmnt /factory
findmnt /boot
sudo lvs/ should be /dev/mapper/ssd_vg-ssd_lv. APP is mounted read-only at /factory, and its /boot is bind-mounted read-only into the running system. If the device still boots from eMMC, select the NVMe boot entry in UEFI.
With a network connection, initialize JetPack, Docker, Compose, and the AI Pod services in the LVM runtime:
sudo lzc-orin allThe flashing image contains the base system and initialization tools. This step installs JetPack runtime software and Docker into the LVM runtime. The default Docker data directory is /ssd/docker. After the user is added to the Docker group, log out and log in again. Packages that provide APP's kernel, DTB, and initrd are placed on hold; do not upgrade the read-only /boot separately from the runtime.
6. Recovery, Storage Expansion, and Troubleshooting
If automatic cloning fails, the device will not reboot automatically. Check the errors through a serial console. If you need the regular recovery environment, reboot, manually select LZC Orin APP recovery in the L4TLauncher menu, and retry from read-only APP:
sudo lzc-orin maintenance --yesThis command clones the LV again. The regular APP recovery environment does not run it automatically.
For a factory reset, first enter LZC Orin APP recovery as well:
sudo lzc-orin reset --dry-run
sudo lzc-orin reset --yesReset deletes the LVM runtime data and preserves the APP recovery system. All LVM member drives must be connected. After completion, run sudo lzc-orin all again.
When adding a second, empty NVMe drive, first verify its model, serial number, and device name in the LVM runtime, then run:
lsblk -d -o NAME,SIZE,MODEL,SERIAL
sudo lzc-orin expand-lvm --disk /dev/nvme1n1 --dry-run
sudo lzc-orin expand-lvm --disk /dev/nvme1n1A nonempty drive requires the explicit flags --force-wipe --yes, which delete its contents. After expansion, the root filesystem depends on all member drives; you cannot simply disconnect any member drive.
| Symptom | What to check |
|---|---|
| The host cannot detect the Recovery USB device | Check the data cable, Recovery port, power supply, and buttons; run lsusb -d 0955: on both the host and in the container |
| The XML or flashing script is missing | Confirm that you are using catdogai/lzc-x3:jetpack-7.2.1 and that the current directory is /Linux_for_Tegra |
| Not enough space to generate the image | Check the disk containing the host's Docker data directory and the container's writable layer; reserve space for temporary images |
does not support NFS export | Check that tmp and images use ext4; if they still use overlay, update to an image with the temporary ext4 entrypoint |
images seems to be not exported, although exportfs -s lists it | Host and container RPC services may conflict; exit the old container and use the new image with the host service management options above, ensuring showmount -e localhost lists images |
| The host has NFS shares | Update to an image that can reuse host NFS; extra startup flags cannot bypass the old image's guard. Do not remove business shares |
| An unmanaged RPC process is running | Exit existing flashing containers first; do not run two flashing service stacks at once |
| The host flash directory is nonempty, already mounted, or overlaps a share | Preserve existing directories and shares; use a host with an available flash path |
| Initial setup fails | Check the twInit.service logs, /boot/twbsp, and the vendor FDT/OVERLAYS boot configuration |
| SSH is unavailable after provision | The temporary provision target has no SSH; use a serial console to check progress and errors |
| The device reboots into eMMC | Check the NVMe boot order in UEFI |
| The LVM root cannot be found | Confirm that all PV members are connected, and check the initramfs and provision logs |
Cleanup may not complete after host power loss, a container SIGKILL, or a Docker service interruption. In reuse mode, keep business NFS services running and use the session journal reported in the output to identify leftover exports and mounts. In container NFS mode, first confirm that the flashing container and its NFS/RPC services have stopped. Use the restore list printed during startup to run sudo systemctl start on the host followed by the corresponding service names. Do not restart host NFS/RPC while the container is still running.
Collect the following information in the normal system or APP recovery:
cat /proc/cmdline
findmnt /
sudo lzc-orin provision status
sudo journalctl -b -u twInit.service --no-pager
sudo journalctl -b -u lzc-orin-provision.service --no-pager6.1 View Flashing Logs
All log paths below are inside the flashing container. When using the flashing app on a Lazycat Microserver, first connect over SSH to the Microserver running the app, then list and enter the container:
lzc-docker ps --format 'table {{.Names}}\t{{.Image}}'
lzc-docker exec -it cloudlazycataipodflashtools-app-1 bashUse the actual container name from the output. For a regular Docker deployment, find the container with sudo docker ps, then enter it with sudo docker exec -it CONTAINER_NAME bash, replacing the placeholder with its actual name.
- Full flashing logs are stored in
/Linux_for_Tegra/initrdlog/, with names such asflash_3-1.3_0_20261103-170129.log. They include device startup, flashing steps, and failure details. - On failure,
Debug log saved toin the terminal output or full log identifies the temporary debug log for that attempt, for example/tmp/tmp.9LYlht7WMZ. This path changes between attempts; use the file reported by the current error. - Terminal output saved using tee in section 4 is stored in
/workspace/lc-x3-flash.log. This file is created only if you save the output during flashing.
Inside the container, list logs by modification time. The following command reads the example from this investigation; replace it with the actual filename:
ls -lt /Linux_for_Tegra/initrdlog/
tail -n 100 /Linux_for_Tegra/initrdlog/flash_3-1.3_0_20261103-170129.logOn the Microserver, lzc-docker logs --tail 200 cloudlazycataipodflashtools-app-1 shows container startup and USB network attachment messages. For commands run in the web terminal, also inspect the flashing log files above. Before exiting or removing the container, copy the full logs and the current temporary debug log to persistent storage: the mapped /workspace directory for regular Docker, or /lzcapp/var/flash-logs/ for the Microserver app (create this directory first if needed).
6.2 Enter the Temporary initrd over USB SSH
The flashing tool loads a temporary Linux initrd into Jetson memory over USB and starts a USB NCM interface and SSH server. Even when the normal system's LAN address is offline or the SSD system cannot boot, this USB connection can provide diagnostic access once the flashing initrd is running. The initial Force Recovery BootROM stage has no SSH service. To boot a temporary initrd separately, follow section 4.1.
After a flashing failure, keep the Jetson powered, the USB cable connected, and the flashing container running; the device may still be in initrd. For one device, the default address is fc00:1:1::2, with temporary credentials root / root. Follow the connection information printed by the flashing tool. Run this command inside the flashing container; Microserver deployments in particular require connecting from that container's network namespace:
sshpass -p root ssh \
-o StrictHostKeyChecking=no \
-o UserKnownHostsFile=/dev/null \
-o ConnectTimeout=5 \
root@fc00:1:1::2This command is for the temporary flashing environment and does not save host keys. The connection is lost after power loss, reboot, USB disconnection, or exit from initrd. If connection fails, first confirm that the tool has completed initrd startup, then check lsusb and ip -brief address inside the container. In this investigation, the initrd USB ID was 0955:7035, and the corresponding interface had the address fc00:1:1::1/64.
After login, use these read-only commands to inspect the environment, disks, drivers, and NFS mounts:
uname -a
cat /proc/cmdline
lsblk -o NAME,SIZE,TYPE,FSTYPE,MOUNTPOINTS
cat /proc/modules | grep nvme
dmesg | grep -iE 'nvme|pcie|link|error'
cat /proc/mountsThe temporary initrd boot arguments include root=/dev/initrd. If external storage is reported as unavailable, inspect disk enumeration and PCIe logs on the Jetson. For example, if /dev/nvme0n1 is absent, the NVMe driver is loaded, and the logs report Phy link never came up, investigate the SSD connection, power supply, or carrier board adaptations. These observations alone do not establish that the SSD is faulty. If /proc/mounts already shows the flashing image directory mounted successfully at /mnt, interpret the final generic NFS or flash-command failure message using the specific errors that precede it.
This flashing initrd differs from the temporary provision target used for automatic cloning in section 5; that target has no SSH service.