Skip to content

Instantly share code, notes, and snippets.

@jetsonhacks
Forked from tstellanova/Jetson_tk1_setup2.md
Last active August 29, 2015 14:07
Show Gist options
  • Save jetsonhacks/9653d79260b9a8d55c4a to your computer and use it in GitHub Desktop.
Save jetsonhacks/9653d79260b9a8d55c4a to your computer and use it in GitHub Desktop.

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

Place an sdcard in the slot, and edit /etc/fstab

/dev/mmcblk1p1 /mnt/sdcard vfat         umask=000,uid=1000,gid=27 0 0

(This makes the sdcard writable to the ubuntu user.)

Install development packages

First sudo vi /etc/apt/sources.list and uncomment the "universe" lines in order to access universe packages.


# install screen
sudo apt-get install screen
# run screen for the remainder of the install
# this allows you to reconnect if your network connection is lost
screen
# if you lose your network connection, reconnect to the jetson and use:
screen -r

Run the package setup script

# Obtain the package setup script
wget https://gist.github.com/tstellanova/6164d0dd621476c0b4b4/raw/6cb4cb9c82a23538c79f1ee77dc4a51a876bb7e5/jetson_setup_packages.sh
chmod +x ./jetson_setup_packages.sh
screen ./jetson_setup_packages.sh

Setup git

Host bitbucket.org 
 IdentityFile ~/.ssh/id_rsa

  • Clone our custom opencv repo (opencv-fastcap): git clone [email protected]:foobarn/opencv-fastcap.git
  • Setup custom opencv build
cd opencv-fastcap
mkdir build
cd build
ccmake ..
  • Configure required stuff: typically profiling on, debug on, perf tests off, docs off, GigE off , shared libs OFF, build type = RELEASE, cuda_arch = 3.2, clear cuda_arch_ptx, BUILD_FAT_JAVA_LIB off, etc
  • 'c' for configure until you see 'g' for generate, then generate and exit
  • Build opencv:
# install requires root access
sudo make -j4 install

Because we are building in the native Jetson environment, this can take a half hour or more.

Get other sources

Clone your source repos and go!

Hints

To find a package, try apt-cache search foo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment