Skip to content

Instantly share code, notes, and snippets.

Jetsonhacks jetsonhacks

Block or report user

Report or block jetsonhacks

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jetsonhacks
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"
View Jetson_tk1_setup2.md

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
#!/bin/sh
# 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
View installiTorchPrerequisites.sh
#!/bin/sh
# Install Python prerequisites on NVIDIA Jetson TK1 for iTorch
# This is for https://github.com/facebook/iTorch
# L4T 21.3, Torch 7 (http://torch.ch)
# 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""
exit
fi
@jetsonhacks
jetsonhacks / enableUSB3.md
Last active Oct 12, 2015
NVIDIA Jetson TK1 Enable USB 3.0 under LT4 21.1
View enableUSB3.md

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:

/boot/extlinux/extlinux.conf

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

The switch to change is:

@jetsonhacks
jetsonhacks / configureJetson.sh
Last active Nov 19, 2015
NVIDIA Jetson TK1 Configure System
View configureJetson.sh
#!/bin/sh
# 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 ./configureJetson.sh
# Don't allow apt-get upgrade of xorg overwrite libglx.so
# May be fixed in future versions of LT4
sudo apt-mark hold xserver-xorg-core
@jetsonhacks
jetsonhacks / jetson_kernel_install.md
Last active Nov 25, 2015 — forked from tstellanova/jetson_kernel_install.md
Install Grinch Linux4Tegra (L4T) version 19.3.6 for NVIDIA Jetson TK1
View jetson_kernel_install.md

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
View installcuDNNV2.sh
#!/bin/sh
# 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
#!/bin/bash
# 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
View installOpenCVL4T21.sh
#!/bin/sh
# Get and install OpenCV for Tegra
# Linux for Tegra (LT4) 21.1 and CUDA 6.5 *must* be installed on the Jetson before installation!
wget http://developer.download.nvidia.com/embedded/OpenCV/L4T_21.1/libopencv4tegra-repo_l4t-r21_2.4.10.1_armhf.deb
sudo dpkg -i libopencv4tegra-repo_l4t-r21_2.4.10.1_armhf.deb
sudo apt-get update
sudo apt-get install libopencv4tegra libopencv4tegra-dev
You can’t perform that action at this time.