Forum > Beginners
Andrey_Kosinski 看全部
2018-8-21 01:25:23
Edited by Andrey_Kosinski at 2018-8-21 18:20

Hi all! I try use this  LCD (I think in is piretes Waveshare I bought it there Aliexpress ) I used tutorial  https://forum.armbian.com/topic/4656-orangepi-zero-mainline-kernel-spi-lcd-touchscreen/
I want see console on my LCD.

After :
modprobe fbtft_device custom name=fb_ili9341 gpios=dc:3,reset:0,led:6 speed=16000000 busnum=1

dmesg|tail :
[   89.816317] spidev spi1.0: spidev spi1.0 50000kHz 8 bits mode=0x00
[   89.816430] spidev spi1.0: Deleting spi1.0
[   89.817290] fbtft_device: GPIOS used by 'fb_ili9341':
[   89.817301] fbtft_device: 'dc' = GPIO3
[   89.817304] fbtft_device: 'reset' = GPIO0
[   89.817306] fbtft_device: 'led' = GPIO6
[   89.817319] spi spi1.0: fb_ili9341 spi1.0 16000kHz 8 bits mode=0x00
[   89.824979] fb_ili9341: module is from the staging directory, the quality is unknown, you have been warned.
[   90.168802] Console: switching to colour frame buffer device 30x40
[   90.169529] graphics fb0: fb_ili9341 frame buffer, 240x320, 150 KiB video memory, 16 KiB buffer memory, fps=20, spi1.0 at 16 MHz

Sometimes I will see
[  270.793150] g_serial gadget: high-speed config #2: CDC ACM config
[  270.793182] gs_console_connect: port num [0] is not support console

overlays=usbhost2 usbhost3

attachment: 您需要登录才可以下载或查看附件。没有账号?Register
Andrey_Kosinski 看全部
2018-8-21 18:20:17
1. Install Armbian_5.35_Orangepizero_Ubuntu_xenial_default_3.4.113 (Very important Unbuntu, not Debian.)
    because Unbunta have driver for LCD from the box.
2. Now you must will know what chip used your LCD in my case ili9486. (My LCD)
    Very important knows what chip you use!!! If you will wrong then LCD do not worked.
3. type in consile :  sudo modprobe fbtft_device custom name=fb_ili9486 gpios=dc:18,reset:2 speed=16000000 busnum=1 rotate=90
4. and type : sudo con2fbmap 1 8

P.S. Source comment from Agge  Comment link
DoubleHP 看全部
2018-12-22 07:21:12
I started with Armbian_5.35_Orangepizero_Ubuntu_xenial_next_4.13.16 and fully updated it to Ubuntu 16.04.5


  1. modprobe fbtft_device custom name=fb_ili9486 gpios=dc:18,reset:2 speed=16000000 busnum=1

works, but only after following https://forum.armbian.com/topic/ ... pi-lcd-touchscreen/ which explains I first need to run some armbian-add-overlay myili9431.dts  command ...

and when I try


  1. modprobe fbtft_device custom name=fb_ili9486 gpios=dc:18,reset:2 speed=16000000 busnum=1 rotate=90

the output is kind of rotated, but characters are hard to read.

Did you try to use a recent image ?
DoubleHP 看全部
2018-12-23 02:05:57
I got it working. Finally.

So, the screen I am using is
which is similar to Quimat from amazon.
It's a classic XPT2046 / ili9486

The pi is Orange Pi Zero H2+ 256MB.

I had to downgrade to the image you recommended, and it worked almost immediately: Armbian_5.35_Orangepizero_Ubuntu_xenial_default_3.4.113.7z The key point is to use a 3.4 kernel; in short, not a 4.* . Kernel 4 bring many modifications in Armbian. Many people are in trouble porting SPI projects between those two kernels; and a project that works with on major, does not with the other.

Then, things are smooth:
modprobe fbtft_device custom name=fb_ili9486 gpios=dc:18,reset:2 speed=16000000 busnum=1 rotate=270
without adding dt-overlay in /boot/armbianEnv.txt (required for kernels 4.* )

To get consoles:


  1. # https://www.willprice.org/2017/09/16/adventures-with-tft-screens-for-raspberry-pi.html
  2. fb=8; for tty in {1..14}; do echo "$tty to fb $fb"; con2fbmap $tty $fb; sleep 1; done
  3. # Check your FB number with this:
  4. # dmesg | grep fb_ili9486 | grep graphics

Fill /etc/X11/xorg.conf.d/99-fbturbo.conf (see link just above), and fix the fb number according to your system. I don't understand why I got FB8 while Andrey reports FB1.

run startx or xinit .

I have spent days on 4.* kernels; I give up.

I will put the opi directly behind the LCD using two 90° headers.

I don't need touchpad, so I give up on this accessory.

So, this LCD can do what I need. Just, NOT with an up-to-date distribution.

OrangePi En

Powered by Discuz! X3.4

homepage|Simple edition|Touch edition|PC