Jump to content

How do I display GUI in SPI LCD that only displays console?


mahaju

Recommended Posts

I managed to get my waveshare 2.8" SPI LCD (https://www.waveshare.com/wiki/2.8inch_RPi_LCD_(A)) to display console in an orangepi zero LTS board, using the DT overlay and instructions given here:  

My dts file has changes as explained in the comments of the attached waveshare_32b_28a_opipc2.dts file in that post. Armbian version being used is as follows:  


 

uname -a 

Linux orangepizero 5.10.60-sunxi #21.08.1 SMP Wed Aug 25 18:19:32 UTC 2021 armv7l armv7l armv7l GNU/Linux

I want to display a GUI desktop on this screen but I keep getting errors. I firstly tried the instructions given here for a different orangepi board: https://diyprojects.io/armbian-tutorial-installing-xfce-desktop-server-distribution/#.YYOcrmBBy70

The instructions are basically to install "sudo apt-get -y install xorg lightdm xfce4 tango-icon-theme gnome-icon-theme" and run "startxfce4". This gave me some errors which hinted that it could not start the GUI because xfce did not detect a monitor.

 

After this I wiped the sdcard and reinstalled the OS. I then tried installing desktop and other softwares from armbian-config -> system -> Desktop, and then later on enabling desktop from armbian-config -> system -> Desktop -> Enable desktop

 

When the board boots the LCD always shows a console login prompt. If I manually try to start lightdm by issuing "sudo lightdm" in the PC serial console, the LCD screen goes black and I get this error in the serial console:  

 

** (lightdm:1980): WARNING **: 08:46:09.601: Error getting user list from org.freedesktop.Accounts: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Rejected send message, 1 matched rules; type="method_call", sender=":1.13" (uid=0 pid=1980 comm="lightdm ") interface="org.freedesktop.Accounts" member="ListCachedUsers" error name="(unset)" requested_reply="0" destination="org.freedesktop.Accounts" (bus)
Failed to use bus name org.freedesktop.DisplayManager, do you have appropriate permissions?

I only need a minimal desktop and don't need other softwares which seem to get installed through armbian-config. Does the light DM software expect there to be some kind of monitor output on the board? How do I redirect it to use the SPI display instead? The waveshare 2.8" SPI LCD is compatible with raspberry pi and works without any problems with the raspberry pi board. I have assumed that the 26 pin headers on the orange pi zero LTS board are compatible with the raspberry pi and connect the LCD accordingly.

 

Also, is there a way to test whether the LCD is detecting touch or not, before I find out why GUI is not working? Is there a way to test touch functions while the LCD is showing a console?  

 

Here are all the relevant information:  

 

dmesg output (full):

Spoiler

 

