top of page
Search

Project 2a - Jetson Nano basic setup

  • Writer: James Canova
    James Canova
  • Sep 21, 2021
  • 3 min read

Project start: 28 August 2021 Project finish: 18 December 2021


Last updated: 11 August 2022 Objective: basic setup of and familiarisation with the Jetson Nano (B01). This project covers installation of the Jetson Nano into an enclosure. initial setup and optional WiFi setup. Parts list:




Installation into enclosure: a video of assembly is found here: https://www.youtube.com/watch?v=mQpjAsG3-0A Electrical connections: a) connect keyboard and mouse using USB ports (not required for headless mode, see below) b) connect monitor using HDMI or DP port depending on your monitor c) insert the WiFi module into any USB port d) connect the Jetson Nano to router with the Ethernet cable e) connect Jetson Nano to host with USB /micro USB cable (only if using headless mode, see below) f) jumper J48 on the Jetson Nano On the B01, J48 is just behind the barrel receptacle. You will find a jumper seated between the pins of J48. Lift it up, rotate it 90° and push it on to the J48 pins. Initial setup: Flash microSD card according to the instructions found here: https://developer.nvidia.com/embedded/learn/get-started-jetson-nano-devkit#intro Insert microSD card in to Jetson Nano. Option a: with monitor, keyboard and mouse (non-headless mode). Follow instructions on monitor. Option b: without monitor, keyboard and mouse (headless mode): Instructions for headless mode are here: https://developer.nvidia.com/embedded/learn/get-started-jetson-nano-devkit#intro Before trying to connect to the Jetson Nano with the "screen" command, wait for a dialog to appear on your host:





1) If a blank screen comes up, push the Enter key and the right and/or down arrow keys a few times and then a request to login will appear. 2) To proceed through the first two setup messages use the right and/or down arrow keys to highlight the "ok" text and then press the Enter key. 3) You do not need to setup the network connection during setup. It automatically sets itself up. 4) In headless mode, the setup will be in text mode. connect to your Jetson Nano: sudo screen /dev/ttyACM0 9115200 Whether you setup in headless or non-headless mode: update and upgrade:

cd $HOME
sudo apt update
sudo apt upgrade (takes about 10 minutes)

install apt-utils:


sudo dpkg --configure -a
sudo apt install apt-util


unminimize:

sudo unminimize  (takes about 30 to 45 minutes)

set 4GB swap space:


https://medium.com/@heldenkombinat/getting-started-with-the-jetson-nano-37af65a07aab#4098


free -h   (to check existing swap space)
sudo fallocate -l 4G /var/swapfile
sudo chmod 600 /var/swapfile
sudo mkswap /var/swapfile
sudo swapon /var/swapfile
sudo bash -c 'echo "/var/swapfile swap swap defaults 0 0" >> /etc/fstab'
sudo reboot now
free -h   (to check swap space has increased)

WiFi setup (optional):


I setup the WiFi now because I plan to do a project with a JetBot later on.


This procedure only works with the WiFi module specified in the parts list above.


if you are working in headless mode connect to your Jetson Nano:


sudo screen /dev/ttyACM0 115200


the following two files need to be deleted, if they exist:


cd /etc/network
sudo rm interfaces
cd /etc/wpa_supplicant/
sudo rm wpa_supplicant.conf


proceed with the following:


https://forums.developer.nvidia.com/t/edimax-ew-78111un-v2-wifi-setup/165047/13


cd $HOME

wget https://www.edimax.com/edimax/mw/cufiles/files/download/Driver_Utility/EW-7811Un_V2_Linux_Driver_1.0.0.3.zip

unzip EW-7811Un_V2_Linux_Driver_1.0.0.3.zip

cd EW-7811Un_V2_Linux_Driver_1.0.0.3/

tar xvf rtl8188EUS_linux_v5.3.9_28540.20180627.tar.gz

cd rtl8188EUS_linux_v5.3.9_28540.20180627/

export ARCH=arm64

make   (takes about 60 minutes)

sudo make install

sudo reboot now

sudo nmcli --ask dev wifi connect <your wireless routers SSID name>

Password: <your routers password>


The LED on the Edimax module should now be flashing.


Unplug the Ethernet cable from your Jetson Nano, reboot,


check the WiFi connection is working:


ping google.com


You can connect to the Jetson Nano from your host computer using SSH:


SSH via USB:


sudo ssh <jetson_nano_user_name>@192.168.55.1  


SSH via Internet (Ethernet or WiFi):


sudo ssh <jetson_nano_user_name>@192.168.0.20 




If you have any problems or need clarification please contact me:

jscanova@gmail.com






 
 
 

Recent Posts

See All
Introduction

I became interested in artificial intelligence in mid 2021 after watching a documentary on this subject. In particular, I'm interested in...

 
 
 
References

1.Rashid, Tariq, Make Your Own Neural Network , Amazon , 2016 2.Portilla, Jose, "Python for Computer Vision with OpenCV and Deep...

 
 
 
Status of Projects

Last updated: 30 March 2024 Project 0: Read this to get a very basic understating on machine learning and neural networks. Project 1:...

 
 
 

Comments


Post: Blog posts

©2021 by My Machine Learning Blog. Proudly created with Wix.com

bottom of page