Build Donkeycar development environment on Raspberry Pi 4B (4GB version)

Set up Donkeycar development environment on Raspberry Pi

1 System installation and SSH configuration

It is best to install the Lite version of the system on the Raspberry Pi, which takes up relatively little space. What I choose here is that 2020-08-20-raspios-buster-armhf-lite.zipyou can download this installation image compressed file from Tsinghua Source, and then use the Raspberry Pi Image tool to program it.

Since there is no display device, you need to access the Raspberry Pi through ssh. Therefore, after the TF card is burned, you need to bootcreate a blank file in the root directory ssh. After saving, unplug the TF card from the PC and insert it into the Raspberry Pi. Send.

For this network operation, use an Ethernet cable to connect to the Ethernet network card interface of the Raspberry Pi. Do not configure WiFi before configuring the Donkeycar environment.

2 Update system

All images lag behind software package updates, so after burning the image and entering the Raspberry Pi via ssh, you need to update it. You need to change the source in advance. It is recommended to change to the Tsinghua source.

pi@raspberrypi:~ $ sudo nano /etc/apt/sources.list

Comment out the original source in the file and add the following content at the beginning of the file:

deb http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ buster main non-free contrib
deb-src http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ buster main non-free contrib

Press CTRL-O on the keyboard and press Enter to save, and press CTRL-X to exit the file.

pi@raspberrypi:~ $ sudo nano /etc/apt/sources.list.d/raspi.list

Comment out the original source in the file and add the following content at the beginning of the file:

deb http://mirrors.tuna.tsinghua.edu.cn/raspberrypi/ buster main ui

Press CTRL-O on the keyboard and press Enter to save, and press CTRL-X to exit the file.

After changing the source, you can update the system.

pi@raspberrypi:~ $ sudo apt-get update
pi@raspberrypi:~ $ sudo apt-get upgrade

Wait for the system update to complete.

3 Configure the Raspberry Pi

pi@raspberrypi:~ $ sudo raspi-config

Start the Raspberry Pi configuration interface and perform the following operations in sequence:

Enable I2Cfunction

Insert image description here

Guess you like

Origin blog.csdn.net/ursamjnor/article/details/109900167