Flashing to a USB Drive

I want to try to boot Orin from a USB drive
I inserted a USB drive into my computer.Run this command line.
But it failed.

Please read the initrd flash readme file workflow 13.

I checked the readme file, which contains at most workflow 11. no 13

Oh sorry. Then read workflow 11.

Please umount the device on your host before running.

umount USB drive and run the l4t_initrd_flash.sh like this:

sudo BOARDID=3701 BOARDSKU=0000 FAB=TS4 BOARDREV=A.0 ./tools/kernel_flash/l4t_initrd_flash.sh -c tools/kernel_flash/flash_l4t_external.xml -S 20GiB --external-device sda1 --direct sda jetson-agx-orin-devkit external

the error is:

*                                                           *
*  Step 1: Start the host connected device flashing process *
*                                                           *
blockdev: cannot open /dev/mmcblk0boot0: No such file or directory
[ 0]: l4t_flash_from_kernel: Starting to create gpt for external device
Active index file is /home/fzy/Downloads/nvidia/nvidia_sdk/JetPack_5.0.2_Linux_JETSON_AGX_ORIN_TARGETS/Linux_for_Tegra/tools/kernel_flash/images/external/flash.idx
Number of lines is 13
writing item=1, 9:0:primary_gpt, 512, 19968, gpt_primary_9_0.bin, 16896, fixed-<reserved>-0, 4455d9e9fe3b4280b78f0ad37365762fe33be1a3
Writing primary_gpt partition with gpt_primary_9_0.bin
Offset is not aligned to K Bytes, no optimization is applied
dd if=/home/fzy/Downloads/nvidia/nvidia_sdk/JetPack_5.0.2_Linux_JETSON_AGX_ORIN_TARGETS/Linux_for_Tegra/tools/kernel_flash/images/external/gpt_primary_9_0.bin of=/dev/sda bs=1 skip=0  seek=512 count=16896
16896+0 records in
16896+0 records out
16896 bytes (17 kB, 16 KiB) copied, 0.0521367 s, 324 kB/s
Writing primary_gpt partition done
Error: Invalid argument during seek for read on /dev/sda
[ 0]: l4t_flash_from_kernel: Error: partprobe failed. This indicates that:
 -   the xml indicates the gpt is larger than the device storage
 -   the xml might be invalid
 -   the device might have a problem.
 Please make correction.

is our hardware connect correctly?

What is the disk size you write in the xml file?

67108864 (32 * 1024 * 1024 * 2)
we also test which used 64G USB drive and use origin file . and it shows the same error.

Hi fzy438484102,

Please use below command to check USB disk size first on your host PC:

$ sudo lsblk -p -d | grep sd

You can use this size to your xml file and run again.

we flashed successly according to your suggestion. Thanks for your help.
size in xml <= your real capacity of USB drive


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