Please enable javascript, or click here to visit my ecommerce web site powered by Shopify.
Jump to: navigation, search

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.5 inch LCD ==
+
=== Waveshare 3.5inch RPI LCD ===
  
For waveshare LCD, both display and touch are two spi devices.
+
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 LCD only support display but touch.
+
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.
  
Wavashare LCD works as a framebuffer device.  
+
The Waveshare 3.5inch RPI LCD works as a framebuffer device.
  
=== Model B v2 ===
+
==== Hardware ====
  
Update kernel(>=4.4.143-23) and rockpis-dtbo(>=4.2) pacakge.
+
[https://www.waveshare.com/3.5inch-rpi-lcd-b.htm Waveshare 3.5inch RPI LCD Model B V2.0].
  
When use it , add the following lines to the hardware interface config file /boot/hw_intfc.conf :
+
[https://www.waveshare.com/3.5inch-rpi-lcd-c.htm Waveshare 3.5inch RPI LCD Model C].
  
  intfc:uart2=off
+
==== Software ====
  intfc:i2c0=off
+
  intfc:spi2=on
+
     
+
  intfc:dtoverlay=spi2-waveshare35b-v2
+
  
 +
We recommend you that you use the system images released after March 1st, 2020.
  
To install the required display support packages enter the following command lines:  
+
=====Step 1: Modifying configuration files.=====
  
  $ sudo apt-get update
+
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.
  $ sudo apt-get install xserver-xorg-video-fbdev
+
  
Backup and clean the contents of file, /etc/X11/xorg.conf.d/20-modesetting.conf. Then add the following lines to it:
+
Append one of the following lines to 'overlays=' line in /boot/uEnv.txt.
  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".
+
  rockpis-v11-spi2-waveshare35b-v2
 +
  rockpis-v11-spi2-waveshare35c
 +
  rockpis-v12-spi2-waveshare35b-v2
 +
  rockpis-v12-spi2-waveshare35c
  
Reboot ROCK Pi S.
+
Example of adding dtbo :
  
=== Model C ===
+
  overlays=rockpis-v11-spi2-waveshare35b-v2
  
Update kernel(>=4.4.143-23) and rockpis-dtbo(>=4.2) pacakge.
+
===== Step 2: Install required display packages =====
  
When use it , add the following lines to the hardware interface config file /boot/hw_intfc.conf :
+
  $ sudo apt-get update
 +
  $ sudo apt-get install -y xserver-xorg-video-fbdev
  
  intfc:uart2=off
+
===== Step 3: Modify /etc/X11/xorg.conf.d/20-modesetting.conf =====
  intfc:i2c0=off
+
  intfc:spi2=on
+
 
+
  intfc:dtoverlay=spi2-waveshare35c
+
 
+
To install the required display support packages enter the following command lines:  
+
 
+
  $ sudo apt-get update
+
  $ sudo apt-get install xserver-xorg-video-fbdev
+
  
 
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

Waveshare 3.5inch RPI LCD

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