Jetson Orin Nano devkit flash failing

Hello I have just flashed my Orin Nano Developer kit (JP 6.0.0 Rev 2) successfully

My method was to download the BSP and rootfs from: jetson-linux-r363

I un compressed the BSP tarball and and un compressed the rootfs tarball to
Linux_for_Tegra/rootfs

I then run the binary scripts:

sudo ./tools/l4t_flash_prerequisites.sh
sudo ./apply_binaries.sh

I then create a default user using the l4t_create_default_user.sh tool and flash with:

sudo ROOTFS_AB=1 ./tools/kernel_flash/l4t_initrd_flash.sh --external-device nvme0n1p1 -c tools/kernel_flash/flash_l4t_t234_nvme_rootfs_ab.xml -p "-c bootloader/generic/cfg/flash_t234_qspi.xml" --showlogs --network usb0  jetson-orin-nano-devkit internal

This flashes successfully and I can boot fine from my NVMe on the Orin Nano.

I then do the same prosses but instead of using rootfs from: jetson-linux-r363 I decide to generate the rootfs myself using the nv_build_samplefs.sh tool. The command I use is:

sudo ./tools/samplefs/nv_build_samplefs.sh --abi aarch64 --distro ubuntu --flavor basic --version jammy

This completes successfully and I un compressed the sample_fs.tbz2 rootfs tarball to Linux_for_Tegra/rootfs I then follow the same steps outlingned above of creating a default user and applying the binary scripts. This time the flashing fails with the errors:

  • l4t_flash_from_kernel: Failed to decompress APP image into /dev/nvme0n1p1

  • Either the device cannot mount the NFS server on the host or a flash command has failed

Just as an additional note my nfs-kernel-server is active and running and firewall is not blocking NFS connections, I flash with my NVMe preformatted as EXT4 and with my Ethernet cable unplugged.

Do you know if the nv_build_samplefs.sh tool is still supported any help would be greatly appreciated.

I have attached the flash log, serial log, and Debug log
flashLog.txt (327.0 KB)
serialLog.txt (76.7 KB)
debugLog.txt (3.0 KB)

Hi,

The issue is that we switched to using zstd for compressing the system image when flashing, but the sample rootfs package list is not updated accordingly, so the image fails to be unarchived:

tar (child): zstd -T0: Cannot exec: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
[ 11]: l4t_flash_from_kernel: Failed to decompress APP image into /dev/nvme0n1p1

Only the library is installed in the basic flavor, but not the executable itself:

davey@dave-yu-nvidia-pc:/mnt/1T-HDD/BSP/r36.3/Linux_for_Tegra/tools/samplefs$ grep -nr 'zstd'
nvubuntu-jammy-minimal-aarch64-packages:768:libzstd1
nvubuntu-jammy-minimal-aarch64-packages:947:zstd
nvubuntu-jammy-desktop-aarch64-packages:1593:libzstd1
nvubuntu-jammy-desktop-aarch64-packages:2045:zstd
nvubuntu-jammy-basic-aarch64-packages:268:libzstd1

Please add zstd into Linux_for_Tegra/tools/samplefs/nvubuntu-jammy-basic-aarch64-packages and build the sample rootfs again.
We will have a fix for this.

1 Like

Thanks for your help this now flashes successfully

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.