Difference between revisions of "RockpiS/hardware/display"
(Created page with "{{rockpiS_header}} {{Languages|rockpiS/hardware/display}} ROCK Pi S > Hardware > Display == Waveshare...") |
|||
Line 4: | Line 4: | ||
[[rockpiS | ROCK Pi S]] > [[rockpiS/hardware | Hardware]] > [[rockpiS/hardware/display | Display]] | [[rockpiS | ROCK Pi S]] > [[rockpiS/hardware | Hardware]] > [[rockpiS/hardware/display | Display]] | ||
− | == Waveshare 3. | + | === Waveshare 3.5inch RPI LCD === |
− | For | + | For Waveshare 3.5inch RPI LCD, both display and touch are two spi devices. |
− | Due to the hardware limitation with only one CS for spi2 of ROCK Pi S, | + | Due to the hardware limitation with only one CS for spi2 of ROCK Pi S, Waveshare 3.5inch RPI LCD only supports display but touch. |
− | + | The Waveshare 3.5inch RPI LCD works as a framebuffer device. | |
− | === | + | ==== Hardware ==== |
− | + | [https://www.waveshare.com/3.5inch-rpi-lcd-b.htm Waveshare 3.5inch RPI LCD Model B V2.0]. | |
− | + | [https://www.waveshare.com/3.5inch-rpi-lcd-c.htm Waveshare 3.5inch RPI LCD Model C]. | |
− | + | ==== Software ==== | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
+ | We recommend you that you use the system images released after March 1st, 2020. | ||
− | + | =====Step 1: Modifying configuration files.===== | |
− | + | For those ROCK Pi S system images released after March 1st, 2020, use configuration file, /boot/uEnv.txt. See [https://wiki.radxa.com/Device-tree-overlays ROCK Pi S DTBO] to know more about uENv.txt and dtbo. | |
− | + | ||
− | + | Append one of the following lines to 'overlays=' line in /boot/uEnv.txt. | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | rockpis-v11-spi2-waveshare35b-v2 | |
+ | rockpis-v11-spi2-waveshare35c | ||
+ | rockpis-v12-spi2-waveshare35b-v2 | ||
+ | rockpis-v12-spi2-waveshare35c | ||
− | + | Example of adding dtbo : | |
− | = | + | overlays=rockpis-v11-spi2-waveshare35b-v2 |
− | + | ===== Step 2: Install required display packages ===== | |
− | + | $ sudo apt-get update | |
+ | $ sudo apt-get install -y xserver-xorg-video-fbdev | ||
− | + | ===== Step 3: Modify /etc/X11/xorg.conf.d/20-modesetting.conf ===== | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
Backup and clean the contents of file, /etc/X11/xorg.conf.d/20-modesetting.conf. Then add the following lines to it: | Backup and clean the contents of file, /etc/X11/xorg.conf.d/20-modesetting.conf. Then add the following lines to it: | ||
Line 71: | Line 56: | ||
Reboot ROCK Pi S. | Reboot ROCK Pi S. | ||
− | == Troubleshooting == | + | === Troubleshooting === |
* If you have issue with display, start a new post on the forum. https://forum.radxa.com/ | * If you have issue with display, start a new post on the forum. https://forum.radxa.com/ |
Revision as of 11:00, 28 March 2020
ROCK Pi S > Hardware > Display
Contents
For Waveshare 3.5inch RPI LCD, both display and touch are two spi devices.
Due to the hardware limitation with only one CS for spi2 of ROCK Pi S, Waveshare 3.5inch RPI LCD only supports display but touch.
The Waveshare 3.5inch RPI LCD works as a framebuffer device.
Hardware
Waveshare 3.5inch RPI LCD Model B V2.0.
Waveshare 3.5inch RPI LCD Model C.
Software
We recommend you that you use the system images released after March 1st, 2020.
Step 1: Modifying configuration files.
For those ROCK Pi S system images released after March 1st, 2020, use configuration file, /boot/uEnv.txt. See ROCK Pi S DTBO to know more about uENv.txt and dtbo.
Append one of the following lines to 'overlays=' line in /boot/uEnv.txt.
rockpis-v11-spi2-waveshare35b-v2 rockpis-v11-spi2-waveshare35c rockpis-v12-spi2-waveshare35b-v2 rockpis-v12-spi2-waveshare35c
Example of adding dtbo :
overlays=rockpis-v11-spi2-waveshare35b-v2
Step 2: Install required display packages
$ sudo apt-get update $ sudo apt-get install -y xserver-xorg-video-fbdev
Step 3: Modify /etc/X11/xorg.conf.d/20-modesetting.conf
Backup and clean the contents of file, /etc/X11/xorg.conf.d/20-modesetting.conf. Then add the following lines to it:
Section "Device" Identifier "Rockchip Graphics" Driver "fbdev" Option "fbdev" "/dev/fb0" Option "DRI" "2" EndSection
You need to checkout the device, "/dev/fb0" or "/dev/fb1".
Reboot ROCK Pi S.
Troubleshooting
- If you have issue with display, start a new post on the forum. https://forum.radxa.com/