Please help with flashing a Jetson Orin Nano via an SDK manager

Now I installed an Ubuntu Linux 22.04 and Nvidia SDK manager, and I’m trying to flash the Jetson Orin Nano Dev kit. The flashing process stopped on about 96% with the error. Do not know how to proceed now… I attached NVme module to the Jetson device and tried to flash on this module.

I suspect, main error message is the following:

15:43:32.877 - info: NV_L4T_FLASH_JETSON_LINUX_COMP@JETSON_ORIN_NANO_TARGETS: Creating filesystem with 62133513 4k blocks and 15540224 inodes
15:43:32.878 - info: NV_L4T_FLASH_JETSON_LINUX_COMP@JETSON_ORIN_NANO_TARGETS: Filesystem UUID: 74797da7-d1b9-4c7f-a49e-1fbb20da2170
15:43:32.878 - info: NV_L4T_FLASH_JETSON_LINUX_COMP@JETSON_ORIN_NANO_TARGETS: Superblock backups stored on blocks: 
15:43:32.878 - info: NV_L4T_FLASH_JETSON_LINUX_COMP@JETSON_ORIN_NANO_TARGETS: 	32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 
15:43:32.878 - info: NV_L4T_FLASH_JETSON_LINUX_COMP@JETSON_ORIN_NANO_TARGETS: 	4096000, 7962624, 11239424, 20480000, 23887872
15:43:32.878 - info: NV_L4T_FLASH_JETSON_LINUX_COMP@JETSON_ORIN_NANO_TARGETS: 
15:43:32.907 - info: NV_L4T_FLASH_JETSON_LINUX_COMP@JETSON_ORIN_NANO_TARGETS: Allocating group tables:    0/1897         done                            
15:43:32.907 - info: NV_L4T_FLASH_JETSON_LINUX_COMP@JETSON_ORIN_NANO_TARGETS: Writing inode tables:    0/1897         done                            
15:43:33.359 - info: NV_L4T_FLASH_JETSON_LINUX_COMP@JETSON_ORIN_NANO_TARGETS: Creating journal (262144 blocks): done
15:43:33.397 - info: NV_L4T_FLASH_JETSON_LINUX_COMP@JETSON_ORIN_NANO_TARGETS: Writing superblocks and filesystem accounting information:    0/1897         done
15:43:33.397 - info: NV_L4T_FLASH_JETSON_LINUX_COMP@JETSON_ORIN_NANO_TARGETS: 
15:43:33.397 - info: NV_L4T_FLASH_JETSON_LINUX_COMP@JETSON_ORIN_NANO_TARGETS: Formatting APP parition done
15:43:33.421 - info: NV_L4T_FLASH_JETSON_LINUX_COMP@JETSON_ORIN_NANO_TARGETS: Formatting APP partition /dev/nvme0n1p1 ...
15:43:33.421 - info: NV_L4T_FLASH_JETSON_LINUX_COMP@JETSON_ORIN_NANO_TARGETS: tar -xpf /mnt/external/system.img  --checkpoint=10000 --warning=no-timestamp --numeric-owner --xattrs --xattrs-include=*  -C  /tmp/ci-BySF8P9Awz
15:43:34.611 - info: NV_L4T_FLASH_JETSON_LINUX_COMP@JETSON_ORIN_NANO_TARGETS: tar: Read checkpoint 10000
15:43:35.651 - info: NV_L4T_FLASH_JETSON_LINUX_COMP@JETSON_ORIN_NANO_TARGETS: tar: Read checkpoint 20000
15:43:36.680 - info: NV_L4T_FLASH_JETSON_LINUX_COMP@JETSON_ORIN_NANO_TARGETS: tar: Read checkpoint 30000
15:43:37.685 - info: NV_L4T_FLASH_JETSON_LINUX_COMP@JETSON_ORIN_NANO_TARGETS: tar: Read checkpoint 40000
15:43:38.844 - info: NV_L4T_FLASH_JETSON_LINUX_COMP@JETSON_ORIN_NANO_TARGETS: tar: Read checkpoint 50000
15:43:39.989 - info: NV_L4T_FLASH_JETSON_LINUX_COMP@JETSON_ORIN_NANO_TARGETS: tar: Read checkpoint 60000
15:43:41.061 - info: NV_L4T_FLASH_JETSON_LINUX_COMP@JETSON_ORIN_NANO_TARGETS: tar: Read checkpoint 70000
15:43:42.173 - info: NV_L4T_FLASH_JETSON_LINUX_COMP@JETSON_ORIN_NANO_TARGETS: tar: Read checkpoint 80000
15:43:43.232 - info: NV_L4T_FLASH_JETSON_LINUX_COMP@JETSON_ORIN_NANO_TARGETS: tar: Read checkpoint 90000
15:43:44.387 - info: NV_L4T_FLASH_JETSON_LINUX_COMP@JETSON_ORIN_NANO_TARGETS: tar: Read checkpoint 100000
15:43:45.445 - info: NV_L4T_FLASH_JETSON_LINUX_COMP@JETSON_ORIN_NANO_TARGETS: tar: Read checkpoint 110000
15:43:46.505 - info: NV_L4T_FLASH_JETSON_LINUX_COMP@JETSON_ORIN_NANO_TARGETS: tar: Read checkpoint 120000
15:43:47.553 - info: NV_L4T_FLASH_JETSON_LINUX_COMP@JETSON_ORIN_NANO_TARGETS: tar: Read checkpoint 130000
15:43:48.718 - info: NV_L4T_FLASH_JETSON_LINUX_COMP@JETSON_ORIN_NANO_TARGETS: tar: Read checkpoint 140000
15:43:49.950 - info: NV_L4T_FLASH_JETSON_LINUX_COMP@JETSON_ORIN_NANO_TARGETS: tar: Read checkpoint 150000
15:49:50.273 - info: NV_L4T_FLASH_JETSON_LINUX_COMP@JETSON_ORIN_NANO_TARGETS: Flash failure
15:49:50.274 - info: NV_L4T_FLASH_JETSON_LINUX_COMP@JETSON_ORIN_NANO_TARGETS: Cleaning up...
15:49:50.308 - error: NV_L4T_FLASH_JETSON_LINUX_COMP@JETSON_ORIN_NANO_TARGETS: [exec_command]: /bin/bash -c /tmp/tmp_NV_L4T_FLASH_JETSON_LINUX_COMP.igor.sh; [error]: 128307 blocks
15:49:50.308 - info: Event: NV_L4T_FLASH_JETSON_LINUX_COMP@JETSON_ORIN_NANO_TARGETS - error is: [exec_command]: /bin/bash -c /tmp/tmp_NV_L4T_FLASH_JETSON_LINUX_COMP.igor.sh; [error]: 128307 blocks
15:49:50.308 - info: NV_L4T_FLASH_JETSON_LINUX_COMP@JETSON_ORIN_NANO_TARGETS: 
15:49:50.309 - info: NV_L4T_FLASH_JETSON_LINUX_COMP@JETSON_ORIN_NANO_TARGETS: 
15:49:50.309 - info: NV_L4T_FLASH_JETSON_LINUX_COMP@JETSON_ORIN_NANO_TARGETS: [ Component Install Finished with Error ]
15:49:50.309 - info: NV_L4T_FLASH_JETSON_LINUX_COMP@JETSON_ORIN_NANO_TARGETS: [host] [ 19.51 GB used. Disk Avail: 659.67 GB ]
15:49:50.309 - info: NV_L4T_FLASH_JETSON_LINUX_COMP@JETSON_ORIN_NANO_TARGETS: [ NV_L4T_FLASH_JETSON_LINUX_COMP Install took 13m50s ]

