Software Setup
Last updated
Last updated
Download the Nvidia SDK Manager
Download the J120 Firmware 3 for the J120 / TX2
or
Download the Obritty Firmware
Start the SDK Manager
Select Jetpack 4.3 and make sure you have the host machine unchecked.
First we need to populate the ~/nvidia/nvidia_sdk folder.
You need to only check the Jetson OS components for download and installation.
Note you cannot choose the "Download now. Install later" option because we need the ~/nvidia/nvidia_sdk files to be populated so we can migrate our firmware into these files for the J120.
We will install the SDK components later on.
Once the OS image is downloaded and the /nvidia/nvidia_sdk folder is populated we can skip the flash and then navigate to the carrier board firmware directory.
Check the README file in the firmware folder, and verfiy that the correct paths and files are copied over into the /nvidia/nvidia_sdk folder.
For example the J120 would be something like this
after running the ./apply_binaries.sh you should not get any errors, and then you are good to move to the next step.
Re-Flashing with the J120 firmware patch installed
Now you need to turn off the TX2 on the J120 and boot back into recovery mode.
connect a micro-usb cable to the J120 and to your computer (preferably the one that came with the TX2 that has the little green controller symbol on it).
connect power to the J120 and the green LED should not come on indicating the OS has not booted.
then, you need to boot into recovery mode.
--> hold the REC (Recovery) button and then press the power button (still holding REC)
--> press the reset button once while STILL holding the REC button and then wait 2 seconds until releasing the REC button.
Now to verify the device is connected to the HOST PC you can run 'lsusb' and if NvidiaCorp shows up as a listed USB device you are set.
Another way to verify the TX2 has booted in recovery mode is to hook up the HDMI to a display, nothing should appear on the display if properly booted into recovery mode
Then follow the sdkmanager steps as we did before. ONLY install the Jetson OS components for download and installation. NOT the sdk components.
It should indicate that the OS image is ready with a green check mark because we already populated and flashed before, but now we modified that image and it will re-flash.
OS Boot up and Set-up
Once the sdkmanager has completed the flash you should see the TX2 boot up if you are connected to an HDMI.
verify that the J120 patch worked by checking to see if both the top and bottom USB ports are working.
note that only the upper USB port is USB3, the bottom is USB2.
also note that the micro-usb port does not work so you wont see it appear using lsusb anymore, only in forced recovery mode will it appear using lsusb. You cant use this port in normal operation.
while we are here we can configure our username/password then once those basics are finished on the setup wizard you can move to the next step.
Installing the SDK components from sdkmanager
Now this next step was traditionally done using an ethernet connection but now they have updated it to where the usb to micro-usb connection acts as usb-ethernet.
If you remember, our carrier board disabled the micro-usb port and in order to install the SDK components we cannot be in forced recovery mode. That mode is only used for flashing!!
So here is where it gets silly
Power down the TX2 and remove it from the J120 carrier board.
Get out the old development board and install the TX2 onto there and make sure you bring your antenna's with you because we need to connect to the internet.
Once you have everything moved over, boot up and login
open a terminal and run
Now connect the micro-usb to your HOST PC and run the sdkmanager.
run ifconfig on the TX2 and your host machine to ensure the IP's are 192.168.55.1 and 192.168.55.100 respectively.
run lsusb and see if the NvidiaCorp device shows up, it should.
ONLY check the sdk components for download and installation.
after the download is complete a window will appear asking for your username and password with a defualt IP address that correlates to the serial connection you have over usb w/ the TX2.
continue the installation and hopefully since we already updated the packages earlier we wont have any failed packages. (Maintain internet connection during install just to be safe)
Complete
run nvcc --version and see if CUDA is there!
you can verify any other packages a swell, but that's all. Easy! ;D
Jetsonstats is a great package that allows you to check all of the critical information and health on the TX2 quickly.
here you can change the power mode to MAX N and start the jetson_clocks service
Alternatively you can run
The TX2 only has 32 GB of memory, it is recommended that a SD card >128GB is installed and the GAAS repo and dependency files are stored on the SD card. All other software (ROS, ZED SDK, ect) can be stored on the 32Gb partition.