Flash a configuration that emulates a Jetson Orin NX to NVMeSSD

I am trying to flash the Jetson AGX Orin devkit to emulate a Jetson Orin NX with NVMe SSD.
I used the following command.
$ sudo ./tools/kernel_flash/l4t_initrd_flash.sh --external-device nvme0n1p1 -c tools/kernel_flash/flash_l4t_external.xml --network usb0 --showlogs jetson-agx-orin-devkit-as-nx-16gb external

But, following error appears in the UART serial console during flashing.
So, I interrupted flashing.

[   37.113817] ------------[ cut here ]------------
[   37.113956] WARNING: CPU: 4 PID: 2529 at drivers/mtd/devices/qspi_mtd.c:514 0xffffa5e4ab109960
[   37.114176] Modules linked in: pwm_fan spi_tegra210_qspi ofpart cmdlinepart qspi_mtd mtd
[   37.114400] CPU: 4 PID: 2529 Comm: flash_erase Tainted: G        W         5.10.104-tegra #1
[   37.122697] Hardware name: Unknown Jetson AGX Orin as NX-16GB/Jetson AGX Orin as NX-16GB, BIOS 2.1-32413640 01/24/2023
[   37.133372] pstate: 00400009 (nzcv daif +PAN -UAO -TCO BTYPE=--)
[   37.139146] pc : 0xffffa5e4ab109960
[   37.142734] lr : 0xffffa5e4ab109914
[   37.146322] sp : ffff80001d0fb6e0
[   37.149646] x29: ffff80001d0fb6e0 x28: ffff80001d0fb948
[   37.155072] x27: ffff42d08aea5700 x26: 0000000000000001
[   37.160496] x25: 0000000000000000 x24: ffff42d3a396e5d0
[   37.165921] x23: 0000000000000001 x22: ffff80001d0fb947
[   37.171432] x21: ffff42d3a396e080 x20: ffff42d08aea5700
[   37.176947] x19: ffff80001d0fb738 x18: 0000000000000010
[   37.182458] x17: 0000000000000020 x16: ffffa5e514de8e60
[   37.187970] x15: 0000000000000039 x14: 00000000000006be
[   37.193308] x13: 0000000000004369 x12: 0000000000000024
[   37.198821] x11: 071c71c71c71c71c x10: 0000000000000a80
[   37.204333] x9 : ffff80001d0fb390 x8 : ffff42d08aea61e0
[   37.209672] x7 : 0000000000000f99 x6 : 0000000000000003
[   37.215008] x5 : 0000000000000000 x4 : 0000000000000000
[   37.220434] x3 : ffff42d08aea5700 x2 : 0000000000000000
[   37.225771] x1 : ffff42d08aea5700 x0 : 0000000000000084
[   37.231109] Call trace:
[   37.233560]  0xffffa5e4ab109960
[   37.236709]  0xffffa5e4ab109b28
[   37.239684]  0xffffa5e4ab10a298
[   37.242660]  0xffffa5e4ab10a538
[   37.245813]  mtd_erase+0xe8/0x1d0 [mtd]
[   37.249574]  add_mtd_partitions+0x20f4/0x2a30 [mtd]
[   37.254386]  add_mtd_partitions+0x2848/0x2a30 [mtd]
[   37.259201]  __arm64_sys_ioctl+0xac/0xf0
[   37.263136]  el0_svc_common.constprop.0+0x80/0x1d0
[   37.267948]  do_el0_svc+0x38/0xb0
[   37.271187]  el0_svc+0x1c/0x30
[   37.274333]  el0_sync_handler+0xa8/0xb0
[   37.278096]  el0_sync+0x16c/0x180
[   37.281336] ---[ end trace 38f8d6eee35c7866 ]---
[   37.285899] qspi_mtd spi6.0: block protection enabled 132
[   37.309823] ------------[ cut here ]------------
[   37.309962] WARNING: CPU: 4 PID: 2529 at drivers/mtd/devices/qspi_mtd.c:514 0xffffa5e4ab109960
[   37.310175] Modules linked in: pwm_fan spi_tegra210_qspi ofpart cmdlinepart qspi_mtd mtd
[   37.312399] CPU: 4 PID: 2529 Comm: flash_erase Tainted: G        W         5.10.104-tegra #1
[   37.320884] Hardware name: Unknown Jetson AGX Orin as NX-16GB/Jetson AGX Orin as NX-16GB, BIOS 2.1-32413640 01/24/2023
[   37.331561] pstate: 00400009 (nzcv daif +PAN -UAO -TCO BTYPE=--)
[   37.337335] pc : 0xffffa5e4ab109960
[   37.340921] lr : 0xffffa5e4ab109914
[   37.344508] sp : ffff80001d0fb6e0
[   37.347834] x29: ffff80001d0fb6e0 x28: ffff80001d0fb948
[   37.353259] x27: ffff42d08aea5700 x26: 0000000000000001
[   37.358683] x25: 0000000000000000 x24: ffff42d3a396e5d0
[   37.364108] x23: 0000000000000001 x22: ffff80001d0fb947
[   37.369620] x21: ffff42d3a396e080 x20: ffff42d08aea5700
[   37.375134] x19: ffff80001d0fb738 x18: 0000000000000000
[   37.380646] x17: 0000000000000000 x16: ffffa5e514de8e60
[   37.386158] x15: 0000000000000000 x14: 0000000000000010
[   37.391496] x13: 0000000000000684 x12: 0000000000000024
[   37.397008] x11: 071c71c71c71c71c x10: 0000000000000a80
[   37.402522] x9 : ffff80001d0fb390 x8 : ffff42d08aea61e0
[   37.407859] x7 : 0000000000000013 x6 : 0000000000000003
[   37.413197] x5 : 0000000000000000 x4 : 0000000000000000
[   37.418621] x3 : ffff42d08aea5700 x2 : 0000000000000000
[   37.423960] x1 : ffff42d08aea5700 x0 : 0000000000000084
[   37.429297] Call trace:
[   37.431747]  0xffffa5e4ab109960
[   37.434896]  0xffffa5e4ab109b28
[   37.437872]  0xffffa5e4ab10a298
[   37.440847]  0xffffa5e4ab10a538
[   37.444000]  mtd_erase+0xe8/0x1d0 [mtd]
[   37.447759]  add_mtd_partitions+0x20f4/0x2a30 [mtd]
[   37.452573]  add_mtd_partitions+0x2848/0x2a30 [mtd]
[   37.457389]  __arm64_sys_ioctl+0xac/0xf0
[   37.461327]  el0_svc_common.constprop.0+0x80/0x1d0
[   37.466135]  do_el0_svc+0x38/0xb0
[   37.469374]  el0_svc+0x1c/0x30
[   37.472523]  el0_sync_handler+0xa8/0xb0
[   37.476285]  el0_sync+0x16c/0x180
[   37.479521] ---[ end trace 38f8d6eee35c7867 ]---
[   37.484091] qspi_mtd spi6.0: block protection enabled 132
[   37.505827] ------------[ cut here ]------------