orangepizero@orangepizero:~$ dmesg
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.10.60-sunxi (root@runner7) (arm-linux-gnueabihf-gcc (GNU Toolchain for the A-profile Architecture 8.3-2019.03 (arm-rel-8.36)) 8.3.0, GNU ld (GNU Toolchain for the A-profile Architecture 8.3-2019.03 (arm-rel-8.36)) 2.32.0.20190321) #21.08.1 SMP Wed Aug 25 18:19:32 UTC 2021
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=50c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: Xunlong Orange Pi Zero
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] cma: Reserved 104 MiB at 0x59400000
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000040000000-0x000000005fffffff]
[    0.000000]   HighMem  empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000040000000-0x000000005fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x000000005fffffff]
[    0.000000] On node 0 totalpages: 131072
[    0.000000]   Normal zone: 1152 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 131072 pages, LIFO batch:31
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: Using PSCI v0.1 Function IDs from DT
[    0.000000] percpu: Embedded 20 pages/cpu s50764 r8192 d22964 u81920
[    0.000000] pcpu-alloc: s50764 r8192 d22964 u81920 alloc=20*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 129920
[    0.000000] Kernel command line: root=UUID=592180af-c238-474c-a04b-4a9e91c6d375 rootwait rootfstype=ext4 console=ttyS0,115200 hdmi.audio=EDID:0 disp.screen0_output_mode=1920x1080p60 consoleblank=0 loglevel=1 ubootpart=f6fd8d58-01 ubootsource=mmc usb-storage.quirks=0x2537:0x1066:u,0x2537:0x1068:u   sunxi_ve_mem_reserve=0 sunxi_g2d_mem_reserve=0 sunxi_fb_mem_reserve=16 cgroup_enable=memory swapaccount=1
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:on, heap free:off
[    0.000000] Memory: 384644K/524288K available (9216K kernel code, 1460K rwdata, 3232K rodata, 1024K init, 333K bss, 33148K reserved, 106496K cma-reserved, 0K highmem)
[    0.000000] random: get_random_u32 called from __kmem_cache_create+0x1b/0x298 with crng_init=0
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] ftrace: allocating 42134 entries in 83 pages
[    0.000000] ftrace: allocated 83 pages with 4 groups
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=4.
[    0.000000]  Rude variant of Tasks RCU enabled.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] GIC: Using split EOI/Deactivate mode
[    0.000000] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000012] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000034] Switching to timer-based delay loop, resolution 41ns
[    0.000488] Console: colour dummy device 80x30
[    0.000583] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=96000)
[    0.000613] pid_max: default: 32768 minimum: 301
[    0.001000] LSM: Security Framework initializing
[    0.001112] Yama: becoming mindful.
[    0.001427] AppArmor: AppArmor initialized
[    0.001574] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.001598] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.003562] CPU: Testing write buffer coherency: ok
[    0.004344] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.005674] Setting up static identity map for 0x40100000 - 0x40100054
[    0.005895] rcu: Hierarchical SRCU implementation.
[    0.008056] smp: Bringing up secondary CPUs ...
[    0.019484] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.031076] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[    0.042488] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[    0.042691] smp: Brought up 1 node, 4 CPUs
[    0.042719] SMP: Total of 4 processors activated (192.00 BogoMIPS).
[    0.042730] CPU: All CPU(s) started in HYP mode.
[    0.042739] CPU: Virtualization extensions available.
[    0.043745] allocated 524288 bytes of page_ext
[    0.044776] devtmpfs: initialized
[    0.060053] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.060448] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.060536] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.066058] pinctrl core: initialized pinctrl subsystem
[    0.068363] NET: Registered protocol family 16
[    0.071740] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.072960] audit: initializing netlink subsys (disabled)
[    0.073456] audit: type=2000 audit(0.048:1): state=initialized audit_enabled=0 res=1
[    0.074422] thermal_sys: Registered thermal governor 'fair_share'
[    0.074434] thermal_sys: Registered thermal governor 'bang_bang'
[    0.074446] thermal_sys: Registered thermal governor 'step_wise'
[    0.075315] cpuidle: using governor ladder
[    0.075366] cpuidle: using governor menu
[    0.076409] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.076424] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.127352] cryptd: max_cpu_qlen set to 1000
[    0.203099] raid6: neonx8   gen()   370 MB/s
[    0.271245] raid6: neonx8   xor()   275 MB/s
[    0.339463] raid6: neonx4   gen()   394 MB/s
[    0.407631] raid6: neonx4   xor()   299 MB/s
[    0.475831] raid6: neonx2   gen()   435 MB/s
[    0.544027] raid6: neonx2   xor()   310 MB/s
[    0.612203] raid6: neonx1   gen()   388 MB/s
[    0.680419] raid6: neonx1   xor()   269 MB/s
[    0.748705] raid6: int32x8  gen()   144 MB/s
[    0.816871] raid6: int32x8  xor()    85 MB/s
[    0.885048] raid6: int32x4  gen()   168 MB/s
[    0.953253] raid6: int32x4  xor()    98 MB/s
[    1.021348] raid6: int32x2  gen()   190 MB/s
[    1.089533] raid6: int32x2  xor()   101 MB/s
[    1.157735] raid6: int32x1  gen()   190 MB/s
[    1.225974] raid6: int32x1  xor()    91 MB/s
[    1.225986] raid6: using algorithm neonx2 gen() 435 MB/s
[    1.225996] raid6: .... xor() 310 MB/s, rmw enabled
[    1.226007] raid6: using neon recovery algorithm
[    1.228733] iommu: Default domain type: Translated
[    1.229466] SCSI subsystem initialized
[    1.229855] libata version 3.00 loaded.
[    1.230333] usbcore: registered new interface driver usbfs
[    1.230423] usbcore: registered new interface driver hub
[    1.230504] usbcore: registered new device driver usb
[    1.230688] mc: Linux media interface: v0.10
[    1.230751] videodev: Linux video capture interface: v2.00
[    1.231008] pps_core: LinuxPPS API ver. 1 registered
[    1.231020] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    1.231056] PTP clock support registered
[    1.231953] Advanced Linux Sound Architecture Driver Initialized.
[    1.233399] NetLabel: Initializing
[    1.233415] NetLabel:  domain hash size = 128
[    1.233424] NetLabel:  protocols = UNLABELED CIPSOv4 CALIPSO
[    1.233596] NetLabel:  unlabeled traffic allowed by default
[    1.234957] clocksource: Switched to clocksource arch_sys_counter
[    1.467586] VFS: Disk quotas dquot_6.6.0
[    1.467753] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    1.468912] AppArmor: AppArmor Filesystem Enabled
[    1.485645] NET: Registered protocol family 2
[    1.485941] IP idents hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    1.487704] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    1.487825] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    1.487940] TCP bind hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    1.488066] TCP: Hash tables configured (established 4096 bind 4096)
[    1.488298] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    1.488356] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    1.488779] NET: Registered protocol family 1
[    1.490051] Trying to unpack rootfs image as initramfs...
[    2.968505] Freeing initrd memory: 11312K
[    2.971107] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 5 counters available
[    2.973317] Initialise system trusted keyrings
[    2.973432] Key type blacklist registered
[    2.973922] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[    2.984913] zbud: loaded
[    2.987755] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    2.989608] fuse: init (API version 7.32)
[    2.994767] integrity: Platform Keyring initialized
[    3.223120] xor: measuring software checksum speed
[    3.239096]    arm4regs        :   617 MB/sec
[    3.262077]    8regs           :   428 MB/sec
[    3.286412]    32regs          :   404 MB/sec
[    3.302100]    neon            :   628 MB/sec
[    3.302112] xor: using function: neon (628 MB/sec)
[    3.302139] Key type asymmetric registered
[    3.302152] Asymmetric key parser 'x509' registered
[    3.302257] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[    3.302533] io scheduler mq-deadline registered
[    3.302548] io scheduler kyber registered
[    3.303081] io scheduler bfq registered
[    3.314597] sun8i-h3-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    3.318038] sun8i-h3-r-pinctrl 1f02c00.pinctrl: initialized sunXi PIO driver
[    3.331747] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    3.336727] sun8i-h3-pinctrl 1c20800.pinctrl: supply vcc-pa not found, using dummy regulator
[    3.337689] printk: console [ttyS0] disabled
[    3.337853] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 51, base_baud = 1500000) is a 16550A
[    3.338278] printk: console [ttyS0] enabled
[    3.354086] brd: module loaded
[    3.487024] loop: module loaded
[    3.489934] waveshare32b-ts@1 enforce active low on chipselect handle
[    3.493611] libphy: Fixed MDIO Bus: probed
[    3.494861] dwmac-sun8i 1c30000.ethernet: IRQ eth_wake_irq not found
[    3.494880] dwmac-sun8i 1c30000.ethernet: IRQ eth_lpi not found
[    3.495096] dwmac-sun8i 1c30000.ethernet: supply phy not found, using dummy regulator
[    3.495390] dwmac-sun8i 1c30000.ethernet: supply phy-io not found, using dummy regulator
[    3.495664] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[    3.495706] dwmac-sun8i 1c30000.ethernet: Current syscon value is not the default 148000 (expect 58000)
[    3.496125] dwmac-sun8i 1c30000.ethernet: No HW DMA feature register supported
[    3.496144] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload Engine supported
[    3.496160] dwmac-sun8i 1c30000.ethernet: COE Type 2
[    3.496174] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported
[    3.496190] dwmac-sun8i 1c30000.ethernet: Normal descriptors
[    3.496203] dwmac-sun8i 1c30000.ethernet: Chain mode enabled
[    3.497166] libphy: stmmac: probed
[    3.499220] dwmac-sun8i 1c30000.ethernet: Found internal PHY node
[    3.500117] libphy: mdio_mux: probed
[    3.500159] dwmac-sun8i 1c30000.ethernet: Switch mux to internal PHY
[    3.500180] dwmac-sun8i 1c30000.ethernet: Powering internal PHY
[    3.519701] libphy: mdio_mux: probed
[    3.521815] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.521880] ehci-platform: EHCI generic platform driver
[    3.522313] ehci-platform 1c1a000.usb: EHCI Host Controller
[    3.522371] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[    3.523322] ehci-platform 1c1a000.usb: irq 36, io mem 0x01c1a000
[    3.538987] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[    3.539557] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.10
[    3.539577] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.539593] usb usb1: Product: EHCI Host Controller
[    3.539607] usb usb1: Manufacturer: Linux 5.10.60-sunxi ehci_hcd
[    3.539622] usb usb1: SerialNumber: 1c1a000.usb
[    3.540702] hub 1-0:1.0: USB hub found
[    3.540783] hub 1-0:1.0: 1 port detected
[    3.542490] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    3.542537] ohci-platform: OHCI generic platform driver
[    3.542867] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[    3.542979] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[    3.543332] ohci-platform 1c1a400.usb: irq 37, io mem 0x01c1a400
[    3.607339] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 5.10
[    3.607359] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.607375] usb usb2: Product: Generic Platform OHCI controller
[    3.607389] usb usb2: Manufacturer: Linux 5.10.60-sunxi ohci_hcd
[    3.607404] usb usb2: SerialNumber: 1c1a400.usb
[    3.608412] hub 2-0:1.0: USB hub found
[    3.608502] hub 2-0:1.0: 1 port detected
[    3.611154] usbcore: registered new interface driver usb-storage
[    3.613128] sun6i-rtc 1f00000.rtc: registered as rtc0
[    3.613201] sun6i-rtc 1f00000.rtc: setting system clock to 2021-11-04T08:15:27 UTC (1636013727)
[    3.613216] sun6i-rtc 1f00000.rtc: RTC enabled
[    3.613783] i2c /dev entries driver
[    3.616525] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    3.618181] sun8i-h3-pinctrl 1c20800.pinctrl: supply vcc-pf not found, using dummy regulator
[    3.618385] sun8i-h3-pinctrl 1c20800.pinctrl: supply vcc-pg not found, using dummy regulator
[    3.618556] sun8i-h3-r-pinctrl 1f02c00.pinctrl: supply vcc-pl not found, using dummy regulator
[    3.620216] sunxi-mmc 1c0f000.mmc: Got CD GPIO
[    3.620703] ledtrig-cpu: registered to indicate activity on CPUs
[    3.621631] sun8i-ce 1c15000.crypto: Set mod clock to 50000000 (50 Mhz) from 24000000 (24 Mhz)
[    3.622081] sun8i-ce 1c15000.crypto: will run requests pump with realtime priority
[    3.622457] sun8i-ce 1c15000.crypto: will run requests pump with realtime priority
[    3.622705] sun8i-ce 1c15000.crypto: will run requests pump with realtime priority
[    3.622961] sun8i-ce 1c15000.crypto: will run requests pump with realtime priority
[    3.623188] sun8i-ce 1c15000.crypto: Register cbc(aes)
[    3.623483] sun8i-ce 1c15000.crypto: Register ecb(aes)
[    3.623703] sun8i-ce 1c15000.crypto: Register cbc(des3_ede)
[    3.623920] sun8i-ce 1c15000.crypto: Register ecb(des3_ede)
[    3.624131] sun8i-ce 1c15000.crypto: Register md5
[    3.624338] sun8i-ce 1c15000.crypto: Register sha1
[    3.624585] sun8i-ce 1c15000.crypto: Register sha224
[    3.624793] sun8i-ce 1c15000.crypto: Register sha256
[    3.625001] sun8i-ce 1c15000.crypto: Register sha384
[    3.625247] sun8i-ce 1c15000.crypto: Register sha512
[    3.625459] sun8i-ce 1c15000.crypto: Register stdrng
[    3.625706] sun8i-ce 1c15000.crypto: TRNG not supported
[    3.625726] sun8i-ce 1c15000.crypto: CryptoEngine Die ID 1
[    3.626483] hid: raw HID events driver (C) Jiri Kosina
[    3.626775] usbcore: registered new interface driver usbhid
[    3.626786] usbhid: USB HID core driver
[    3.633165] debugfs: Directory '1c22c00.codec' with parent 'H3 Audio Codec' already present!
[    3.639643] Initializing XFRM netlink socket
[    3.640651] NET: Registered protocol family 10
[    3.645929] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[    3.683531] mmc0: host does not support reading read-only switch, assuming write-enable
[    3.687270] mmc0: new high speed SDHC card at address aaaa
[    3.689932] mmcblk0: mmc0:aaaa SC32G 29.7 GiB
[    3.696264]  mmcblk0: p1
[    3.711538] Segment Routing with IPv6
[    3.711784] NET: Registered protocol family 17
[    3.711846] NET: Registered protocol family 15
[    3.711981] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    3.712212] 8021q: 802.1Q VLAN Support v1.8
[    3.712312] Key type dns_resolver registered
[    3.713201] Registering SWP/SWPB emulation handler
[    3.713741] registered taskstats version 1
[    3.713763] Loading compiled-in X.509 certificates
[    3.727772] Loaded X.509 cert 'Build time autogenerated kernel key: 8a253d6735cd65910a63c6d97c40747ce9ff7e4b'
[    3.735501] zswap: loaded using pool zstd/z3fold
[    3.736949] Key type ._fscrypt registered
[    3.736967] Key type .fscrypt registered
[    3.736978] Key type fscrypt-provisioning registered
[    3.745962] Btrfs loaded, crc32c=crc32c-generic
[    3.779091] Key type encrypted registered
[    3.779133] AppArmor: AppArmor sha1 policy hashing enabled
[    3.802249] sun8i-h3-pinctrl 1c20800.pinctrl: supply vcc-pg not found, using dummy regulator
[    3.805389] ehci-platform 1c1b000.usb: EHCI Host Controller
[    3.805445] ehci-platform 1c1b000.usb: new USB bus registered, assigned bus number 3
[    3.806545] ehci-platform 1c1b000.usb: irq 38, io mem 0x01c1b000
[    3.818985] ehci-platform 1c1b000.usb: USB 2.0 started, EHCI 1.00
[    3.819510] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.10
[    3.819530] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.819546] usb usb3: Product: EHCI Host Controller
[    3.819561] usb usb3: Manufacturer: Linux 5.10.60-sunxi ehci_hcd
[    3.819575] usb usb3: SerialNumber: 1c1b000.usb
[    3.820732] hub 3-0:1.0: USB hub found
[    3.820821] hub 3-0:1.0: 1 port detected
[    3.822783] ehci-platform 1c1c000.usb: EHCI Host Controller
[    3.822832] ehci-platform 1c1c000.usb: new USB bus registered, assigned bus number 4
[    3.823530] ehci-platform 1c1c000.usb: irq 40, io mem 0x01c1c000
[    3.838981] ehci-platform 1c1c000.usb: USB 2.0 started, EHCI 1.00
[    3.839454] usb usb4: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.10
[    3.839474] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.839489] usb usb4: Product: EHCI Host Controller
[    3.839503] usb usb4: Manufacturer: Linux 5.10.60-sunxi ehci_hcd
[    3.839518] usb usb4: SerialNumber: 1c1c000.usb
[    3.840511] hub 4-0:1.0: USB hub found
[    3.840590] hub 4-0:1.0: 1 port detected
[    3.842486] ehci-platform 1c1d000.usb: EHCI Host Controller
[    3.842533] ehci-platform 1c1d000.usb: new USB bus registered, assigned bus number 5
[    3.843130] ehci-platform 1c1d000.usb: irq 42, io mem 0x01c1d000
[    3.858998] ehci-platform 1c1d000.usb: USB 2.0 started, EHCI 1.00
[    3.859481] usb usb5: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.10
[    3.859501] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.859516] usb usb5: Product: EHCI Host Controller
[    3.859531] usb usb5: Manufacturer: Linux 5.10.60-sunxi ehci_hcd
[    3.859545] usb usb5: SerialNumber: 1c1d000.usb
[    3.860553] hub 5-0:1.0: USB hub found
[    3.860633] hub 5-0:1.0: 1 port detected
[    3.862496] ohci-platform 1c1b400.usb: Generic Platform OHCI controller
[    3.862541] ohci-platform 1c1b400.usb: new USB bus registered, assigned bus number 6
[    3.863080] ohci-platform 1c1b400.usb: irq 39, io mem 0x01c1b400
[    3.927327] usb usb6: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 5.10
[    3.927348] usb usb6: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.927363] usb usb6: Product: Generic Platform OHCI controller
[    3.927378] usb usb6: Manufacturer: Linux 5.10.60-sunxi ohci_hcd
[    3.927393] usb usb6: SerialNumber: 1c1b400.usb
[    3.928387] hub 6-0:1.0: USB hub found
[    3.928467] hub 6-0:1.0: 1 port detected
[    3.930319] ohci-platform 1c1c400.usb: Generic Platform OHCI controller
[    3.930365] ohci-platform 1c1c400.usb: new USB bus registered, assigned bus number 7
[    3.930860] ohci-platform 1c1c400.usb: irq 41, io mem 0x01c1c400
[    3.991315] usb usb7: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 5.10
[    3.991336] usb usb7: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.991352] usb usb7: Product: Generic Platform OHCI controller
[    3.991366] usb usb7: Manufacturer: Linux 5.10.60-sunxi ohci_hcd
[    3.991380] usb usb7: SerialNumber: 1c1c400.usb
[    3.992371] hub 7-0:1.0: USB hub found
[    3.992446] hub 7-0:1.0: 1 port detected
[    3.994296] ohci-platform 1c1d400.usb: Generic Platform OHCI controller
[    3.994341] ohci-platform 1c1d400.usb: new USB bus registered, assigned bus number 8
[    3.995199] ohci-platform 1c1d400.usb: irq 43, io mem 0x01c1d400
[    4.059308] usb usb8: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 5.10
[    4.059328] usb usb8: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    4.059344] usb usb8: Product: Generic Platform OHCI controller
[    4.059359] usb usb8: Manufacturer: Linux 5.10.60-sunxi ohci_hcd
[    4.059373] usb usb8: SerialNumber: 1c1d400.usb
[    4.060409] hub 8-0:1.0: USB hub found
[    4.060487] hub 8-0:1.0: 1 port detected
[    4.063290] of_cfs_init
[    4.063539] of_cfs_init: OK
[    4.063921] ALSA device list:
[    4.063937]   #0: H3 Audio Codec
[    4.073613] Freeing unused kernel memory: 1024K
[    4.083476] Run /init as init process
[    4.083494]   with arguments:
[    4.083506]     /init
[    4.083516]   with environment:
[    4.083526]     HOME=/
[    4.083537]     TERM=linux
[    4.083548]     ubootpart=f6fd8d58-01
[    4.083558]     ubootsource=mmc
[    4.083568]     sunxi_ve_mem_reserve=0
[    4.083578]     sunxi_g2d_mem_reserve=0
[    4.083589]     sunxi_fb_mem_reserve=16
[    4.083599]     cgroup_enable=memory
[    4.335022] usb 6-1: new low-speed USB device number 2 using ohci-platform
[    4.579096] usb 6-1: New USB device found, idVendor=05af, idProduct=1012, bcdDevice= 0.90
[    4.579128] usb 6-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    4.579144] usb 6-1: Product: USB Keyboard
[    4.579158] usb 6-1: Manufacturer: Lenovo
[    4.598842] input: Lenovo USB Keyboard as /devices/platform/soc/1c1b400.usb/usb6/6-1/6-1:1.0/0003:05AF:1012.0001/input/input0
[    4.659555] hid-generic 0003:05AF:1012.0001: input,hidraw0: USB HID v1.11 Keyboard [Lenovo USB Keyboard] on usb-1c1b400.usb-1/input0
[    4.690301] input: Lenovo USB Keyboard System Control as /devices/platform/soc/1c1b400.usb/usb6/6-1/6-1:1.1/0003:05AF:1012.0002/input/input1
[    4.747484] input: Lenovo USB Keyboard Consumer Control as /devices/platform/soc/1c1b400.usb/usb6/6-1/6-1:1.1/0003:05AF:1012.0002/input/input2
[    4.747942] hid-generic 0003:05AF:1012.0002: input,hidraw1: USB HID v1.11 Device [Lenovo USB Keyboard] on usb-1c1b400.usb-1/input1
[    5.165824] usb_phy_generic usb_phy_generic.1.auto: supply vcc not found, using dummy regulator
[    5.172036] phy id_det change to device
[    5.385827] sunxi-mmc 1c10000.mmc: allocated mmc-pwrseq
[    5.615675] sunxi-mmc 1c10000.mmc: initialized, max. request size: 16384 KB
[    5.633708] random: fast init done
[    5.634536] mmc1: new high speed SDIO card at address 0001
[    5.905142] EXT4-fs (mmcblk0p1): mounted filesystem with writeback data mode. Opts: (null)
[    6.825594] systemd[1]: Inserted module 'autofs4'
[    6.938503] systemd[1]: systemd 245.4-4ubuntu3.11 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN +PCRE2 default-hierarchy=hybrid)
[    6.940228] systemd[1]: Detected architecture arm.
[    6.998155] systemd[1]: Set hostname to <orangepizero>.
[    8.873086] random: systemd: uninitialized urandom read (16 bytes read)
[    8.882797] systemd[1]: Created slice system-modprobe.slice.
[    8.899451] random: systemd: uninitialized urandom read (16 bytes read)
[    8.902577] systemd[1]: Created slice system-serial\x2dgetty.slice.
[    8.919262] random: systemd: uninitialized urandom read (16 bytes read)
[    8.922013] systemd[1]: Created slice User and Session Slice.
[    8.940080] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[    8.961434] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[    8.980506] systemd[1]: Reached target Slices.
[    8.995367] systemd[1]: Reached target Swap.
[    9.011307] systemd[1]: Reached target System Time Set.
[    9.073563] systemd[1]: Listening on RPCbind Server Activation Socket.
[    9.093021] systemd[1]: Listening on Syslog Socket.
[    9.108523] systemd[1]: Listening on fsck to fsckd communication Socket.
[    9.127932] systemd[1]: Listening on initctl Compatibility Named Pipe.
[    9.149463] systemd[1]: Listening on Journal Audit Socket.
[    9.168371] systemd[1]: Listening on Journal Socket (/dev/log).
[    9.184731] systemd[1]: Listening on Journal Socket.
[    9.200703] systemd[1]: Listening on udev Control Socket.
[    9.216248] systemd[1]: Listening on udev Kernel Socket.
[    9.232574] systemd[1]: Condition check resulted in Huge Pages File System being skipped.
[    9.243864] systemd[1]: Mounting POSIX Message Queue File System...
[    9.271685] systemd[1]: Mounting RPC Pipe File System...
[    9.301328] systemd[1]: Mounting Kernel Debug File System...
[    9.329536] systemd[1]: Mounting Kernel Trace File System...
[    9.425907] systemd[1]: Starting Journal Service...
[    9.457177] systemd[1]: Starting Restore / save the current clock...
[    9.489715] systemd[1]: Starting Set the console keyboard layout...
[    9.528479] systemd[1]: Starting Create list of static device nodes for the current kernel...
[    9.534334] RPC: Registered named UNIX socket transport module.
[    9.534367] RPC: Registered udp transport module.
[    9.534378] RPC: Registered tcp transport module.
[    9.534390] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    9.547972] systemd[1]: Condition check resulted in Load Kernel Module drm being skipped.
[    9.572857] systemd[1]: Started Nameserver information manager.
[    9.589142] systemd[1]: Reached target Network (Pre).
[    9.613247] systemd[1]: Condition check resulted in Set Up Additional Binary Formats being skipped.
[    9.613783] systemd[1]: Condition check resulted in File System Check on Root Device being skipped.
[    9.633317] systemd[1]: Starting Load Kernel Modules...
[    9.662624] systemd[1]: Starting Remount Root and Kernel File Systems...
[    9.707368] systemd[1]: Starting udev Coldplug all Devices...
[    9.757407] systemd[1]: Mounted POSIX Message Queue File System.
[    9.768299] systemd[1]: Mounted RPC Pipe File System.
[    9.777139] EXT4-fs (mmcblk0p1): re-mounted. Opts: commit=600,errors=remount-ro
[    9.798059] systemd[1]: Mounted Kernel Debug File System.
[    9.817533] systemd[1]: Mounted Kernel Trace File System.
[    9.844021] systemd[1]: Finished Restore / save the current clock.
[    9.868851] systemd[1]: Finished Create list of static device nodes for the current kernel.
[    9.910034] systemd[1]: Finished Remount Root and Kernel File Systems.
[    9.910608] g_serial gadget: Gadget Serial v2.4
[    9.910633] g_serial gadget: g_serial ready
[    9.930842] systemd[1]: Condition check resulted in Rebuild Hardware Database being skipped.
[    9.931586] systemd[1]: Condition check resulted in Platform Persistent Storage Archival being skipped.
[    9.942689] systemd[1]: Starting Load/Save Random Seed...
[    9.985919] systemd[1]: Starting Create System Users...
[   10.008984] systemd[1]: Finished Load Kernel Modules.
[   10.040904] systemd[1]: Mounting FUSE Control File System...
[   10.072767] systemd[1]: Mounting Kernel Configuration File System...
[   10.105610] systemd[1]: Starting Apply Kernel Variables...
[   10.132514] systemd[1]: Mounted FUSE Control File System.
[   10.149805] systemd[1]: Mounted Kernel Configuration File System.
[   10.176770] systemd[1]: Finished Create System Users.
[   10.210566] systemd[1]: Starting Create Static Device Nodes in /dev...
[   10.305053] systemd[1]: Started Journal Service.
[   10.468941] systemd-journald[273]: Received client request to flush runtime journal.
[   12.835153] random: crng init done
[   12.835191] random: 7 urandom warning(s) missed due to ratelimiting
[   13.068489] core: _opp_supported_by_regulators: OPP minuV: 1320000 maxuV: 1320000, not supported by regulator
[   13.068530] cpu cpu0: _opp_add: OPP not supported by regulators (1104000000)
[   13.068779] core: _opp_supported_by_regulators: OPP minuV: 1320000 maxuV: 1320000, not supported by regulator
[   13.068798] cpu cpu0: _opp_add: OPP not supported by regulators (1200000000)
[   13.069018] core: _opp_supported_by_regulators: OPP minuV: 1340000 maxuV: 1340000, not supported by regulator
[   13.069036] cpu cpu0: _opp_add: OPP not supported by regulators (1296000000)
[   13.069245] core: _opp_supported_by_regulators: OPP minuV: 1400000 maxuV: 1400000, not supported by regulator
[   13.069263] cpu cpu0: _opp_add: OPP not supported by regulators (1368000000)
[   13.070010] thermal thermal_zone0: binding zone cpu_thermal with cdev thermal-cpufreq-0 failed:-22
[   14.767140] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[   14.796048] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[   15.195043] xradio: XR819 device discovered
[   15.464334] ads7846 spi1.1: supply vcc not found, using dummy regulator
[   15.476650] fbtft: module is from the staging directory, the quality is unknown, you have been warned.
[   15.482122] ads7846 spi1.1: touchscreen, irq 71
[   15.499005] input: ADS7846 Touchscreen as /devices/platform/soc/1c69000.spi/spi_master/spi1/spi1.1/input/input3
[   15.526791] xradio: hardware vers. 7.9
[   15.526815] xradio: firmware vers. 8 (WSM), build 5258, api 1060, cap 0x0003
[   15.526820] xradio: Config USE_EXTENSIONS
[   15.535819] fb_ili9340: module is from the staging directory, the quality is unknown, you have been warned.
[   15.537027] fb_ili9340 spi1.0: fbtft_property_value: buswidth = 8
[   15.537050] fb_ili9340 spi1.0: fbtft_property_value: debug = 1
[   15.537060] fb_ili9340 spi1.0: fbtft_property_value: rotate = 90
[   15.537072] fb_ili9340 spi1.0: fbtft_property_value: fps = 25
[   15.537081] fb_ili9340 spi1.0: fbtft_property_value: txbuflen = 32768
[   15.537447] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'reset' GPIO
[   15.537493] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'dc' GPIO
[   15.537527] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'rd' GPIO
[   15.537554] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'wr' GPIO
[   15.537580] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'cs' GPIO
[   15.537608] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'latch' GPIO
[   15.537636] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'db' GPIO
[   15.537662] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'led' GPIO
[   15.537688] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'aux' GPIO
[   15.537714] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'db' GPIO
[   15.537740] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'led' GPIO
[   15.537766] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'aux' GPIO
[   15.537792] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'db' GPIO
[   15.537817] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'led' GPIO
[   15.537844] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'aux' GPIO
[   15.537871] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'db' GPIO
[   15.537897] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'led' GPIO
[   15.537922] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'aux' GPIO
[   15.537948] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'db' GPIO
[   15.537974] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'led' GPIO
[   15.537999] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'aux' GPIO
[   15.538025] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'db' GPIO
[   15.538051] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'led' GPIO
[   15.538077] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'aux' GPIO
[   15.538103] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'db' GPIO
[   15.538129] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'led' GPIO
[   15.538154] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'aux' GPIO
[   15.538181] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'db' GPIO
[   15.538207] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'led' GPIO
[   15.538232] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'aux' GPIO
[   15.538258] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'db' GPIO
[   15.538284] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'led' GPIO
[   15.538309] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'aux' GPIO
[   15.538335] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'db' GPIO
[   15.538361] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'led' GPIO
[   15.538467] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'aux' GPIO
[   15.538498] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'db' GPIO
[   15.538524] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'led' GPIO
[   15.538550] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'aux' GPIO
[   15.538576] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'db' GPIO
[   15.538602] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'led' GPIO
[   15.538628] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'aux' GPIO
[   15.538654] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'db' GPIO
[   15.538680] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'led' GPIO
[   15.538705] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'aux' GPIO
[   15.538731] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'db' GPIO
[   15.538757] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'led' GPIO
[   15.538783] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'aux' GPIO
[   15.538809] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'db' GPIO
[   15.538835] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'led' GPIO
[   15.538888] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'aux' GPIO
[   15.539130] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'db' GPIO
[   15.539278] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'led' GPIO
[   15.539423] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'aux' GPIO
[   15.553299] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   16.340430] Console: switching to colour frame buffer device 40x30
[   16.341332] graphics fb0: fb_ili9340 frame buffer, 320x240, 150 KiB video memory, 32 KiB buffer memory, fps=25, spi1.0 at 16 MHz
[   19.110442] dwmac-sun8i 1c30000.ethernet eth0: PHY [0.1:01] driver [Generic PHY] (irq=POLL)
[   19.119448] dwmac-sun8i 1c30000.ethernet eth0: No Safety Features support found
[   19.119493] dwmac-sun8i 1c30000.ethernet eth0: No MAC Management Counters available
[   19.119507] dwmac-sun8i 1c30000.ethernet eth0: PTP not supported by HW
[   19.145757] dwmac-sun8i 1c30000.ethernet eth0: configuring for phy/mii link mode
[   20.485957] wlan0: authenticate with 64:e5:99:db:1e:30
[   20.489159] wlan0: send auth to 64:e5:99:db:1e:30 (try 1/3)
[   20.511736] wlan0: authenticated
[   20.515142] wlan0: associate with 64:e5:99:db:1e:30 (try 1/3)
[   20.519069] wlan0: RX AssocResp from 64:e5:99:db:1e:30 (capab=0x1411 status=0 aid=4)
[   20.522334] wlan0: associated
[   20.658240] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   35.830734] vcc3v0: disabling
[   35.830757] vcc5v0: disabling
orangepizero@orangepizero:~$

 

 

