Forked from tstellanova/Jetson_tk1_setup2.md
Last active
August 29, 2015 14:07
Revisions
-
tstellanova revised this gist
Sep 16, 2014 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -57,6 +57,8 @@ Host bitbucket.org IdentityFile ~/.ssh/id_rsa ``` ### Optional: Setup Custom OpenCV build - Clone our custom opencv repo (opencv-fastcap): `git clone git@bitbucket.org:foobarn/opencv-fastcap.git` - Setup custom opencv build ``` -
tstellanova revised this gist
Sep 16, 2014 . 1 changed file with 8 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -8,7 +8,7 @@ Typically we use "US/Pacific-New" ### Mount sdcard Place sdcard in the slot, with the opencv tegra and cuda files, and edit `/etc/fstab` ``` /dev/mmcblk1p1 /mnt/sdcard vfat umask=000,uid=1000,gid=27 0 0 ``` @@ -40,6 +40,13 @@ wget https://gist.github.com/tstellanova/6164d0dd621476c0b4b4/raw/6cb4cb9c82a235 chmod +x ./jetson_setup_packages.sh screen ./jetson_setup_packages.sh ``` ### Install prebuilt OpenCV for Tegra You can [download libopencv4tegra](https://developer.nvidia.com/jetson-tk1-support) and place on your sdcard. Then: ``` sudo dpkg -i /mnt/sdcard/libopencv4tegra_2.4.8.2_armhf.deb sudo dpkg -i /mnt/sdcard/libopencv4tegra-dev_2.4.8.2_armhf.deb ``` ### Setup git -
tstellanova revised this gist
Sep 16, 2014 . 1 changed file with 9 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -72,6 +72,15 @@ Because we are building in the native Jetson environment, this can take a half h Clone your source repos and go! ### Setup keychain If you're going to be pushing files with git frequently, you'll want to have keychain setup so you won't need to constantly reenter your creds. - Edit .bashrc ``` /usr/bin/keychain --lockwait 0 --clear $HOME/.ssh/id_rsa source $HOME/.keychain/$HOSTNAME-sh ``` ### Hints To find a package, try `apt-cache search foo` -
tstellanova revised this gist
Sep 7, 2014 . 1 changed file with 8 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -32,9 +32,14 @@ screen -r ### Run the package setup script - Obtain and run the [package setup script `jetson_setup_packages.sh`](https://gist.github.com/tstellanova/6164d0dd621476c0b4b4#file-jetson_setup_packages-sh) using `screen`. ``` # 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 -
tstellanova revised this gist
Sep 7, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -33,7 +33,7 @@ screen -r ### Run the package setup script - Obtain the [package setup script `jetson_setup_packages.sh`](https://gist.github.com/tstellanova/6164d0dd621476c0b4b4#file-jetson_setup_packages-sh). - `wget https://gist.github.com/tstellanova/6164d0dd621476c0b4b4/raw/6cb4cb9c82a23538c79f1ee77dc4a51a876bb7e5/jetson_setup_packages.sh` - `screen jetson_setup_packages.sh` ### Setup git -
tstellanova revised this gist
Sep 7, 2014 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -33,6 +33,7 @@ screen -r ### Run the package setup script - Obtain the [package setup script `jetson_setup_packages.sh`](https://gist.github.com/tstellanova/6164d0dd621476c0b4b4#file-jetson_setup_packages-sh). - 'wget https://gist.github.com/tstellanova/6164d0dd621476c0b4b4/raw/6cb4cb9c82a23538c79f1ee77dc4a51a876bb7e5/jetson_setup_packages.sh' - `screen jetson_setup_packages.sh` ### Setup git -
tstellanova revised this gist
Sep 7, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -37,7 +37,7 @@ screen -r ### Setup git - [Install public / private development keys](https://confluence.atlassian.com/display/BITBUCKET/Set+up+SSH+for+Git) to ~/.ssh/ - Install a ~/.ssh/ config file ``` Host bitbucket.org -
tstellanova created this gist
Sep 7, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,71 @@ 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 `jetson_setup_packages.sh`](https://gist.github.com/tstellanova/6164d0dd621476c0b4b4#file-jetson_setup_packages-sh). - `screen jetson_setup_packages.sh` ### Setup git - Install public / private development keys to ~/.ssh/ - Install a ~/.ssh/ config file ``` Host bitbucket.org IdentityFile ~/.ssh/id_rsa ``` - Clone our custom opencv repo (opencv-fastcap): `git clone git@bitbucket.org: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`