Flashing AGX Orin

Hi,

I have added a nvme device to M.2. key m slot. I wanted to confirm which command I should run to flash the nvme?

Is it 1 or 2 below

  1. sudo ./tools/kernel_flash.sh --external-device nvme0n1p1 -c tools/kernel_flash/flash_l4t_t234_nvme.xml jetson-agx-orin-devkit external

  2. sudo ./flash.sh jetson-agx-orin-devkit nvme0n1p1

When would you one flash command be used over the other?

How do you ensure that the AGX Orin boots from nvme rather than the internal flash?

Thanks

Malcolm

Hi,

Take r36.5 as an example referenced in Quick Start — NVIDIA Jetson Linux Developer Guide.
Please run the following commands to flash the AGX Orin with NVMe storage.

sudo ADDITIONAL_DTB_OVERLAY="BootOrderNvme.dtbo" ./tools/kernel_flash/l4t_initrd_flash.sh --external-device nvme0n1p1 \
  -c tools/kernel_flash/flash_l4t_t234_nvme.xml \
  --showlogs --network usb0 jetson-agx-orin-devkit external

Thanks

Thanks for the confirmation.

Is there a boot order that is set/changed? What happens if there is code in the internal flash and the nvme, which is used as the boot device?

Should the internal flash be erased if you move from the internal flash to the nvme? If it needs to be erased, how would you do this?

Thanks

Malcolm

With BootOrderNvme.dtbo, the boot order will start with nvme first.

It depend on your boot order, please run efibootmgr to check.

If your run the mentioned commands, the internal will not be erased.

After successfully booting your system using the NVMe drive, you’ll be able to format the internal disk.

Thanks