likeablob / macmini

Mac(intosh) mini
25 stars 3 forks source link

Armbian Bionic #14

Closed pmar146 closed 3 years ago

pmar146 commented 4 years ago

Hi Mr Likeablob, Can you tell me where you got your copy of Armbian Bionic? I can only find the minimal version of it and am having trouble with the WiringOP-Zero. I eventually got the H3 board instead and everything installs OK and runs properly through the HDMI, but I can’t get the GPIO pins to operate properly.

I think it is to do with the WiringOP-Zero install not working properly on my Pi.

Cheers Pmar146

likeablob commented 4 years ago

Hi @pmar146 san, How have you been?

My copy of Armbian Bionic came from the official site. Let me share the details.

$ uname -a
Linux opiz2b 4.19.57-sunxi #5.90 SMP Fri Jul 5 17:58:43 CEST 2019 armv7l armv7l armv7l GNU/Linux  

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.2 LTS
Release:    18.04
Codename:   bionic

Could you share what you got during WiringOP-Zero installation? https://github.com/xpertsavenue/WiringOP-Zero

pmar146 commented 4 years ago

Hi Likeablob, I have been well and hope you are too. A lot of the delays in my project have been to shipping delays during Covid, but we are getting there. So I got the Armbian Bionic from the official site too, but they only seem to offer a minimal version at the armbian site. Hence VI text editor isn't installed natively and even "Make" has to be installed natively. I notice there are a lot of dependancies missing to do the xpertsavenue/WiringOP-Zero. I added some, but am not sure if I am missing more.

Here are my details of the armbian install minimac@orangepizeroplus2-h3:~$ uname -a Linux orangepizeroplus2-h3 5.4.45-sunxi #20.05.3 SMP Wed Jun 10 12:09:20 CEST 2020 armv7l armv7l armv7l GNU/Linux minimac@orangepizeroplus2-h3:~$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 18.04.4 LTS Release: 18.04 Codename: bionic minimac@orangepizeroplus2-h3:~$

