Step 1: Download and enter the Waveshare-DSI-LCD driver folder
git clone https://github.com/Musicislife6984/Waveshare-DSI-LCD.git
cd Waveshare-DSI-LCD
Step 2: Enter uname -a in the terminal to view the kernel version and cd to the corresponding file directory
#5.10.103 then run the following command
cd 5.10.103
Step 3: Please check the bits of your system, enter the 32 directory for 32-bit systems, and enter the 64 directory for 64-bit systems
cd 32
Step 4: Enter your corresponding model command to install the driver, pay attention to the selection of the I2C DIP switch
2.8inch DSI LCD 480×640:
sudo bash ./WS_xinchDSI_MAIN.sh 2_8INCH I2C0
4inch DSI LCD 480×800:
sudo bash ./WS_xinchDSI_MAIN.sh 4INCH I2C0
7inch DSI LCD (C) 1024×600:
sudo bash ./WS_xinchDSI_MAIN.sh 7INCH I2C0
7.9ich DSI LCD 400×1280:
sudo bash ./WS_xinchDSI_MAIN.sh 7_9_INCH I2C0
11.9inch DSI LCD 320×1480:
sudo bash ./WS_xinchDSI_MAIN.sh 11_9_INCH I2C0
Step 5: Wait for a few seconds, when the driver installation is complete and no error is prompted, restart and load the DSI driver and it can be used normally sudo reboot
Note: The above steps need to ensure that the Raspberry Pi can be connected to the Internet normally.