To write the image to an SD card using trusty old dd
.
sudo dd if=~/Downloads/jetson-nano-sd-r32.1-2019-03-18.img of=/dev/sda bs=1M status=progress
Turn off the UI once you have gone through the setup process.
sudo systemctl set-default multi-user.target
You may want to change to the local ubuntu-ports mirror on internode.
http://mirror.internode.on.net/pub/ubuntu-ports/
Just follow this How To Add Swap Space on Ubuntu 18.04
Reboot now.
sudo reboot
Check you still have swap.
swapon
Should output as follows:
NAME TYPE SIZE USED PRIO
/swapfile file 1024M 425M -1
Install apt dependencies.
sudo apt-get install python3-pip libhdf5-serial-dev hdf5-tools
sudo apt-get install virtualenv build-essential python3-dev gfortran libhdf5-dev
Update your users groups to enable access to i2c devices and reboot.
sudo usermod -a -G i2c markw
sudo reboot
Setup virtualenv and activate it.
virtualenv donkeycar -p python3
source ~/donkeycar/bin/activate
Install tensorflow.
pip install --extra-index-url https://developer.download.nvidia.com/compute/redist/jp/v42 tensorflow-gpu==1.13.1+nv19.3
Install adafruit PCA9685 library.
pip install Adafruit_PCA9685
Test i2c devices are present.
i2cdetect -y -r 1
Output should look as follows:
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: 40 -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: 70 -- -- -- -- -- -- --
Download and install donkeycar.
cd ~/donkeycar/
git clone https://github.com/feicccccccc/donkeycar.git
cd donkeycar
pip -e install .
Note: This will take a while so get a coffee.
Building opencv from sources.
mkdir ~/temp
./build_opencv4.sh ~/temp
Link cv2 you just built into your virtual environment.
cd ~/donkeycar/lib/python3.6/site-packages
ln -s /usr/local/python/cv2/python-3.6/cv2.cpython-36m-aarch64-linux-gnu.so
- https://medium.com/@feicheung2016/getting-started-with-jetson-nano-and-autonomous-donkey-car-d4f25bbd1c83
- https://devtalk.nvidia.com/default/topic/1049972/opencv-cuda-python-with-jetson-nano/
- https://www.jetsonhacks.com/2019/04/10/jetson-nano-use-more-power/
- https://www.jetsonhacks.com/2019/04/02/jetson-nano-raspberry-pi-camera/
- https://linuxize.com/post/how-to-add-swap-space-on-ubuntu-18-04/
- http://docs.donkeycar.com/guide/install_software/
- https://developer.download.nvidia.com/embedded/L4T/r24_Release_v2.1/Docs/Accelerated_GStreamer_User_Guide_Release_24.2.1.pdf?LdYKELb_qur30_Ahi2Aa8nhO-YG_c5-Q0wMeU8sWKf8NvFUHkIJNkxhbG9tJ6L0ETO15UtMJivw9Ip3Q0pSHmopW1eqtL82ErOH4X_LHyW6K6nvcMevUNkreGWm_sfySGpRkNVjts99e4iH7rs3hoOqV1kaBx2qHT9QRHk6yeUb5rjTI2dASrdE7EyWYwXBZLnSD1ws