Not able to flash USB with Jetpack 6.2 for booting from USB on Orin AGX 64GB

I am trying to create a bootable USB which I can use to make Orin AGX 64GB kit boot directly from USB stick. I have a 64 GB USB flash drive. I have followed guide here: Flashing Support — Jetson Linux<br/>Developer Guide 34.1 documentation

Running the script:
sudo BOARDID=3701 BOARDSKU=0005 FAB=500 ./tools/kernel_flash/l4t_initrd_flash.sh -c tools/kernel_flash/flash_l4t_external.xml --external-device sda1 --flash-only --direct sda jetson-agx-orin-devkit external

Gives this result:

Entry added by NVIDIA initrd flash tool

/home/rizwan/nvidia/nvidia_sdk/JetPack_6.2_Linux_JETSON_AGX_ORIN_TARGETS/Linux_for_Tegra/tools/kernel_flash/tmp 127.0.0.1(rw,nohide,insecure,no_subtree_check,async,no_root_squash)
rpcbind: another rpcbind is already running. Aborting
Export list for localhost:
/home/rizwan/nvidia/nvidia_sdk/JetPack_6.2_Linux_JETSON_AGX_ORIN_TARGETS/Linux_for_Tegra/tools/kernel_flash/tmp 127.0.0.1
/home/rizwan/nvidia/nvidia_sdk/JetPack_6.2_Linux_JETSON_AGX_ORIN_TARGETS/Linux_for_Tegra/tools/kernel_flash/l4t_initrd_flash_internal.sh --external-only --network usb0 --direct sda --usb-instance direct --device-instance 0 --flash-only --external-device sda1 -c “tools/kernel_flash/flash_l4t_external.xml” --direct sda --network usb0 jetson-agx-orin-devkit 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: Warning: serial number sysfs node doesn’t exist.
[ 0]: l4t_flash_from_kernel: Starting to create gpt for external device
Active index file is /home/rizwan/nvidia/nvidia_sdk/JetPack_6.2_Linux_JETSON_AGX_ORIN_TARGETS/Linux_for_Tegra/tools/kernel_flash/images/external/flash.idx
Number of lines is 18
max_index=17
writing item=1, 9:0:primary_gpt, 512, 19968, gpt_primary_9_0.bin, 16896, fixed--0, 5404b22e2b1ae1451d6e0b1ed4b96b392c20102a
Error: Partition(s) on /dev/sda are being used.
Cleaning up…

I tried formatting the USB drive to ext4 and later on NTFS but I get the same failing message.
I also tried creating one big partition with:
sudo wipefs -a /dev/sda
sudo dd if=/dev/zero of=/dev/sda bs=1M count=10
sudo parted /dev/sda --script mklabel gpt
sudo parted /dev/sda --script mkpart primary ext4 0% 100%
sudo mkfs.ext4 /dev/sda1

I started to get many errors like:
tar: ./etc/vulkansc/icd.d/VkLayer_json_gen.json: Cannot open: Operation not permitted
tar: ./etc/bash_completion.d/apport_completion: Cannot open: Operation not permitted
tar: ./etc/bash_completion.d/git-prompt: Cannot open: Operation not permitted
tar: ./etc/locale.gen: Cannot open: Operation not permitted
tar: ./etc/rcS.d/S01cryptdisks-early: Cannot open: Operation not permitted
tar: ./etc/rcS.d/S01kmod: Cannot open: Operation not permitted
tar: ./etc/rcS.d/S01alsa-utils: Cannot open: Operation not permitted
tar: ./etc/rcS.d/S01x11-common: Cannot open: Operation not permitted
tar: ./etc/rcS.d/S01keyboard-setup.sh: Cannot open: Operation not permitted
tar: ./etc/rcS.d/S01resolvconf: Cannot open: Operation not permitted
tar: ./etc/rcS.d/S01lvm2: Cannot open: Operation not permitted
tar: ./etc/rcS.d/S01apparmor: Cannot open: Operation not permitted
tar: ./etc/rcS.d/S01procps: Cannot open: Operation not permitted
tar: ./etc/rcS.d/S01rpcbind: Cannot open: Operation not permitted
tar: ./etc/rcS.d/S01cryptdisks: Cannot open: Operation not permitted
tar: ./etc/rcS.d/S01plymouth-log: Cannot open: Operation not permitted
tar: ./etc/rcS.d/S01udev: Cannot open: Operation not permitted
tar: ./etc/nv-update-initrd/list.d/modules: Cannot open: Operation not permitted
tar: ./etc/nv-update-initrd/list.d/binlist: Cannot open: Operation not permitted
tar: ./etc/ca-certificates.conf: Cannot open: Operation not permitted
tar: ./etc/e2scrub.conf: Cannot open: Operation not permitted
tar: ./etc/openni2/OpenNI.ini: Cannot open: Operation not permitted
tar: ./etc/lsb-release: Cannot open: Operation not permitted
tar: ./etc/bash_completion: Cannot open: Operation not permitted
tar: Exiting with failure status due to previous errors

Which would eventually end at:
[ 77]: l4t_flash_from_kernel: Failed to decompress APP image into /dev/sda1
[ 222]: l4t_flash_from_kernel: The device size indicated in the partition layout xml is smaller than the actual size. This utility will try to fix the GPT.
[ 222]: l4t_flash_from_kernel: Failed to write to APP
[ 222]: l4t_flash_from_kernel: Error flashing external device
Cleaning up…

Please let me know what am I missing here and how do I create a bootable USB with stock sdk downloaded/installed by SDK manager 2.3.0.12617.

My host information:

Distributor ID: Ubuntu
Description: Ubuntu 22.04.5 LTS
Release: 22.04
Codename: jammy

My NVIDIA Jetson Orin information:
kernel_tegra234-p3701-0005-p3737-0000.dtb

SDK information:
JetPack 6.2

These might work. If agx orin is recovery mode you can avoid prepending the envvars. Flashing a specific partition

sudo ./flash.sh -k APP jetson-agx-orin-devkit sda1

sudo ./tools/kernel_flash/l4t_initrd_flash.sh --external-only --network usb0 -k APP --external-device sda1 -c tools/kernel_flash/flash_l4t_t234_nvme.xml jetson-agx-orin-devkit sda1

sudo ./tools/kernel_flash/l4t_initrd_flash.sh --external-device sda1 -c ./tools/kernel_flash/flash_l4t_external.xml --showlogs --network usb0 jetson-agx-orin-devkit sda1

The only way that works is through SDK manager. I used Sandisk 256 GB USB stick and flashed via SDK manager.

1 Like

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