several spots from the logs , that might be relevant, are below

Pre-processing mb2bct config: tegra234-mb2-bct-misc-p3767-0000.dts
[   0.1761 ] Pre-processing mb2bct config: tegra234-mb2-bct-scr-p3767-0000.dts
[   0.3368 ] Generating coldboot mb2-bct
[   0.3368 ] tegrabct_v2 --chip 0x23 0 --mb2bct mb2_cold_boot_bct.cfg --mb2bctcfg tegra234-mb2-bct-misc-p3767-0000_cpp.dtb --scr tegra234-mb2-bct-scr-p3767-0000_cpp.dtb
[   0.3371 ] ERROR: value 0x31 is out of range
[   0.3381 ] ERROR: value 0x31 is out of range
[   1.4711 ] Parsing config file :tegra234-mb1-bct-ratchet-p3767-0000_cpp.dtb 
[   1.4711 ] ERROR: /ratchet/atf is not supported
Welcome to Tegra Flash
version 1.0.0
Type ? or help for help and q or quit to exit
Use ! to execute system commands
 
[   0.0099 ] tegrarcm_v2 --chip 0x23 0 --ismb2applet
[   0.0102 ] File rcm_state open failed
[   0.0103 ] ERROR: failed to read rcm_state

tegrahost_v2 --chip 0x23 0 --updatesigheader mb1_bct_MB1_aligned_sigheader.bct.encrypt mb1_bct_MB1_aligned_sigheader.bct.hash zerosbk
[ 0.0700 ] Error: Skip generating mem_bct because sdram_config is not defined
[ 0.0700 ] Error: Skip generating mem_bct because sdram_config is not defined
[ 0.0700 ] Copying signatures


[ 0.1011 ] tegrarcm_v2 --chip 0x23 0 --pollbl --download applet applet_t234_sigheader.bin.encrypt
[ 0.1013 ] BL: version 1.4.0.1-t234-54845784-08e631ca last_boot_error: 0
[ 0.3175 ] Sending applet
[ 0.4191 ] completed


