Since opencv was run on raspbian before, some dependencies were not packaged, so some codes could not be run, so I wanted to try Ubuntu. The installation process follows this video:
[ Linux] Install the full version of Ubuntu 19.10 on Raspberry Pi 4 [Chinese and English subtitles]
Download system image
The download on the official website is slow, but it seems that Ubuntu 19.10 downloads faster
What I downloaded here is the arm64 version.
install the system
After downloading, burn the system image into the SD card, but this system has a bug and the USB device does not respond. You need to add total_mem=3072 in config.txt to limit the memory to 3g, so the full performance of 4g is not used (you need to download Notepad++ to modify, directly use the text manager to modify other places). in
[ pi4]
kernel=uboot_rpi_4.bin
max_framebuffers=3
Add a line below
total_mem=3072 limit 3G memory, this line can be deleted after the system is installed and restarted
[ pi4]
kernel=uboot_rpi_4.bin
max_framebuffers=2
total_mem=3072
If you want to overclock the Raspberry Pi to 2GHz, you can add the following three lines of code to config.txt:
over_voltage=4
arm_freq=2000
gpu_freq=650`
Start the system, enter the account name and password in ubuntu, pay attention to the password is not displayed, directly press Enter after entering, and then you will be asked to reset the password
At this time, you need to connect to the network cable, install the desktop environment, and enter (choose one)
sudo apt-get install ubuntu-desktop
sudo apt-get install xubuntu-desktop
sudo apt-get install lubuntu-desktop
sudo apt-get install kubuntu-desktop
Lubuntu is the most lightweight but simple.
Note that the download volume here is very large, and the network speed is very slow without changing the source (about 10kb), but changing the source is too complicated, I choose to get up early to download (surprised to find that the Internet speed is good in the morning, there are more than 100 kb)
I installed ubuntu-desktop, but the usb device still can’t be used after starting the system and adding it to the desktop. I didn’t find the reason, so I
Lubuntu was reinstalled and it turned out to be normal. At this point, the installation is successful.
to sum up
The above is a detailed explanation of the tutorial for installing Ubuntu 19.10 on Raspberry Pi 4 introduced by the editor, I hope it will be helpful to everyone!
Recommended Posts