I have successfully installed JetPack 4.0 Developer Preview (31.0.1) using an Ubuntu 16.04 virtual machine onto the Xavier. In my case the VM was running on my MacBook using VirtualBox.
My setup:
Macbook Pro: (Retina, 15-inch, Mid 2014)
OS: 10.13.6
Virtual Box: 5.2.18 r124319 using latest Guest Additions update (5.2.18)
VM OS: Ubuntu 16.04.5 (64 bit)
-
Make sure your VM is up to date. Initially I had a problem of the JetPack 4.0 Components Manager choking with the install of OpenCV 3.3.1 onto my Ubuntu host. This was because I had an old openCV repository that was coming back not found. Bottom like make sure you can do sudo apt-get update successfully. I also did sudo apt-get upgrade.
-
Within your VM settings my USB controller was set to USB 3.0 (xHCI) Controller and I had both a NVIDIA Linux for Tegra[0001] and NVIDIA Corp. APX USB Device Filters.
-
My host connection was via WiFi to the router and from the router ethernet to the Xavier ethernet. Use the USB-C connection on the Xavier front panel. The front panel is considered the side with the LED and expansion header. At some point you will lose the USB connection, but that is okay. You will do the loading in two parts.
-
From your VM host execute ./JetPack-L4T-4.0-linux-s64_b188.run
-
Proceed through the steps. You will come across the screen which asks you to put your Xavier into Recovery mode. To verify you are in Recovery Mode from the VM you should be able to ping the IP address of your Xavier. Verify your NVIDIA Corp APX USB has a check mark. The Xavier itself will have a blank screen, but the ping will work.
-
At some point you will see Making system.img…
I did temporarily lose the USB connection, but just reselected NVIDIA Corp APX and verified the ping. You have time as it takes > 5 minutes to build the system.img. -
Everything will load successfully and the Xavier will auto reboot. The desktop will come up. However back on the VM the script will be trying to identify the IP address of the Xavier but won’t be able to establish the connection. Go ahead and quit out of the script. At this point JetPack has been installed but the other packages (VisionWorks, CUDA Toolkit, cuDNN Package, Tensor RT, OpenCV, and Multimedia API did not.
-
There is hope…always believe.
-
Rerun the JetPack-L4T-4.0-linux-x64_b188.run script
-
This time instead of doing a Full install do a Custom.
-
Go to “Flash OS Image to Target” and select the action to be “no action”
-
Now only the steps listed under “Install on Target” will be executed.
-
When you select “Next” you will be prompted to enter in the IP address of the Xavier along with user (nvidia) and password (nvidia). You can just do ifconfig on your Xavier to see what your IP address is.
-
Now the script will load the rest of the software (VisionWorks Pack, CUDA Toolkit, CUDA Samples, TensorRT, etc, onto the Xavier.
-
All is well in your Jetson world.
-
Verify your JetPack install using the script Jim from JetsonHacks made:
git clone GitHub - jetsonhacks/jetsonUtilities: Get information about the NVIDIA Jetson OS environment. Lists L4T and JetPack versions, along with major libraries.
cd jetsonUtilities/
./jetsonInfo.py
Results:
NVIDIA Jetson UNKNOWN
L4T 31.0.1 [ JetPack UNKNOWN]
Board: t186ref
Ubuntu 18.04 LTS
Kernel Version: 4.9.108-tegra
CUDA 10.0.117
Have fun,
Andrew Baker