Output to the LCD does not work A20-olinuxino-focal-minimal-20210513-112230

Started by ivanbraga, June 20, 2021, 09:52:37 AM

Previous topic - Next topic

ivanbraga

After some time I returned to a project that is using an A20-Som204-EVB.

Following the guidelines of this link "https://olimex.wordpress.com/2020/04/21/olimage-mainline-linux-images-building-script-for-all-of-our-olinuxino-and-som-boards/ ".

I downloaded all the images and tried to make the LCD output work, but none of them ran on the LCD.

My LCD is this "lcd-olinuxino-10ts" template from this link "https://www.olimex.com/products/olinuxino/lcd/lcd-olinuxino-10ts/open-source-hardware".

I followed the guidelines of this link, "https://www.olimex.com/wiki/armbianhowto":

- olinuxino monitor set lcd-olinuxino-10
- SaveEnv
- Reset

And also, for Bootlog on HDMI / LCD Console:
  - Console = Both

I will not use HDMI, just the LCD.

I am already tried to make it work with these images, even tried to build a new image, following the guidelines on page 13 of the PDF "Olimageguide - Linux for Olimex Allwinner Boards.

But I get this error.

Exception: Command Failed: qemu-debootstrap --arch = armhf --components = main, universe, focal / olimage / output / a20-olinuxino / filesystem / focal-minimal http://ports.ubuntu.com/

E: Command Failed: qemu-debootstrap --arch = armhf --components = main, universe, focal / olimage / output / a20-olinuxino / filesystem / focal-minimal http://ports.ubuntu.com/.

For the record. In this image works.
uname -a
Linux Oolinuxino 5.2.21-Sunxi # 5.92.4 SMP Thu Dec 12 08:46:22 EET 2019 Armv7l Armv7L Armv7l GNU / Linux

Any orientation of how the LCD works is welcome.

ivanbraga


Below the exit of the serial.


U-Boot SPL 2021.04+olimex-1-20210507.081028 (May 07 2021 - 08:11:19 +0000)
DRAM: 1024 MiB
CPU: 912000000Hz, AXI/AHB/APB: 3/2/2
Loading configuration from EEPROM: OK
Verifying data: OK
Trying to boot from MMC1


U-Boot 2021.04+olimex-1-20210507.081028 (May 07 2021 - 08:11:19 +0000) Allwinner Technology

CPU:   Allwinner A20 (SUN7I)
ID:    A20-SOM204-1Gs16Me16G-MC Rev.B
SN:    000025FC
MAC:   30:1F:9A:D0:16:FE
I2C:   ready
DRAM:  1 GiB
SF: Detected w25q128 with page size 256 Bytes, erase size 4 KiB, total 16 MiB
MMC:   mmc@1c0f000: 0, mmc@1c11000: 1
Loading Environment from EXT4... OK
Setting up a 1024x600 lcd console (overscan 0x0)
In:    serial
Out:   vga
Err:   vga
## Error: Can't overwrite "ethaddr"
## Error inserting "ethaddr" variable, errno=1
## Error: Can't overwrite "serial#"
## Error inserting "serial#" variable, errno=1
Allwinner mUSB OTG (Peripheral)
Net:   eth0: ethernet@1c50000, eth1: usb_ether
starting USB...
Bus usb@1c14000: USB EHCI 1.00
Bus usb@1c14400: USB OHCI 1.0
Bus usb@1c1c000: USB EHCI 1.00
Bus usb@1c1c400: USB OHCI 1.0
scanning bus usb@1c14000 for devices... 1 USB Device(s) found
scanning bus usb@1c14400 for devices... 1 USB Device(s) found
scanning bus usb@1c1c000 for devices... 1 USB Device(s) found
scanning bus usb@1c1c400 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
Hit any key to stop autoboot:  0
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot/boot.scr
2274 bytes read in 2 ms (1.1 MiB/s)
## Executing script at 43100000
Boot script loaded from mmc
Checking for /uEnv.txt...
Checking for /boot/uEnv.txt...
1036 bytes read in 3 ms (336.9 KiB/s)
Loaded environment from /boot/uEnv.txt
Loading FIT image...
18885475 bytes read in 1177 ms (15.3 MiB/s)
## Loading kernel from FIT Image at 58000000 ...
   Using 'config-8958' configuration
   Trying 'kernel-1' kernel subimage
     Description:  Linux kernel 5.10.36-olimex
     Type:         Kernel Image
     Compression:  uncompressed
     Data Start:   0x580000d0
     Data Size:    6414152 Bytes = 6.1 MiB
     Architecture: ARM
     OS:           Linux
     Load Address: 0x40080000
     Entry Point:  0x40080000
     Hash algo:    crc32
     Hash value:   a6e6e901
     Hash algo:    sha1
     Hash value:   6791058a7c1ed71979ece1d244e3609d23327ecf
   Verifying Hash Integrity ... crc32+ sha1+ OK
