Skip to content

Latest commit

 

History

History
112 lines (66 loc) · 3.2 KB

JETSON.md

File metadata and controls

112 lines (66 loc) · 3.2 KB

Configuring Jetson Nano

OS Installation

Download JetPack from here.

Burn SD card using downloaded image above using Balena Etcher which can be downloaded from here.

Follow the instructions defined in the following article.

Installing Python Requirements

sudo apt-get install python3-pip

sudo pip3 install -r requirements.txt

Cloning This Repository

The cloning of this repository needs to be done into $HOME/GitHub/sports-replay folder, as described here.

Creating a Swap File

sudo bash $HOME/GitHub/sports-replay/Bash-Scripts/create_swap_file.sh

Note that Jetson will be automatically rebooted.

Preventing SSH Timeout on Jetson

Read instructions here.

Disabling Jetson Nano GUI mode

Read instructions here.

Putting Jetson in 10w Mode

sudo bash $HOME/GitHub/sports-replay/Bash-Scripts/turn-10w-jetson-on.sh

Installing OpenCV 3.0 (the prerequisite)

sudo apt-get install python3-opencv

Make sure you reboot Jetson now.

Installing OpenCV 4.0

cd $HOME/GitHub

sudo bash $HOME/GitHub/sports-replay/Bash-Scripts/install_opencv4.sh

From this point, you can disconnect the monitor, and access your device using SSH.

Add The Rasperry PI Address to Hosts File

sudo vi /etc/hosts

Install FTP Client

sudo apt install ftp

Setting up The Tunneling

Read instructions here.

Installing Support for Shared Memory

Install Arrow using the following instructions.

Note:

Create symbolic links for aarch64 architecture (the stated instructions are for x86/x64).

sudo ln -s /usr/lib/aarch64-linux-gnu/libboost_regex.a /usr/lib/aarch64-linux-gnu/libboost_regex-mt.a

sudo ln -s /usr/lib/aarch64-linux-gnu/libboost_system.a /usr/lib/aarch64-linux-gnu/libboost_system-mt.a

sudo ln -s /usr/lib/aarch64-linux-gnu/libboost_filesystem.a /usr/lib/aarch64-linux-gnu/libboost_filesystem-mt.a

Note about installing parket-cpp

Building parquet-cpp master is no longer supported. Build from C++ codebase in https://github.com/apache/arrow with -DARROW_PARQUET=ON

Note about using CMAKE to build Arrow

cmake -DARROW_PLASMA=ON -DARROW_PYTHON=ON -DARROW_PARQUET=ON ..

cd $HOME/GitHub

git clone https://github.com/apache/arrow.git

cd arrow/cpp

mkdir release

cd release

cmake -DARROW_PLASMA=ON -DARROW_PYTHON=ON -DARROW_PARQUET=ON ..

make -j4

make install

pip install brain-plasma

Customising the NVIDIA Deepstreamer Docker Image

Pulling The Default Image

docker pull nvcr.io/nvidia/deepstream-l4t:4.0.1-19.09-samples

Copying OpenCV into The Image

sudo docker cp $HOME/GitHub/opencv-4.1.1/. xyzq:/home/GitHub/opencv-4.1.1

Run Docker Interactively

sudo docker run -it nvcr.io/nvidia/deepstream-l4t:4.0.1-19.09-samples

Copying OpenCV

cd /home/GitHub/opencv-4.1.1/build make install

Exit Docker Image & Push Image to Docker Repository

docker tag xyzq ibicom/sportsReplay docker push xyzq ibicom/sportsReplay