Please download the driver patch, kernel code and gcc tool chain from links below. Drivers: https://www.dropbox.com/sh/dzn01wte5akuwb1/AACqfpVqQpWfJ5tP4rSE8FFua?dl=0 Kernel code: https://www.dropbox.com/s/awzxe90dhipfon2/kernel_src-tx2.tbz2?dl=0 GCC ToolChain: https://www.dropbox.com/sh/zf0eo7s2h5jts0k/AABzU8Ku5BOOxbHUFxFUfnqHa?dl=0 ------Compile the driver patch Compile the kernel under 64 bit Ubuntu OS on Intel x64 PC. (Virtual machine is fine. We are using Ubuntu 16.04 64 bit OS) Note: You don’t need to compile the driver patch if you use the driver files (Image, zImage and tegra186-quill-p3310-1000-c03-00-base.dtb) under Binaries folder directly. 1. Copy compile tool gcc-4.8.5-aarch64.tgz to /opt, and unzip it sudo tar zxvf gcc-4.8.5-aarch64.tgz 2. Copy kernel_src.tbz2 and two patch files to /usr/src sudo tar xpf kernel_src-tx2.tbz2 sudo chown -R kernel sudo chown -R hardware patch -p0 < tri_streaming_imx274_base28.1_TX2_NV_dtbs_20171027.patch patch -p0 < tri_streaming_imx274_base28.1_TX2_NV_kernel_20171027.patch Note: is the user name of your Ubuntu OS. For example: sudo chown -R leopard kernel 3. Copy tx2.sh to /usr/src/kernel. under /usr/src/kernel, do source tx2.sh 4. Create a work folder under /home: sudo mkdir /home/work sudo chown -R /home/work 5. In "kernel/kernel-4.4" folder, run: make O=$TEGRA_KERNEL_OUT tegra18_defconfig make O=$TEGRA_KERNEL_OUT zImage make O=$TEGRA_KERNEL_OUT dtbs You will get Image and zImage under /home/work/TX2/kernel/kernel_out/arch/arm64/boot and tegra186-quill-p3310-1000-c03-00-base.dtb under /home/work/TX2/kernel/kernel_out/arch/arm64/boot/dts. ------Setup the driver on TX2 1. Download the L4T R28.1 for TX2 from link below. https://www.dropbox.com/sh/8p3kgws42csrulu/AADYMwGXYE2_qKjtPLVDawgta?dl=0 and follow below steps to flash the R28.1 image the TX2. Set the TX2 to recovery mode sudo tar xpf Tegra186_Linux_R28.1.0_aarch64.tbz2 cd Linux_for_Tegra/rootfs/ sudo tar xpf ../../Tegra_Linux_Sample-Root-Filesystem_R28.1.0_aarch64.tbz2 cd .. sudo ./apply_binaries.sh Copy and replace the tegra186-quill-p3310-1000-c03-00-base.dtb under Linux_for_Tegra/kernel/dtb sudo ./flash.sh jetson-tx2 mmcblk0p1 Note: You can also download the Jetpack 3.1 (which includes the L4T R28.1) from Nvidia website and install it to TX2 if needed. 2. After boot up, Copy Image, zImage to TX2 /boot. 3. copy 4.4.38-tegra-leopard.tgz to TX2 /lib/modules sudo cp 4.4.38-tegra-leopard.tgz /lib/modules cd /lib/modules sudo tar zxvf 4.4.38-tegra-leopard.tgz 4. Copy camera_overrides.isp to TX2 /var/nvidia/nvcam/settings (if there is isp file) sudo chmod 664 /var/nvidia/nvcam/settings/camera_overrides.isp sudo chown root:root /var/nvidia/nvcam/settings/camera_overrides.isp 5. Reboot the TX2 6. Open a terminal and do "nvgstcapture-1.0”. You can will get live video output. Note: Please make sure there is a camera on J3. ------Setup Argus software Download the files from link below. https://www.dropbox.com/s/0t6388fsiocuvz7/argus_R28.1.tgz?dl=0 1. sudo apt-get update 2. sudo apt-get install cmake 3. sudo apt-get install libgtk-3-dev 4. sudo apt-get install libjpeg-dev 5. sudo apt-get install libgles2-mesa-dev 6. sudo apt-get install libgstreamer1.0-dev 7. tar zxvf argus_R28.1.tgz 8. cd argus 9. mkdir build && cd build 10. cmake .. 11. make 12. sudo make install 13. Do "argus_camera --device=0”, “argus_camera --device=1” and “argus_camera --device=2”to get the video output. Note: 1. You can also use gstreamer commands to get video output. Below is an example. gst-launch-1.0 nvcamerasrc fpsRange=“60.0 60.0" sensor-id=0 ! 'video/x-raw(memory:NVMM), width=(int)1920, height=(int)1080, format=(string)I420, framerate=(fraction)60/1' ! nvtee ! nvvidconv flip-method=2 ! 'video/x-raw(memory:NVMM), format=(string)I420' ! nvoverlaysink -e 2. If you have cooling system (fan), you can use below commands to turn on/off the fan. 1) switch to the root user. sudo su 2) echo 255 > /sys/kernel/debug/tegra_fan/target_pwm //turn on echo 0 > /sys/kernel/debug/tegra_fan/target_pwm //turn off 3. If the camera module you have include the IR switcher, you can use below commands to control the IR switcher. 1) switch to the root user. sudo su 2) echo d > /sys/kernel/debug/pca9570_a/pca9570 //J1 camera echo n > /sys/kernel/debug/pca9570_a/pca9570 echo d > /sys/kernel/debug/pca9570_c/pca9570 //J2 camera echo n > /sys/kernel/debug/pca9570_c/pca9570 echo d > /sys/kernel/debug/pca9570_e/pca9570 //J3 camera echo n > /sys/kernel/debug/pca9570_e/pca9570 4. If there are any new drivers, we will add them into link below. https://www.dropbox.com/sh/u98lrzi6bflcume/AAAS6M2120vQx16BQ7RaflsHa?dl=0