## Loading ramdisk from FIT Image at 58000000 ...
   Using 'config-8958' configuration
   Trying 'ramdisk-1' ramdisk subimage
     Description:  Ramdisk for kernel 5.10.36-olimex
     Type:         RAMDisk Image
     Compression:  Unknown Compression
     Data Start:   0x5861e14c
     Data Size:    12016568 Bytes = 11.5 MiB
     Architecture: ARM
     OS:           Linux
     Load Address: 0x4fe00000
     Entry Point:  0x4fe00000
     Hash algo:    crc32
     Hash value:   6ba46fb8
     Hash algo:    sha1
     Hash value:   5f2c0b15ba5da0e2aea5c07a91e969abca5a1308
   Verifying Hash Integrity ... crc32+ sha1+ OK
   Loading ramdisk from 0x5861e14c to 0x4fe00000
WARNING: 'compression' nodes for ramdisks are deprecated, please fix your .its file!
## Loading fdt from FIT Image at 58000000 ...
   Using 'config-8958' configuration
   Trying 'fdt-10' fdt subimage
     Description:  unavailable
     Type:         Flat Device Tree
     Compression:  uncompressed
     Data Start:   0x591f46c8
     Data Size:    44374 Bytes = 43.3 KiB
     Architecture: ARM
     Load Address: 0x4fa00000
     Hash algo:    crc32
     Hash value:   3aad9e69
     Hash algo:    sha1
     Hash value:   73c8f95418afc6e92cd982e5bb51ce7fbcc27275
   Verifying Hash Integrity ... crc32+ sha1+ OK
   Loading fdt from 0x591f46c8 to 0x4fa00000
## Loading fdt from FIT Image at 58000000 ...
   Trying 'overlay-1' fdt subimage
     Description:  unavailable
     Type:         Flat Device Tree
     Compression:  uncompressed
     Data Start:   0x591ff500
     Data Size:    1001 Bytes = 1001 Bytes
     Architecture: ARM
     Load Address: 0x4fa10000
     Hash algo:    crc32
     Hash value:   d1d51f29
     Hash algo:    sha1
     Hash value:   fa0c14efb55dbe4bdf8aa7241a3e600b486e3ef6
   Verifying Hash Integrity ... crc32+ sha1+ OK
   Loading fdt from 0x591ff500 to 0x4fa10000
## Loading fdt from FIT Image at 58000000 ...
   Trying 'overlay-2' fdt subimage
     Description:  unavailable
     Type:         Flat Device Tree
     Compression:  uncompressed
     Data Start:   0x591ff9cc
     Data Size:    436 Bytes = 436 Bytes
     Architecture: ARM
     Load Address: 0x4fa20000
     Hash algo:    crc32
     Hash value:   00f3a93c
     Hash algo:    sha1
     Hash value:   efa518e1ffcc7c09a7d8010de6a7b363f1345b30
   Verifying Hash Integrity ... crc32+ sha1+ OK
   Loading fdt from 0x591ff9cc to 0x4fa20000
   Booting using the fdt blob at 0x4fa00000
EHCI failed to shut down host controller.
   Loading Kernel Image
   Loading Ramdisk to 4948a000, end 49fffbb8 ... OK
   Loading Device Tree to 4947c000, end 49489f14 ... OK
