|
I got it working. Finally.
So, the screen I am using is
https://www.fasttech.com/p/5321900
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:
- # https://www.willprice.org/2017/09/16/adventures-with-tft-screens-for-raspberry-pi.html
- fb=8; for tty in {1..14}; do echo "$tty to fb $fb"; con2fbmap $tty $fb; sleep 1; done
- # Check your FB number with this:
- # dmesg | grep fb_ili9486 | grep graphics
Copy code
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. |
|