dmesg | grep spi

 

Spoiler

orangepizero@orangepizero:~$ dmesg | grep spi
[   15.464334] ads7846 spi1.1: supply vcc not found, using dummy regulator
[   15.482122] ads7846 spi1.1: touchscreen, irq 71
[   15.499005] input: ADS7846 Touchscreen as /devices/platform/soc/1c69000.spi/spi_master/spi1/spi1.1/input/input3
[   15.537027] fb_ili9340 spi1.0: fbtft_property_value: buswidth = 8
[   15.537050] fb_ili9340 spi1.0: fbtft_property_value: debug = 1
[   15.537060] fb_ili9340 spi1.0: fbtft_property_value: rotate = 90
[   15.537072] fb_ili9340 spi1.0: fbtft_property_value: fps = 25
[   15.537081] fb_ili9340 spi1.0: fbtft_property_value: txbuflen = 32768
[   15.537447] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'reset' GPIO
[   15.537493] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'dc' GPIO
[   15.537527] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'rd' GPIO
[   15.537554] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'wr' GPIO
[   15.537580] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'cs' GPIO
[   15.537608] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'latch' GPIO
[   15.537636] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'db' GPIO
[   15.537662] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'led' GPIO
[   15.537688] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'aux' GPIO
[   15.537714] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'db' GPIO
[   15.537740] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'led' GPIO
[   15.537766] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'aux' GPIO
[   15.537792] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'db' GPIO
[   15.537817] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'led' GPIO
[   15.537844] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'aux' GPIO
[   15.537871] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'db' GPIO
[   15.537897] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'led' GPIO
[   15.537922] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'aux' GPIO
[   15.537948] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'db' GPIO
[   15.537974] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'led' GPIO
[   15.537999] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'aux' GPIO
[   15.538025] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'db' GPIO
[   15.538051] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'led' GPIO
[   15.538077] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'aux' GPIO
[   15.538103] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'db' GPIO
[   15.538129] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'led' GPIO
[   15.538154] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'aux' GPIO
[   15.538181] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'db' GPIO
[   15.538207] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'led' GPIO
[   15.538232] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'aux' GPIO
[   15.538258] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'db' GPIO
[   15.538284] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'led' GPIO
[   15.538309] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'aux' GPIO
[   15.538335] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'db' GPIO
[   15.538361] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'led' GPIO
[   15.538467] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'aux' GPIO
[   15.538498] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'db' GPIO
[   15.538524] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'led' GPIO
[   15.538550] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'aux' GPIO
[   15.538576] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'db' GPIO
[   15.538602] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'led' GPIO
[   15.538628] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'aux' GPIO
[   15.538654] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'db' GPIO
[   15.538680] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'led' GPIO
[   15.538705] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'aux' GPIO
[   15.538731] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'db' GPIO
[   15.538757] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'led' GPIO
[   15.538783] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'aux' GPIO
[   15.538809] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'db' GPIO
[   15.538835] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'led' GPIO
[   15.538888] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'aux' GPIO
[   15.539130] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'db' GPIO
[   15.539278] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'led' GPIO
[   15.539423] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'aux' GPIO
[   16.341332] graphics fb0: fb_ili9340 frame buffer, 320x240, 150 KiB video memory, 32 KiB buffer memory, fps=25, spi1.0 at 16 MHz

 

