dnf install qemu-user-static
systemctl restart systemd-binfmt
parted sd-blob-b01.img
> unit B
> p
- Take note of the start position of the rootfs
mount -o loop,offset=12582912 sd-blob-b01.img /mnt
cd /mnt
# The following might be needed, at least if you get "/bin/bash: no such file or directory" on chroot
cp /usr/bin/qemu-aarch64-static usr/bin/
mount -t proc proc proc/
mount -t sysfs sysfs sys/
mount -t devtmpfs devtmpfs dev/
mount -t devpts devpts dev/pts/
chroot ./
echo nameserver 8.8.8.8 > /etc/resolv.conf
apt update
apt upgrade
apt install python3-pip
pip3 install ansible
git clone https://github.com/castortut/jetson-setup
cd jetson-setup
ansible-playbook customization.yaml
apt install libjpeg-dev libhdf5-dev libfreetype6-dev
pip3 install virtualenvwrapper
su - jetson
echo "export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3" >> .bashrc
echo "source /usr/local/bin/virtualenvwrapper.sh" >> .bashrc
source .bashrc
mkvirtualenv donkey1
echo "workon donkey1" >> .bashrc
source .bashrc
cd
git clone https://github.com/castortut/donkeycar.git
cd donkeycar
git checkout master
It is recommended to find a set of wheels (prebuilt binaries) for the libraries with binary extensions and install them before running the following
pip install -e .[nano]
pip install matplotlib
cd
git clone https://github.com/castortut/donkey_mycar.git mycar;
cd mycar
This requires more space than the 12GB image has left so do it after copying to an SD card and resizing the filesystem:
pip install --extra-index-url https://developer.download.nvidia.com/compute/redist/jp/v42 tensorflow-gpu==1.14.0+nv19.9