## Error: Can't overwrite "ethaddr"
## Error inserting "ethaddr" variable, errno=1
## Error: Can't overwrite "serial#"
## Error inserting "serial#" variable, errno=1
Applying overlay: '/usr/lib/olinuxino-overlays/sun7i-a20/spi1-spidev.dtbo'...
408 bytes read in 7 ms (56.6 KiB/s)
Applying overlay: '/usr/lib/olinuxino-overlays/sun7i-a20/spi2-spidev.dtbo'...
408 bytes read in 6 ms (66.4 KiB/s)
Applying overlay: '/usr/lib/olinuxino-overlays/sun7i-a20/sun7i-a20-i2c2.dtbo'...
726 bytes read in 7 ms (100.6 KiB/s)
Applying overlay: '/usr/lib/olinuxino-overlays/sun7i-a20/sun7i-a20-spi1.dtbo'...
1005 bytes read in 7 ms (139.6 KiB/s)
Applying overlay: '/usr/lib/olinuxino-overlays/sun7i-a20/sun7i-a20-spi2.dtbo'...
1005 bytes read in 8 ms (122.1 KiB/s)
Applying overlay: '/usr/lib/olinuxino-overlays/sun7i-a20/sun7i-a20-uart3.dtbo'...
863 bytes read in 7 ms (120.1 KiB/s)
Applying overlay: '/usr/lib/olinuxino-overlays/sun7i-a20/sun7i-a20-uart4.dtbo'...
867 bytes read in 7 ms (120.1 KiB/s)
Applying overlay: '/usr/lib/olinuxino-overlays/sun7i-a20/sun7i-a20-uart7.dtbo'...
867 bytes read in 8 ms (105.5 KiB/s)
Applying overlay: '/usr/lib/olinuxino-overlays/sun7i-a20/sun7i-a20-can.dtbo'...
732 bytes read in 7 ms (101.6 KiB/s)
Applying overlay: '/usr/lib/olinuxino-overlays/sun7i-a20/som204-lcd-olinuxino.dtbo'...
2229 bytes read in 7 ms (310.5 KiB/s)
Applying overlay: '/usr/lib/olinuxino-overlays/sun7i-a20/som204-emac.dtbo'...
1543 bytes read in 7 ms (214.8 KiB/s)

Starting kernel ...

[    0.004047] /cpus/cpu@0 missing clock-frequency property
[    0.004095] /cpus/cpu@1 missing clock-frequency property
[    0.640195] sun4i-usb-phy 1c13400.phy: Couldn't request ID GPIO
Loading, please wait...
Starting version 245.4-4ubuntu3
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Warning: fsck not present, so skipping root file system
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.

Welcome to Ubuntu 20.04 LTS!

[  OK  ] Created slice system-modprobe.slice.
[  OK  ] Created slice system-serial\x2dgetty.slice.
[  OK  ] Created slice User and Session Slice.
[  OK  ] Started Dispatch Password ...ts to Console Directory Watch.
[  OK  ] Started Forward Password R...uests to Wall Directory Watch.
[  OK  ] Set up automount Arbitrary...s File System Automount Point.
[  OK  ] Reached target Local Encrypted Volumes.
[  OK  ] Reached target Remote File Systems.
[  OK  ] Reached target Slices.
[  OK  ] Reached target Swap.
[  OK  ] Listening on Syslog Socket.
[  OK  ] Listening on fsck to fsckd communication Socket.
[  OK  ] Listening on initctl Compatibility Named Pipe.
[  OK  ] Listening on Journal Audit Socket.
[  OK  ] Listening on Journal Socket (/dev/log).
[  OK  ] Listening on Journal Socket.
[  OK  ] Listening on udev Control Socket.
[  OK  ] Listening on udev Kernel Socket.
         Mounting POSIX Message Queue File System...
         Mounting Kernel Debug File System...
         Mounting Kernel Trace File System...
         Starting Journal Service...
         Starting Restore / save the current clock...
         Starting Set the console keyboard layout...
         Starting Create list of st...odes for the current kernel...
[  OK  ] Started Nameserver information manager.
[  OK  ] Reached target Network (Pre).
         Starting File System Check on Root Device...
         Starting Load Kernel Modules...
         Starting udev Coldplug all Devices...
[  OK  ] Mounted POSIX Message Queue File System.
[  OK  ] Mounted Kernel Debug File System.
[  OK  ] Mounted Kernel Trace File System.
[  OK  ] Finished Restore / save the current clock.
[  OK  ] Finished Create list of st... nodes for the current kernel.
[  OK  ] Started File System Check Daemon to report status.
[  OK  ] Finished Load Kernel Modules.
         Mounting Kernel Configuration File System...
         Starting Apply Kernel Variables...
[  OK  ] Finished File System Check on Root Device.
[  OK  ] Mounted Kernel Configuration File System.
         Starting Remount Root and Kernel File Systems...
[  OK  ] Finished Remount Root and Kernel File Systems.
[  OK  ] Finished Apply Kernel Variables.
         Starting Load/Save Random Seed...
         Starting Create System Users...
[  OK  ] Started Journal Service.
         Starting Flush Journal to Persistent Storage...
[  OK  ] Finished Create System Users.
         Starting Create Static Device Nodes in /dev...
[  OK  ] Finished Flush Journal to Persistent Storage.
[  OK  ] Finished Set the console keyboard layout.
[  OK  ] Finished Create Static Device Nodes in /dev.
[  OK  ] Reached target Local File Systems (Pre).
[  OK  ] Reached target Local File Systems.
         Starting Set console font and keymap...
         Starting Create Volatile Files and Directories...
         Starting udev Kernel Device Manager...
