Jetson Orin Nano flash from WSL2 fails: Hangs at systemd-detect-virt

I am trying to flash a Jetson Orin Nano development kit with NVMe drive attached from my WSL2 environment using the Nvidia SDKManager. Unfortunately, I am having trouble doing so.

I know that it should be possible to flash from WSL2 (e.g. see Flash Jetson Orin Nano WSL2 - #9 by henkman or WSL2 flashing with NVIDIA SDK Manager - Jetson & Embedded Systems / Jetson Orin Nano - NVIDIA Developer Forums).

I have tried numerous ways of flashing the device but I always keep getting the same issue:

  1. So far so good; I can set the SDKManager to flash my Jetson Orin Nano:
  2. After a bit of time, I get a warning message that flashing from WSL is not supported. I can click it away by pressing continue twice:
  3. After pressing continue, I can see that the flashing process hangs with the following terminal output:

After this point, nothing happens anymore. How can I troubleshoot/fix this issue?

Notice that I tried to reproduce Henkman’s and JanGerber’s situation (see shared URLs) as much as possible by setting up the WSL kernel (with Henkman’s kernel config) and distribution as shown by JanGerber. I do get different results, however.

Any help here is appreciated; thanks in advance!

*** Please note that this reply is generated by LLM automatically ***

To troubleshoot and fix the issue of flashing a Jetson Orin Nano development kit with an NVMe drive attached from a WSL2 environment using the Nvidia SDKManager, follow these steps:

  1. Verify the WSL2 environment: Ensure that your WSL2 environment is set up correctly and that you have the necessary dependencies installed. You can refer to the Nvidia documentation for the recommended WSL2 configuration.

  2. Check the SDKManager version: Make sure that you are using the latest version of the SDKManager. You can check for updates in the SDKManager settings.

  3. Verify the Jetson Orin Nano configuration: Ensure that your Jetson Orin Nano development kit is properly configured and that the NVMe drive is recognized by the system. You can check the device manager to verify that the NVMe drive is listed.

  4. Check the flashing command: Verify that the flashing command is correct and that it matches the one provided in the Nvidia documentation. You can try to flash the device using the command-line tool instead of the SDKManager.

  5. Disable Secure Boot: Secure Boot can sometimes cause issues with flashing. Try disabling Secure Boot in the UEFI settings and see if it resolves the issue.

  6. Try a different flashing method: Instead of using the SDKManager, try flashing the device using the flash.sh command-line tool. This tool is provided in the Nvidia SDK and can be used to flash the device manually.

  7. Check the NVMe drive: Ensure that the NVMe drive is properly connected and that it is recognized by the system. You can try to flash the device with a different NVMe drive to rule out any issues with the drive.

  8. Reboot the system: Sometimes, a simple reboot can resolve the issue. Try rebooting the system and then attempt to flash the device again.

  9. Check the kernel logs: Check the kernel logs to see if there are any error messages related to the flashing process. You can use the dmesg command to view the kernel logs.

  10. Seek help from the Nvidia community: If none of the above steps resolve the issue, you can seek help from the Nvidia community forums. Provide detailed information about your setup and the error messages you are seeing, and someone may be able to assist you.

Comparison with Henkman’s and JanGerber’s situation:

It appears that you have tried to reproduce Henkman’s and JanGerber’s situation, but you are getting different results. This could be due to differences in your setup or configuration. Here are a few things to consider:

  • Kernel configuration: Henkman’s kernel configuration may be different from yours. Try to use the same kernel configuration as Henkman to see if it resolves the issue.
  • Distribution: JanGerber’s distribution may be different from yours. Try to use the same distribution as JanGerber to see if it resolves the issue.
  • NVMe drive: The NVMe drive used by Henkman and JanGerber may be different from yours. Try to use a different NVMe drive to rule out any issues with the drive.

By following these steps and comparing your setup with Henkman’s and JanGerber’s situation, you should be able to troubleshoot and fix the issue of flashing a Jetson Orin Nano development kit with an NVMe drive attached from a WSL2 environment using the Nvidia SDKManager.

*** Please give the thumbs up if you get answers you like. Or provide feedback to help us improve the answer. ***

Hi,

We recommend preparing a native Ubuntu environment and installing the SDK Manager to flash the device.
Alternatively, you can try installing the latest SDK Manager on Windows 10 or 11 to see if it works.

Thanks