Orin NX mass flash

Hi, I tried mass flash folowing README_initrid_flash.txt.
I want to set root folder is “nvme0n1p1”.

I created image

sudo BOARDID=jetson-orin-nano-devkit FAB=0000 BOARDSKU=3767 BOARDDEV=300 ./tools/kernel_flash/l4t_initrd_flash --no-flash --massflash 5 --network usb0 jetson-orin-nano-devkit nvme0n1p1

Result message is Sucess Cleaning up…

And I run under command

sudo ADDITIONAL_DTB_OVERLAY_OPT=“BootOrderNvme.dtbo” ./tools/kernel_flash/l4t_initrd_flash.sh --external-device nvme0n1p1 -c ./tools/kernel_flash/flash_l4t_external.xml --flash-only --massflash 5 --network -usb0 --keep --showlogs

But result is FAIL.

I use custom board, so I fix the eeprom read size 0x100 to 0x0.

flash_1-3_0_20240415-120417.log (6.9 KB)

Plz help me.

Regards.

I don’t know what you are doing, and your description is a bunch of mess.
At least make sure it works without massflash

sudo ./tools/kernel_flash/l4t_initrd_flash.sh --external-device nvme0n1p1 \
  -c tools/kernel_flash/flash_l4t_external.xml -p "-c bootloader/t186ref/cfg/flash_t234_qspi.xml" \
  --showlogs --network usb0 jetson-orin-nano-devkit internal

Thank you for your answer.

It works without mass flash.

But I want to mass flash to nvme.

I found command to mass flash in README_initrd_flash.txt

$ sudo BOARDID= FAB= BOARDSKU= BOARDREV=
./tools/kernel_flash/l4t_initrd_flash.sh --no-flash --massflash 5 --network usb0 jetson-xavier-nx-devkit-emmc mmcblk0p1

How can I use?

Thanks.

You just add --no-flash --massflash <x> to the command to generate the image.

sudo ./tools/kernel_flash/l4t_initrd_flash.sh --external-device nvme0n1p1 --no-flash --massflash <x> \
  -c tools/kernel_flash/flash_l4t_external.xml -p "-c bootloader/t186ref/cfg/flash_t234_qspi.xml" \
  --showlogs --network usb0 jetson-orin-nano-devkit internal

Then

sudo ./tools/kernel_flash/l4t_initrd_flash.sh --flash-only --massflash <x> --showlogs --network usb0

to actually flash the image.

This is what I want.

Then I have two more questions.

  • Can I create an image just once and use that image over and over again?

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

  • Is it okay if NVme is not actually connected?

Thanks.

YES.

Then what are you going to flash?

I’m trying to flash only the module and use the copied nvme later.

The same image will not work without NVMe drives connected.
Instead, do it like:

sudo ./tools/kernel_flash/l4t_initrd_flash.sh --no-flash --massflash <x> \
  -p "--no-systemimg -c bootloader/t186ref/cfg/flash_t234_qspi.xml" \
  --showlogs --network usb0 jetson-orin-nano-devkit internal

Thank you!

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