AndI try to do a install on the WiringOP-Zero: minimac@orangepizeroplus2-h3:~$ cd WiringOP-Zero minimac@orangepizeroplus2-h3:~/WiringOP-Zero$ chmod +x ./build minimac@orangepizeroplus2-h3:~/WiringOP-Zero$ sudo ./build [sudo] password for minimac: ./build: 4: ./build: [[: not found wiringPi Build script

WiringPi Library [UnInstall] make: Nothing to be done for 'all'. [Install Headers] [Install Dynamic Lib]

WiringPi Devices Library [UnInstall] make: Nothing to be done for 'all'. [Install Headers] [Install Dynamic Lib]

GPIO Utility make: Nothing to be done for 'all'. [Install]

All Done.

NOTE: To compile programs with wiringBP v2, you need to add: -lwiringPi to your compile line(s) To use the Gertboard, MaxDetect, etc. code (the devLib), you need to also add: -lwiringPiDev to your compile line(s).

I also note that my paced produces a different index:1 to yours minimac@orangepizeroplus2-h3:~/WiringOP-Zero$ pacmd list-sinks | grep -e 'name:' -e 'index:' index: 0 name:

pmar146 commented 4 years ago

The Pi starts and loads MiniVMac through the HDMI cable perfectly albeit without sound, but I just have to find a way to send it all through the GPIO pins.

This is an awesome project though. I have learnt so much by doing it.

Thank you for all your help.

pmar146 commented 4 years ago

I should mention, That I now have the lcd lighting up when I turn on the pi, but still nothing is outputted to the screen,

I feel that the outputs are just not turned on to the gpio pins. Although, we are outputting volts to turn on the screen.

Pmar146

likeablob commented 4 years ago

Hi @pmar146 Yeah, the minimal version is fine, I guess. (Oh, nice, I just noticed they have released Armbian Forcal.)

./build: 4: ./build: [[: not found

Hmm, that's weird. But at least the output related to GPIO Utility (gpio command) looks fine. Internally, this project uses that command just for reading the GPIO state of the push switch at PA06. In other words, LCD and Audio outputs does not depend on WiringPi-Zero.

$ gpio readall
+-----+-----+----------+------+--Orange Pi Zero--+------+----------+-----+-----+
| H2+ | wPi |   Name   | Mode | V | Physical | V | Mode | Name     | wPi | H2+ |
+-----+-----+----------+------+---+----++----+---+------+----------+-----+-----+
|     |     |     3.3v |      |   |  1 || 2  |   |      | 5v       |     |     |
|  12 |   8 |    SDA.0 |  OUT | 1 |  3 || 4  |   |      | 5V       |     |     |
|  11 |   9 |    SCL.0 |  OUT | 1 |  5 || 6  |   |      | 0v       |     |     |
|   6 |   7 |   GPIO.7 |   IN | 1 |  7 || 8  | 0 | ALT5 | TxD3     | 15  | 198 |
|     |     |       0v |      |   |  9 || 10 | 0 | ALT5 | RxD3     | 16  | 199 |
|   1 |   0 |     RxD2 | ALT3 | 0 | 11 || 12 | 0 | ALT3 | GPIO.1   | 1   | 7   |
|   0 |   2 |     TxD2 | ALT3 | 0 | 13 || 14 |   |      | 0v       |     |     |
|   3 |   3 |     CTS2 | ALT3 | 0 | 15 || 16 | 0 | ALT3 | GPIO.4   | 4   | 19  |
|     |     |     3.3v |      |   | 17 || 18 | 0 | ALT3 | GPIO.5   | 5   | 18  |
|  15 |  12 |     MOSI | ALT5 | 0 | 19 || 20 |   |      | 0v       |     |     |
|  16 |  13 |     MISO | ALT5 | 0 | 21 || 22 | 0 | ALT3 | RTS2     | 6   | 2   |
|  14 |  14 |     SCLK | ALT5 | 0 | 23 || 24 | 0 | ALT5 | CE0      | 10  | 13  |
|     |     |       0v |      |   | 25 || 26 | 0 | ALT3 | GPIO.11  | 11  | 10  |
+-----+-----+----------+------+---+---LEDs---+---+------+----------+-----+-----+
|  17 |  30 | STAT-LED |  OUT | 0 | 27 || 28 |   |      | PWR-LED  |     |     |
+-----+-----+----------+------+---+-----+----+---+------+----------+-----+-----+
| H2+ | wPi |   Name   | Mode | V | Physical | V | Mode | Name     | wPi | H2+ |
+-----+-----+----------+------+--Orange Pi Zero--+---+------+---------+-----+--+

# You can check the wiring as follows;
$ gpio read 7
1
$ gpio read 7
0 # It should read 0 during pushing the switch

That I now have the lcd lighting up when I turn on the pi, but still nothing is outputted to the screen,

OK, could you check the following points w/o HDMI?

# Are the required kernel modules loaded properly?
$ lsmod | grep fb
fb_ili9340             16384  2
fbtft_device           40960  0
fbtft                  28672  2 fbtft_device,fb_ili9340

# Is Xorg running?
$ pgrep -af X
823 /usr/lib/xorg/Xorg :0 -nolisten tcp vt7
1057 /bin/sh -l -c /etc/X11/Xsession
9924 Xtightvnc :1 -desktop X -auth /home/user/.Xauthority -geometry 320x240 -depth 24 -rfbwait 120000 -rfbauth ...

# Is spidev configured correctly? 
$ cat /boot/armbianEnv.txt
...
overlays=spi-spidev analog-codec usbhost2 usbhost3
param_spidev_spi_bus=1

# Is fbtft configured correctly?
$ cat /etc/modprobe.d/fbtft.conf 
options fbtft_device custom name=fb_ili9340 gpios=dc:11,reset:12 speed=64000000 busnum=1 rotate=270 bgr=1

# If these points are OK, you may want to check the wiring with your DMM.
pmar146 commented 4 years ago

Hi Likeablob, I see there is a problem with the WiringPI and also the command for the kernel modules came up with noting on my pi. I reckon that this should be the problem? What do you think?

minimac@orangepizeroplus2-h3:~$ gpio read 7

gpio: error while loading shared libraries: /usr/local/lib/libwiringPi.so: file too short

minimac@orangepizeroplus2-h3:~$ lsmod | grep fb

minimac@orangepizeroplus2-h3:~$

minimac@orangepizeroplus2-h3:~$ pgrep -af X

740 /usr/lib/xorg/Xorg :0 -nolisten tcp vt7

1157 /bin/sh -l -c /etc/X11/Xsession

1381 Xtightvnc :1 -desktop X -auth /home/minimac/.Xauthority -geometry 512x384 -depth 24 -rfbwait 120000 -rfbauth /home/minimac/.vnc/passwd -rfbport 5901 -fp /usr/share/fonts/X11/misc/,/usr/share/fonts/X11/Type1/,/usr/share/fonts/X11/75dpi/,/usr/share/fonts/X11/100dpi/ -co /etc/X11/rgb

minimac@orangepizeroplus2-h3:~$ cat /boot/armbianEnv.txt

verbosity=1

logo=disabled

console=both

disp_mode=1920x1080p60

overlay_prefix=sun8i-h3

overlays=spi-spidev analog-codec usbhost2 usbhost3

rootdev=UUID=fcbc9174-45c2-4540-a9bd-277840a614e1

rootfstype=ext4

param_spidev_spi_bus=1

usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u

minimac@orangepizeroplus2-h3:~$ cat /etc/modprobe.d/fbtft.conf

options fbtft_device custom name=fb_ili9340 gpios=dc:11,reset:12 speed=64000000 busnum=1 rotate=270 bgr=1

minimac@orangepizeroplus2-h3:~$ lsmod | grep fb

The rest looks about right. Cheers PMAR146


From: likeablob notifications@github.com Sent: Sunday, 26 July 2020 11:43 PM To: likeablob/macmini macmini@noreply.github.com Cc: Patrick Martin PatrickMartin@envoi.com.au; Mention mention@noreply.github.com Subject: Re: [likeablob/macmini] Armbian Bionic (#14)

Hi @pmar146https://github.com/pmar146 Yeah, the minimal version is fine, I guess. (Oh, nice, I just noticed they have released Armbian Forcal.)

./build: 4: ./build: [[: not found

Hmm, that's weird. But at least the output related to GPIO Utility (gpio command) looks fine. Internally, this project uses that command just for reading the GPIO state of the push switch at PA06. In other words, LCD and Audio outputs does not depend on WiringPi-Zero.

$ gpio readall +-----+-----+----------+------+--Orange Pi Zero--+------+----------+-----+-----+ | H2+ | wPi | Name | Mode | V | Physical | V | Mode | Name | wPi | H2+ | +-----+-----+----------+------+---+----++----+---+------+----------+-----+-----+ | | | 3.3v | | | 1 || 2 | | | 5v | | | | 12 | 8 | SDA.0 | OUT | 1 | 3 || 4 | | | 5V | | | | 11 | 9 | SCL.0 | OUT | 1 | 5 || 6 | | | 0v | | | | 6 | 7 | GPIO.7 | IN | 1 | 7 || 8 | 0 | ALT5 | TxD3 | 15 | 198 | | | | 0v | | | 9 || 10 | 0 | ALT5 | RxD3 | 16 | 199 | | 1 | 0 | RxD2 | ALT3 | 0 | 11 || 12 | 0 | ALT3 | GPIO.1 | 1 | 7 | | 0 | 2 | TxD2 | ALT3 | 0 | 13 || 14 | | | 0v | | | | 3 | 3 | CTS2 | ALT3 | 0 | 15 || 16 | 0 | ALT3 | GPIO.4 | 4 | 19 | | | | 3.3v | | | 17 || 18 | 0 | ALT3 | GPIO.5 | 5 | 18 | | 15 | 12 | MOSI | ALT5 | 0 | 19 || 20 | | | 0v | | | | 16 | 13 | MISO | ALT5 | 0 | 21 || 22 | 0 | ALT3 | RTS2 | 6 | 2 | | 14 | 14 | SCLK | ALT5 | 0 | 23 || 24 | 0 | ALT5 | CE0 | 10 | 13 | | | | 0v | | | 25 || 26 | 0 | ALT3 | GPIO.11 | 11 | 10 | +-----+-----+----------+------+---+---LEDs---+---+------+----------+-----+-----+ | 17 | 30 | STAT-LED | OUT | 0 | 27 || 28 | | | PWR-LED | | | +-----+-----+----------+------+---+-----+----+---+------+----------+-----+-----+ | H2+ | wPi | Name | Mode | V | Physical | V | Mode | Name | wPi | H2+ | +-----+-----+----------+------+--Orange Pi Zero--+---+------+---------+-----+--+

You can ensure the wiring as follows;

$ gpio read 7 1 $ gpio read 7 0 # While pushing the switch

That I now have the lcd lighting up when I turn on the pi, but still nothing is outputted to the screen, OK, could you check the following points w/o HDMI?

Are the required kernel modules loaded properly?

$ lsmod | grep fb fb_ili9340 16384 2 fbtft_device 40960 0 fbtft 28672 2 fbtft_device,fb_ili9340

Is Xorg running?

$ pgrep -af X 823 /usr/lib/xorg/Xorg :0 -nolisten tcp vt7 1057 /bin/sh -l -c /etc/X11/Xsession 9924 Xtightvnc :1 -desktop X -auth /home/user/.Xauthority -geometry 320x240 -depth 24 -rfbwait 120000 -rfbauth ...

Is spidev configured correctly?

$ cat /boot/armbianEnv.txt overlays=spi-spidev analog-codec usbhost2 usbhost3 param_spidev_spi_bus=1

Is fbtft configured correctly?

$ cat /etc/modprobe.d/fbtft.conf options fbtft_device custom name=fb_ili9340 gpios=dc:11,reset:12 speed=64000000 busnum=1 rotate=270 bgr=1

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/likeablob/macmini/issues/14#issuecomment-663989758, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AOG6QL523L4LCN3WR53PJT3R5QXITANCNFSM4OXU5S3Q.

CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.

likeablob commented 4 years ago

Hi @pmar146

gpio: error while loading shared libraries: /usr/local/lib/libwiringPi.so: file too short

For this, what will you get from the following?

$ ls -hl  /usr/local/lib/libwiringPi.so*

# Or you may want to reinstall WiringPi with bash
$ sudo apt install bash
$ sudo bash ./build

(BTW, you can create a code block by surrounding your texts with ```

minimac@orangepizeroplus2-h3:~$ lsmod | grep fb

Hmm, can you try loading the module manually?

$ sudo modprobe fbtft
$ dmesg | tail -n 20 
# What kind of output do you get?

# Is your minimac configured to load the module automatically?
$ cat /etc/modules-load.d/fbtft.conf 
# If not,
$ echo fbtft_device | sudo tee /etc/modules-load.d/fbtft.conf
$ sudo reboot now
pmar146 commented 4 years ago

Hi Likeablob For $ ls -hl /usr/local/lib/libwiringPi.so*

I get: "lrwxrwxrwx 1 root root 18 Jul 24 16:41 /usr/local/lib/libwiringPi.so -> libwiringPi.so.2.0 -rw-r--r-- 1 root root 0 Jul 24 16:41 /usr/local/lib/libwiringPi.so.2.0"

and I can load the module manually it would seem

minimac@orangepizeroplus2-h3:~$ dmesg | tail -n 20 "[ 6.853950] brcmfmac mmc2:0001:1: Direct firmware load for brcm/brcmfmac43430-sdio.xunlong,orangepi-zero-plus2-h3.txt failed with error -2 [ 6.853968] brcmfmac mmc2:0001:1: Falling back to sysfs fallback for: brcm/brcmfmac43430-sdio.xunlong,orangepi-zero-plus2-h3.txt [ 7.017528] asoc-simple-card sound: i2s-hifi <-> 1c22800.i2s mapping ok [ 7.197968] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1 [ 7.201731] brcmfmac: brcmf_c_process_clm_blob: no clm_blob available (err=-11), device may have limited channels available [ 7.203115] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM43430/1 wl0: Mar 30 2016 11:30:56 version 7.45.77.h8.4 FWID 01-ee8a6268 [ 7.793683] Adding 252244k swap on /dev/zram1. Priority:5 extents:1 across:252244k SSFS [ 7.961604] zram0: detected capacity change from 0 to 52428800 [ 10.054347] systemd[1]: Started Armbian ZRAM config. [ 10.060735] systemd[1]: Starting Armbian memory supported logging... [ 10.158715] EXT4-fs (zram0): mounted filesystem without journal. Opts: discard [ 10.158769] ext4 filesystem being mounted at /var/log supports timestamps until 2038 (0x7fffffff) [ 11.048929] systemd[1]: Started Armbian memory supported logging. [ 11.057926] systemd[1]: Starting Journal Service... [ 11.216283] systemd[1]: Started Journal Service. [ 11.255253] systemd-journald[530]: Received request to flush runtime journal from PID 1 [ 12.072188] random: crng init done [ 12.072205] random: 7 urandom warning(s) missed due to ratelimiting [ 15.515492] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready [ 909.868593] fbtft: module is from the staging directory, the quality is unknown, you have been warned."

I am still getting a blank screen. Maybe it is a dud screen.

Do you think the minimal install would work on Armbian Focal? Maybe a more complete OS would be the solution here.

Cheers PMAR146

pmar146 commented 4 years ago

Amazingly:


1```
now works,
but if I hold the switch in, it still reads 1. Maybe I have a dud switch. What sort of switch do you have?
The Gpios must be doing something as I have volts coming out of them. 

What are your thoughts?
pmar146 commented 4 years ago

I have been looking at this a lot. I have checked all my wiring with a resistance meter and that all seems to test out. I think I don’t have all the required kernels.

‘ lsmod | grep fb‘ Returns nothing. I just get a command prompt.

likeablob commented 4 years ago

Hi :hand: @pmar146,

pmar146 commented 4 years ago

Hi Likeablob, I have checked all my wiring and downgraded the kernel to the same one as you. Amazingly I am finally getting some results from the commands above which are similar to yours. The push switch works. The LCD lights up, but nothing appears on it.

These are the answers to the checks you requested in a previous post. minimac@orangepizeroplus2-h3:~$ gpio readall +-----+-----+----------+------+--Orange Pi Zero--+------+----------+-----+-----+ | H2+ | wPi | Name | Mode | V | Physical | V | Mode | Name | wPi | H2+ | +-----+-----+----------+------+---+----++----+---+------+----------+-----+-----+ | | | 3.3v | | | 1 || 2 | | | 5v | | | | 12 | 8 | SDA.0 | OUT | 1 | 3 || 4 | | | 5V | | | | 11 | 9 | SCL.0 | OUT | 1 | 5 || 6 | | | 0v | | | | 6 | 7 | GPIO.7 | IN | 1 | 7 || 8 | 0 | ALT5 | TxD3 | 15 | 198 | | | | 0v | | | 9 || 10 | 0 | ALT5 | RxD3 | 16 | 199 | | 1 | 0 | RxD2 | ALT3 | 0 | 11 || 12 | 0 | ALT3 | GPIO.1 | 1 | 7 | | 0 | 2 | TxD2 | ALT3 | 0 | 13 || 14 | | | 0v | | | | 3 | 3 | CTS2 | ALT3 | 0 | 15 || 16 | 0 | ALT3 | GPIO.4 | 4 | 19 | | | | 3.3v | | | 17 || 18 | 0 | ALT3 | GPIO.5 | 5 | 18 | | 15 | 12 | MOSI | ALT5 | 0 | 19 || 20 | | | 0v | | | | 16 | 13 | MISO | ALT5 | 0 | 21 || 22 | 0 | ALT3 | RTS2 | 6 | 2 | | 14 | 14 | SCLK | ALT5 | 0 | 23 || 24 | 0 | ALT5 | CE0 | 10 | 13 | | | | 0v | | | 25 || 26 | 0 | ALT3 | GPIO.11 | 11 | 10 | +-----+-----+----------+------+---+---LEDs---+---+------+----------+-----+-----+ | 17 | 30 | STAT-LED | OUT | 0 | 27 || 28 | | | PWR-LED | | | +-----+-----+----------+------+---+-----+----+---+------+----------+-----+-----+ | H2+ | wPi | Name | Mode | V | Physical | V | Mode | Name | wPi | H2+ | +-----+-----+----------+------+--Orange Pi Zero--+---+------+---------+-----+--+ minimac@orangepizeroplus2-h3:~$ lsmod | grep fb fb_ili9340 16384 1 fbtft_device 40960 0 fbtft 28672 2 fbtft_device,fb_ili9340 minimac@orangepizeroplus2-h3:~$ Is Xorg running? -bash: Is: command not found minimac@orangepizeroplus2-h3:~$ pgrep -af X 741 /usr/lib/xorg/Xorg :0 -nolisten tcp vt7 1252 /bin/sh -l -c /etc/X11/Xsession 1412 Xtightvnc :1 -desktop X -auth /home/minimac/.Xauthority -geometry 512x384 -depth 24 -rfbwait 120000 -rfbauth /home/minimac/.vnc/passwd -rfbport 5901 -fp /usr/share/fonts/X11/misc/,/usr/share/fonts/X11/Type1/,/usr/share/fonts/X11/75dpi/,/usr/share/fonts/X11/100dpi/ -co /etc/X11/rgb minimac@orangepizeroplus2-h3:~$ cat /boot/armbianEnv.txt verbosity=1 logo=disabled console=both disp_mode=1920x1080p60 overlay_prefix=sun8i-h3 overlays=spi-spidev analog-codec usbhost2 usbhost3 rootdev=UUID=fcbc9174-45c2-4540-a9bd-277840a614e1 rootfstype=ext4 param_spidev_spi_bus=1 extraargs="fbcon=map:8" usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u minimac@orangepizeroplus2-h3:~$ cat /etc/modprobe.d/fbtft.conf options fbtft_device custom name=fb_ili9340 gpios=dc:11,reset:12 speed=64000000 busnum=1 rotate=270 bgr=1 minimac@orangepizeroplus2-h3:~$ I hope that comes through nicely. I still haven't mastered the code block yet.

Cheers Pmar146

pmar146 commented 4 years ago

Hi Likeablob, I have checked all my wiring and downgraded the kernel to the same one as you. Amazingly I am finally getting some results from the commands above which are similar to yours. The push switch works. The LCD lights up, but nothing appears on it.

These are the answers to the checks you requested in a previous post. minimac@orangepizeroplus2-h3:~$ gpio readall +-----+-----+----------+------+--Orange Pi Zero--+------+----------+-----+-----+ | H2+ | wPi | Name | Mode | V | Physical | V | Mode | Name | wPi | H2+ | +-----+-----+----------+------+---+----++----+---+------+----------+-----+-----+ | | | 3.3v | | | 1 || 2 | | | 5v | | | | 12 | 8 | SDA.0 | OUT | 1 | 3 || 4 | | | 5V | | | | 11 | 9 | SCL.0 | OUT | 1 | 5 || 6 | | | 0v | | | | 6 | 7 | GPIO.7 | IN | 1 | 7 || 8 | 0 | ALT5 | TxD3 | 15 | 198 | | | | 0v | | | 9 || 10 | 0 | ALT5 | RxD3 | 16 | 199 | | 1 | 0 | RxD2 | ALT3 | 0 | 11 || 12 | 0 | ALT3 | GPIO.1 | 1 | 7 | | 0 | 2 | TxD2 | ALT3 | 0 | 13 || 14 | | | 0v | | | | 3 | 3 | CTS2 | ALT3 | 0 | 15 || 16 | 0 | ALT3 | GPIO.4 | 4 | 19 | | | | 3.3v | | | 17 || 18 | 0 | ALT3 | GPIO.5 | 5 | 18 | | 15 | 12 | MOSI | ALT5 | 0 | 19 || 20 | | | 0v | | | | 16 | 13 | MISO | ALT5 | 0 | 21 || 22 | 0 | ALT3 | RTS2 | 6 | 2 | | 14 | 14 | SCLK | ALT5 | 0 | 23 || 24 | 0 | ALT5 | CE0 | 10 | 13 | | | | 0v | | | 25 || 26 | 0 | ALT3 | GPIO.11 | 11 | 10 | +-----+-----+----------+------+---+---LEDs---+---+------+----------+-----+-----+ | 17 | 30 | STAT-LED | OUT | 0 | 27 || 28 | | | PWR-LED | | | +-----+-----+----------+------+---+-----+----+---+------+----------+-----+-----+ | H2+ | wPi | Name | Mode | V | Physical | V | Mode | Name | wPi | H2+ | +-----+-----+----------+------+--Orange Pi Zero--+---+------+---------+-----+--+ minimac@orangepizeroplus2-h3:~$ lsmod | grep fb fb_ili9340 16384 1 fbtft_device 40960 0 fbtft 28672 2 fbtft_device,fb_ili9340 minimac@orangepizeroplus2-h3:~$ Is Xorg running? -bash: Is: command not found minimac@orangepizeroplus2-h3:~$ pgrep -af X 741 /usr/lib/xorg/Xorg :0 -nolisten tcp vt7 1252 /bin/sh -l -c /etc/X11/Xsession 1412 Xtightvnc :1 -desktop X -auth /home/minimac/.Xauthority -geometry 512x384 -depth 24 -rfbwait 120000 -rfbauth /home/minimac/.vnc/passwd -rfbport 5901 -fp /usr/share/fonts/X11/misc/,/usr/share/fonts/X11/Type1/,/usr/share/fonts/X11/75dpi/,/usr/share/fonts/X11/100dpi/ -co /etc/X11/rgb minimac@orangepizeroplus2-h3:~$ cat /boot/armbianEnv.txt verbosity=1 logo=disabled console=both disp_mode=1920x1080p60 overlay_prefix=sun8i-h3 overlays=spi-spidev analog-codec usbhost2 usbhost3 rootdev=UUID=fcbc9174-45c2-4540-a9bd-277840a614e1 rootfstype=ext4 param_spidev_spi_bus=1 extraargs="fbcon=map:8" usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u minimac@orangepizeroplus2-h3:~$ cat /etc/modprobe.d/fbtft.conf options fbtft_device custom name=fb_ili9340 gpios=dc:11,reset:12 speed=64000000 busnum=1 rotate=270 bgr=1 minimac@orangepizeroplus2-h3:~$ I hope that comes through nicely. I still haven't mastered the code block yet.

Cheers Pmar146

pmar146 commented 4 years ago

Hi Likeablob, I have checked all my wiring and downgraded the kernel to the same one as you. Amazingly I am finally getting some results from the commands above which are similar to yours. The push switch works. The LCD lights up, but nothing appears on it.

These are the answers to the checks you requested in a previous post. minimac@orangepizeroplus2-h3:~$ gpio readall +-----+-----+----------+------+--Orange Pi Zero--+------+----------+-----+-----+ | H2+ | wPi | Name | Mode | V | Physical | V | Mode | Name | wPi | H2+ | +-----+-----+----------+------+---+----++----+---+------+----------+-----+-----+ | | | 3.3v | | | 1 || 2 | | | 5v | | | | 12 | 8 | SDA.0 | OUT | 1 | 3 || 4 | | | 5V | | | | 11 | 9 | SCL.0 | OUT | 1 | 5 || 6 | | | 0v | | | | 6 | 7 | GPIO.7 | IN | 1 | 7 || 8 | 0 | ALT5 | TxD3 | 15 | 198 | | | | 0v | | | 9 || 10 | 0 | ALT5 | RxD3 | 16 | 199 | | 1 | 0 | RxD2 | ALT3 | 0 | 11 || 12 | 0 | ALT3 | GPIO.1 | 1 | 7 | | 0 | 2 | TxD2 | ALT3 | 0 | 13 || 14 | | | 0v | | | | 3 | 3 | CTS2 | ALT3 | 0 | 15 || 16 | 0 | ALT3 | GPIO.4 | 4 | 19 | | | | 3.3v | | | 17 || 18 | 0 | ALT3 | GPIO.5 | 5 | 18 | | 15 | 12 | MOSI | ALT5 | 0 | 19 || 20 | | | 0v | | | | 16 | 13 | MISO | ALT5 | 0 | 21 || 22 | 0 | ALT3 | RTS2 | 6 | 2 | | 14 | 14 | SCLK | ALT5 | 0 | 23 || 24 | 0 | ALT5 | CE0 | 10 | 13 | | | | 0v | | | 25 || 26 | 0 | ALT3 | GPIO.11 | 11 | 10 | +-----+-----+----------+------+---+---LEDs---+---+------+----------+-----+-----+ | 17 | 30 | STAT-LED | OUT | 0 | 27 || 28 | | | PWR-LED | | | +-----+-----+----------+------+---+-----+----+---+------+----------+-----+-----+ | H2+ | wPi | Name | Mode | V | Physical | V | Mode | Name | wPi | H2+ | +-----+-----+----------+------+--Orange Pi Zero--+---+------+---------+-----+--+ minimac@orangepizeroplus2-h3:~$ lsmod | grep fb fb_ili9340 16384 1 fbtft_device 40960 0 fbtft 28672 2 fbtft_device,fb_ili9340 minimac@orangepizeroplus2-h3:~$ Is Xorg running? -bash: Is: command not found minimac@orangepizeroplus2-h3:~$ pgrep -af X 741 /usr/lib/xorg/Xorg :0 -nolisten tcp vt7 1252 /bin/sh -l -c /etc/X11/Xsession 1412 Xtightvnc :1 -desktop X -auth /home/minimac/.Xauthority -geometry 512x384 -depth 24 -rfbwait 120000 -rfbauth /home/minimac/.vnc/passwd -rfbport 5901 -fp /usr/share/fonts/X11/misc/,/usr/share/fonts/X11/Type1/,/usr/share/fonts/X11/75dpi/,/usr/share/fonts/X11/100dpi/ -co /etc/X11/rgb minimac@orangepizeroplus2-h3:~$ cat /boot/armbianEnv.txt verbosity=1 logo=disabled console=both disp_mode=1920x1080p60 overlay_prefix=sun8i-h3 overlays=spi-spidev analog-codec usbhost2 usbhost3 rootdev=UUID=fcbc9174-45c2-4540-a9bd-277840a614e1 rootfstype=ext4 param_spidev_spi_bus=1 extraargs="fbcon=map:8" usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u minimac@orangepizeroplus2-h3:~$ cat /etc/modprobe.d/fbtft.conf options fbtft_device custom name=fb_ili9340 gpios=dc:11,reset:12 speed=64000000 busnum=1 rotate=270 bgr=1 minimac@orangepizeroplus2-h3:~$ I hope that comes through nicely. I still haven't mastered the code block yet.

Cheers Pmar146

pmar146 commented 4 years ago

Hi Likeablob, I have checked all my wiring and downgraded the kernel to the same one as you. Amazingly I am finally getting some results from the commands above which are similar to yours. The push switch works. The LCD lights up, but nothing appears on it.

These are the answers to the checks you requested in a previous post.

+-----+-----+----------+------+--Orange Pi Zero--+------+----------+-----+-----+
| H2+ | wPi |   Name   | Mode | V | Physical | V | Mode | Name     | wPi | H2+ |
+-----+-----+----------+------+---+----++----+---+------+----------+-----+-----+
|     |     |     3.3v |      |   |  1 || 2  |   |      | 5v       |     |     |
|  12 |   8 |    SDA.0 |  OUT | 1 |  3 || 4  |   |      | 5V       |     |     |
|  11 |   9 |    SCL.0 |  OUT | 1 |  5 || 6  |   |      | 0v       |     |     |
|   6 |   7 |   GPIO.7 |   IN | 1 |  7 || 8  | 0 | ALT5 | TxD3     | 15  | 198 |
|     |     |       0v |      |   |  9 || 10 | 0 | ALT5 | RxD3     | 16  | 199 |
|   1 |   0 |     RxD2 | ALT3 | 0 | 11 || 12 | 0 | ALT3 | GPIO.1   | 1   | 7   |
|   0 |   2 |     TxD2 | ALT3 | 0 | 13 || 14 |   |      | 0v       |     |     |
|   3 |   3 |     CTS2 | ALT3 | 0 | 15 || 16 | 0 | ALT3 | GPIO.4   | 4   | 19  |
|     |     |     3.3v |      |   | 17 || 18 | 0 | ALT3 | GPIO.5   | 5   | 18  |
|  15 |  12 |     MOSI | ALT5 | 0 | 19 || 20 |   |      | 0v       |     |     |
|  16 |  13 |     MISO | ALT5 | 0 | 21 || 22 | 0 | ALT3 | RTS2     | 6   | 2   |
|  14 |  14 |     SCLK | ALT5 | 0 | 23 || 24 | 0 | ALT5 | CE0      | 10  | 13  |
|     |     |       0v |      |   | 25 || 26 | 0 | ALT3 | GPIO.11  | 11  | 10  |
+-----+-----+----------+------+---+---LEDs---+---+------+----------+-----+-----+
|  17 |  30 | STAT-LED |  OUT | 0 | 27 || 28 |   |      | PWR-LED  |     |     |
+-----+-----+----------+------+---+-----+----+---+------+----------+-----+-----+
| H2+ | wPi |   Name   | Mode | V | Physical | V | Mode | Name     | wPi | H2+ |
+-----+-----+----------+------+--Orange Pi Zero--+---+------+---------+-----+--+
minimac@orangepizeroplus2-h3:~$ lsmod | grep fb
fb_ili9340             16384  1
fbtft_device           40960  0
fbtft                  28672  2 fbtft_device,fb_ili9340
minimac@orangepizeroplus2-h3:~$ Is Xorg running?
-bash: Is: command not found
minimac@orangepizeroplus2-h3:~$ pgrep -af X
741 /usr/lib/xorg/Xorg :0 -nolisten tcp vt7
1252 /bin/sh -l -c /etc/X11/Xsession
1412 Xtightvnc :1 -desktop X -auth /home/minimac/.Xauthority -geometry 512x384 -depth 24 -rfbwait 120000 -rfbauth /home/minimac/.vnc/passwd -rfbport 5901 -fp /usr/share/fonts/X11/misc/,/usr/share/fonts/X11/Type1/,/usr/share/fonts/X11/75dpi/,/usr/share/fonts/X11/100dpi/ -co /etc/X11/rgb
minimac@orangepizeroplus2-h3:~$ cat /boot/armbianEnv.txt
verbosity=1
logo=disabled
console=both
disp_mode=1920x1080p60
overlay_prefix=sun8i-h3
overlays=spi-spidev analog-codec usbhost2 usbhost3
rootdev=UUID=fcbc9174-45c2-4540-a9bd-277840a614e1
rootfstype=ext4
param_spidev_spi_bus=1
extraargs="fbcon=map:8"
usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u
minimac@orangepizeroplus2-h3:~$ cat /etc/modprobe.d/fbtft.conf 
options fbtft_device custom name=fb_ili9340 gpios=dc:11,reset:12 speed=64000000 busnum=1 rotate=270 bgr=1
minimac@orangepizeroplus2-h3:~$ 

I hope that comes through nicely. I still haven't mastered the code block yet.

Cheers Pmar146

pmar146 commented 4 years ago

Hi Likeablob, I have checked all my wiring and downgraded the kernel to the same one as you. Amazingly I am finally getting some results from the commands above which are similar to yours. The push switch works. The LCD lights up, but nothing appears on it.

These are the answers to the checks you requested in a previous post.

+-----+-----+----------+------+--Orange Pi Zero--+------+----------+-----+-----+
| H2+ | wPi |   Name   | Mode | V | Physical | V | Mode | Name     | wPi | H2+ |
+-----+-----+----------+------+---+----++----+---+------+----------+-----+-----+
|     |     |     3.3v |      |   |  1 || 2  |   |      | 5v       |     |     |
|  12 |   8 |    SDA.0 |  OUT | 1 |  3 || 4  |   |      | 5V       |     |     |
|  11 |   9 |    SCL.0 |  OUT | 1 |  5 || 6  |   |      | 0v       |     |     |
|   6 |   7 |   GPIO.7 |   IN | 1 |  7 || 8  | 0 | ALT5 | TxD3     | 15  | 198 |
|     |     |       0v |      |   |  9 || 10 | 0 | ALT5 | RxD3     | 16  | 199 |
|   1 |   0 |     RxD2 | ALT3 | 0 | 11 || 12 | 0 | ALT3 | GPIO.1   | 1   | 7   |
|   0 |   2 |     TxD2 | ALT3 | 0 | 13 || 14 |   |      | 0v       |     |     |
|   3 |   3 |     CTS2 | ALT3 | 0 | 15 || 16 | 0 | ALT3 | GPIO.4   | 4   | 19  |
|     |     |     3.3v |      |   | 17 || 18 | 0 | ALT3 | GPIO.5   | 5   | 18  |
|  15 |  12 |     MOSI | ALT5 | 0 | 19 || 20 |   |      | 0v       |     |     |
|  16 |  13 |     MISO | ALT5 | 0 | 21 || 22 | 0 | ALT3 | RTS2     | 6   | 2   |
|  14 |  14 |     SCLK | ALT5 | 0 | 23 || 24 | 0 | ALT5 | CE0      | 10  | 13  |
|     |     |       0v |      |   | 25 || 26 | 0 | ALT3 | GPIO.11  | 11  | 10  |
+-----+-----+----------+------+---+---LEDs---+---+------+----------+-----+-----+
|  17 |  30 | STAT-LED |  OUT | 0 | 27 || 28 |   |      | PWR-LED  |     |     |
+-----+-----+----------+------+---+-----+----+---+------+----------+-----+-----+
| H2+ | wPi |   Name   | Mode | V | Physical | V | Mode | Name     | wPi | H2+ |
+-----+-----+----------+------+--Orange Pi Zero--+---+------+---------+-----+--+
minimac@orangepizeroplus2-h3:~$ lsmod | grep fb
fb_ili9340             16384  1
fbtft_device           40960  0
fbtft                  28672  2 fbtft_device,fb_ili9340
minimac@orangepizeroplus2-h3:~$ Is Xorg running?
-bash: Is: command not found
minimac@orangepizeroplus2-h3:~$ pgrep -af X
741 /usr/lib/xorg/Xorg :0 -nolisten tcp vt7
1252 /bin/sh -l -c /etc/X11/Xsession
1412 Xtightvnc :1 -desktop X -auth /home/minimac/.Xauthority -geometry 512x384 -depth 24 -rfbwait 120000 -rfbauth /home/minimac/.vnc/passwd -rfbport 5901 -fp /usr/share/fonts/X11/misc/,/usr/share/fonts/X11/Type1/,/usr/share/fonts/X11/75dpi/,/usr/share/fonts/X11/100dpi/ -co /etc/X11/rgb
minimac@orangepizeroplus2-h3:~$ cat /boot/armbianEnv.txt
verbosity=1
logo=disabled
console=both
disp_mode=1920x1080p60
overlay_prefix=sun8i-h3
overlays=spi-spidev analog-codec usbhost2 usbhost3
rootdev=UUID=fcbc9174-45c2-4540-a9bd-277840a614e1
rootfstype=ext4
param_spidev_spi_bus=1
extraargs="fbcon=map:8"
usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u
minimac@orangepizeroplus2-h3:~$ cat /etc/modprobe.d/fbtft.conf 
options fbtft_device custom name=fb_ili9340 gpios=dc:11,reset:12 speed=64000000 busnum=1 rotate=270 bgr=1
minimac@orangepizeroplus2-h3:~$ 

I hope that comes through nicely. I still haven't mastered the code block yet.

Cheers Pmar146

pmar146 commented 4 years ago

Hi Likeablob, I have checked all my wiring and downgraded the kernel to the same one as you. Amazingly I am finally getting some results from the commands above which are similar to yours. The push switch works. The LCD lights up, but nothing appears on it.

These are the answers to the checks you requested in a previous post.

+-----+-----+----------+------+--Orange Pi Zero--+------+----------+-----+-----+
| H2+ | wPi |   Name   | Mode | V | Physical | V | Mode | Name     | wPi | H2+ |
+-----+-----+----------+------+---+----++----+---+------+----------+-----+-----+
|     |     |     3.3v |      |   |  1 || 2  |   |      | 5v       |     |     |
|  12 |   8 |    SDA.0 |  OUT | 1 |  3 || 4  |   |      | 5V       |     |     |
|  11 |   9 |    SCL.0 |  OUT | 1 |  5 || 6  |   |      | 0v       |     |     |
|   6 |   7 |   GPIO.7 |   IN | 1 |  7 || 8  | 0 | ALT5 | TxD3     | 15  | 198 |
|     |     |       0v |      |   |  9 || 10 | 0 | ALT5 | RxD3     | 16  | 199 |
|   1 |   0 |     RxD2 | ALT3 | 0 | 11 || 12 | 0 | ALT3 | GPIO.1   | 1   | 7   |
|   0 |   2 |     TxD2 | ALT3 | 0 | 13 || 14 |   |      | 0v       |     |     |
|   3 |   3 |     CTS2 | ALT3 | 0 | 15 || 16 | 0 | ALT3 | GPIO.4   | 4   | 19  |
|     |     |     3.3v |      |   | 17 || 18 | 0 | ALT3 | GPIO.5   | 5   | 18  |
|  15 |  12 |     MOSI | ALT5 | 0 | 19 || 20 |   |      | 0v       |     |     |
|  16 |  13 |     MISO | ALT5 | 0 | 21 || 22 | 0 | ALT3 | RTS2     | 6   | 2   |
|  14 |  14 |     SCLK | ALT5 | 0 | 23 || 24 | 0 | ALT5 | CE0      | 10  | 13  |
|     |     |       0v |      |   | 25 || 26 | 0 | ALT3 | GPIO.11  | 11  | 10  |
+-----+-----+----------+------+---+---LEDs---+---+------+----------+-----+-----+
|  17 |  30 | STAT-LED |  OUT | 0 | 27 || 28 |   |      | PWR-LED  |     |     |
+-----+-----+----------+------+---+-----+----+---+------+----------+-----+-----+
| H2+ | wPi |   Name   | Mode | V | Physical | V | Mode | Name     | wPi | H2+ |
+-----+-----+----------+------+--Orange Pi Zero--+---+------+---------+-----+--+
minimac@orangepizeroplus2-h3:~$ lsmod | grep fb
fb_ili9340             16384  1
fbtft_device           40960  0
fbtft                  28672  2 fbtft_device,fb_ili9340
minimac@orangepizeroplus2-h3:~$ Is Xorg running?
-bash: Is: command not found
minimac@orangepizeroplus2-h3:~$ pgrep -af X
741 /usr/lib/xorg/Xorg :0 -nolisten tcp vt7
1252 /bin/sh -l -c /etc/X11/Xsession
1412 Xtightvnc :1 -desktop X -auth /home/minimac/.Xauthority -geometry 512x384 -depth 24 -rfbwait 120000 -rfbauth /home/minimac/.vnc/passwd -rfbport 5901 -fp /usr/share/fonts/X11/misc/,/usr/share/fonts/X11/Type1/,/usr/share/fonts/X11/75dpi/,/usr/share/fonts/X11/100dpi/ -co /etc/X11/rgb
minimac@orangepizeroplus2-h3:~$ cat /boot/armbianEnv.txt
verbosity=1
logo=disabled
console=both
disp_mode=1920x1080p60
overlay_prefix=sun8i-h3
overlays=spi-spidev analog-codec usbhost2 usbhost3
rootdev=UUID=fcbc9174-45c2-4540-a9bd-277840a614e1
rootfstype=ext4
param_spidev_spi_bus=1
extraargs="fbcon=map:8"
usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u
minimac@orangepizeroplus2-h3:~$ cat /etc/modprobe.d/fbtft.conf 
options fbtft_device custom name=fb_ili9340 gpios=dc:11,reset:12 speed=64000000 busnum=1 rotate=270 bgr=1
minimac@orangepizeroplus2-h3:~$ 

I hope that comes through nicely. I still haven't mastered the code block yet.

Cheers Pmar146

pmar146 commented 4 years ago

Hi Likeablob, I have checked all my wiring and downgraded the kernel to the same one as you. Amazingly I am finally getting some results from the commands above which are similar to yours. The push switch works. The LCD lights up, but nothing appears on it.

These are the answers to the checks you requested in a previous post.

+-----+-----+----------+------+--Orange Pi Zero--+------+----------+-----+-----+
| H2+ | wPi |   Name   | Mode | V | Physical | V | Mode | Name     | wPi | H2+ |
+-----+-----+----------+------+---+----++----+---+------+----------+-----+-----+
|     |     |     3.3v |      |   |  1 || 2  |   |      | 5v       |     |     |
|  12 |   8 |    SDA.0 |  OUT | 1 |  3 || 4  |   |      | 5V       |     |     |
|  11 |   9 |    SCL.0 |  OUT | 1 |  5 || 6  |   |      | 0v       |     |     |
|   6 |   7 |   GPIO.7 |   IN | 1 |  7 || 8  | 0 | ALT5 | TxD3     | 15  | 198 |
|     |     |       0v |      |   |  9 || 10 | 0 | ALT5 | RxD3     | 16  | 199 |
|   1 |   0 |     RxD2 | ALT3 | 0 | 11 || 12 | 0 | ALT3 | GPIO.1   | 1   | 7   |
|   0 |   2 |     TxD2 | ALT3 | 0 | 13 || 14 |   |      | 0v       |     |     |
|   3 |   3 |     CTS2 | ALT3 | 0 | 15 || 16 | 0 | ALT3 | GPIO.4   | 4   | 19  |
|     |     |     3.3v |      |   | 17 || 18 | 0 | ALT3 | GPIO.5   | 5   | 18  |
|  15 |  12 |     MOSI | ALT5 | 0 | 19 || 20 |   |      | 0v       |     |     |
|  16 |  13 |     MISO | ALT5 | 0 | 21 || 22 | 0 | ALT3 | RTS2     | 6   | 2   |
|  14 |  14 |     SCLK | ALT5 | 0 | 23 || 24 | 0 | ALT5 | CE0      | 10  | 13  |
|     |     |       0v |      |   | 25 || 26 | 0 | ALT3 | GPIO.11  | 11  | 10  |
+-----+-----+----------+------+---+---LEDs---+---+------+----------+-----+-----+
|  17 |  30 | STAT-LED |  OUT | 0 | 27 || 28 |   |      | PWR-LED  |     |     |
+-----+-----+----------+------+---+-----+----+---+------+----------+-----+-----+
| H2+ | wPi |   Name   | Mode | V | Physical | V | Mode | Name     | wPi | H2+ |
+-----+-----+----------+------+--Orange Pi Zero--+---+------+---------+-----+--+
minimac@orangepizeroplus2-h3:~$ lsmod | grep fb
fb_ili9340             16384  1
fbtft_device           40960  0
fbtft                  28672  2 fbtft_device,fb_ili9340
minimac@orangepizeroplus2-h3:~$ Is Xorg running?
-bash: Is: command not found
minimac@orangepizeroplus2-h3:~$ pgrep -af X
741 /usr/lib/xorg/Xorg :0 -nolisten tcp vt7
1252 /bin/sh -l -c /etc/X11/Xsession
1412 Xtightvnc :1 -desktop X -auth /home/minimac/.Xauthority -geometry 512x384 -depth 24 -rfbwait 120000 -rfbauth /home/minimac/.vnc/passwd -rfbport 5901 -fp /usr/share/fonts/X11/misc/,/usr/share/fonts/X11/Type1/,/usr/share/fonts/X11/75dpi/,/usr/share/fonts/X11/100dpi/ -co /etc/X11/rgb
minimac@orangepizeroplus2-h3:~$ cat /boot/armbianEnv.txt
verbosity=1
logo=disabled
console=both
disp_mode=1920x1080p60
overlay_prefix=sun8i-h3
overlays=spi-spidev analog-codec usbhost2 usbhost3
rootdev=UUID=fcbc9174-45c2-4540-a9bd-277840a614e1
rootfstype=ext4
param_spidev_spi_bus=1
extraargs="fbcon=map:8"
usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u
minimac@orangepizeroplus2-h3:~$ cat /etc/modprobe.d/fbtft.conf 
options fbtft_device custom name=fb_ili9340 gpios=dc:11,reset:12 speed=64000000 busnum=1 rotate=270 bgr=1
minimac@orangepizeroplus2-h3:~$ 

I hope that comes through nicely. I still haven't mastered the code block yet.

Cheers Pmar146

pmar146 commented 4 years ago

Hi Likeablob, I have checked all my wiring and downgraded the kernel to the same one as you. Amazingly I am finally getting some results from the commands above which are similar to yours. The push switch works. The LCD lights up, but nothing appears on it.

These are the answers to the checks you requested in a previous post.

+-----+-----+----------+------+--Orange Pi Zero--+------+----------+-----+-----+
| H2+ | wPi |   Name   | Mode | V | Physical | V | Mode | Name     | wPi | H2+ |
+-----+-----+----------+------+---+----++----+---+------+----------+-----+-----+
|     |     |     3.3v |      |   |  1 || 2  |   |      | 5v       |     |     |
|  12 |   8 |    SDA.0 |  OUT | 1 |  3 || 4  |   |      | 5V       |     |     |
|  11 |   9 |    SCL.0 |  OUT | 1 |  5 || 6  |   |      | 0v       |     |     |
|   6 |   7 |   GPIO.7 |   IN | 1 |  7 || 8  | 0 | ALT5 | TxD3     | 15  | 198 |
|     |     |       0v |      |   |  9 || 10 | 0 | ALT5 | RxD3     | 16  | 199 |
|   1 |   0 |     RxD2 | ALT3 | 0 | 11 || 12 | 0 | ALT3 | GPIO.1   | 1   | 7   |
|   0 |   2 |     TxD2 | ALT3 | 0 | 13 || 14 |   |      | 0v       |     |     |
|   3 |   3 |     CTS2 | ALT3 | 0 | 15 || 16 | 0 | ALT3 | GPIO.4   | 4   | 19  |
|     |     |     3.3v |      |   | 17 || 18 | 0 | ALT3 | GPIO.5   | 5   | 18  |
|  15 |  12 |     MOSI | ALT5 | 0 | 19 || 20 |   |      | 0v       |     |     |
|  16 |  13 |     MISO | ALT5 | 0 | 21 || 22 | 0 | ALT3 | RTS2     | 6   | 2   |
|  14 |  14 |     SCLK | ALT5 | 0 | 23 || 24 | 0 | ALT5 | CE0      | 10  | 13  |
|     |     |       0v |      |   | 25 || 26 | 0 | ALT3 | GPIO.11  | 11  | 10  |
+-----+-----+----------+------+---+---LEDs---+---+------+----------+-----+-----+
|  17 |  30 | STAT-LED |  OUT | 0 | 27 || 28 |   |      | PWR-LED  |     |     |
+-----+-----+----------+------+---+-----+----+---+------+----------+-----+-----+
| H2+ | wPi |   Name   | Mode | V | Physical | V | Mode | Name     | wPi | H2+ |
+-----+-----+----------+------+--Orange Pi Zero--+---+------+---------+-----+--+
minimac@orangepizeroplus2-h3:~$ lsmod | grep fb
fb_ili9340             16384  1
fbtft_device           40960  0
fbtft                  28672  2 fbtft_device,fb_ili9340
minimac@orangepizeroplus2-h3:~$ Is Xorg running?
-bash: Is: command not found
minimac@orangepizeroplus2-h3:~$ pgrep -af X
741 /usr/lib/xorg/Xorg :0 -nolisten tcp vt7
1252 /bin/sh -l -c /etc/X11/Xsession
1412 Xtightvnc :1 -desktop X -auth /home/minimac/.Xauthority -geometry 512x384 -depth 24 -rfbwait 120000 -rfbauth /home/minimac/.vnc/passwd -rfbport 5901 -fp /usr/share/fonts/X11/misc/,/usr/share/fonts/X11/Type1/,/usr/share/fonts/X11/75dpi/,/usr/share/fonts/X11/100dpi/ -co /etc/X11/rgb
minimac@orangepizeroplus2-h3:~$ cat /boot/armbianEnv.txt
verbosity=1
logo=disabled
console=both
disp_mode=1920x1080p60
overlay_prefix=sun8i-h3
overlays=spi-spidev analog-codec usbhost2 usbhost3
rootdev=UUID=fcbc9174-45c2-4540-a9bd-277840a614e1
rootfstype=ext4
param_spidev_spi_bus=1
extraargs="fbcon=map:8"
usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u
minimac@orangepizeroplus2-h3:~$ cat /etc/modprobe.d/fbtft.conf 
options fbtft_device custom name=fb_ili9340 gpios=dc:11,reset:12 speed=64000000 busnum=1 rotate=270 bgr=1
minimac@orangepizeroplus2-h3:~$ 

I hope that comes through nicely. I still haven't mastered the code block yet.

Cheers Pmar146

pmar146 commented 4 years ago

Hi Likeablob, I have checked all my wiring and downgraded the kernel to the same one as you. Amazingly I am finally getting some results from the commands above which are similar to yours. The push switch works. The LCD lights up, but nothing appears on it.

These are the answers to the checks you requested in a previous post.

+-----+-----+----------+------+--Orange Pi Zero--+------+----------+-----+-----+
| H2+ | wPi |   Name   | Mode | V | Physical | V | Mode | Name     | wPi | H2+ |
+-----+-----+----------+------+---+----++----+---+------+----------+-----+-----+
|     |     |     3.3v |      |   |  1 || 2  |   |      | 5v       |     |     |
|  12 |   8 |    SDA.0 |  OUT | 1 |  3 || 4  |   |      | 5V       |     |     |
|  11 |   9 |    SCL.0 |  OUT | 1 |  5 || 6  |   |      | 0v       |     |     |
|   6 |   7 |   GPIO.7 |   IN | 1 |  7 || 8  | 0 | ALT5 | TxD3     | 15  | 198 |
|     |     |       0v |      |   |  9 || 10 | 0 | ALT5 | RxD3     | 16  | 199 |
|   1 |   0 |     RxD2 | ALT3 | 0 | 11 || 12 | 0 | ALT3 | GPIO.1   | 1   | 7   |
|   0 |   2 |     TxD2 | ALT3 | 0 | 13 || 14 |   |      | 0v       |     |     |
|   3 |   3 |     CTS2 | ALT3 | 0 | 15 || 16 | 0 | ALT3 | GPIO.4   | 4   | 19  |
|     |     |     3.3v |      |   | 17 || 18 | 0 | ALT3 | GPIO.5   | 5   | 18  |
|  15 |  12 |     MOSI | ALT5 | 0 | 19 || 20 |   |      | 0v       |     |     |
|  16 |  13 |     MISO | ALT5 | 0 | 21 || 22 | 0 | ALT3 | RTS2     | 6   | 2   |
|  14 |  14 |     SCLK | ALT5 | 0 | 23 || 24 | 0 | ALT5 | CE0      | 10  | 13  |
|     |     |       0v |      |   | 25 || 26 | 0 | ALT3 | GPIO.11  | 11  | 10  |
+-----+-----+----------+------+---+---LEDs---+---+------+----------+-----+-----+
|  17 |  30 | STAT-LED |  OUT | 0 | 27 || 28 |   |      | PWR-LED  |     |     |
+-----+-----+----------+------+---+-----+----+---+------+----------+-----+-----+
| H2+ | wPi |   Name   | Mode | V | Physical | V | Mode | Name     | wPi | H2+ |
+-----+-----+----------+------+--Orange Pi Zero--+---+------+---------+-----+--+
minimac@orangepizeroplus2-h3:~$ lsmod | grep fb
fb_ili9340             16384  1
fbtft_device           40960  0
fbtft                  28672  2 fbtft_device,fb_ili9340
minimac@orangepizeroplus2-h3:~$ Is Xorg running?
-bash: Is: command not found
minimac@orangepizeroplus2-h3:~$ pgrep -af X
741 /usr/lib/xorg/Xorg :0 -nolisten tcp vt7
1252 /bin/sh -l -c /etc/X11/Xsession
1412 Xtightvnc :1 -desktop X -auth /home/minimac/.Xauthority -geometry 512x384 -depth 24 -rfbwait 120000 -rfbauth /home/minimac/.vnc/passwd -rfbport 5901 -fp /usr/share/fonts/X11/misc/,/usr/share/fonts/X11/Type1/,/usr/share/fonts/X11/75dpi/,/usr/share/fonts/X11/100dpi/ -co /etc/X11/rgb
minimac@orangepizeroplus2-h3:~$ cat /boot/armbianEnv.txt
verbosity=1
logo=disabled
console=both
disp_mode=1920x1080p60
overlay_prefix=sun8i-h3
overlays=spi-spidev analog-codec usbhost2 usbhost3
rootdev=UUID=fcbc9174-45c2-4540-a9bd-277840a614e1
rootfstype=ext4
param_spidev_spi_bus=1
extraargs="fbcon=map:8"
usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u
minimac@orangepizeroplus2-h3:~$ cat /etc/modprobe.d/fbtft.conf 
options fbtft_device custom name=fb_ili9340 gpios=dc:11,reset:12 speed=64000000 busnum=1 rotate=270 bgr=1
minimac@orangepizeroplus2-h3:~$ 

I hope that comes through nicely. I still haven't mastered the code block yet.

Cheers Pmar146

pmar146 commented 4 years ago

Hi Likeablob, I have checked all my wiring and downgraded the kernel to the same one as you. Amazingly I am finally getting some results from the commands above which are similar to yours. The push switch works. The LCD lights up, but nothing appears on it.

These are the answers to the checks you requested in a previous post.

+-----+-----+----------+------+--Orange Pi Zero--+------+----------+-----+-----+
| H2+ | wPi |   Name   | Mode | V | Physical | V | Mode | Name     | wPi | H2+ |
+-----+-----+----------+------+---+----++----+---+------+----------+-----+-----+
|     |     |     3.3v |      |   |  1 || 2  |   |      | 5v       |     |     |
|  12 |   8 |    SDA.0 |  OUT | 1 |  3 || 4  |   |      | 5V       |     |     |
|  11 |   9 |    SCL.0 |  OUT | 1 |  5 || 6  |   |      | 0v       |     |     |
|   6 |   7 |   GPIO.7 |   IN | 1 |  7 || 8  | 0 | ALT5 | TxD3     | 15  | 198 |
|     |     |       0v |      |   |  9 || 10 | 0 | ALT5 | RxD3     | 16  | 199 |
|   1 |   0 |     RxD2 | ALT3 | 0 | 11 || 12 | 0 | ALT3 | GPIO.1   | 1   | 7   |
|   0 |   2 |     TxD2 | ALT3 | 0 | 13 || 14 |   |      | 0v       |     |     |
|   3 |   3 |     CTS2 | ALT3 | 0 | 15 || 16 | 0 | ALT3 | GPIO.4   | 4   | 19  |
|     |     |     3.3v |      |   | 17 || 18 | 0 | ALT3 | GPIO.5   | 5   | 18  |
|  15 |  12 |     MOSI | ALT5 | 0 | 19 || 20 |   |      | 0v       |     |     |
|  16 |  13 |     MISO | ALT5 | 0 | 21 || 22 | 0 | ALT3 | RTS2     | 6   | 2   |
|  14 |  14 |     SCLK | ALT5 | 0 | 23 || 24 | 0 | ALT5 | CE0      | 10  | 13  |
|     |     |       0v |      |   | 25 || 26 | 0 | ALT3 | GPIO.11  | 11  | 10  |
+-----+-----+----------+------+---+---LEDs---+---+------+----------+-----+-----+
|  17 |  30 | STAT-LED |  OUT | 0 | 27 || 28 |   |      | PWR-LED  |     |     |
+-----+-----+----------+------+---+-----+----+---+------+----------+-----+-----+
| H2+ | wPi |   Name   | Mode | V | Physical | V | Mode | Name     | wPi | H2+ |
+-----+-----+----------+------+--Orange Pi Zero--+---+------+---------+-----+--+
minimac@orangepizeroplus2-h3:~$ lsmod | grep fb
fb_ili9340             16384  1
fbtft_device           40960  0
fbtft                  28672  2 fbtft_device,fb_ili9340
minimac@orangepizeroplus2-h3:~$ Is Xorg running?
-bash: Is: command not found
minimac@orangepizeroplus2-h3:~$ pgrep -af X
741 /usr/lib/xorg/Xorg :0 -nolisten tcp vt7
1252 /bin/sh -l -c /etc/X11/Xsession
1412 Xtightvnc :1 -desktop X -auth /home/minimac/.Xauthority -geometry 512x384 -depth 24 -rfbwait 120000 -rfbauth /home/minimac/.vnc/passwd -rfbport 5901 -fp /usr/share/fonts/X11/misc/,/usr/share/fonts/X11/Type1/,/usr/share/fonts/X11/75dpi/,/usr/share/fonts/X11/100dpi/ -co /etc/X11/rgb
minimac@orangepizeroplus2-h3:~$ cat /boot/armbianEnv.txt
verbosity=1
logo=disabled
console=both
disp_mode=1920x1080p60
overlay_prefix=sun8i-h3
overlays=spi-spidev analog-codec usbhost2 usbhost3
rootdev=UUID=fcbc9174-45c2-4540-a9bd-277840a614e1
rootfstype=ext4
param_spidev_spi_bus=1
extraargs="fbcon=map:8"
usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u
minimac@orangepizeroplus2-h3:~$ cat /etc/modprobe.d/fbtft.conf 
options fbtft_device custom name=fb_ili9340 gpios=dc:11,reset:12 speed=64000000 busnum=1 rotate=270 bgr=1
minimac@orangepizeroplus2-h3:~$ 

I hope that comes through nicely. I still haven't mastered the code block yet.

Cheers Pmar146

pmar146 commented 4 years ago

Hi Likeablob, I have checked all my wiring and downgraded the kernel to the same one as you. Amazingly I am finally getting some results from the commands above which are similar to yours. The push switch works. The LCD lights up, but nothing appears on it.

These are the answers to the checks you requested in a previous post.

gpio readall +-----+-----+----------+------+--Orange Pi Zero--+------+----------+-----+-----+ | H2+ | wPi | Name | Mode | V | Physical | V | Mode | Name | wPi | H2+ | +-----+-----+----------+------+---+----++----+---+------+----------+-----+-----+ | | | 3.3v | | | 1 || 2 | | | 5v | | | | 12 | 8 | SDA.0 | OUT | 1 | 3 || 4 | | | 5V | | | | 11 | 9 | SCL.0 | OUT | 1 | 5 || 6 | | | 0v | | | | 6 | 7 | GPIO.7 | IN | 1 | 7 || 8 | 0 | ALT5 | TxD3 | 15 | 198 | | | | 0v | | | 9 || 10 | 0 | ALT5 | RxD3 | 16 | 199 | | 1 | 0 | RxD2 | ALT3 | 0 | 11 || 12 | 0 | ALT3 | GPIO.1 | 1 | 7 | | 0 | 2 | TxD2 | ALT3 | 0 | 13 || 14 | | | 0v | | | | 3 | 3 | CTS2 | ALT3 | 0 | 15 || 16 | 0 | ALT3 | GPIO.4 | 4 | 19 | | | | 3.3v | | | 17 || 18 | 0 | ALT3 | GPIO.5 | 5 | 18 | | 15 | 12 | MOSI | ALT5 | 0 | 19 || 20 | | | 0v | | | | 16 | 13 | MISO | ALT5 | 0 | 21 || 22 | 0 | ALT3 | RTS2 | 6 | 2 | | 14 | 14 | SCLK | ALT5 | 0 | 23 || 24 | 0 | ALT5 | CE0 | 10 | 13 | | | | 0v | | | 25 || 26 | 0 | ALT3 | GPIO.11 | 11 | 10 | +-----+-----+----------+------+---+---LEDs---+---+------+----------+-----+-----+ | 17 | 30 | STAT-LED | OUT | 0 | 27 || 28 | | | PWR-LED | | | +-----+-----+----------+------+---+-----+----+---+------+----------+-----+-----+ | H2+ | wPi | Name | Mode | V | Physical | V | Mode | Name | wPi | H2+ | +-----+-----+----------+------+--Orange Pi Zero--+---+------+---------+-----+--+

lsmod | grep fb fb_ili9340 16384 1 fbtft_device 40960 0 fbtft 28672 2 fbtft_device,fb_ili9340

pgrep -af X

741 /usr/lib/xorg/Xorg :0 -nolisten tcp vt7 1252 /bin/sh -l -c /etc/X11/Xsession 1412 Xtightvnc :1 -desktop X -auth /home/minimac/.Xauthority -geometry 512x384 -depth 24 -rfbwait 120000 -rfbauth /home/minimac/.vnc/passwd -rfbport 5901 -fp /usr/share/fonts/X11/misc/,/usr/share/fonts/X11/Type1/,/usr/share/fonts/X11/75dpi/,/usr/share/fonts/X11/100dpi/ -co /etc/X11/rgb

cat /boot/armbianEnv.txt

verbosity=1 logo=disabled console=both disp_mode=1920x1080p60 overlay_prefix=sun8i-h3 overlays=spi-spidev analog-codec usbhost2 usbhost3 rootdev=UUID=fcbc9174-45c2-4540-a9bd-277840a614e1 rootfstype=ext4 param_spidev_spi_bus=1 extraargs="fbcon=map:8" usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u

$ cat /etc/modprobe.d/fbtft.conf

options fbtft_device custom name=fb_ili9340 gpios=dc:11,reset:12 speed=64000000 busnum=1 rotate=270 bgr=1

I hope that comes through nicely. I still haven't mastered the code block yet.

Cheers Pmar146

pmar146 commented 4 years ago

Hi Likeablob, I have checked all my wiring and downgraded the kernel to the same one as you. Amazingly I am finally getting some results from the commands above which are similar to yours. The push switch works. The LCD lights up, but nothing appears on it.

These are the answers to the checks you requested in a previous post.

gpio readall +-----+-----+----------+------+--Orange Pi Zero--+------+----------+-----+-----+ | H2+ | wPi | Name | Mode | V | Physical | V | Mode | Name | wPi | H2+ | +-----+-----+----------+------+---+----++----+---+------+----------+-----+-----+ | | | 3.3v | | | 1 || 2 | | | 5v | | | | 12 | 8 | SDA.0 | OUT | 1 | 3 || 4 | | | 5V | | | | 11 | 9 | SCL.0 | OUT | 1 | 5 || 6 | | | 0v | | | | 6 | 7 | GPIO.7 | IN | 1 | 7 || 8 | 0 | ALT5 | TxD3 | 15 | 198 | | | | 0v | | | 9 || 10 | 0 | ALT5 | RxD3 | 16 | 199 | | 1 | 0 | RxD2 | ALT3 | 0 | 11 || 12 | 0 | ALT3 | GPIO.1 | 1 | 7 | | 0 | 2 | TxD2 | ALT3 | 0 | 13 || 14 | | | 0v | | | | 3 | 3 | CTS2 | ALT3 | 0 | 15 || 16 | 0 | ALT3 | GPIO.4 | 4 | 19 | | | | 3.3v | | | 17 || 18 | 0 | ALT3 | GPIO.5 | 5 | 18 | | 15 | 12 | MOSI | ALT5 | 0 | 19 || 20 | | | 0v | | | | 16 | 13 | MISO | ALT5 | 0 | 21 || 22 | 0 | ALT3 | RTS2 | 6 | 2 | | 14 | 14 | SCLK | ALT5 | 0 | 23 || 24 | 0 | ALT5 | CE0 | 10 | 13 | | | | 0v | | | 25 || 26 | 0 | ALT3 | GPIO.11 | 11 | 10 | +-----+-----+----------+------+---+---LEDs---+---+------+----------+-----+-----+ | 17 | 30 | STAT-LED | OUT | 0 | 27 || 28 | | | PWR-LED | | | +-----+-----+----------+------+---+-----+----+---+------+----------+-----+-----+ | H2+ | wPi | Name | Mode | V | Physical | V | Mode | Name | wPi | H2+ | +-----+-----+----------+------+--Orange Pi Zero--+---+------+---------+-----+--+

lsmod | grep fb fb_ili9340 16384 1 fbtft_device 40960 0 fbtft 28672 2 fbtft_device,fb_ili9340

pgrep -af X

741 /usr/lib/xorg/Xorg :0 -nolisten tcp vt7 1252 /bin/sh -l -c /etc/X11/Xsession 1412 Xtightvnc :1 -desktop X -auth /home/minimac/.Xauthority -geometry 512x384 -depth 24 -rfbwait 120000 -rfbauth /home/minimac/.vnc/passwd -rfbport 5901 -fp /usr/share/fonts/X11/misc/,/usr/share/fonts/X11/Type1/,/usr/share/fonts/X11/75dpi/,/usr/share/fonts/X11/100dpi/ -co /etc/X11/rgb

cat /boot/armbianEnv.txt

verbosity=1 logo=disabled console=both disp_mode=1920x1080p60 overlay_prefix=sun8i-h3 overlays=spi-spidev analog-codec usbhost2 usbhost3 rootdev=UUID=fcbc9174-45c2-4540-a9bd-277840a614e1 rootfstype=ext4 param_spidev_spi_bus=1 extraargs="fbcon=map:8" usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u

$ cat /etc/modprobe.d/fbtft.conf

options fbtft_device custom name=fb_ili9340 gpios=dc:11,reset:12 speed=64000000 busnum=1 rotate=270 bgr=1

I hope that comes through nicely. I still haven't mastered the code block yet.

Cheers Pmar146

pmar146 commented 4 years ago

Hi Likeablob, I have checked all my wiring and downgraded the kernel to the same one as you. Amazingly I am finally getting some results from the commands above which are similar to yours. The push switch works. The LCD lights up, but nothing appears on it.

These are the answers to the checks you requested in a previous post.

gpio readall +-----+-----+----------+------+--Orange Pi Zero--+------+----------+-----+-----+ | H2+ | wPi | Name | Mode | V | Physical | V | Mode | Name | wPi | H2+ | +-----+-----+----------+------+---+----++----+---+------+----------+-----+-----+ | | | 3.3v | | | 1 || 2 | | | 5v | | | | 12 | 8 | SDA.0 | OUT | 1 | 3 || 4 | | | 5V | | | | 11 | 9 | SCL.0 | OUT | 1 | 5 || 6 | | | 0v | | | | 6 | 7 | GPIO.7 | IN | 1 | 7 || 8 | 0 | ALT5 | TxD3 | 15 | 198 | | | | 0v | | | 9 || 10 | 0 | ALT5 | RxD3 | 16 | 199 | | 1 | 0 | RxD2 | ALT3 | 0 | 11 || 12 | 0 | ALT3 | GPIO.1 | 1 | 7 | | 0 | 2 | TxD2 | ALT3 | 0 | 13 || 14 | | | 0v | | | | 3 | 3 | CTS2 | ALT3 | 0 | 15 || 16 | 0 | ALT3 | GPIO.4 | 4 | 19 | | | | 3.3v | | | 17 || 18 | 0 | ALT3 | GPIO.5 | 5 | 18 | | 15 | 12 | MOSI | ALT5 | 0 | 19 || 20 | | | 0v | | | | 16 | 13 | MISO | ALT5 | 0 | 21 || 22 | 0 | ALT3 | RTS2 | 6 | 2 | | 14 | 14 | SCLK | ALT5 | 0 | 23 || 24 | 0 | ALT5 | CE0 | 10 | 13 | | | | 0v | | | 25 || 26 | 0 | ALT3 | GPIO.11 | 11 | 10 | +-----+-----+----------+------+---+---LEDs---+---+------+----------+-----+-----+ | 17 | 30 | STAT-LED | OUT | 0 | 27 || 28 | | | PWR-LED | | | +-----+-----+----------+------+---+-----+----+---+------+----------+-----+-----+ | H2+ | wPi | Name | Mode | V | Physical | V | Mode | Name | wPi | H2+ | +-----+-----+----------+------+--Orange Pi Zero--+---+------+---------+-----+--+

lsmod | grep fb fb_ili9340 16384 1 fbtft_device 40960 0 fbtft 28672 2 fbtft_device,fb_ili9340

pgrep -af X

741 /usr/lib/xorg/Xorg :0 -nolisten tcp vt7 1252 /bin/sh -l -c /etc/X11/Xsession 1412 Xtightvnc :1 -desktop X -auth /home/minimac/.Xauthority -geometry 512x384 -depth 24 -rfbwait 120000 -rfbauth /home/minimac/.vnc/passwd -rfbport 5901 -fp /usr/share/fonts/X11/misc/,/usr/share/fonts/X11/Type1/,/usr/share/fonts/X11/75dpi/,/usr/share/fonts/X11/100dpi/ -co /etc/X11/rgb

cat /boot/armbianEnv.txt

verbosity=1 logo=disabled console=both disp_mode=1920x1080p60 overlay_prefix=sun8i-h3 overlays=spi-spidev analog-codec usbhost2 usbhost3 rootdev=UUID=fcbc9174-45c2-4540-a9bd-277840a614e1 rootfstype=ext4 param_spidev_spi_bus=1 extraargs="fbcon=map:8" usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u

$ cat /etc/modprobe.d/fbtft.conf

options fbtft_device custom name=fb_ili9340 gpios=dc:11,reset:12 speed=64000000 busnum=1 rotate=270 bgr=1

I hope that comes through nicely. I still haven't mastered the code block yet.

Cheers Pmar146

pmar146 commented 4 years ago

Hi Likeablob, I have checked all my wiring and downgraded the kernel to the same one as you. Amazingly I am finally getting some results from the commands above which are similar to yours. The push switch works. The LCD lights up, but nothing appears on it.

These are the answers to the checks you requested in a previous post.

gpio readall +-----+-----+----------+------+--Orange Pi Zero--+------+----------+-----+-----+ | H2+ | wPi | Name | Mode | V | Physical | V | Mode | Name | wPi | H2+ | +-----+-----+----------+------+---+----++----+---+------+----------+-----+-----+ | | | 3.3v | | | 1 || 2 | | | 5v | | | | 12 | 8 | SDA.0 | OUT | 1 | 3 || 4 | | | 5V | | | | 11 | 9 | SCL.0 | OUT | 1 | 5 || 6 | | | 0v | | | | 6 | 7 | GPIO.7 | IN | 1 | 7 || 8 | 0 | ALT5 | TxD3 | 15 | 198 | | | | 0v | | | 9 || 10 | 0 | ALT5 | RxD3 | 16 | 199 | | 1 | 0 | RxD2 | ALT3 | 0 | 11 || 12 | 0 | ALT3 | GPIO.1 | 1 | 7 | | 0 | 2 | TxD2 | ALT3 | 0 | 13 || 14 | | | 0v | | | | 3 | 3 | CTS2 | ALT3 | 0 | 15 || 16 | 0 | ALT3 | GPIO.4 | 4 | 19 | | | | 3.3v | | | 17 || 18 | 0 | ALT3 | GPIO.5 | 5 | 18 | | 15 | 12 | MOSI | ALT5 | 0 | 19 || 20 | | | 0v | | | | 16 | 13 | MISO | ALT5 | 0 | 21 || 22 | 0 | ALT3 | RTS2 | 6 | 2 | | 14 | 14 | SCLK | ALT5 | 0 | 23 || 24 | 0 | ALT5 | CE0 | 10 | 13 | | | | 0v | | | 25 || 26 | 0 | ALT3 | GPIO.11 | 11 | 10 | +-----+-----+----------+------+---+---LEDs---+---+------+----------+-----+-----+ | 17 | 30 | STAT-LED | OUT | 0 | 27 || 28 | | | PWR-LED | | | +-----+-----+----------+------+---+-----+----+---+------+----------+-----+-----+ | H2+ | wPi | Name | Mode | V | Physical | V | Mode | Name | wPi | H2+ | +-----+-----+----------+------+--Orange Pi Zero--+---+------+---------+-----+--+

lsmod | grep fb fb_ili9340 16384 1 fbtft_device 40960 0 fbtft 28672 2 fbtft_device,fb_ili9340

pgrep -af X

741 /usr/lib/xorg/Xorg :0 -nolisten tcp vt7 1252 /bin/sh -l -c /etc/X11/Xsession 1412 Xtightvnc :1 -desktop X -auth /home/minimac/.Xauthority -geometry 512x384 -depth 24 -rfbwait 120000 -rfbauth /home/minimac/.vnc/passwd -rfbport 5901 -fp /usr/share/fonts/X11/misc/,/usr/share/fonts/X11/Type1/,/usr/share/fonts/X11/75dpi/,/usr/share/fonts/X11/100dpi/ -co /etc/X11/rgb

cat /boot/armbianEnv.txt

verbosity=1 logo=disabled console=both disp_mode=1920x1080p60 overlay_prefix=sun8i-h3 overlays=spi-spidev analog-codec usbhost2 usbhost3 rootdev=UUID=fcbc9174-45c2-4540-a9bd-277840a614e1 rootfstype=ext4 param_spidev_spi_bus=1 extraargs="fbcon=map:8" usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u

$ cat /etc/modprobe.d/fbtft.conf

options fbtft_device custom name=fb_ili9340 gpios=dc:11,reset:12 speed=64000000 busnum=1 rotate=270 bgr=1

I hope that comes through nicely. I still haven't mastered the code block yet.

Cheers Pmar146

likeablob commented 3 years ago

Hi @pmar146, Sorry for the late reply...

I have checked all my wiring and downgraded the kernel to the same one as you. Amazingly I am finally getting some results from the commands above which are similar to yours. The push switch works. The LCD lights up, but nothing appears on it.

Nice to hear that. Could you post some photos of the wiring and soldering around the LCD? I guess we're using the same (or similar) LCD module but I'm not quite sure.

pmar146 commented 3 years ago

IMG_6544 Not a problem. I suspect there could be wiring issue maybe. I couldn't solder the fpc ribbon like you did, so I got a connector and soldered it to a board and took jumpers from it (see attached). I have tested all the connections from this with the DMM. Am I correct that pin 1 from the lcd is not being used?

The only other thing I notice is that the last number on this command on my machine is a 1 and yours is a 2. lsmod | grep fb fb_ili9340 16384 1

pmar146 commented 3 years ago

Not a problem. I suspect there could be wiring issue maybe. I couldn't solder the fpc ribbon like you did, so I got a connector and soldered it to a board and took jumpers from it (see attached). I have tested all the connections from this with the DMM. Am I correct that pin 1 from the lcd is not being used?

The only other thing I notice is that the last number on this command on my machine is a 1 and yours is a 2. lsmod | grep fb fb_ili9340 16384 1

pmar146 commented 3 years ago

Having looked all over this, I am beginning to think this might be a connection issue. I have to see if I can find it. It might be that I need to order some more bits to make it work.

The screen I am using is exactly the same as yours. I ordered it from the link you provided and the one that showed up looks exactly the same.

likeablob commented 3 years ago

Hi @pmar146 , Could I get a larger image of that connector module?

If you have a cheap Arduino-compatible board such as WeMos D1 mini (esp8266) or MH-ET LIVE (esp32), you can drive the LCD easily via SPI to distinguish whether the root cause is wiring or not.

Am I correct that pin 1 from the lcd is not being used?

Yes, you're. Both pin8 and pin1 are for GND. But if this problem is caused by voltage drops, it may be worth to try the following;

lsmod | grep fb fb_ili9340 16384 1

Hmm that's a bit weird. Basically that number indicates the number of referencing modules. Have you seen fbtft_device module in the output?

$ lsmod | grep fb
fb_ili9340             16384  2
fbtft_device           40960  0
fbtft                  28672  2 fbtft_device,fb_ili9340
pmar146 commented 3 years ago

SUCCESS!! I now have the working screen. In the end there was something not right in the FPC connecter itself. I could chase the inputs all the way to the back of the connector, but not inside it. This is where the fault was. Removing the connector and soldering the screen directly to the breakout board which I will cut down has solved the issue.

Thank you for all the help. You have been very patient and I do appreciate it.

So to sum up where I went wrong. I used a late model armbian bionic minimal install. This required a lot of fiddling as there are kernel components missing. Downgrading the Kernel meant that all your commands now produce the appropriate responses and installs as you described in the code section. Using an FPC connector created a problem as there must have been a loose connection in the connector. Soldering the screen directly to a breakout board fixed this problem.

pmar146 commented 3 years ago

SUCCESS!! I now have the working screen. In the end there was something not right in the FPC connecter itself. I could chase the inputs all the way to the back of the connector, but not inside it. This is where the fault was. Removing the connector and soldering the screen directly to the breakout board which I will cut down has solved the issue.

Thank you for all the help. You have been very patient and I do appreciate it.

So to sum up where I went wrong. I used a late model armbian bionic minimal install. This required a lot of fiddling as there are kernel components missing. Downgrading the Kernel meant that all your commands now produce the appropriate responses and installs as you described in the code section. Using an FPC connector created a problem as there must have been a loose connection in the connector. Soldering the screen directly to a breakout board fixed this problem.