Connect DSI interface of the display screen using 15PIN FPC cable. We didn't use touch function, so we didn't connect 4pin (Without I2C connetion)
sudo apt install git
git clone https://github.com/waveshare/Waveshare-DSI-LCD
cd Waveshare-DSI-LCD/
# choose kernel your kernel verion
cd 6.1.21/
# choose your bits of your system (32 or 64)
cd 64/
# Install Driver
sudo bash ./WS_xinchDSI_MAIN.sh 79 I2C0
# Reload boot firmware by reboot
sudo reboot
Display showed a vertical screen.
sudo nano /boot/cmdline.txt
Add following line at the beginning of the file.
video=DSI-1:400x1280M@60,rotate=90
Of course you can choose the angle. (0, 90, 180, 270)
sudo reboot
after adding rotation information, reboot RaspberryPi for check.
In our case, ‘video=DSI-1:400x1280M@60,rotate=90’ didn’t worked. We modify ‘M@60’ to ‘e’, and it worked well. So add following line at the beginning of the file.
video=DSI-1:400x1280**e**,rotate=90
video=DSI-1:400x1280e,rotate=90
Check your display shows horizental CLI window.
If your system has some problem of initial boot or display, check that /boot/config.txt
sudo nano /boot/config.txt
# If this file doesn’t have ‘dtoverlay=vc4-kms-v3d’, then add it.
There is a possibility of conflict if you use ‘kms’ and ‘fkms’ at the same time. In our case, just using ‘dtoverlay=vc4-kms-v3d’ worked. If this conflict occured, you can modify your config.txt by inserting SD card to your laptop.