It fails with the message below. Can you tell me the solution?
*************************************************************
* *
* 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/data1/manage_jetpack_version/Orin/R35_4_1/Linux_for_Tegra/tools/kernel_flash/images/external/flash.idx
Number of lines is 17
max_index=16
writing item=1, 9:0:primary_gpt, 512, 19968, gpt_primary_9_0.bin, 16896, fixed-<reserved>-0, 4522fe0ea7c48ea302f850daba64ae40f23468d3
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/data1/manage_jetpack_version/Orin/R35_4_1/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.053988 s, 313 kB/s
Writing primary_gpt partition done
Error: Invalid argument during seek for read on /dev/sdc
[ 1]: 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...
I saw the following instructions and learned that I could edit the num_sectors field, but I don’t know how to edit the xml. Can you tell me how?
By default, Linux_for_Tegra/tools/kernel_flash/flash_l4t_external.xml only supports a 64GiB SD card and above. If you want to flash a 32GiB SD card, you will need to modify the num_sectors field in Linux_for_Tegra/tools/kernel_flash/flash_l4t_external.xml so that num_sectors * 512 = 32GiB. The command to run is:
How does your Linux_for_Tegra/tools/kernel_flash/flash_l4t_external.xml look now?
Is it kept as the default one?
This should only be required on 32GB devices, so ideally you don’t need it.
You said sdb here, but the log showed sdc. Which one is appearing on your host PC?
Have you tried other USB drives or formatting it into a single ext4 partition before flashing?
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/data1/manage_jetpack_version/Orin/R35_4_1/Linux_for_Tegra/tools/kernel_flash/images/external/flash.idx
Number of lines is 17
max_index=16
writing item=1, 9:0:primary_gpt, 512, 19968, gpt_primary_9_0.bin, 16896, fixed--0, 85f4f134e8a5e9dd3c81b2bc4e6857583814fc43
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/data1/manage_jetpack_version/Orin/R35_4_1/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.0147588 s, 1.1 MB/s
Writing primary_gpt partition done
Error: Invalid argument during seek for read on /dev/sdc
[ 1]: 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…
So if you don’t make any modification to Linux_for_Tegra/tools/kernel_flash/flash_l4t_external.xml, then I can only suggest grabbing more flash drives for testing.
So looks like your disk size is slightly smaller than this, and the flashing script may be looking for a larger disk and failed.
You may try editing the variable NUM_SECTORS to match the real value.
Most disk should by default use a block size of 512 bytes, so don’t change it.
You can get the sector size of all available disks with sudo fdisk -l, and put the value in num_sectors="WHAT YOU HAVE".