dmesg | grep fb

 

Spoiler

orangepizero@orangepizero:~$ dmesg | grep fb
[    0.000000] Kernel command line: root=UUID=592180af-c238-474c-a04b-4a9e91c6d375 rootwait rootfstype=ext4 console=ttyS0,115200 hdmi.audio=EDID:0 disp.screen0_output_mode=1920x1080p60 consoleblank=0 loglevel=1 ubootpart=f6fd8d58-01 ubootsource=mmc usb-storage.quirks=0x2537:0x1066:u,0x2537:0x1068:u   sunxi_ve_mem_reserve=0 sunxi_g2d_mem_reserve=0 sunxi_fb_mem_reserve=16 cgroup_enable=memory swapaccount=1
[    4.083589]     sunxi_fb_mem_reserve=16
[   15.476650] fbtft: module is from the staging directory, the quality is unknown, you have been warned.
[   15.535819] fb_ili9340: module is from the staging directory, the quality is unknown, you have been warned.
[   15.537027] fb_ili9340 spi1.0: fbtft_property_value: buswidth = 8
[   15.537050] fb_ili9340 spi1.0: fbtft_property_value: debug = 1
[   15.537060] fb_ili9340 spi1.0: fbtft_property_value: rotate = 90
[   15.537072] fb_ili9340 spi1.0: fbtft_property_value: fps = 25
[   15.537081] fb_ili9340 spi1.0: fbtft_property_value: txbuflen = 32768
[   15.537447] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'reset' GPIO
[   15.537493] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'dc' GPIO
[   15.537527] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'rd' GPIO
[   15.537554] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'wr' GPIO
[   15.537580] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'cs' GPIO
[   15.537608] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'latch' GPIO
[   15.537636] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'db' GPIO
[   15.537662] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'led' GPIO
[   15.537688] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'aux' GPIO
[   15.537714] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'db' GPIO
[   15.537740] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'led' GPIO
[   15.537766] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'aux' GPIO
[   15.537792] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'db' GPIO
[   15.537817] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'led' GPIO
[   15.537844] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'aux' GPIO
[   15.537871] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'db' GPIO
[   15.537897] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'led' GPIO
[   15.537922] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'aux' GPIO
[   15.537948] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'db' GPIO
[   15.537974] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'led' GPIO
[   15.537999] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'aux' GPIO
[   15.538025] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'db' GPIO
[   15.538051] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'led' GPIO
[   15.538077] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'aux' GPIO
[   15.538103] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'db' GPIO
[   15.538129] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'led' GPIO
[   15.538154] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'aux' GPIO
[   15.538181] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'db' GPIO
[   15.538207] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'led' GPIO
[   15.538232] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'aux' GPIO
[   15.538258] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'db' GPIO
[   15.538284] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'led' GPIO
[   15.538309] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'aux' GPIO
[   15.538335] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'db' GPIO
[   15.538361] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'led' GPIO
[   15.538467] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'aux' GPIO
[   15.538498] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'db' GPIO
[   15.538524] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'led' GPIO
[   15.538550] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'aux' GPIO
[   15.538576] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'db' GPIO
[   15.538602] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'led' GPIO
[   15.538628] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'aux' GPIO
[   15.538654] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'db' GPIO
[   15.538680] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'led' GPIO
[   15.538705] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'aux' GPIO
[   15.538731] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'db' GPIO
[   15.538757] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'led' GPIO
[   15.538783] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'aux' GPIO
[   15.538809] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'db' GPIO
[   15.538835] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'led' GPIO
[   15.538888] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'aux' GPIO
[   15.539130] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'db' GPIO
[   15.539278] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'led' GPIO
[   15.539423] fb_ili9340 spi1.0: fbtft_request_one_gpio: 'aux' GPIO
[   16.341332] graphics fb0: fb_ili9340 frame buffer, 320x240, 150 KiB video memory, 32 KiB buffer memory, fps=25, spi1.0 at 16 MHz


 

