Skip to content

Instantly share code, notes, and snippets.

View jetsonhacks's full-sized avatar

JetsonHacks jetsonhacks

View GitHub Profile
#!/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""
@jetsonhacks
jetsonhacks / installLibfreenect2.sh
Last active April 29, 2018 14:26
Install libfreenect2 on the Jetson TK1
#!/bin/sh
#from https://github.com/xlz/libfreenect2/wiki/Jetson-TK1-HOWTO
# Install Prerequisites
#opencv-dev -> opencv4tegra-dev -> already installed from Jetpack
sudo apt-get install -y build-essential libturbojpeg libtool autoconf libudev-dev cmake mesa-common-dev freeglut3-dev libxrandr-dev doxygen libxi-dev libjpeg-turbo8-dev
# Get libfreenect2
git clone https://github.com/jetsonhacks/libfreenect2.git
# Copy nv_headers into libfreenect2/depends
@jetsonhacks
jetsonhacks / installJedroid.sh
Last active March 21, 2023 15:47
Install Jedroid onto SD card - NVIDIA Jetson TK1
#!/bin/sh
# Install Jedroid 1.3 on SD card
# Assumes a blank Ext4 formatted SD card is in the card reader
# The SD Card is not mounted
sudo mkdir /media/ubuntu/jedroidInstall
sudo mount -t ext4 /dev/mmcblk1p1 /media/ubuntu/jedroidInstall
# Get Jedroid 1.3 from Google Drives
cd ~/Downloads
wget -O jedroid_v1.31.tar.bz2 https://googledrive.com/host/0B-lsw7HiSbj8cHJNTmF2RUV6RVE
wget -O jedroid_v1.31.tar.bz2.md5sum https://googledrive.com/host/0B-lsw7HiSbj8T2xFdjZFY0VadXM
@jetsonhacks
jetsonhacks / installcuDNNR1.sh
Created January 20, 2015 00:02
install cuDNN Release candidate 1
#!/bin/sh
# Install cuDNN R1 on NVIDIA Jetson TK1
# Register as a NVIDIA developer and download the cuDNN package
# Package is named cudnn-6.5-linux-armv7-R1.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""
@jetsonhacks
jetsonhacks / installcuDNNR2.sh
Last active March 8, 2017 06:19
NVIDIA Jetson TK1 - Install cuDNN R2
#!/bin/sh
# Install cuDNN R2 on NVIDIA Jetson TK1
# Register as a NVIDIA developer and download the cuDNN package
# Package is named cudnn-6.5-linux-ARMv7-R2-rc1.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""
@jetsonhacks
jetsonhacks / installCaffe.sh
Last active July 10, 2020 04:09
Install Caffe on NVIDIA Jetson TK1 LT4 21.2 - CUDA 6.5
#!/bin/sh
# Install and compile Caffe on NVIDIA Jetson TK1 Development Kit
sudo add-apt-repository universe
sudo apt-get update
sudo apt-get install libprotobuf-dev protobuf-compiler gfortran \
libboost-dev cmake libleveldb-dev libsnappy-dev \
libboost-thread-dev libboost-system-dev \
libatlas-base-dev libhdf5-serial-dev libgflags-dev \
libgoogle-glog-dev liblmdb-dev -y
#!/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
@jetsonhacks
jetsonhacks / maxCPU.sh
Created November 19, 2014 00:28
Set CPU to full performance on NVIDIA Jetson TK1 Development Kit
#!/bin/sh
# Set CPU to full performance on NVIDIA Jetson TK1 Development Kit
if [ $(id -u) != 0 ]; then
echo "This script requires root permissions"
echo "$ sudo "$0""
exit
fi
# To obtain full performance on the CPU (eg: for performance measurements or benchmarking or when you don't care about power draw), you can disable CPU scaling and force the 4 main CPU cores to always run at max performance until reboot:
@jetsonhacks
jetsonhacks / installCUDA65.sh
Last active April 1, 2020 18:51
Fresh install CUDA 6.5 on NVIDIA Jetson TK1 Development Kit
#!/bin/sh
# Fresh install for CUDA 6.5 on Jetson TK1 for Linux for Tegra (L4T) 21.1
# CUDA 6.5 REQUIRES L4T 21.1 !!!
sudo apt-add-repository universe
sudo apt-get update
# This is for L4T r21.1 ; Update for your L4T i.e. r21.3
wget http://developer.download.nvidia.com/compute/cuda/6_5/rel/installers/cuda-repo-l4t-r21.1-6-5-prod_6.5-14_armhf.deb
# Install the CUDA repo metadata that you downloaded
# This is for L4T 21.1 ; Update for your L4T i.e. 21.3
@jetsonhacks
jetsonhacks / enableUSB3.md
Last active October 12, 2015 05:56
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:

/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: