Skip to content

Commit 2d20d02

Browse files
authored
Merge pull request #258 from luxonis/jetson-nano-installation-guide
jetson nano installation guide
2 parents f5ca9f6 + 0fff8fd commit 2d20d02

File tree

1 file changed

+91
-0
lines changed

1 file changed

+91
-0
lines changed

docs/source/install.rst

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ Windows 10 :ref:`Platform dependencies <Windows 10>` `Discord
2323
macOS :ref:`Platform dependencies <macOS>` `Discord <https://discord.com/channels/790680891252932659/798283911989690368>`__
2424
Ubuntu & Jetson/Xavier :ref:`Platform dependencies <Ubuntu>` `Discord <https://discord.com/channels/790680891252932659/798302162160451594>`__
2525
Raspberry Pi OS :ref:`Platform dependencies <Raspberry Pi OS>` `Discord <https://discord.com/channels/790680891252932659/798302708070350859>`__
26+
Jestson Nano :ref:`Platform dependencies <Jetson Nano>` `Discord <https://discord.com/channels/790680891252932659/795742008119132250>`__
2627
======================== ============================================== ================================================================================
2728

2829
And the following platforms are also supported by a combination of the community and Luxonis.
@@ -85,6 +86,96 @@ Raspberry Pi OS
8586
sudo curl -fL http://docs.luxonis.com/_static/install_dependencies.sh | bash
8687
8788
89+
Jetson Nano
90+
***********
91+
92+
To install DepthAI on Jetson Nano, perform the following steps, after completing a fresh install and setup. On the first log in,
93+
**do not** immediately run updates.
94+
95+
This first step is optional: go to the *Software* (App Store) and delete the apps or software that you probably will not use.
96+
97+
Open a terminal window and run the following commands:
98+
99+
.. code-block:: bash
100+
101+
sudo apt update && sudo apt upgrade
102+
sudo reboot now
103+
104+
Change the size of your SWAP. These instructions come from the `Getting Started with AI on Jetson Nano <https://developer.nvidia.com/embedded/learn/jetson-ai-certification-programs>`__ from nvidia:
105+
106+
.. code-block:: bash
107+
108+
# Disable ZRAM:
109+
sudo systemctl disable nvzramconfig
110+
# Create 4GB swap file
111+
sudo fallocate -l 4G /mnt/4GB.swap
112+
sudo chmod 600 /mnt/4GB.swap
113+
sudo mkswap /mnt/4GB.swap
114+
115+
If you have an issue with the final command, you can try the following:
116+
117+
.. code-block:: bash
118+
119+
sudo vi /etc/fstab
120+
121+
# Add this line at the bottom of the file
122+
/mnt/4GB.swap swap swap defaults 0 0
123+
124+
# Reboot
125+
sudo reboot now
126+
127+
The next step is to install :code:`pip` and :code:`python3`:
128+
129+
.. code-block:: bash
130+
131+
sudo -H apt install -y python3-pip
132+
133+
After that, install and set up virtual environment:
134+
135+
.. code-block:: bash
136+
137+
sudo -H pip3 install virtualenv virtualenvwrapper
138+
139+
Add following lines to the bash script:
140+
141+
.. code-block:: bash
142+
143+
sudo vi ~/.bashrc
144+
145+
# Virtual Env Wrapper Configuration
146+
export WORKON_HOME=$HOME/.virtualenvs
147+
export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3
148+
source /usr/local/bin/virtualenvwrapper.sh
149+
150+
Save and reload the script by running the command :code:`source ~/.bashrc`. Then create a virtual environment (in this example it's called :code:`depthAI`).
151+
152+
.. code-block:: bash
153+
154+
mkvirtualenv depthAI -p python3
155+
156+
157+
**Note!** Before installing :code:`depthai`, make sure you're in the virtual environment.
158+
159+
.. code-block:: bash
160+
161+
#Download and install the dependency package
162+
sudo wget-qO- http://docs.luxonis.com/_static/install_dependencies.sh | bash
163+
164+
#Clone github repository
165+
git clone https://github.com/luxonis/depthai-python.git
166+
cd depthai-python
167+
168+
Last step is to edit :code:`.bashrc` with the line:
169+
170+
.. code-block:: bash
171+
172+
echo "export OPENBLAS_CORETYPE=AMRV8" >> ~/.bashrc
173+
174+
175+
Navigate to the folder with :code:`depthai` examples folder, run :code:`python install_requirements.py` and then run :code:`python 01_rgb_preview.py`.
176+
177+
Solution provided by `iacisme <https://github.com/iacisme>`__ via our `Discord <https://discord.com/channels/790680891252932659/795742008119132250>`__ channel.
178+
88179
openSUSE
89180
********
90181

0 commit comments

Comments
 (0)