SDK Manager on WSL2 failing to install DP 6 on Orin AGX

I just received a brand new Orin AGX in the mail, I booted the AGX, formatted the nvme and then downloaded and installed SDK Manager in Windows on WSL 2 so that I could flash the Orin to JP DP6. I powered on the Orin holding down the middle button, exposed the usb connection to WSL and SDK Manager, then configured it to flash the nvme with JPDP6. Unfortunately, it is failing with this error just after it builds the image and right before flashing:

20:13:56 INFO: File System and OS - target_image: Start L4T BSP package installation
20:13:56 INFO: File System and OS - target_image: QEMU binary is not available, looking for QEMU from host system
20:13:56 INFO: File System and OS - target_image: Found /usr/bin/qemu-aarch64-static
20:13:56 INFO: File System and OS - target_image: Installing QEMU binary in rootfs
20:13:56 ERROR: File System and OS - target_image: mknod: /home/jason/nvidia/nvidia_sdk/JetPack_6.0_DP_Linux_DP_JETSON_AGX_ORIN_TARGETS/Linux_for_Tegra/rootfs/dev/random
20:13:56 ERROR: File System and OS - target_image: : File exists
20:13:56 ERROR: File System and OS - target_image: [exec_command]: /bin/bash -c /tmp/tmp_NV_L4T_FILE_SYSTEM_AND_OS_COMP.jason.sh; [error]: : File exists
20:13:56 INFO: File System and OS - target_image: [ Package Install Finished with Error ]
20:13:56 INFO: File System and OS - target_image: [host] [ 12.30 MB released. Disk Avail: 139.66 GB ]
20:13:56 INFO: File System and OS - target_image: [ NV_L4T_FILE_SYSTEM_AND_OS_COMP Install took 45s ]
20:13:56 ERROR: File System and OS - target_image: command terminated with error
20:13:56 SUMMARY: File System and OS - target_image: First Error: Installation failed.

Pulling my hair out and would love help…

Dump the full log, please.
Refer to this post:

WSL2 does not work out-of-box.

Thanks Dave, I will take a look at the post you referenced.
Full dump of the logs attached.

SDKM_logs_JetPack_6.0_DP_Linux_for_Jetson_AGX_Orin_modules_2024-02-28_20-34-58.zip (79.9 KB)

Also, when you are flashing with WSL 2, make sure the BSP is saved in the storage of the WSL 2 container, and don’t put it in the Windows NTFS partition, or you will bump into all kinds of permission issues.

Yes, I assume the BSP is saved in the ‘Target HW Image’ folder - and that is on an ext4 partition.

I’ve followed all of the steps in the post and the WSL documentation except recompiling the kernel - is that absolutely necessary?

YES, it’s absolutely necessary.
Or find a Linux machine to make things easier.

Ok, I gave up trying to get it to work with WSL and I installed Ubuntu onto a partition and tried to install from there. Unfortunately I could never get the flash of Linux plus the sdks to complete, so I just used sdk manager to flash Linux and then logged on to the Orin to run the jet pack install. Jet pack seems to have installed without issue however I can’t run any of the docker examples because docker can’t be found…any ideas why docker wasn’t installed as part of jet pack?

You can simply install Docker additionally.
Of course it’s not included in JetPack as it’s not made by NVIDIA.

Ok I’m confused then. Multiple sites imply that it is installed by default with Jetpack including this one… NVIDIA Jetson - CVEDIA-RT that talks about both Docker and an Nvidia version of docker.

I am just trying to get the examples here working - Bringing Generative AI to Life with NVIDIA Jetson | NVIDIA Technical Blog
And they don’t talk at all about which steps to use on the AGX to install docker. I tried just installing the docker Debian package but that didn’t work. I’m worried if I install it the wrong way than whatever nvidia extensions there are as part of the Nvidia containers package won’t work…would love any pointers on paths that folks found that worked for them.

I feel like you should file another topic for the Docker issue.

Ok, I think we can close this thread out. I was unable to get the kernel compiled for wsl2. It would be great if someone posted instructions on how to do that for 22.04. Instead I installed Ubuntu onto an SD card and ran sdkmanager off of that. I could never get the full flash to run, but following instructions others posted I was able to get it to work if I selected only linux (not the SDK) install on the target and I disconnected the monitor. i.e. it was hanging during the flash and turned out I think to be failing to reboot because of the connected monitor (also found that in another thread).

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