Skip to content

Instantly share code, notes, and snippets.


Jetsonhacks jetsonhacks

View GitHub Profile
jetsonhacks / gist:3731cac47c2faf440926
Created Aug 15, 2014
Make Export for Jetson Variant
View gist:3731cac47c2faf440926
To prep for building:
$ export MAKEFLAGS="-j4 -s PLATFORM_VARIANT=jetson"

Before you begin, ensure that you've setup network access, either with ethernet or wlan.

Setup timezone

sudo dpkg-reconfigure tzdata

Typically we use "US/Pacific-New"

Mount sdcard

View gist:29b33257980d0c342cbc
# Video Mixer example
# 3 MPEG IPCAMS and local webcam
# Webcam is MJPEG 1280x720
JPEG_DEC="jpegparse ! queue ! jpegdec"
VID_SPEC="videorate ! videoscale ! video/x-raw-yuv,framerate=30/1,width=960,height=540"
NVVIDCONV="queue ! nvvidconv"
VELEM="v4l2src device=/dev/video0" #video0 is a Logitech c920 webcam with built-in H.264 compression & MJPEG
VCAPS="image/jpeg, width=1280, height=720, framerate=30/1"
# Video Source
# Install Python prerequisites on NVIDIA Jetson TK1 for iTorch
# This is for
# L4T 21.3, Torch 7 (
# iPython is loaded using pip, as repository version is 1.x version, > 2.0 is needed
if [ $(id -u) != 0 ]; then
echo "This script requires root permissions"
echo "$ sudo "$0""
jetsonhacks /
Last active Oct 12, 2015
NVIDIA Jetson TK1 Enable USB 3.0 under LT4 21.1

Linux for Tegra (LT4) uses UBoot as its bootloader, replacing fastboot. In order to enable the full size USB port as 3.0, you can change the boot configuration file on the Jetson.

The boot configuration file is located here:


There are several example configuration files in that directory which define how to boot from different devices.

The switch to change is:

jetsonhacks /
Last active Nov 19, 2015
NVIDIA Jetson TK1 Configure System
# Add some niceties for a new NVIDIA Jetson TK1 - LT 19.3
# Installs Chromium, git and aptitude
# Mark this file as executable in the permissions are of the properties dialog then
# $ sudo ./
# Don't allow apt-get upgrade of xorg overwrite
# May be fixed in future versions of LT4
sudo apt-mark hold xserver-xorg-core
jetsonhacks /
Last active Nov 25, 2015 — forked from tstellanova/
Install Grinch Linux4Tegra (L4T) version 19.3.6 for NVIDIA Jetson TK1

For this process you will need:

  • A host desktop or laptop computer running Ubuntu Linux 12.04. This may be a VM, I've used VirtualBox.
  • Micro USB cable provided with the Jetson TK1 kit
  • Jetson TK1 and power supply
  • Optional: DB9 null modem cable if you want to use the serial console during boot
  1. On your host computer open a Terminal, then create a directory to operate from, and switch to it. As an example:
mkdir ~/Grinch
cd ~/Grinch
# Install cuDNN V2 on NVIDIA Jetson TK1
# Register as a NVIDIA developer and download the cuDNN package
# Package is named cudnn-6.5-linux-ARMv7-V2.tgz
# This script and the cuDNN package should be in the same directory, usually ~/Downloads
# This script places the library and include files for cudnn in the CUDA 6.5 directories
# Make sure this is executing as root
if [ $(id -u) != 0 ]; then
echo "This script requires root permissions"
echo "$ sudo "$0""
View gist:acb8cc60a06e3e86defaa7fff470a8d4
# Install rviz on the NVIDIA Jetson TK1
# Requires unsetting the GTK_IM_MODULE to avoid pcre conflict
# 9-8-2016
sudo apt-get install ros-indigo-rviz
sudo apt-get install ros-indigo-robot-model
echo "unset GTK_IM_MODULE" >> ~/.bashrc
source ~/.bashrc
# Get and install OpenCV for Tegra
# Linux for Tegra (LT4) 21.1 and CUDA 6.5 *must* be installed on the Jetson before installation!
sudo dpkg -i libopencv4tegra-repo_l4t-r21_2.4.10.1_armhf.deb
sudo apt-get update
sudo apt-get install libopencv4tegra libopencv4tegra-dev