my environment
host-pc: ubuntu 18.04
L4T: 35.2.1
Jetson: AGX Orin Developer Kit

host-pc-log
host.log (262.3 KB)
serial console log
serialconsole.log (174.1 KB)

I’ve confirmed that I can flash NVMe SSD without emulating Orin NX in the same environment using the following command.
sudo ./tools/kernel_flash/l4t_initrd_flash.sh --external-device nvme0n1p1 -c tools/kernel_flash/flash_l4t_external.xml --network usb0 --showlogs jetson-agx-orin-devkit external

I want to know if I can emulate OrinNX and flash to NVMeSSD.
If I can, how can I do it?

When you flash emmc with flash.sh but with “jetson-agx-orin-devkit-as-nx-16gb”, could you see the nvme drive after boot into kernel?

thank you for reply.

could you see the nvme drive after boot into kernel?

Yes, I can see nvme device.

Thanks for reporting this issue. We will check.

Hi S.Harumoto,

Please try below command:

$ 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 --no-systemimg" --network usb0 --no-flash jetson-agx-orin-devkit-as-nx-16gb external
 
$ 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 --no-systemimg" --network usb0 --use-backup-image jetson-agx-orin-devkit external

I tried these commands but the same error appeared.
host-pc-log
initrd_flash_host20230206.log (329.9 KB)
serial console log
initrd_flash_uart_20230206.log (518.2 KB)

Hi S.Harumoto,

Can you use another NVMe SSD to try again?

I tried another NVMe SSD, but the same error appeared.

I think that there is no problem in NVMeSSD. bacause I can flash NVMeSSD without emulating Orin NX.
I also tried my first posted command in R35.1.

$ sudo ./tools/kernel_flash/l4t_initrd_flash.sh --external-device nvme0n1p1 -c tools/kernel_flash/flash_l4t_external.xml --network usb0 --showlogs jetson-agx-orin-devkit-as-nx-16gb external

It works correctly.
So, I think the some changes in R35.2.1 are causing this error.

Hi S.Harumoto,

Typo on second command, I’m sorry…
$ 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 --no-systemimg" --network usb0 --use-backup-image jetson-agx-orin-devkit external

Please run first command to create image, and change the second command with “jetson-agx-orin-devkit” config.

Flashing successfully completed.
Thank you for your help.

1 Like

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