Hello,
Flashing of usb drive failed when following instructions Flashing Support — Jetson Linux Developer Guide documentation
Setup
Host Linux: 20.04
Usb drive: USB 3.1 FLASH DRIVE, 64 GB, SANDISK SDCZ74-064G-G46
Nvidia linux version: Jetson Linux 35.4.1 JetPack 5.1.2
Orin NX with Orin Nano developer kit
Drive preparation:
sudo parted /dev/sdb mklabel gpt
sudo mkfs -t ext4 /dev/sdb
Drive information:
sudo sgdisk --print /dev/sdb
Creating new GPT entries in memory.
Disk /dev/sdb: 120176640 sectors, 57.3 GiB
Model: SanDisk 3.2Gen1
Sector size (logical/physical): 512/512 bytes
Disk identifier (GUID): 27B189ED-D505-432E-86E9-50448F7855F6
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 34, last usable sector is 120176606
Partitions will be aligned on 2048-sector boundaries
Total free space is 120176573 sectors (57.3 GiB)
I have entered flash command as written in documentation:
sudo BOARDID=3767 BOARDSKU=0000 FAB=300 ./tools/kernel_flash/l4t_initrd_flash.sh -c tools/kernel_flash/flash_l4t_external.xml --external-device sda1 --direct sdb jetson-orin-nano-devkit external
And I got the log:
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 /opt/Jetpack_5.1.2/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, ddde5fa417201ea7a39775e4023a4f587a6afcb1
Writing primary_gpt partition with gpt_primary_9_0.bin
Offset is not aligned to K Bytes, no optimization is applied
dd if=/opt/Jetpack_5.1.2/Linux_for_Tegra/tools/kernel_flash/images/external/gpt_primary_9_0.bin of=/dev/sdb bs=1 skip=0 seek=512 count=16896
16896+0 records in
16896+0 records out
16896 bytes (17 kB, 16 KiB) copied, 0.167068 s, 101 kB/s
Writing primary_gpt partition done
Error: Invalid argument during seek for read on /dev/sdb
[ 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...
Here is the full log flash_usb_full.txt (113.3 KB)
Since the disk showed less space then 64 althoug it should be 64 GB disk I have changed NUM_SECTORS in flash_l4t_external.xml with 120176640 and changed the size in command as suggested in the documentation:
sudo BOARDID=3767 BOARDSKU=0000 FAB=300 ./tools/kernel_flash/l4t_initrd_flash.sh -c tools/kernel_flash/flash_l4t_external.xml -S 54GiB --external-device sda1 --direct sdb jetson-orin-nano-devkit external
Then I received the log
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 /opt/Jetpack_5.1.2/Linux_for_Tegra/tools/kernel_flash/images/external/flash.idx
Number of lines is 76
max_index=75
writing item=59, 6:0:primary_gpt, 512, 19968, gpt_primary_6_0.bin, 16896, fixed-<reserved>-0, 399ba1ae9f86146af4f3c9e0cdf718333a68ea80
Error: Could not stat device /dev/mmcblk0 - No such file or directory.
Full flashing log is here
flash_usb_part.txt (105.3 KB)
Additional info:
I was not able to flash the usb drive whn connected to Jetson, drive was not recognized.
I successfully flashed and used this disk with jetson linux 35.3.1 by using the same command.
Thanks for any suggestion!