orangepizero@orangepizero:~$ sudo systemctl status lightdm.service
[sudo] password for orangepizero:
● lightdm.service - Light Display Manager
     Loaded: loaded (/lib/systemd/system/lightdm.service; indirect; vendor preset: enabled)
     Active: failed (Result: exit-code) since Thu 2021-11-04 08:15:55 UTC; 1h 3min ago
       Docs: man:lightdm(1)
    Process: 715 ExecStartPre=/bin/sh -c [ "$(basename $(cat /etc/X11/default-display-manager 2>/dev/null))" = "lightdm" ] (code=exited, status=1/FAILURE)

Nov 04 08:15:55 orangepizero systemd[1]: lightdm.service: Scheduled restart job, restart counter is at 5.
Nov 04 08:15:55 orangepizero systemd[1]: Stopped Light Display Manager.
Nov 04 08:15:55 orangepizero systemd[1]: lightdm.service: Start request repeated too quickly.
Nov 04 08:15:55 orangepizero systemd[1]: lightdm.service: Failed with result 'exit-code'.
Nov 04 08:15:55 orangepizero systemd[1]: Failed to start Light Display Manager.

 

orangepizero@orangepizero:~$ cat /etc/X11/xorg.conf.d/01-armbian-defaults.conf
Section "Monitor"
        Identifier              "Monitor0"
        Option                  "DPMS" "false"