[  OK  ] Finished Set console font and keymap.
[  OK  ] Finished Create Volatile Files and Directories.
         Starting Network Time Synchronization...
         Starting Update UTMP about System Boot/Shutdown...
[  OK  ] Finished Update UTMP about System Boot/Shutdown.
[  OK  ] Started udev Kernel Device Manager.
         Starting Network Service...
[  OK  ] Finished udev Coldplug all Devices.
         Starting Helper to synchronize boot up for ifupdown...
[  OK  ] Finished Load/Save Random Seed.
[  OK  ] Finished Helper to synchronize boot up for ifupdown.
         Starting Raise network interfaces...
[  OK  ] Started Network Time Synchronization.
[  OK  ] Started Network Service.
[  OK  ] Reached target System Initialization.
[  OK  ] Started resolvconf-pull-resolved.path.
[  OK  ] Started Daily Cleanup of Temporary Directories.
[  OK  ] Reached target Paths.
[  OK  ] Reached target System Time Set.
[  OK  ] Reached target System Time Synchronized.
[  OK  ] Started Daily apt download activities.
[  OK  ] Started Daily apt upgrade and clean activities.
[  OK  ] Started Periodic ext4 Onli...ata Check for All Filesystems.
[  OK  ] Started Discard unused blocks once a week.
[  OK  ] Started Daily rotation of log files.
[  OK  ] Started Message of the Day.
[  OK  ] Reached target Timers.
[  OK  ] Listening on D-Bus System Message Bus Socket.
[  OK  ] Reached target Sockets.
[  OK  ] Reached target Basic System.
[  OK  ] Started Regular background program processing daemon.
[  OK  ] Started D-Bus System Message Bus.
         Starting Network Manager...
[  OK  ] Started Save initial kernel messages after boot.
         Starting Remove Stale Onli...t4 Metadata Check Snapshots...
         Starting LSB: Load kernel ...d to enable cpufreq scaling...
         Starting Dispatcher daemon for systemd-networkd...
[  OK  ] Started Realtek H5 bluetooth support.
         Starting LCD-OLinuXino RTP calibrabion...
[  OK  ] Started Set the CPU Frequency Scaling governor.
         Starting Authorization Manager...
         Starting Restore /etc/reso... the ppp link was shut down...
         Starting System Logging Service...
         Starting Resets System Activity Data Collector...
         Starting Login Service...
         Starting Network Name Resolution...
         Starting WPA supplicant...
[  OK  ] Finished Restore /etc/reso...re the ppp link was shut down.
[  OK  ] Finished Resets System Activity Data Collector.
[  OK  ] Started System Logging Service.
[  OK  ] Finished Raise network interfaces.
[  OK  ] Finished LCD-OLinuXino RTP calibrabion.
[   22.688040] debugfs: Directory '1c22c00.codec' with parent 'sun4i-codec' already present!
[  OK  ] Started LSB: Load kernel m...ded to enable cpufreq scaling.
[   23.265929] sun4i-pinctrl 1c20800.pinctrl: pin PH20 already requested by 1c0b000.ethernet; cannot claim for 1c2bc00.can
[   23.276875] sun4i-pinctrl 1c20800.pinctrl: pin-244 (1c2bc00.can) status -22
[   23.283978] sun4i-pinctrl 1c20800.pinctrl: could not request pin 244 (PH20) from group PH20  on device 1c20800.pinctrl
[   23.294767] sun4i_can 1c2bc00.can: Error applying setting, reverse things back
[  OK  ] Found device /dev/ttyS0.
[   23.700093] lcd_olinuxino 2-0050: error reading from device at 00
         Starting LSB: set CPUFreq kernel parameters...
[  OK  ] Started ifup for eth0.
[  OK  ] Started WPA supplicant.
[  OK  ] Started Network Manager.
[  OK  ] Started Authorization Manager.
         Starting Modem Manager...

Ubuntu 20.04 LTS a20-olinuxino ttyS0


LubOlimex

Generally to change video output in Olimage you need to run olinuxino-display script. However, it is made for Olimex-made displays.

Check this document: https://github.com/OLIMEX/OLINUXINO/blob/master/DOCUMENTS/OLIMAGE/Olimage-guide.pdf
Technical support and documentation manager at Olimex

kolevs

Hi,

'olinuxino-display' script is not in your last image.
How to switch output?

LubOlimex

Technical support and documentation manager at Olimex