Skip to content

Create SD Card Image From Scratch

John edited this page Mar 9, 2019 · 24 revisions

This page details how to create the JetBot SD card image from scratch.

This is useful in case you want to distribute a modified version of the JetBot SD card image.

  1. Flash SD card by following Jetson Nano getting started guide.

    • Use the username / password jetbot / jetbot
    • Make sure to log in automatically
  2. Insert SD card into Jetson Nano and power on

  3. Enable i2c permissions

    sudo usermod -aG i2c $USER
  4. Upgrade numpy

    sudo apt-get update
    sudo apt install python3-pip
    sudo pip3 install --upgrade numpy
  5. Install the pre-built PyTorch pip wheel we provide for this project

    sudo pip3 install torch-1.0.0a0+18eef1d-cp36-cp36m-linux_aarch64.whl
  6. Install traitlets (master, to support the unlink() method)

    sudo python3 -m pip install git+https://github.com/ipython/traitlets@master
  7. Install jupyter lab

    sudo apt install nodejs npm
    sudo pip3 install jupyter jupyterlab
    sudo jupyter labextension install @jupyter-widgets/jupyterlab-manager
    sudo jupyter labextension install @jupyterlab/statusbar
    sudo jupyter lab --generate-config
    sudo jupyter notebook password

    You should then enter the password jetbot (unless you want to use a custom password).

  8. Install this repo

    sudo apt install python3-smbus
    git clone https://github.com/NVIDIA-AI-IOT-private/jetbot
    cd jetbot
    sudo python3 setup.py install
  9. Make swapfile

    sudo fallocate -l 4G /var/swapfile
    sudo chmod 600 /var/swapfile
    sudo mkswap /var/swapfile
    sudo swapon /var/swapfile
    

Analytics

Clone this wiki locally