I am attempting to create a massflash image containing JetPack 5.1.4 and have found that the following commands will allow me to flash a basic rootfs:
sudo ./tools/kernel_flash/l4t_initrd_flash.sh --no-flash --network
usb0 --massflash 1 --external-device nvme0n1p1 -c
tools/kernel_flash/flash_l4t_t194_nvme.xml
jetstream-xavier-nx-devkit-emmc external
sudo ./tools/kernel_flash/l4t_initrd_flash.sh --flash-only --network usb0 --massflash 1`
However, if I attempt to pre-install the nvidia-jetpack packages to the rootfs before deploying, it appears to be unable to flash. I have been running an experiment with the following command:
sudo ./tools/kernel_flash/l4t_initrd_flash.sh --network usb0 --external-device nvme0n1p1 -c tools/kernel_flash/flash_l4t_t194_nvme.xml jetstream-xavier-nx-devkit-emmc external
Again, this works with the basic rootfs but trying to flash anything larger causes the image to run out of space. I have tried specifying the size with
sudo ./tools/kernel_flash/l4t_initrd_flash.sh --network usb0 --external-device nvme0n1p1 -S 24GB -c tools/kernel_flash/flash_l4t_t194_nvme.xml jetstream-xavier-nx-devkit-emmc external
but I get the following messages:
[ 227]: l4t_flash_from_kernel: Successfully flash the qspi
[ 227]: l4t_flash_from_kernel: Failed to write to APP
[ 227]: l4t_flash_from_kernel: Error flashing emmc
Flash failure
Cleaning up…
I have tried various sizes but nothing works.