7inch-DSI-LCD-C-RK
From Waveshare Wiki
Use with Tinker BOARD
Hardware Connection
- Connect the 7-inch DSI LCD (C) to the DSI port of the Tinker BOARD with a 15PIN FPC cable.
- In order to use it conveniently, you can first fix the back of the 7-inch DSI LCD (C) with standoffs, and then fix the Tinker BOARD to the standoffs with screws.
- Connect the 4PIN DuPont cable as shown below:
- The final connection is shown in the figure below:
Software Settings
- 1. Download the latest version of the image from Tinker BOARD official website, download the compressed file to the PC, and decompress it to get the .img file.
- 2. Connect the TF card to the PC, and use SDFormatter software to format the TF card.
- 3. Open Win32DiskImager software, select the system image prepared in step 1, and click write to program the system image.
- 4. After the programming is completed, connect the TF card to the Tinker BOARD, and start the Tinker BOARD.
#Because the script will operate on the kernel image file, you need to enter the super user mode. Before using this mode for the first time, use the following command to set the password sudo passwd #Use the following command to enter the super user mode, you need to enter your own password su #Download the compressed package wget https://files.waveshare.com/upload/6/62/7DSI-C-Tinker.zip # Unzip the package unzip 7DSI-C-Tinker.zip # enter the directory cd 7DSI-C-Tinker #Give the script permission to run sudo chmod +x ./WS_xinchDSI.sh # run the script sudo ./WS_xinchDSI.sh # backlight node sudo chmod 777 /sys/devices/virtual/backlight/panel_backlight-0/brightness sudo echo x > /sys/devices/virtual/backlight/panel_backlight-0/brightness # The range of x is 0-255, 0 is the darkest, 255 is the brightest #Since the config.txt file does not support parameters, the backlight value cannot be set in config.txt, so the backlight will fail after power off
Note: The above steps need to ensure that Tinker can connect to the Internet normally.
- 5. Wait for the system to restart, and it will be able to display and touch normally.
For use with ROCK3 Model A
Hardware connection
- Use a 15PIN FPC cable to connect the 7-inch DSI LCD (C) to the DSI port of Raspberry Pi.
- In order to use it conveniently, you can first fix the back of the 7-inch DSI LCD (C) with standoffs, and then fix the Raspberry Pi to the standoffs with screws.
- Connect the 4PIN Dupont cable as shown below:
- The final connection is shown in the figure below:
Software Settings
- Download image, refer to ROCK3 Model A Tutorial login.
- First unzip configuration file into the U disk, and then insert the U disk into the ROCK3 Model A's USB port. (No U disk can be used for remote software transmission, start from step 5 to delete the kernel.)
- Check the name of the U disk, open the terminal and enter:
ls /dev/sd*
- Create a new folder, mount the U disk, and the disk name should be the same as the query name above:
mkdir /home/rock/work sudo mount /dev/sda1 /home/rock/work/
- Delete the original system kernel
cd /boot sudo rm -rf ./*-rockchip-*
- Use the new kernel (note: please refer to your own actual address, for example, the author's path instruction is: )
cd /home/rock/work/ sudo dpkg -i linux-headers-4.19.193-1-rockchip-*_arm64.deb sudo dpkg -i linux-image-4.19.193-1-rockchip-*_arm64.deb
- Copy the device tree to the system device tree loading directory.
sudo cp /home/rock/work/WS_xinchDSI.dtbo /boot/dtbs/4.19.193-1-rockchip-g/rockchip/overlay/ -f sudo vim /boot/uEnv.txt
- Add the following line at the end of the file
overlays=WS_xinchDSI rk3568-i2c3-m0
Reboot
sudo reboot