Skip to content

Instantly share code, notes, and snippets.

View jetsonhacks's full-sized avatar

JetsonHacks jetsonhacks

View GitHub Profile
@jetsonhacks
jetsonhacks / Install LT4 21.1.md
Last active January 26, 2024 16:59
Install LT4 21.1 on Jetson TK1

For best results, you should read through the official NVIDIA documentation found on:

https://developer.nvidia.com/linux-tegra-rel-21

In particular, the Quick Start Guide.

For this process you will need:

  • A host desktop or laptop computer running Ubuntu Linux 12.04 is officially recommended. In practice, this may be a virtual machine, I have used VirtualBox in the past. Also, I've successfully flashed from Ubuntu Linux 14.04. Your mileage may vary.
  • Micro USB cable provided with the Jetson TK1 kit
  • Jetson TK1 and power supply
@jetsonhacks
jetsonhacks / installGStreamer-1.0.sh
Created October 9, 2014 16:15
Install Gstreamer 1.0 on the NVIDIA Jetson TK1
#!/bin/sh
# Install Gstreamer 1.0 on the NVIDIA Jetson TK1
apt-get install gstreamer1.0-tools gstreamer1.0-alsa \
gstreamer1.0-plugins-base gstreamer1.0-plugins-good \
gstreamer1.0-plugins-ugly gstreamer1.0-plugins-bad gstreamer1.0-libav -y
@jetsonhacks
jetsonhacks / gExampleClient.sh
Created October 28, 2014 06:06
Gstreamer RTSP H.264 Receiver
#!/bin/sh
# NVIDIA Jetson TK1
# Get rtsp stream from network, decode and display
SOURCE=<IP ADDRESS OF MACHINE, e.g. 10.10.10.10>
#VIDEO Capabilities of the receiver
VIDEO_CAPS="application/x-rtp,media=(string)video,clock-rate=(int)90000,encoding-name=(string)H264"
TCP_VIDEO_CAPS="application/x-rtp"
VIDEO_SINK="videoconvert ! xvimagesink sync=false"
TCPSRC="tcpclientsrc host=$SOURCE port=5000"
VIDEO_DEC="h264parse ! omxh264dec"
#!/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 / sideBySide.sh
Last active March 27, 2023 12:11
Gstreamer two MJPG Webcams
#!/bin/sh
# Run two video webcam feeds in two different windows
# Script assumes that:
# Microsoft LifeCam Studio is video0
# Logitech c920 is video1
# Both cameras run max 1920x1080 MJPG, but two have both on a USB bus they can run @ 1280x720 max
# MS is made a little smaller
# text overlay and clockoverlay may be added to the pipeline, but render poorly
VELEM="v4l2src device=/dev/video0 do-timestamp=true"
VCAPS="image/jpeg, width=640, height=480, framerate=30/1"
@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 / jetson_kernel_install.md
Last active January 14, 2023 18:37 — forked from tstellanova/jetson_kernel_install.md
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
@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 / gist:1008d24f02e532217cfa
Created October 28, 2014 06:03
Gstreamer example preview, save and stream video
#!/bin/sh
# NVIDIA Jetson TK1
# Use Gstreamer to grab H.264 video and audio stream from Logitech c920 webcam
# Preview video on screen
# Save Video and Audio to a file
# Send video as RTSP stream over TCP
# IP Address of the this machine hosting the TCP stream
IP_ADDRESS=<ENTER IP ADDRESS HERE e.g 10.10.10.10>
# You can list devices:
# $ v4l2-ctl --list-devices
@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