• Document: Configure Cross Compiling for Nvidia Jetson TX2 on Ubuntu 64 bit
  • Size: 1.14 MB
  • Uploaded: 2019-07-16 00:08:40
  • Status: Successfully converted


Some snippets from your converted document:

Configure Cross Compiling for Nvidia Jetson TX2 on Ubuntu 64 bit This guide was put together using Ubuntu 16.04 with Nvidia Jetson TX2 NOTE: It may be required to run software updates on Ubuntu before the apt-get install will work properly. Do that if the next steps fail. Section 1 Prerequisites These are the tools required for the host machine 1. Nvidia JetPack 2. Jetson Device Configuration 3. GCC ARM toolset Linaro 4. Qt Creator Source and Qt Creator GUI 5. Ubuntu packages for compiling #Install Nvidia Jetpack (This is needed for the Qt compilation) These instructions are to be completed on the host PC. 1. Go to https://developer.nvidia.com/embedded/downloads and download Jetpack for Ubuntu 64 bit. 2. To make JetPack executable, run command, chmod +x JetPack*.run 3. You do not get to choose an install location via the Nvidia installer. Instead it creates a subdirectory in the current folder from the TERMINAL session, so make sure you change directory to where you want it to be installed to. It is recommended to install to /home/<USERNAME>/. Where you replace <USERNAME> with your Ubuntu username. 4. Install JetPack by executing the JetPack*.run file 5. Select to install everything under Host – Ubuntu. 6. The Jetson device should already have an OS flashed so under Target - Jetson TX2, the “Flash OS Image to Target” should be set to no action. 7. It is necessary to select to install "File System and OS" and "Drivers". The other components are also recommended to install if it has never been done. Note: The nvidia JetPack installer with the above selections will put the Jetson device’s ROOTFS in 64_TX2/Linux_for_Tegra_tx2/rootfs #Configure Jetson (needs include and lib files) It is necessary to install some packages and update some folders on the Jetson device file system so all the instructions in this section are to be done on the Jetson’s Ubuntu operating system (Not on the host). Then those updates can be mirrored to the host ROOTFS (which should always be a clone of what is on the device) using the rsync command. There is a script available called Device_Setup.sh that will automate all the commands in this section. That is recommended as it is much faster. Automated Method 1. Download Device_Setup.sh from here, https://www.innovative- dsp.com/ftp/jetson/. 2. Run this command, chmod +x ./Device_Setup.sh sudo ./Device_Setup.sh If using the automated method, skip down to “Sync files back to host ROOTFS” once the script completes. Manual Method 1. Install some packages on the device using command, sudo apt-get install '.*libxcb.*' libxrender-dev libxi-dev libfontconfig1-dev libudev-dev 2. Get the headers for OpenGL and EGL, but don’t install a package because some of the Nvidia files could be overwritten. Change directory to /home/nvidia and run these commands, mkdir /home/nvidia/GLES cd /home/nvidia/GLES apt-get download libgles2-mesa-dev ar x libgles2*.deb tar -xvf data.tar.xz mkdir /home/nvidia/EGL cd /home/nvidia/EGL apt-get download libegl1-mesa-dev ar x libegl1*.deb tar -xvf data.tar.xz 3. That should have downloaded two .deb packages and then extracted the files of each one. Now those files need to be copied to the /usr/include directory which can be done with these commands, cd /home/nvidia/GLES/usr/include sudo cp -r GLES2 GLES3 /usr/include cd /home/nvidia/EGL/usr/include sudo cp -r EGL KHR /usr/include 4. A symbolic link for libGLESv2.so.2 is needed. Run this command, sudo ln -s /usr/lib/aarch64-linux-gnu/tegra-egl/libGLESv2.so.2 /usr/lib/aarch64- linux-gnu/libGLESv2.so 5. A Qt5 directory needs to be created to hold the new build from the host after it is compiled. Run this command, mkdir /usr/local/qt5 sudo chown nvidia /usr/local/qt5 #Sync files back to host ROOTFS All instructions from here forwards are to be completed on the HOST! The rsync command is the easiest method to sync files between the Jetson device and the host ROOTFS folder. The IP address of the Jetson device will be needed for this command. The command ifconfig can be used to determine the IP address if unknown (command must be run on the Jetson device). Use the following commands to sync the ROOTFS folders replacing the IP address with the IP of the Jetson device. Again there is a script that automates this whole process which is recommended for ease and speed. Automated Method 1. Download Host_Setup.sh from here, https://www.innovative-dsp.com/ftp/jetson/ 2. You must know the IP address of the Jets

Recently converted files (publicly available):