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"
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.
sudo dpkg-reconfigure tzdata
Typically we use "US/Pacific-New"
#!/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 |
#!/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 |
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:
#!/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 |
#!/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"" |
#!/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 |
#!/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 |
#!/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"" |