[ 0.1224 ] Added binary blob_tegra234-p3768-0000+p3767-0005-nv.dtb of size 241963
[ 0.1650 ] tegrarcm_v2 --instance 3-2 --chip 0x23 0 --pollbl --download bct_mem mem_rcm_sigheader.bct.encrypt --download blob blob.bin
[ 0.1653 ] BL: version 1.4.0.1-t234-54845784-08e631ca last_boot_error: 0
[ 0.3240 ] Sending bct_mem
[ 0.3401 ] Sending blob
[ 3.6946 ] RCM-boot started

dd if=/mnt/external/gpt_primary_9_0.bin of=/dev/nvme0n1 bs=1 skip=0 seek=512 count=16896
16896+0 records in
16896+0 records out
16896 bytes (17 kB, 16 KiB) copied, 0.0285908 s, 591 kB/s
Writing primary_gpt partition done
Error: The backup GPT table is corrupt, but the primary appears OK, so that will be used.
Warning: Not all of the space available to /dev/nvme0n1 appears to be used, you can fix the GPT to use all of the space (an extra 380580528 blocks) or continue with the current setting?
Writing secondary_gpt partition with gpt_secondary_9_0.bin
Offset is not aligned to K Bytes, no optimization is applied
dd if=/mnt/external/gpt_secondary_9_0.bin of=/dev/nvme0n1 bs=1 skip=0 seek=61203267072 count=16896
16896+0 records in
16896+0 records out
16896 bytes (17 kB, 16 KiB) copied, 0.0287382 s, 588 kB/s
Writing secondary_gpt partition done


Fix/Ignore? Fix
Warning: Not all of the space available to /dev/nvme0n1 appears to be used, you can fix the GPT to use all of the space (an extra 380580528 blocks) or continue with the current setting?
Model: SK hynix BC711 HFM256GD3JX013N (nvme)
Disk /dev/nvme0n1: 256GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt


tar: Read checkpoint 130000
tar: Read checkpoint 140000
tar: Read checkpoint 150000
Flash failure
Cleaning up…
15:49:50.300 - Error: [exec_command]: /bin/bash -c /tmp/tmp_NV_L4T_FLASH_JETSON_LINUX_COMP.igor.sh; [error]: 128307 blocks

15:49:50.300 - Info: [ Component Install Finished with Error ]
15:49:50.300 - Info: [host] [ 19.51 GB used. Disk Avail: 659.67 GB ]
15:49:50.300 - Info: [ NV_L4T_FLASH_JETSON_LINUX_COMP Install took 13m50s ]

Please share full log instead of parsing logs by yourself but didn’t share the original file…

Thanks for helping me with this!
sdkm log attached…
sdkm-2024-02-24-14-01-50.log (2.8 MB)

This is the full log file? This is what is needed?

Also need the device side log during flash. What you shared was the host side log.

Please use this method to dump log.

Device side log attached:
test1.txt (81.6 KB)

This time I start the process not with sdkm, but “drectly” via l4t_initrd_flash.sh script, as described in Quick Start — NVIDIA Jetson Linux Developer Guide 1 documentation

Now the process did a little bit further up to

tar: Read checkpoint 520000
tar: Read checkpoint 530000
tar: Read checkpoint 540000
tar: Read checkpoint 550000
Flash failure
Cleaning up...

I had no special cable with me, used an arduino board as “UART to USB converter.”

Try this one instead:
https://docs.nvidia.com/jetson/archives/r36.2/DeveloperGuide/SD/FlashingSupport.html#manually-setting-up-a-flash-drive-for-booting

Environment variables value table:

#
#                                       BOARDID  BOARDSKU  FAB  BOARDREV
#    ----------------------------------+--------+---------+----+---------
#    jetson-agx-xavier-industrial         2888     0008      600  A.0
#    clara-agx-xavier-devkit              3900     0000      001  C.0
#    jetson-xavier-nx-devkit              3668     0000      100  N/A
#    jetson-xavier-nx-devkit-emmc         3668     0001      100  N/A
#    jetson-xavier-nx-devkit-emmc         3668     0003      N/A  N/A
#    jetson-agx-xavier-devkit (16GB)      2888     0001      400  H.0
#    jetson-agx-xavier-devkit (32GB)      2888     0004      400  K.0
#    jetson-agx-orin-devkit               3701     0001      TS1  C.2
#    jetson-agx-orin-devkit               3701     0000      TS4  A.0
#    jetson-agx-xavier-devkit (64GB)      2888     0005      402  B.0
#    holoscan-devkit                      3701     0002      TS1  A.0
#    jetson-agx-orin-devkit               3701     0004      TS4  A.0
#    jetson-agx-orin-devkit (64GB)        3701     0005      500
#    jetson-orin-nano-devkit (NX 16GB)    3767     0000      300
#    jetson-orin-nano-devkit (NX 8GB)     3767     0001      300
#    jetson-orin-nano-devkit (Nano 4GB)   3767     0004      300
#    jetson-orin-nano-devkit (Nano 8GB)   3767     0003      300
#    jetson-orin-nano-devkit (Nano 8GB)   3767     0005      300
#    ----------------------------------+--------+---------+----+---------

It worked! Thank you so much. Now I can start the Jetson nano from NvMe module.

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