Cross platform from windows to linux on Nvidia NX


I want to write an application on windows and cross platform to Nvidia Xavier NX.
what is the best IDE for that?
Is Visual studio knows how to do it?
Is there any other preferred IDE?


We don’t have a setup for this. Would suggest get a host PC in Ubuntu 18.04 or 20.04. And refer to
Jetson Linux API Reference: Setting Up Cross-Platform Support | NVIDIA Docs

there is no a Windows tool for this? must I use Ubuntu for that?

Yes. The problem is that flash is not just flash. The filesystem is being generated and populated on the host PC using loopback. This means that not only must the system be able to generate an ext4 filesystem type (not available directly on Windows, but possible with emulation), but also the host must be able to create a synthetic/fake disk partition which the formatting can apply to (and Windows has no ability to create anything loopback…WSL cannot do this).

There are cases where emulation does work, but the details depend on the particular emulator, and differ such that it is up to the end user to make that work. The biggest problem people run into when using a full emulator is that USB will disconnect and reconnect during a flash, and that if USB is not set up correctly, then the Jetson will be lost on USB part way through the flash. If you can get past that, then emulation might work (but WSL is not a full emulation).

@linuxdev So, what I understand is, work on Ubuntu and dot waste time on Windows…

I must correct the “It can’t work on WSL” part. You can make everything except the initrd-flash tool from NVIDIA work with Windows 11 and WSL2 out of the box. That requires a custom kernel for WSL2 I am afraid.

IF you know how to work with linux, you will be able to get everything running with WSL. I usually flash my boards like that.
It requires some work as a script which will auto connect your Xavier Devkit USB connection to your WSL Linux and such, but you can definitely do it.

The much easier way would be to use a Linux Host as suggested. It depends on how much you’d like to keep working on Windows and how good your linux knowledge is. You definitely need to know more about Linux if you wan’t to get it running on Windows 11 WSL than on a native Ubuntu.

I did not know WSL2 had the option of a custom kernel supporting loopback, but even so, you are far better off having dual boot with Ubuntu (if working with JetPack/SDKM 5, use a host with version 20.04; if using legacy hardware, e.g., a TX2 or older dual boot with release 18.04).

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