USB Timeout when flashing Jetson Orin Nano 8GB in Virtual-Box

Hi All

I am a newbie with Nvidia development.
Now setup build/flash environment.

Because we have product using different SoC/OS, therefore all of build/flash environment using Docker @ Ubuntu 24.04 LTS host PC.
I got BSP form team member and run “sudo ./apply_binaries.sh” @ our created Ubuntu 20.04 Docker, but I got failed “chroot: failed to run command ‘dpkg’: Exec format error”
Note: The BSP build/flash work fine in team member physical PC (JetPack 5.1.3)
Therefore switch to Virtual-Box testing (Version of Virtual-box, Guest Additions and Extension pack = 7.0.6).
In Ubuntu 20.04 @ Virtual-box guest, execute “sudo ./apply_binaries.sh” and build successful.

In host PC, I can get USB @ recovery mode as follows
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 1a40:0201 Terminus Technology Inc. FE 2.1 7-port Hub
Bus 001 Device 003: ID 046d:c077 Logitech, Inc. Mouse
Bus 001 Device 004: ID 046d:c31c Logitech, Inc. Keyboard K120
Bus 001 Device 009: ID 0955:7523 NVIDIA Corp. APX
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub

In Virtual-box, I can get USB @ recovery mode as follows
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 0955:7523 NVIDIA Corp. APX
Bus 001 Device 002: ID 80ee:0021 VirtualBox USB Tablet
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

In Ubuntu 20.04 @ Virtual-box guest, after build, I execute flash command as follows
sudo ./tools/kernel_flash/l4t_initrd_flash.sh --external-device nvme0n1p1 -c tools/kernel_flash/flash_l4t_external.xml --erase-all -p “-c bootloader/t186ref/cfg/flash_t234_qspi.xml” --showlogs --network usb0 jetson-orin-nano-devkit internal
Got failed as follows…
[ 0.1446 ] tegrahost_v2 --chip 0x23 0 --partitionlayout readinfo_t234_min_prod.xml.bin --updatesig images_list_signed.xml
[ 0.1492 ] Boot Rom communication
[ 0.1500 ] tegrarcm_v2 --new_session --chip 0x23 0 --uid --download bct_br br_bct_BR.bct --download mb1 mb1_t234_prod_aligned_sigheader.bin.encrypt --download psc_bl1 psc_bl1_t234_prod_aligned_sigheader.bin.encrypt --download bct_mb1 mb1_bct_MB1_sigheader.bct.encrypt
[ 0.1507 ] BR_CID: 0x80012344705DD4511400000018028280
[ 0.1797 ] Sending bct_br
[ 0.2220 ] ERROR: might be timeout in USB write.
Error: Return value 3
Command tegrarcm_v2 --new_session --chip 0x23 0 --uid --download bct_br br_bct_BR.bct --download mb1 mb1_t234_prod_aligned_sigheader.bin.encrypt --download psc_bl1 psc_bl1_t234_prod_aligned_sigheader.bin.encrypt --download bct_mb1 mb1_bct_MB1_sigheader.bct.encrypt
Reading board information failed.
Cleaning up…

Is Jetson Linux Flash container recommend?
I had test as follows.
1.docker pull nvcr.io/nvidia/jetson-linux-flash-x86:r36.4
2.docker run -it --privileged --net=host -v /dev/bus/usb:/dev/bus/usb nvcr.io/nvidia/jetson-linux-flash-x86:r36.4
Try 1: In webpage, has example about execute “apply_binaries.sh”, therefore I took above our full BSP and execute “sudo ./apply_binaries.sh” but I got failed about “chroot: failed to run command ‘dpkg’: Exec format error” also.
Try 2: Tar build directory @ Virtual-Box and untar @ the Jetson Linux Flash container.
And execute “./tools/kernel_flash/l4t_initrd_flash.sh --external-device nvme0n1p1 -c tools/kernel_flash/flash_l4t_external.xml --erase-all -p “-c bootloader/t186ref/cfg/flash_t234_qspi.xml” --showlogs --network usb0 jetson-orin-nano-devkit internal”
Look like can be communication/flash with Jetson Orin Nano 8GB, but stopped by new error as follows.
(Detail log at https://nopaste.net/Q9Q0wolb2D)
Waiting for target to boot-up…
Waiting for target to boot-up…
Waiting for device to expose ssh …Error: ipv6: address already assigned.
Error: ipv6: address already assigned.
Waiting for device to expose ssh …Run command: flash on fc00:1:1:0::2
SSH ready
mount.nfs: requested NFS version or transport protocol is not supported
Flash failure

I checked forum, all of answer: Use physical PC.
Is not possible flash @ Virtual BOX?

I am a newbie in this area, so any help will be much appreciated.

Thank you,

Hello @nekochang, Please use a native ubuntu host machine because VM has unstable usb link connection.

Hi @ravikumar.r1

Thanks your reply quickly.
I got it.

2 problem remain…
1.About Jetson Linux Flash container
It can be flash someone into Jetson Orin Nano 8GB but get something wrong as follows



2.Run “sudo ./apply_binaries.sh” always got failed “chroot: failed to run command ‘dpkg’: Exec format error”
Either inside of my create docker container or inside of Jetson Linux Flash container
Look like start QEMU and execute ARM64 version of dpkg failed.

Edit: Solution found and work at Installation fails on WSL - #23 by michel30

Thanks you very much.

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