In the previous article “Designing a Case for Taishan Platform with Jialichuang EDA, which has good heat dissipation”, we introduced the case designed for the Taishan Platform.
Just saw a Bilibili expertLinux expert Wangzai
adapted the Raspberry Pi operating system (Raspberry Pi OS
) for the Lichuang Taishan platform, and we immediately flashed it. Raspberry Pi OS has low resource usage, is easy to use, and supports multiple programming languages, making it more suitable for learning.
1. Introduction to Raspberry Pi OS
The Raspberry Pi operating system (Raspberry Pi OS
), formerly known as Raspbian, is a lightweight Linux distribution customized for the Raspberry Pi hardware platform. It is based on Debian
, providing both graphical user interface and command line interface, and supports various programming languages and development tools, suitable for education, programming, media playback, and various other purposes.
2. Image Introduction
Bilibili expert Linux expert Wangzai
Space: Wangzai’s personal space -https://space.bilibili.com/476068600
Image download link: Bilibili Workshop -https://gf.bilibili.com/item/detail/1105706108
After downloading and unzipping, the image folder is as shown in the figure below:
3. Flashing Raspberry Pi OS
Copy the image folder to Ubuntu and flash it entirely on Ubuntu.
Ubuntu version: 22.04
1) Flashing the Linux system
Our Taishan development board is still running Android, so we need to first flash a bootable Linux system.If it is already a Linux system, you can skip this step.
We directly flash the hdmi_20230915_update.img
from the image folder, which is a highly streamlined Linux system.
According to the official documentation, to enter the Loader upgrade mode on the Taishan development board: first hold down the REC button, then press and release the RST reset button.
Open the terminal in the image folder and enter the following command:
chmod +x upgrade_tool
sudo ./upgrade_tool uf hdmi_20230915_update.img
After successful flashing, you can boot up and test, which is a system with only a terminal window.
2) Determine the flashing address
First, determine the starting LBA of rootfs (Logical Block Addressing
), and execute the following command:
sudo ./upgrade_tool pl
If prompted command not found
, it indicates insufficient permissions; you need to execute the following command:
chmod +x upgrade_tool
Flashing the Linux system is the same.
Determine that the starting LBA of rootfs is 0x00058000
.
3) Flashing the raspi file system
Execute the following command to flash the raspi file system:
sudo ./upgrade_tool wl 0x00058000 rootfs.img
4) Flashing Linux
Execute the following command to perform the flashing:
sudo ./upgrade_tool DI -b boot.img
Flashing completed!
4. System Configuration
1) System Settings
Restart the Taishan platform and enter the Raspberry Pi operating system:
The screen is connected to a monitor via HDMI.
Complete the settings for language, user, password, region, WIFI, etc.:
2) Install and configure xrdp service
Since our Taishan platform is not equipped with a screen, it is more convenient to access via remote desktop. To connect Windows 10 remote desktop to the Raspberry Pi system, you need to install and configure the xrdp service on the Taishan platform.
a. Update the system:Run the following command on the Taishan platform to update the system:
sudo apt-get update
sudo apt-get upgrade
b. Install the xrdp service:Execute the following command to install:
sudo apt-get install xrdp
c. Install VNC server:xrdp depends on the VNC server to provide the desktop environment, install tightvncserver:
sudo apt-get install tightvncserver
d. Restart xrdp service:After installation, restart the xrdp service to apply changes:
sudo /etc/init.d/xrdp restart
e. Get Taishan platform IP address:Use the following command to get the Taishan platform’s IP address:
hostname -I
f. Remote desktop access:Access the Raspberry Pi operating system via remote desktop in Windows 10:
The IP address is the Raspberry Pi IP address obtained in the previous step.
At this point, we can access the Raspberry Pi operating system from the remote desktop.
3) Install Samba service
Learning the Raspberry Pi operating system often requires sharing files with Windows systems, so you need to install the Samba service to achieve file sharing between Win10 and the Taishan platform.
a. Install Samba:Complete by running the following command:
sudo apt-get install samba samba-common-bin
b. Configure Samba:After installation, you need to configure Samba to allow users to access the home directory. This requires editing the /etc/samba/smb.conf
file and modifying the [homes]
section, changing read only = yes
to read only = no
. Execute the following command to open the smb.conf file:
sudo nano /etc/samba/smb.conf
After modification, press Crtl+O
to save changes, and press Crtl+X
to exit the editor.
c. Set Samba user password:Set the Samba password for the default user py:
sudo smbpasswd -a py
The default user is the user of the Raspberry Pi operating system.
d. Access shared folders:In Windows systems, enter the Raspberry Pi’s IP address (for example: \192.168.31.165 extbackslash py
), and authenticate using the username and password set in the previous step to access the files on the Raspberry Pi.
5. System Usage
Install Samba
Thonny
Play Bilibili videos
Recommended Reading
-
Designing a Case for Taishan Platform with Jialichuang EDA, which has good heat dissipation
-
Face Recognition, Eye Tracking, and Shape Recognition Learning Based on OpenMV
-
Minimal ESPNOW Remote Control Car Based on Lichuang ESP32S3
-
Minimal Bluetooth Remote Control Car Based on Lichuang ESP32S3 (1)
-
Using Touch Screen to View Files on SD Card (Based on lvgl and Micropython)
-
Fortune Cat Based on RP2040 and Micropython
-
ESP32-S3 Real-Time Display of Images Taken by Camera (Based on Micropython)
-
ESP32-C3 Obstacle Avoidance Car