EndSection
Section "ServerFlags"
        Option                  "BlankTime" "0"
        Option                  "StandbyTime" "0"
        Option                  "SuspendTime" "0"
        Option                  "OffTime" "0"
EndSection

 

I tried logging into the console shown on the LCD, becoming root (su) and running Xorg. The screen flashed some text messages and immediately went black. I then logged into the orangepi  from PC via ssh, and used htop as root to close sessions of Xorg. After this the console came back up in the LCD. The Xorg.0.log file generated after this attached below.

 

EDIT---

If I issue "startx" command in the serial console on PC, the I get the following messages:  


 

orangepizero@orangepizero:~$ startx


X.Org X Server 1.20.11
X Protocol Version 11, Revision 0
Build Operating System: linux Ubuntu
Current Operating System: Linux orangepizero 5.10.60-sunxi #21.08.1 SMP Wed Aug 25 18:19:32 UTC 2021 armv7l
Kernel command line: root=UUID=592180af-c238-474c-a04b-4a9e91c6d375 rootwait rootfstype=ext4 console=ttyS0,115200 hdmi.audio=EDID:0 disp.screen0_output_mode=1920x1080p60 consoleblank=0 loglevel=1 ubootpart=f6fd8d58-01 ubootsource=mmc usb-storage.quirks=0x2537:0x1066:u,0x2537:0x1068:u   sunxi_ve_mem_reserve=0 sunxi_g2d_mem_reserve=0 sunxi_fb_mem_reserve=16 cgroup_enable=memory swapaccount=1
Build Date: 06 July 2021  10:17:51AM
xorg-server 2:1.20.11-1ubuntu1~20.04.2 (For technical support please see http://www.ubuntu.com/support)
Current version of pixman: 0.38.4
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Thu Nov  4 10:49:59 2021
(==) Using config directory: "/etc/X11/xorg.conf.d"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"

The LCD then goes into a sort of graphical mode console, where I still get just a console, but now there is black text on a white background, a mouse cursor and detects touch inputs. Mouse movement is detected very accurately, touch is not accurate at all but is detected, so that's something, and I can click and drag things on the screen to highlight them. Is this a good sign? What is this indicating? If I issue lightdm command in this graphical console on the LCD I still get an error. I can't see the message fully as it seems to be cut off at random places due to the size of the LCD screen, but it looks like it is the same error message that I have posted above.

 

Xorg.0.log

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines