To set up a flash drive manually for booting on Jetpack 5.0.2


I tried to boot from usb on Xavier NX with Jetpack5.0.2

I followed ’ To set up a flash drive manually for booting’ (Dev guide) step by step.
I have encounterd error like below.

Finish generating flash package.
/media/aiserver/data/manage_jetpack_version/xavier_nx_502/flashing/Linux_for_Tegra/tools/kernel_flash/ --external-only --direct sdc --skipuid --usb-instance 1-8 --device-instance 0 --flash-only --external-device sda1 -c "tools/kernel_flash/flash_l4t_external.xml" --direct sdc jetson-xavier-nx-devkit-emmc external
*                                                           *
*  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 /media/aiserver/data/manage_jetpack_version/xavier_nx_502/flashing/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, bc1689f28717ff5c5c7a2970ef58b7b618510da7
Writing primary_gpt partition with gpt_primary_9_0.bin
Offset is not aligned to K Bytes, no optimization is applied
dd if=/media/aiserver/data/manage_jetpack_version/xavier_nx_502/flashing/Linux_for_Tegra/tools/kernel_flash/images/external/gpt_primary_9_0.bin of=/dev/sdc bs=1 skip=0  seek=512 count=16896
16896+0 records in
16896+0 records out
16896 bytes (17 kB, 16 KiB) copied, 0.0206577 s, 818 kB/s
Writing primary_gpt partition done
Error: Invalid argument during seek for read on /dev/sdc
[ 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.
Cleaning up...

Could you tell me how to resolve this issue?

Thank you.

Looks like an issue. Will check.

You will probably need to modify this file so that it has the same number of sectors for your USB.

When you run fdisk -l
There will be something like
Disk /dev/sdg: 29.13 GiB, 31272730624 bytes, 61079552 sectors

Replace this number into the num_sectors field in your tools/kernel_flash/flash_l4t_external.xml file

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