Xavier NX Jetpack 5.1 initrd massflash doesn't work

Thanks lhoang,

We had a problem where l4t_initrd_flash.sh would not support more than one device SSH connection with massflash option. This thread solved this with an edit to l4t_initrd_flash_internal.sh, so we are using that one instead. Is there a similar bug in l4t_initrd_flash.sh

We found this command will work for Xavier NX on 250GiB SSD (note that edits are also required to line 2 of tools/kernal_flash/flash_l4t_nvme.xml replace value of num_sectors with <size of ssd in bytes / 512>)

Creating the image:

sudo ./tools/kernel_flash/l4t_initrd_flash_internal.sh --external-device nvme0n1p1 -c ./tools/kernel_flash/flash_l4t_nvme.xml -S 232GiB --showlogs --no-flash --massflash 2 --network usb0 p3509-0000+p3668-0001-qspi-emmc nvme0n1p1

Flashing the image using mass flash:

sudo ./tools/kernel_flash/l4t_initrd_flash.sh --flash-only --massflash 2 --showlogs --network usb0

Now works on multiple devices. Let me know if you see any potential problems with these commands.

For the Orin NX, the same commands will work, just need to change the p3668 to p3767 to match an Orin conf file.