Jump to content

robertoj

Members
  • Posts

    408
  • Joined

  • Last visited

Posts posted by robertoj

  1. I am checking now :)

     

    Before installing plymouth, I checked that panel-mipi-dbi-spi is still loaded late:

    Spoiler

    roberto@orangepizero3:~$ dmesg|grep panel
    [    1.811708] panel@0 enforce active low on GPIO handle
    [    7.677563] panel-mipi-dbi-spi spi1.0: supply power not found, using dummy regulator
    [    7.677805] panel-mipi-dbi-spi spi1.0: supply io not found, using dummy regulator
    [    7.854434] [drm] Initialized panel-mipi-dbi 1.0.0 for spi1.0 on minor 1
    [    8.613814] panel-mipi-dbi-spi spi1.0: [drm] fb0: panel-mipi-dbid frame buffer device

     

    I added the include-lcd-bin.sh and installed plymouth:

    Spoiler

    roberto@orangepizero3:~$ sudo apt install plymouth
    [sudo] password for roberto:
    Installing:                     
      plymouth

    Installing dependencies:
      libplymouth5

    Suggested packages:
      desktop-base  plymouth-themes

    Summary:
      Upgrading: 0, Installing: 2, Removing: 0, Not Upgrading: 0
      Download size: 254 kB
      Space needed: 1,708 kB / 58.8 GB available

    Continue? [Y/n] Y
    Get:1 http://deb.debian.org/debian trixie/main arm64 libplymouth5 arm64 24.004.60-5 [119 kB]
    Get:2 http://deb.debian.org/debian trixie/main arm64 plymouth arm64 24.004.60-5 [135 kB]
    Fetched 254 kB in 0s (909 kB/s)   
    Selecting previously unselected package libplymouth5:arm64.
    (Reading database ... 29860 files and directories currently installed.)
    Preparing to unpack .../libplymouth5_24.004.60-5_arm64.deb ...
    Unpacking libplymouth5:arm64 (24.004.60-5) ...
    Selecting previously unselected package plymouth.
    Preparing to unpack .../plymouth_24.004.60-5_arm64.deb ...
    Unpacking plymouth (24.004.60-5) ...
    Setting up libplymouth5:arm64 (24.004.60-5) ...
    Setting up plymouth (24.004.60-5) ...
    update-initramfs: Generating /boot/initrd.img-6.15.0-edge-sunxi64
    update-initramfs: Armbian: Converting to u-boot format: /boot/uInitrd-6.15.0-edge-sunxi64
    Image Name:   uInitrd
    Created:      Tue Jul  8 09:01:32 2025
    Image Type:   AArch64 Linux RAMDisk Image (gzip compressed)
    Data Size:    18468072 Bytes = 18035.23 KiB = 17.61 MiB
    Load Address: 00000000
    Entry Point:  00000000
    update-initramfs: Armbian: Symlinking /boot/uInitrd-6.15.0-edge-sunxi64 to /boot/uInitrd
    '/boot/uInitrd' -> 'uInitrd-6.15.0-edge-sunxi64'
    update-initramfs: Armbian: done.
    Processing triggers for man-db (2.13.1-1) ...
    Processing triggers for libc-bin (2.41-9) ...

     

    Checking that my bin file is there:

    Spoiler

    roberto@orangepizero3:~$ lsinitramfs /boot/initrd.img-6.15.0-edge-sunxi64 |grep panel
    usr/lib/firmware/panel-mipi-dbi-spi.bin
    usr/lib/modules/6.15.0-edge-sunxi64/kernel/drivers/gpu/drm/panel
    usr/lib/modules/6.15.0-edge-sunxi64/kernel/drivers/gpu/drm/panel/panel-abt-y030xx067a.ko
    usr/lib/modules/6.15.0-edge-sunxi64/kernel/drivers/gpu/drm/panel/panel-arm-versatile.ko
    usr/lib/modules/6.15.0-edge-sunxi64/kernel/drivers/gpu/drm/panel/panel-boe-bf060y8m-aj0.ko

    .... 60 kernel modules that have the word "panel"

     

    The LCD works with plymouth: it starts the LCD earlier, with a smaller font, then switches to normal font, showing all the boot messages

     

    My armbian is not setup yet with lightdm+openbox (x11) or greetd+gtkgreet+labwc (wayland)... I will continue tomorrow

  2. Currently trying to follow the manual

    https://manpages.ubuntu.com/manpages/bionic/man8/initramfs-tools.8.html#configuration hook scripts

     

    I want to include this file:

    Spoiler

    roberto@orangepizero3:/etc/initramfs-tools/hooks$ ls -l /lib/firmware/panel-mipi-dbi-spi.bin
    -rw-r--r-- 1 root root 100 Dec 25  2024 /lib/firmware/panel-mipi-dbi-spi.bin

     

    Creating this file:

    Spoiler
    roberto@orangepizero3:/etc/initramfs-tools/hooks$ cat include-lcd-bin.sh
    #!/bin/sh
    PREREQ=""
    prereqs()
    {
         echo "$PREREQ"
    }
    
    case $1 in
    prereqs)
         prereqs
         exit 0
         ;;
    esac
    . /usr/share/initramfs-tools/hook-functions
    # Begin real processing below this line
    copy_exec /lib/firmware/panel-mipi-dbi-spi.bin

     

     

    chmod +x include-lcd-bin.sh

     

    Then I updated the initrd:

    Spoiler

    roberto@orangepizero3:/etc/initramfs-tools/hooks$ sudo update-initramfs -u
    update-initramfs: Generating /boot/initrd.img-6.13.7-edge-sunxi64
    update-initramfs: Armbian: Converting to u-boot format: /boot/uInitrd-6.13.7-edge-sunxi64
    Image Name:   uInitrd
    Created:      Tue Jul  8 08:48:49 2025
    Image Type:   AArch64 Linux RAMDisk Image (gzip compressed)
    Data Size:    12430475 Bytes = 12139.14 KiB = 11.85 MiB
    Load Address: 00000000
    Entry Point:  00000000
    update-initramfs: Armbian: Symlinking /boot/uInitrd-6.13.7-edge-sunxi64 to /boot/uInitrd
    '/boot/uInitrd' -> 'uInitrd-6.13.7-edge-sunxi64'
    update-initramfs: Armbian: done.

     

    Then I checked, and the desired file was included :)

    Spoiler

    roberto@orangepizero3:/etc/initramfs-tools/hooks$ lsinitramfs -l /boot/initrd.img-6.13.7-edge-sunxi64 |grep panel
    -rw-r--r--   1 root     root          100 Dec 25  2024 usr/lib/firmware/panel-mipi-dbi-spi.bin
    drwxr-xr-x   2 root     root            0 Jul  8 08:48 usr/lib/modules/6.13.7-edge-sunxi64/kernel/drivers/gpu/drm/panel
    -rw-r--r--   1 root     root        58928 Mar 31 20:06 usr/lib/modules/6.13.7-edge-sunxi64/kernel/drivers/gpu/drm/panel/panel-edp.ko
    -rw-r--r--   1 root     root       136552 Mar 31 20:06 usr/lib/modules/6.13.7-edge-sunxi64/kernel/drivers/gpu/drm/panel/panel-simple.ko

    I will repeat this with the actual armbian OS with plymouth, tomorrow.

  3. I am using my orange pi zero 3 with an SPI 4.0" LCD, with driver panel-mipi-dbi-spi. It works great with Linux 6.13.7 (started with a self built image with edge, minimal, Bookworm) and older, but I am having troubles with 6.14.8.

     

    Result from armbianmonitor -u after upgrading to linux 6.14.8:

    sudo apt install linux-image-edge-sunxi64=25.5.1

    I reboot and the SPI LCD starts the text mode console, then turns black instead of starting lightdm

    https://paste.armbian.com/ucoxuwetiq

    Also xorg log after "sudo startx" fails to start.

    Spoiler

    roberto@orangepizero3:~$ tail -n300 /var/log/Xorg.0.log
    [   234.918]
    X.Org X Server 1.21.1.7
    X Protocol Version 11, Revision 0
    [   234.918] Current Operating System: Linux orangepizero3 6.14.8-edge-sunxi64 #1 SMP Thu May 22 12:31:58 UTC 2025 aarch64
    [   234.918] Kernel command line: root=UUID=405815fa-b5a7-4731-8675-6d56d040972c rootwait rootfstype=ext4 splash=verbose console=ttyS0,115200 console=tty1 consoleblank=0 loglevel=1 ubootpart=a66e3381-01 usb-storage.quirks=0x2537:0x1066:u,0x2537:0x1068:u   cgroup_enable=memory
    [   234.918] xorg-server 2:21.1.7-3+deb12u10 (https://www.debian.org/support)
    [   234.918] Current version of pixman: 0.42.2
    [   234.918]     Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
    [   234.918] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
    [   234.918] (==) Log file: "/var/log/Xorg.0.log", Time: Tue Jul  8 06:04:03 2025
    [   234.919] (==) Using config directory: "/etc/X11/xorg.conf.d"
    [   234.919] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
    [   234.919] (==) No Layout section.  Using the first Screen section.
    [   234.919] (==) No screen section available. Using defaults.
    [   234.919] (**) |-->Screen "Default Screen Section" (0)
    [   234.920] (**) |   |-->Monitor "<default monitor>"
    [   234.920] (==) No device specified for screen "Default Screen Section".
        Using the first device section listed.
    [   234.920] (**) |   |-->Device "myfb"
    [   234.920] (==) No monitor specified for screen "Default Screen Section".
        Using a default monitor configuration.
    [   234.920] (==) Automatically adding devices
    [   234.920] (==) Automatically enabling devices
    [   234.920] (==) Automatically adding GPU devices
    [   234.920] (==) Automatically binding GPU devices
    [   234.920] (==) Max clients allowed: 256, resource mask: 0x1fffff
    [   234.920] (WW) The directory "/usr/share/fonts/X11/misc" does not exist.
    [   234.920]     Entry deleted from font path.
    [   234.920] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
    [   234.920]     Entry deleted from font path.
    [   234.920] (WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist.
    [   234.920]     Entry deleted from font path.
    [   234.920] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.
    [   234.920]     Entry deleted from font path.
    [   234.921] (WW) The directory "/usr/share/fonts/X11/100dpi" does not exist.
    [   234.921]     Entry deleted from font path.
    [   234.921] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.
    [   234.921]     Entry deleted from font path.
    [   234.921] (==) FontPath set to:
        /usr/share/fonts/X11/Type1,
        built-ins
    [   234.921] (==) ModulePath set to "/usr/lib/xorg/modules"
    [   234.921] (II) The server relies on udev to provide the list of input devices.
        If no devices become available, reconfigure udev or disable AutoAddDevices.
    [   234.921] (II) Loader magic: 0xaaaac7840f00
    [   234.921] (II) Module ABI versions:
    [   234.921]     X.Org ANSI C Emulation: 0.4
    [   234.921]     X.Org Video Driver: 25.2
    [   234.921]     X.Org XInput driver : 24.4
    [   234.921]     X.Org Server Extension : 10.0
    [   234.922] (--) using VT number 2

    [   234.922] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
    [   234.926] (II) xfree86: Adding drm device (/dev/dri/card0)
    [   234.926] (II) Platform probe for /sys/devices/platform/display-engine/drm/card0
    [   234.926] (II) xfree86: Adding drm device (/dev/dri/card2)
    [   234.926] (II) Platform probe for /sys/devices/platform/soc/1800000.gpu/drm/card2
    [   234.927] (II) xfree86: Adding drm device (/dev/dri/card1)
    [   234.927] (II) Platform probe for /sys/devices/platform/soc/5011000.spi/spi_master/spi1/spi1.0/drm/card1
    [   235.025] (II) no primary bus or device found
    [   235.025]     falling back to /sys/devices/platform/display-engine/drm/card0
    [   235.026] (II) LoadModule: "glx"
    [   235.026] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
    [   235.029] (II) Module glx: vendor="X.Org Foundation"
    [   235.030]     compiled for 1.21.1.7, module version = 1.0.0
    [   235.030]     ABI class: X.Org Server Extension, version 10.0
    [   235.030] (II) LoadModule: "fbdev"
    [   235.030] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
    [   235.030] (II) Module fbdev: vendor="X.Org Foundation"
    [   235.030]     compiled for 1.21.1.3, module version = 0.5.0
    [   235.030]     Module class: X.Org Video Driver
    [   235.030]     ABI class: X.Org Video Driver, version 25.2
    [   235.030] (II) FBDEV: driver for framebuffer: fbdev
    [   235.131] (WW) Falling back to old probe method for fbdev
    [   235.131] (II) Loading sub module "fbdevhw"
    [   235.131] (II) LoadModule: "fbdevhw"
    [   235.132] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
    [   235.132] (II) Module fbdevhw: vendor="X.Org Foundation"
    [   235.133]     compiled for 1.21.1.7, module version = 0.0.2
    [   235.133]     ABI class: X.Org Video Driver, version 25.2
    [   235.133] (II) FBDEV(0): using /dev/fb0
    [   235.133] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
    [   235.133] (II) FBDEV(0): Creating default Display subsection in Screen section
        "Default Screen Section" for depth/fbbpp 24/32
    [   235.133] (==) FBDEV(0): Depth 24, (==) framebuffer bpp 32
    [   235.133] (==) FBDEV(0): RGB weight 888
    [   235.133] (==) FBDEV(0): Default visual is TrueColor
    [   235.133] (==) FBDEV(0): Using gamma correction (1.0, 1.0, 1.0)
    [   235.133] (II) FBDEV(0): hardware: panel-mipi-dbid (video memory: 452kB)
    [   235.133] (DB) xf86MergeOutputClassOptions unsupported bus type 0
    [   235.133] (**) FBDEV(0): Option "fbdev" "/dev/fb0"
    [   235.133] (II) FBDEV(0): checking modes against framebuffer device...
    [   235.133] (II) FBDEV(0): checking modes against monitor...
    [   235.133] (II) FBDEV(0): Virtual size is 480x320 (pitch 480)
    [   235.133] (**) FBDEV(0):  Built-in mode "current"
    [   235.133] (==) FBDEV(0): DPI set to (96, 96)
    [   235.133] (II) Loading sub module "fb"
    [   235.133] (II) LoadModule: "fb"
    [   235.133] (II) Module "fb" already built-in
    [   235.133] (**) FBDEV(0): using shadow framebuffer
    [   235.133] (II) Loading sub module "shadow"
    [   235.133] (II) LoadModule: "shadow"
    [   235.133] (II) Loading /usr/lib/xorg/modules/libshadow.so
    [   235.134] (II) Module shadow: vendor="X.Org Foundation"
    [   235.134]     compiled for 1.21.1.7, module version = 1.1.0
    [   235.134]     ABI class: X.Org ANSI C Emulation, version 0.4
    [   235.134] (EE) FBDEV(0): FBIOPUT_VSCREENINFO: Invalid argument
    [   235.134] (EE) FBDEV(0): mode initialization failed
    [   235.134] (EE)
    Fatal server error:
    [   235.134] (EE) AddScreen/ScreenInit failed for driver 0
    [   235.134] (EE)
    [   235.134] (EE)
    Please consult the The X.Org Foundation support
         at http://wiki.x.org
     for help.
    [   235.134] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
    [   235.134] (EE)
    [   235.634] (EE) Server terminated with error (1). Closing log file.

     

    When I start the opiz3 with an HDMI screen connected (appears as /dev/fb0), startx and lightdm start normally, but NOT displaying anything in the small LCD

     

    Then, I downgrade to linux 6.13.7,

    sudo apt install linux-image-edge-sunxi64=25.2.3

    I reboot and lightdm starts normally in the 4.0 LCD

    https://paste.armbian.com/uqafuxexiv

    Stopping lightdm and trying x11 to see the log

    sudo startx   ... starts xorg normally

    Spoiler

    roberto@orangepizero3:~$ tail -n600 /var/log/Xorg.0.log
    [   191.489]
    X.Org X Server 1.21.1.7
    X Protocol Version 11, Revision 0
    [   191.490] Current Operating System: Linux orangepizero3 6.13.7-edge-sunxi64 #2 SMP Thu Mar 13 12:08:08 UTC 2025 aarch64
    [   191.490] Kernel command line: root=UUID=405815fa-b5a7-4731-8675-6d56d040972c rootwait rootfstype=ext4 splash=verbose console=ttyS0,115200 console=tty1 consoleblank=0 loglevel=1 ubootpart=a66e3381-01 usb-storage.quirks=0x2537:0x1066:u,0x2537:0x1068:u   cgroup_enable=memory
    [   191.490] xorg-server 2:21.1.7-3+deb12u10 (https://www.debian.org/support)
    [   191.490] Current version of pixman: 0.42.2
    [   191.490]     Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
    [   191.490] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
    [   191.490] (==) Log file: "/var/log/Xorg.0.log", Time: Tue Jul  8 06:36:59 2025
    [   191.491] (==) Using config directory: "/etc/X11/xorg.conf.d"
    [   191.491] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
    [   191.492] (==) No Layout section.  Using the first Screen section.
    [   191.492] (==) No screen section available. Using defaults.
    [   191.492] (**) |-->Screen "Default Screen Section" (0)
    [   191.492] (**) |   |-->Monitor "<default monitor>"
    [   191.494] (==) No device specified for screen "Default Screen Section".
        Using the first device section listed.
    [   191.494] (**) |   |-->Device "myfb"
    [   191.494] (==) No monitor specified for screen "Default Screen Section".
        Using a default monitor configuration.
    [   191.494] (==) Automatically adding devices
    [   191.494] (==) Automatically enabling devices
    [   191.494] (==) Automatically adding GPU devices
    [   191.494] (==) Automatically binding GPU devices
    [   191.494] (==) Max clients allowed: 256, resource mask: 0x1fffff
    [   191.494] (WW) The directory "/usr/share/fonts/X11/misc" does not exist.
    [   191.494]     Entry deleted from font path.
    [   191.494] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
    [   191.494]     Entry deleted from font path.
    [   191.494] (WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist.
    [   191.494]     Entry deleted from font path.
    [   191.494] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.
    [   191.494]     Entry deleted from font path.
    [   191.494] (WW) The directory "/usr/share/fonts/X11/100dpi" does not exist.
    [   191.494]     Entry deleted from font path.
    [   191.494] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.
    [   191.494]     Entry deleted from font path.
    [   191.494] (==) FontPath set to:
        /usr/share/fonts/X11/Type1,
        built-ins
    [   191.494] (==) ModulePath set to "/usr/lib/xorg/modules"
    [   191.494] (II) The server relies on udev to provide the list of input devices.
        If no devices become available, reconfigure udev or disable AutoAddDevices.
    [   191.494] (II) Loader magic: 0xaaaabd9a0f00
    [   191.495] (II) Module ABI versions:
    [   191.495]     X.Org ANSI C Emulation: 0.4
    [   191.495]     X.Org Video Driver: 25.2
    [   191.495]     X.Org XInput driver : 24.4
    [   191.495]     X.Org Server Extension : 10.0
    [   191.498] (--) using VT number 2

    [   191.498] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
    [   191.504] (II) xfree86: Adding drm device (/dev/dri/card0)
    [   191.504] (II) Platform probe for /sys/devices/platform/display-engine/drm/card0
    [   191.505] (II) xfree86: Adding drm device (/dev/dri/card2)
    [   191.505] (II) Platform probe for /sys/devices/platform/soc/1800000.gpu/drm/card2
    [   191.506] (II) xfree86: Adding drm device (/dev/dri/card1)
    [   191.506] (II) Platform probe for /sys/devices/platform/soc/5011000.spi/spi_master/spi1/spi1.0/drm/card1
    [   191.609] (II) no primary bus or device found
    [   191.609]     falling back to /sys/devices/platform/display-engine/drm/card0
    [   191.609] (II) LoadModule: "glx"
    [   191.609] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
    [   191.613] (II) Module glx: vendor="X.Org Foundation"
    [   191.613]     compiled for 1.21.1.7, module version = 1.0.0
    [   191.613]     ABI class: X.Org Server Extension, version 10.0
    [   191.613] (II) LoadModule: "fbdev"
    [   191.613] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
    [   191.614] (II) Module fbdev: vendor="X.Org Foundation"
    [   191.614]     compiled for 1.21.1.3, module version = 0.5.0
    [   191.614]     Module class: X.Org Video Driver
    [   191.614]     ABI class: X.Org Video Driver, version 25.2
    [   191.614] (II) FBDEV: driver for framebuffer: fbdev
    [   191.716] (WW) Falling back to old probe method for fbdev
    [   191.716] (II) Loading sub module "fbdevhw"
    [   191.716] (II) LoadModule: "fbdevhw"
    [   191.716] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
    [   191.717] (II) Module fbdevhw: vendor="X.Org Foundation"
    [   191.717]     compiled for 1.21.1.7, module version = 0.0.2
    [   191.717]     ABI class: X.Org Video Driver, version 25.2
    [   191.717] (II) FBDEV(0): using /dev/fb0
    [   191.717] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
    [   191.717] (II) FBDEV(0): Creating default Display subsection in Screen section
        "Default Screen Section" for depth/fbbpp 24/32
    [   191.717] (==) FBDEV(0): Depth 24, (==) framebuffer bpp 32
    [   191.717] (==) FBDEV(0): RGB weight 888
    [   191.717] (==) FBDEV(0): Default visual is TrueColor
    [   191.717] (==) FBDEV(0): Using gamma correction (1.0, 1.0, 1.0)
    [   191.717] (II) FBDEV(0): hardware: panel-mipi-dbid (video memory: 600kB)
    [   191.717] (DB) xf86MergeOutputClassOptions unsupported bus type 0
    [   191.717] (**) FBDEV(0): Option "fbdev" "/dev/fb0"
    [   191.717] (II) FBDEV(0): checking modes against framebuffer device...
    [   191.717] (II) FBDEV(0): checking modes against monitor...
    [   191.717] (II) FBDEV(0): Virtual size is 480x320 (pitch 480)
    [   191.717] (**) FBDEV(0):  Built-in mode "current"
    [   191.717] (==) FBDEV(0): DPI set to (96, 96)
    [   191.717] (II) Loading sub module "fb"
    [   191.717] (II) LoadModule: "fb"
    [   191.717] (II) Module "fb" already built-in
    [   191.717] (**) FBDEV(0): using shadow framebuffer
    [   191.717] (II) Loading sub module "shadow"
    [   191.717] (II) LoadModule: "shadow"
    [   191.718] (II) Loading /usr/lib/xorg/modules/libshadow.so
    [   191.718] (II) Module shadow: vendor="X.Org Foundation"
    [   191.718]     compiled for 1.21.1.7, module version = 1.1.0
    [   191.718]     ABI class: X.Org ANSI C Emulation, version 0.4
    [   192.532] (==) FBDEV(0): Backing store enabled
    [   192.533] (EE) FBDEV(0): FBIOPUTCMAP: Invalid argument
    [   192.533] (EE) FBDEV(0): FBIOPUTCMAP: Invalid argument
    [   192.533] (EE) FBDEV(0): FBIOPUTCMAP: Invalid argument
    [   192.533] (EE) FBDEV(0): FBIOPUTCMAP: Invalid argument
    Error...repeated 200 times, but X11 starts normally
    [   192.536] (EE) FBDEV(0): FBIOPUTCMAP: Invalid argument
    [   192.536] (EE) FBDEV(0): FBIOPUTCMAP: Invalid argument
    [   192.536] (EE) FBDEV(0): FBIOPUTCMAP: Invalid argument
    [   192.536] (EE) FBDEV(0): FBIOPUTCMAP: Invalid argument
    [   192.537] (==) FBDEV(0): DPMS enabled
    [   192.537] (II) Initializing extension Generic Event Extension
    [   192.537] (II) Initializing extension SHAPE
    [   192.538] (II) Initializing extension MIT-SHM
    [   192.538] (II) Initializing extension XInputExtension
    [   192.539] (II) Initializing extension XTEST
    [   192.539] (II) Initializing extension BIG-REQUESTS
    [   192.540] (II) Initializing extension SYNC
    [   192.540] (II) Initializing extension XKEYBOARD
    [   192.541] (II) Initializing extension XC-MISC
    [   192.541] (II) Initializing extension SECURITY
    [   192.542] (II) Initializing extension XFIXES
    [   192.542] (II) Initializing extension RENDER
    [   192.542] (II) Initializing extension RANDR
    [   192.543] (II) Initializing extension COMPOSITE
    [   192.544] (II) Initializing extension DAMAGE
    [   192.544] (II) Initializing extension MIT-SCREEN-SAVER
    [   192.545] (II) Initializing extension DOUBLE-BUFFER
    [   192.545] (II) Initializing extension RECORD
    [   192.546] (II) Initializing extension DPMS
    [   192.546] (II) Initializing extension Present
    [   192.547] (II) Initializing extension DRI3
    [   192.547] (II) Initializing extension X-Resource
    [   192.547] (II) Initializing extension XVideo
    [   192.548] (II) Initializing extension XVideo-MotionCompensation
    [   192.548] (II) Initializing extension SELinux
    [   192.548] (II) SELinux: Disabled on system
    [   192.548] (II) Initializing extension GLX
    [   192.548] (II) AIGLX: Screen 0 is not DRI2 capable
    [   192.677] (II) IGLX: Loaded and initialized swrast
    [   192.678] (II) GLX: Initialized DRISWRAST GL provider for screen 0
    [   192.678] (II) Initializing extension XFree86-VidModeExtension
    [   192.678] (II) Initializing extension XFree86-DGA
    [   192.679] (II) Initializing extension XFree86-DRI
    [   192.679] (II) Initializing extension DRI2
    [   192.798] (II) config/udev: Adding input device ADS7846 Touchscreen (/dev/input/event4)
    [   192.798] (**) ADS7846 Touchscreen: Applying InputClass "evdev touchscreen catchall"
    [   192.798] (**) ADS7846 Touchscreen: Applying InputClass "evdev touchscreen catchall"
    [   192.798] (**) ADS7846 Touchscreen: Applying InputClass "calibration"
    [   192.798] (II) LoadModule: "evdev"
    [   192.798] (II) Loading /usr/lib/xorg/modules/input/evdev_drv.so
    [   192.800] (II) Module evdev: vendor="X.Org Foundation"
    [   192.800]     compiled for 1.21.1.3, module version = 2.10.6
    [   192.800]     Module class: X.Org XInput Driver
    [   192.800]     ABI class: X.Org XInput driver, version 24.4
    [   192.800] (II) Using input driver 'evdev' for 'ADS7846 Touchscreen'
    [   192.800] (**) ADS7846 Touchscreen: always reports core events
    [   192.800] (**) evdev: ADS7846 Touchscreen: Device: "/dev/input/event4"
    [   192.800] (--) evdev: ADS7846 Touchscreen: Vendor 0 Product 0x1ea6
    [   192.800] (--) evdev: ADS7846 Touchscreen: Found absolute axes
    [   192.800] (--) evdev: ADS7846 Touchscreen: Found x and y absolute axes
    [   192.800] (--) evdev: ADS7846 Touchscreen: Found absolute touchscreen
    [   192.800] (**) Option "SwapAxes" "0"
    [   192.800] (II) evdev: ADS7846 Touchscreen: Configuring as touchscreen
    [   192.800] (**) evdev: ADS7846 Touchscreen: YAxisMapping: buttons 4 and 5
    [   192.800] (**) evdev: ADS7846 Touchscreen: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
    [   192.800] (**) Option "config_info" "udev:/sys/devices/platform/soc/5011000.spi/spi_master/spi1/spi1.1/input/input4/event4"
    [   192.801] (II) XINPUT: Adding extended input device "ADS7846 Touchscreen" (type: TOUCHSCREEN, id 6)
    [   192.801] (II) evdev: ADS7846 Touchscreen: initialized for absolute axes.
    [   192.801] (**) ADS7846 Touchscreen: (accel) keeping acceleration scheme 1
    [   192.801] (**) ADS7846 Touchscreen: (accel) acceleration profile 0
    [   192.801] (**) ADS7846 Touchscreen: (accel) acceleration factor: 2.000
    [   192.801] (**) ADS7846 Touchscreen: (accel) acceleration threshold: 4
    [   192.803] (II) config/udev: Adding input device ADS7846 Touchscreen (/dev/input/mouse1)
    [   192.803] (**) ADS7846 Touchscreen: Applying InputClass "calibration"
    [   192.803] (II) No input driver specified, ignoring this device.
    [   192.803] (II) This device may have been added with another device file.
    [   192.805] (II) config/udev: Adding input device Mitsumi Electric Apple Extended USB Keyboard (/dev/input/event0)
    [   192.805] (**) Mitsumi Electric Apple Extended USB Keyboard: Applying InputClass "evdev keyboard catchall"
    [   192.805] (**) Mitsumi Electric Apple Extended USB Keyboard: Applying InputClass "evdev keyboard catchall"
    [   192.805] (II) Using input driver 'evdev' for 'Mitsumi Electric Apple Extended USB Keyboard'
    [   192.805] (**) Mitsumi Electric Apple Extended USB Keyboard: always reports core events
    [   192.805] (**) evdev: Mitsumi Electric Apple Extended USB Keyboard: Device: "/dev/input/event0"
    [   192.806] (--) evdev: Mitsumi Electric Apple Extended USB Keyboard: Vendor 0x5ac Product 0x204
    [   192.806] (--) evdev: Mitsumi Electric Apple Extended USB Keyboard: Found keys
    [   192.806] (II) evdev: Mitsumi Electric Apple Extended USB Keyboard: Configuring as keyboard
    [   192.806] (**) Option "config_info" "udev:/sys/devices/platform/soc/5311400.usb/usb6/6-1/6-1.1/6-1.1:1.0/0003:05AC:0204.0001/input/input0/event0"
    [   192.806] (II) XINPUT: Adding extended input device "Mitsumi Electric Apple Extended USB Keyboard" (type: KEYBOARD, id 7)
    [   192.806] (**) Option "xkb_rules" "evdev"
    [   192.806] (**) Option "xkb_model" "pc105"
    [   192.806] (**) Option "xkb_layout" "us"
    [   192.809] (II) config/udev: Adding input device Mitsumi Electric Apple Extended USB Keyboard System Control (/dev/input/event1)
    [   192.809] (**) Mitsumi Electric Apple Extended USB Keyboard System Control: Applying InputClass "evdev keyboard catchall"
    [   192.809] (**) Mitsumi Electric Apple Extended USB Keyboard System Control: Applying InputClass "evdev keyboard catchall"
    [   192.809] (II) Using input driver 'evdev' for 'Mitsumi Electric Apple Extended USB Keyboard System Control'
    [   192.809] (**) Mitsumi Electric Apple Extended USB Keyboard System Control: always reports core events
    [   192.809] (**) evdev: Mitsumi Electric Apple Extended USB Keyboard System Control: Device: "/dev/input/event1"
    [   192.809] (--) evdev: Mitsumi Electric Apple Extended USB Keyboard System Control: Vendor 0x5ac Product 0x204
    [   192.809] (--) evdev: Mitsumi Electric Apple Extended USB Keyboard System Control: Found keys
    [   192.809] (II) evdev: Mitsumi Electric Apple Extended USB Keyboard System Control: Configuring as keyboard
    [   192.809] (**) Option "config_info" "udev:/sys/devices/platform/soc/5311400.usb/usb6/6-1/6-1.1/6-1.1:1.1/0003:05AC:0204.0002/input/input1/event1"
    [   192.809] (II) XINPUT: Adding extended input device "Mitsumi Electric Apple Extended USB Keyboard System Control" (type: KEYBOARD, id 😎
    [   192.809] (**) Option "xkb_rules" "evdev"
    [   192.809] (**) Option "xkb_model" "pc105"
    [   192.809] (**) Option "xkb_layout" "us"
    [   192.812] (II) config/udev: Adding input device Mitsumi Electric Apple Extended USB Keyboard Consumer Control (/dev/input/event2)
    [   192.812] (**) Mitsumi Electric Apple Extended USB Keyboard Consumer Control: Applying InputClass "evdev keyboard catchall"
    [   192.813] (**) Mitsumi Electric Apple Extended USB Keyboard Consumer Control: Applying InputClass "evdev keyboard catchall"
    [   192.813] (II) Using input driver 'evdev' for 'Mitsumi Electric Apple Extended USB Keyboard Consumer Control'
    [   192.813] (**) Mitsumi Electric Apple Extended USB Keyboard Consumer Control: always reports core events
    [   192.813] (**) evdev: Mitsumi Electric Apple Extended USB Keyboard Consumer Control: Device: "/dev/input/event2"
    [   192.813] (--) evdev: Mitsumi Electric Apple Extended USB Keyboard Consumer Control: Vendor 0x5ac Product 0x204
    [   192.813] (--) evdev: Mitsumi Electric Apple Extended USB Keyboard Consumer Control: Found keys
    [   192.813] (II) evdev: Mitsumi Electric Apple Extended USB Keyboard Consumer Control: Configuring as keyboard
    [   192.813] (**) Option "config_info" "udev:/sys/devices/platform/soc/5311400.usb/usb6/6-1/6-1.1/6-1.1:1.1/0003:05AC:0204.0002/input/input2/event2"
    [   192.813] (II) XINPUT: Adding extended input device "Mitsumi Electric Apple Extended USB Keyboard Consumer Control" (type: KEYBOARD, id 9)
    [   192.813] (**) Option "xkb_rules" "evdev"
    [   192.813] (**) Option "xkb_model" "pc105"
    [   192.813] (**) Option "xkb_layout" "us"
    [   192.816] (II) config/udev: Adding input device PixArt USB Optical Mouse (/dev/input/event3)
    [   192.816] (**) PixArt USB Optical Mouse: Applying InputClass "evdev pointer catchall"
    [   192.816] (**) PixArt USB Optical Mouse: Applying InputClass "evdev pointer catchall"
    [   192.816] (II) Using input driver 'evdev' for 'PixArt USB Optical Mouse'
    [   192.816] (**) PixArt USB Optical Mouse: always reports core events
    [   192.816] (**) evdev: PixArt USB Optical Mouse: Device: "/dev/input/event3"
    [   192.816] (--) evdev: PixArt USB Optical Mouse: Vendor 0x93a Product 0x2510
    [   192.816] (--) evdev: PixArt USB Optical Mouse: Found 3 mouse buttons
    [   192.816] (--) evdev: PixArt USB Optical Mouse: Found scroll wheel(s)
    [   192.816] (--) evdev: PixArt USB Optical Mouse: Found relative axes
    [   192.816] (--) evdev: PixArt USB Optical Mouse: Found x and y relative axes
    [   192.816] (II) evdev: PixArt USB Optical Mouse: Configuring as mouse
    [   192.816] (II) evdev: PixArt USB Optical Mouse: Adding scrollwheel support
    [   192.816] (**) evdev: PixArt USB Optical Mouse: YAxisMapping: buttons 4 and 5
    [   192.816] (**) evdev: PixArt USB Optical Mouse: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
    [   192.816] (**) Option "config_info" "udev:/sys/devices/platform/soc/5311400.usb/usb6/6-1/6-1.2/6-1.2:1.0/0003:093A:2510.0003/input/input3/event3"
    [   192.816] (II) XINPUT: Adding extended input device "PixArt USB Optical Mouse" (type: MOUSE, id 10)
    [   192.817] (II) evdev: PixArt USB Optical Mouse: initialized for relative axes.
    [   192.817] (**) PixArt USB Optical Mouse: (accel) keeping acceleration scheme 1
    [   192.817] (**) PixArt USB Optical Mouse: (accel) acceleration profile 0
    [   192.817] (**) PixArt USB Optical Mouse: (accel) acceleration factor: 2.000
    [   192.817] (**) PixArt USB Optical Mouse: (accel) acceleration threshold: 4
    [   192.819] (II) config/udev: Adding input device PixArt USB Optical Mouse (/dev/input/mouse0)
    [   192.819] (II) No input driver specified, ignoring this device.
    [   192.819] (II) This device may have been added with another device file.
    [   232.119] (II) evdev: PixArt USB Optical Mouse: Close
    [   232.119] (II) UnloadModule: "evdev"
    [   232.119] (II) evdev: Mitsumi Electric Apple Extended USB Keyboard Consumer Control: Close
    [   232.119] (II) UnloadModule: "evdev"
    [   232.120] (II) evdev: Mitsumi Electric Apple Extended USB Keyboard System Control: Close
    [   232.120] (II) UnloadModule: "evdev"
    [   232.120] (II) evdev: Mitsumi Electric Apple Extended USB Keyboard: Close
    [   232.120] (II) UnloadModule: "evdev"
    [   232.120] (II) evdev: ADS7846 Touchscreen: Close
    [   232.120] (II) UnloadModule: "evdev"
    [   232.565] (II) Server terminated successfully (0). Closing log file.
    roberto@orangepizero3:~$

     

    Just downgrading to Linux 6.13.7 allows the 4.0" SPI LCD to work again.

    Dowgrading the linux package did not cause a downgrade of X11 (version 1.21.1.7).

    The small LCD always works ok in text mode. The driver is DRM but it is using the X11 fbdev submodule

     

    The fbdev.conf file:

    Spoiler

    roberto@orangepizero3:~$ cat /etc/X11/xorg.conf.d/99-fbdev.conf
    Section "Device"
        Identifier "myfb"
        Driver "fbdev"
        Option "fbdev" "/dev/fb0"
    EndSection

     

    Using an HDMI screen is not affected

     

    When I disable the fbdev conf file

    sudo mv 99-fbdev.conf 99-fbdev.conf.disabled

     

    Then x11 fails in another way:

    Spoiler

    roberto@orangepizero3:/etc/X11/xorg.conf.d$ sudo startx


    X.Org X Server 1.21.1.7
    X Protocol Version 11, Revision 0
    Current Operating System: Linux orangepizero3 6.13.7-edge-sunxi64 #2 SMP Thu Mar 13 12:08:08 UTC 2025 aarch64
    Kernel command line: root=UUID=405815fa-b5a7-4731-8675-6d56d040972c rootwait rootfstype=ext4 splash=verbose console=ttyS0,115200 console=tty1 consoleblank=0 loglevel=1 ubootpart=a66e3381-01 usb-storage.quirks=0x2537:0x1066:u,0x2537:0x1068:u   cgroup_enable=memory
    xorg-server 2:21.1.7-3+deb12u10 (https://www.debian.org/support)
    Current version of pixman: 0.42.2
        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: Tue Jul  8 06:53:10 2025
    (==) Using config directory: "/etc/X11/xorg.conf.d"
    (==) Using system config directory "/usr/share/X11/xorg.conf.d"
    MESA-LOADER: failed to open panel-mipi-dbi: /usr/lib/dri/panel-mipi-dbi_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/aarch64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
    failed to load driver: panel-mipi-dbi
    ^Cxinit: connection to X server lost

    waiting for X server to shut down .(II) Server terminated successfully (0). Closing log file.

    xinit: unexpected signal 2
    roberto@orangepizero3:/etc/X11/xorg.conf.d$

     

    The xorg log doesn't show any error:

    Spoiler

    roberto@orangepizero3:/etc/X11/xorg.conf.d$ tail -n500 /var/log/Xorg.0.log
    [  1161.992]
    X.Org X Server 1.21.1.7
    X Protocol Version 11, Revision 0
    [  1161.992] Current Operating System: Linux orangepizero3 6.13.7-edge-sunxi64 #2 SMP Thu Mar 13 12:08:08 UTC 2025 aarch64
    [  1161.992] Kernel command line: root=UUID=405815fa-b5a7-4731-8675-6d56d040972c rootwait rootfstype=ext4 splash=verbose console=ttyS0,115200 console=tty1 consoleblank=0 loglevel=1 ubootpart=a66e3381-01 usb-storage.quirks=0x2537:0x1066:u,0x2537:0x1068:u   cgroup_enable=memory
    [  1161.993] xorg-server 2:21.1.7-3+deb12u10 (https://www.debian.org/support)
    [  1161.993] Current version of pixman: 0.42.2
    [  1161.993]     Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
    [  1161.993] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
    [  1161.993] (==) Log file: "/var/log/Xorg.0.log", Time: Tue Jul  8 06:53:10 2025
    [  1161.993] (==) Using config directory: "/etc/X11/xorg.conf.d"
    [  1161.993] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
    [  1161.994] (==) No Layout section.  Using the first Screen section.
    [  1161.994] (==) No screen section available. Using defaults.
    [  1161.994] (**) |-->Screen "Default Screen Section" (0)
    [  1161.994] (**) |   |-->Monitor "<default monitor>"
    [  1161.995] (==) No monitor specified for screen "Default Screen Section".
        Using a default monitor configuration.
    [  1161.995] (==) Automatically adding devices
    [  1161.995] (==) Automatically enabling devices
    [  1161.995] (==) Automatically adding GPU devices
    [  1161.995] (==) Automatically binding GPU devices
    [  1161.995] (==) Max clients allowed: 256, resource mask: 0x1fffff
    [  1161.995] (WW) The directory "/usr/share/fonts/X11/misc" does not exist.
    [  1161.995]     Entry deleted from font path.
    [  1161.995] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
    [  1161.995]     Entry deleted from font path.
    [  1161.995] (WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist.
    [  1161.995]     Entry deleted from font path.
    [  1161.995] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.
    [  1161.995]     Entry deleted from font path.
    [  1161.995] (WW) The directory "/usr/share/fonts/X11/100dpi" does not exist.
    [  1161.995]     Entry deleted from font path.
    [  1161.995] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.
    [  1161.995]     Entry deleted from font path.
    [  1161.995] (==) FontPath set to:
        /usr/share/fonts/X11/Type1,
        built-ins
    [  1161.995] (==) ModulePath set to "/usr/lib/xorg/modules"
    [  1161.995] (II) The server relies on udev to provide the list of input devices.
        If no devices become available, reconfigure udev or disable AutoAddDevices.
    [  1161.995] (II) Loader magic: 0xaaaaab5a0f00
    [  1161.995] (II) Module ABI versions:
    [  1161.995]     X.Org ANSI C Emulation: 0.4
    [  1161.995]     X.Org Video Driver: 25.2
    [  1161.995]     X.Org XInput driver : 24.4
    [  1161.995]     X.Org Server Extension : 10.0
    [  1161.997] (--) using VT number 2

    [  1161.997] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
    [  1162.000] (II) xfree86: Adding drm device (/dev/dri/card0)
    [  1162.000] (II) Platform probe for /sys/devices/platform/display-engine/drm/card0
    [  1162.000] (II) xfree86: Adding drm device (/dev/dri/card2)
    [  1162.001] (II) Platform probe for /sys/devices/platform/soc/1800000.gpu/drm/card2
    [  1162.001] (II) xfree86: Adding drm device (/dev/dri/card1)
    [  1162.001] (II) Platform probe for /sys/devices/platform/soc/5011000.spi/spi_master/spi1/spi1.0/drm/card1
    [  1162.102] (II) no primary bus or device found
    [  1162.102]     falling back to /sys/devices/platform/display-engine/drm/card0
    [  1162.102] (II) LoadModule: "glx"
    [  1162.103] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
    [  1162.106] (II) Module glx: vendor="X.Org Foundation"
    [  1162.106]     compiled for 1.21.1.7, module version = 1.0.0
    [  1162.106]     ABI class: X.Org Server Extension, version 10.0
    [  1162.106] (==) Matched modesetting as autoconfigured driver 0
    [  1162.106] (==) Matched fbdev as autoconfigured driver 1
    [  1162.106] (==) Assigned the driver to the xf86ConfigLayout
    [  1162.106] (II) LoadModule: "modesetting"
    [  1162.107] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
    [  1162.107] (II) Module modesetting: vendor="X.Org Foundation"
    [  1162.107]     compiled for 1.21.1.7, module version = 1.21.1
    [  1162.107]     Module class: X.Org Video Driver
    [  1162.107]     ABI class: X.Org Video Driver, version 25.2
    [  1162.107] (II) LoadModule: "fbdev"
    [  1162.107] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
    [  1162.107] (II) Module fbdev: vendor="X.Org Foundation"
    [  1162.107]     compiled for 1.21.1.3, module version = 0.5.0
    [  1162.108]     Module class: X.Org Video Driver
    [  1162.108]     ABI class: X.Org Video Driver, version 25.2
    [  1162.108] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
    [  1162.108] (II) FBDEV: driver for framebuffer: fbdev
    [  1162.210] (II) modeset(0): using drv /dev/dri/card0
    [  1162.210] (WW) Falling back to old probe method for fbdev
    [  1162.210] (II) Loading sub module "fbdevhw"
    [  1162.210] (II) LoadModule: "fbdevhw"
    [  1162.210] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
    [  1162.211] (II) Module fbdevhw: vendor="X.Org Foundation"
    [  1162.211]     compiled for 1.21.1.7, module version = 0.0.2
    [  1162.211]     ABI class: X.Org Video Driver, version 25.2
    [  1162.411] (II) modeset(G0): using drv /dev/dri/card1
    [  1162.411] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
    [  1162.411] (II) modeset(0): Creating default Display subsection in Screen section
        "Default Screen Section" for depth/fbbpp 24/32
    [  1162.411] (==) modeset(0): Depth 24, (==) framebuffer bpp 32
    [  1162.411] (==) modeset(0): RGB weight 888
    [  1162.411] (==) modeset(0): Default visual is TrueColor
    [  1162.411] (II) Loading sub module "glamoregl"
    [  1162.411] (II) LoadModule: "glamoregl"
    [  1162.412] (II) Loading /usr/lib/xorg/modules/libglamoregl.so
    [  1162.428] (II) Module glamoregl: vendor="X.Org Foundation"
    [  1162.428]     compiled for 1.21.1.7, module version = 1.0.1
    [  1162.428]     ABI class: X.Org ANSI C Emulation, version 0.4
    [  1162.810] (II) modeset(0): glamor X acceleration enabled on Mali-G31 (Panfrost)
    [  1162.810] (II) modeset(0): glamor initialized
    [  1162.810] (==) modeset(0): VariableRefresh: disabled
    [  1162.810] (==) modeset(0): AsyncFlipSecondaries: disabled
    [  1162.810] (II) modeset(0): Output HDMI-1 has no monitor section
    [  1162.810] (II) modeset(0): EDID for output HDMI-1
    [  1162.811] (II) modeset(0): Output HDMI-1 disconnected
    [  1162.811] (WW) modeset(0): No outputs definitely connected, trying again...
    [  1162.811] (II) modeset(0): Output HDMI-1 disconnected
    [  1162.811] (WW) modeset(0): Unable to find connected outputs - setting 1024x768 initial framebuffer
    [  1162.811] (==) modeset(0): Using gamma correction (1.0, 1.0, 1.0)
    [  1162.811] (==) modeset(0): DPI set to (96, 96)
    [  1162.811] (II) Loading sub module "fb"
    [  1162.811] (II) LoadModule: "fb"
    [  1162.811] (II) Module "fb" already built-in
    [  1162.813] (==) modeset(G0): Depth 24, (==) framebuffer bpp 32
    [  1162.813] (==) modeset(G0): RGB weight 888
    [  1162.813] (==) modeset(G0): Default visual is TrueColor
    [  1162.813] (II) Loading sub module "glamoregl"
    [  1162.813] (II) LoadModule: "glamoregl"
    [  1162.814] (II) Loading /usr/lib/xorg/modules/libglamoregl.so
    [  1162.814] (II) Module glamoregl: vendor="X.Org Foundation"
    [  1162.814]     compiled for 1.21.1.7, module version = 1.0.1
    [  1162.814]     ABI class: X.Org ANSI C Emulation, version 0.4
    [  1163.053] (II) modeset(G0): glamor X acceleration enabled on Mali-G31 (Panfrost)
    [  1163.053] (II) modeset(G0): glamor initialized
    [  1163.053] (II) modeset(G0): Output Unknown19-1 has no monitor section
    [  1163.053] (II) modeset(G0): EDID for output Unknown19-1
    [  1163.053] (II) modeset(G0): Printing probed modes for output Unknown19-1
    [  1163.053] (II) modeset(G0): Modeline "480x320"x60.0    9.22  480 480 480 480  320 320 320 320 (19.2 kHz eP)
    [  1163.053] (==) modeset(G0): Using gamma correction (1.0, 1.0, 1.0)
    [  1163.053] (==) modeset(G0): DPI set to (96, 96)
    [  1163.053] (II) Loading sub module "fb"
    [  1163.053] (II) LoadModule: "fb"
    [  1163.053] (II) Module "fb" already built-in
    [  1163.053] (II) UnloadModule: "fbdev"
    [  1163.053] (II) Unloading fbdev
    [  1163.054] (II) UnloadSubModule: "fbdevhw"
    [  1163.054] (II) Unloading fbdevhw
    [  1163.102] (==) modeset(0): Backing store enabled
    [  1163.102] (==) modeset(0): Silken mouse enabled
    [  1163.103] (II) modeset(0): Initializing kms color map for depth 24, 8 bpc.
    [  1163.103] (==) modeset(0): DPMS enabled
    [  1163.103] (II) modeset(0): [DRI2] Setup complete
    [  1163.103] (II) modeset(0): [DRI2]   DRI driver: sun4i-drm
    [  1163.103] (II) modeset(0): [DRI2]   VDPAU driver: sun4i-drm
    [  1163.124] (==) modeset(G0): Backing store enabled
    [  1163.124] (==) modeset(G0): Silken mouse enabled
    [  1163.225] (II) modeset(G0): Initializing kms color map for depth 24, 8 bpc.
    [  1163.225] (==) modeset(G0): DPMS enabled
    [  1163.225] (II) modeset(G0): [DRI2] Setup complete
    [  1163.225] (II) modeset(G0): [DRI2]   DRI driver: zink
    [  1163.225] (II) modeset(G0): [DRI2]   VDPAU driver: zink
    [  1163.225] (II) Initializing extension Generic Event Extension
    [  1163.226] (II) Initializing extension SHAPE
    [  1163.226] (II) Initializing extension MIT-SHM
    [  1163.227] (II) Initializing extension XInputExtension
    [  1163.227] (II) Initializing extension XTEST
    [  1163.228] (II) Initializing extension BIG-REQUESTS
    [  1163.228] (II) Initializing extension SYNC
    [  1163.229] (II) Initializing extension XKEYBOARD
    [  1163.229] (II) Initializing extension XC-MISC
    [  1163.230] (II) Initializing extension SECURITY
    [  1163.230] (II) Initializing extension XFIXES
    [  1163.231] (II) Initializing extension RENDER
    [  1163.231] (II) Initializing extension RANDR
    [  1163.232] (II) Initializing extension COMPOSITE
    [  1163.233] (II) Initializing extension DAMAGE
    [  1163.233] (II) Initializing extension MIT-SCREEN-SAVER
    [  1163.234] (II) Initializing extension DOUBLE-BUFFER
    [  1163.234] (II) Initializing extension RECORD
    [  1163.235] (II) Initializing extension DPMS
    [  1163.235] (II) Initializing extension Present
    [  1163.236] (II) Initializing extension DRI3
    [  1163.236] (II) Initializing extension X-Resource
    [  1163.237] (II) Initializing extension XVideo
    [  1163.237] (II) Initializing extension XVideo-MotionCompensation
    [  1163.237] (II) Initializing extension SELinux
    [  1163.237] (II) SELinux: Disabled on system
    [  1163.237] (II) Initializing extension GLX
    [  1163.475] (II) AIGLX: Loaded and initialized sun4i-drm
    [  1163.476] (II) GLX: Initialized DRI2 GL provider for screen 0
    [  1163.476] (II) Initializing extension XFree86-VidModeExtension
    [  1163.476] (II) Initializing extension XFree86-DGA
    [  1163.477] (II) Initializing extension XFree86-DRI
    [  1163.477] (II) Initializing extension DRI2
    [  1163.540] (II) modeset(G0): Damage tracking initialized
    [  1163.541] (II) modeset(0): Damage tracking initialized
    [  1163.673] (II) config/udev: Adding input device ADS7846 Touchscreen (/dev/input/event4)
    [  1163.673] (**) ADS7846 Touchscreen: Applying InputClass "evdev touchscreen catchall"
    [  1163.673] (**) ADS7846 Touchscreen: Applying InputClass "evdev touchscreen catchall"
    [  1163.673] (**) ADS7846 Touchscreen: Applying InputClass "calibration"
    [  1163.673] (II) LoadModule: "evdev"
    [  1163.673] (II) Loading /usr/lib/xorg/modules/input/evdev_drv.so
    [  1163.675] (II) Module evdev: vendor="X.Org Foundation"
    [  1163.675]     compiled for 1.21.1.3, module version = 2.10.6
    [  1163.675]     Module class: X.Org XInput Driver
    [  1163.675]     ABI class: X.Org XInput driver, version 24.4
    [  1163.675] (II) Using input driver 'evdev' for 'ADS7846 Touchscreen'
    [  1163.675] (**) ADS7846 Touchscreen: always reports core events
    [  1163.675] (**) evdev: ADS7846 Touchscreen: Device: "/dev/input/event4"
    [  1163.675] (--) evdev: ADS7846 Touchscreen: Vendor 0 Product 0x1ea6
    [  1163.675] (--) evdev: ADS7846 Touchscreen: Found absolute axes
    [  1163.675] (--) evdev: ADS7846 Touchscreen: Found x and y absolute axes
    [  1163.675] (--) evdev: ADS7846 Touchscreen: Found absolute touchscreen
    [  1163.675] (**) Option "SwapAxes" "0"
    [  1163.675] (II) evdev: ADS7846 Touchscreen: Configuring as touchscreen
    [  1163.675] (**) evdev: ADS7846 Touchscreen: YAxisMapping: buttons 4 and 5
    [  1163.675] (**) evdev: ADS7846 Touchscreen: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
    [  1163.675] (**) Option "config_info" "udev:/sys/devices/platform/soc/5011000.spi/spi_master/spi1/spi1.1/input/input4/event4"
    [  1163.675] (II) XINPUT: Adding extended input device "ADS7846 Touchscreen" (type: TOUCHSCREEN, id 6)
    [  1163.676] (II) evdev: ADS7846 Touchscreen: initialized for absolute axes.
    [  1163.676] (**) ADS7846 Touchscreen: (accel) keeping acceleration scheme 1
    [  1163.676] (**) ADS7846 Touchscreen: (accel) acceleration profile 0
    [  1163.676] (**) ADS7846 Touchscreen: (accel) acceleration factor: 2.000
    [  1163.676] (**) ADS7846 Touchscreen: (accel) acceleration threshold: 4
    [  1163.678] (II) config/udev: Adding input device ADS7846 Touchscreen (/dev/input/mouse1)
    [  1163.678] (**) ADS7846 Touchscreen: Applying InputClass "calibration"
    [  1163.678] (II) No input driver specified, ignoring this device.
    [  1163.678] (II) This device may have been added with another device file.
    [  1163.680] (II) config/udev: Adding input device Mitsumi Electric Apple Extended USB Keyboard (/dev/input/event0)
    [  1163.680] (**) Mitsumi Electric Apple Extended USB Keyboard: Applying InputClass "evdev keyboard catchall"
    [  1163.681] (**) Mitsumi Electric Apple Extended USB Keyboard: Applying InputClass "evdev keyboard catchall"
    [  1163.681] (II) Using input driver 'evdev' for 'Mitsumi Electric Apple Extended USB Keyboard'
    [  1163.681] (**) Mitsumi Electric Apple Extended USB Keyboard: always reports core events
    [  1163.681] (**) evdev: Mitsumi Electric Apple Extended USB Keyboard: Device: "/dev/input/event0"
    [  1163.681] (--) evdev: Mitsumi Electric Apple Extended USB Keyboard: Vendor 0x5ac Product 0x204
    [  1163.681] (--) evdev: Mitsumi Electric Apple Extended USB Keyboard: Found keys
    [  1163.681] (II) evdev: Mitsumi Electric Apple Extended USB Keyboard: Configuring as keyboard
    [  1163.681] (**) Option "config_info" "udev:/sys/devices/platform/soc/5311400.usb/usb6/6-1/6-1.1/6-1.1:1.0/0003:05AC:0204.0001/input/input0/event0"
    [  1163.681] (II) XINPUT: Adding extended input device "Mitsumi Electric Apple Extended USB Keyboard" (type: KEYBOARD, id 7)
    [  1163.681] (**) Option "xkb_rules" "evdev"
    [  1163.681] (**) Option "xkb_model" "pc105"
    [  1163.681] (**) Option "xkb_layout" "us"
    [  1163.684] (II) config/udev: Adding input device Mitsumi Electric Apple Extended USB Keyboard System Control (/dev/input/event1)
    [  1163.684] (**) Mitsumi Electric Apple Extended USB Keyboard System Control: Applying InputClass "evdev keyboard catchall"
    [  1163.684] (**) Mitsumi Electric Apple Extended USB Keyboard System Control: Applying InputClass "evdev keyboard catchall"
    [  1163.684] (II) Using input driver 'evdev' for 'Mitsumi Electric Apple Extended USB Keyboard System Control'
    [  1163.684] (**) Mitsumi Electric Apple Extended USB Keyboard System Control: always reports core events
    [  1163.684] (**) evdev: Mitsumi Electric Apple Extended USB Keyboard System Control: Device: "/dev/input/event1"
    [  1163.684] (--) evdev: Mitsumi Electric Apple Extended USB Keyboard System Control: Vendor 0x5ac Product 0x204
    [  1163.684] (--) evdev: Mitsumi Electric Apple Extended USB Keyboard System Control: Found keys
    [  1163.684] (II) evdev: Mitsumi Electric Apple Extended USB Keyboard System Control: Configuring as keyboard
    [  1163.685] (**) Option "config_info" "udev:/sys/devices/platform/soc/5311400.usb/usb6/6-1/6-1.1/6-1.1:1.1/0003:05AC:0204.0002/input/input1/event1"
    [  1163.685] (II) XINPUT: Adding extended input device "Mitsumi Electric Apple Extended USB Keyboard System Control" (type: KEYBOARD, id 😎
    [  1163.685] (**) Option "xkb_rules" "evdev"
    [  1163.685] (**) Option "xkb_model" "pc105"
    [  1163.685] (**) Option "xkb_layout" "us"
    [  1163.688] (II) config/udev: Adding input device Mitsumi Electric Apple Extended USB Keyboard Consumer Control (/dev/input/event2)
    [  1163.688] (**) Mitsumi Electric Apple Extended USB Keyboard Consumer Control: Applying InputClass "evdev keyboard catchall"
    [  1163.688] (**) Mitsumi Electric Apple Extended USB Keyboard Consumer Control: Applying InputClass "evdev keyboard catchall"
    [  1163.688] (II) Using input driver 'evdev' for 'Mitsumi Electric Apple Extended USB Keyboard Consumer Control'
    [  1163.688] (**) Mitsumi Electric Apple Extended USB Keyboard Consumer Control: always reports core events
    [  1163.688] (**) evdev: Mitsumi Electric Apple Extended USB Keyboard Consumer Control: Device: "/dev/input/event2"
    [  1163.688] (--) evdev: Mitsumi Electric Apple Extended USB Keyboard Consumer Control: Vendor 0x5ac Product 0x204
    [  1163.688] (--) evdev: Mitsumi Electric Apple Extended USB Keyboard Consumer Control: Found keys
    [  1163.688] (II) evdev: Mitsumi Electric Apple Extended USB Keyboard Consumer Control: Configuring as keyboard
    [  1163.688] (**) Option "config_info" "udev:/sys/devices/platform/soc/5311400.usb/usb6/6-1/6-1.1/6-1.1:1.1/0003:05AC:0204.0002/input/input2/event2"
    [  1163.688] (II) XINPUT: Adding extended input device "Mitsumi Electric Apple Extended USB Keyboard Consumer Control" (type: KEYBOARD, id 9)
    [  1163.688] (**) Option "xkb_rules" "evdev"
    [  1163.688] (**) Option "xkb_model" "pc105"
    [  1163.688] (**) Option "xkb_layout" "us"
    [  1163.691] (II) config/udev: Adding input device PixArt USB Optical Mouse (/dev/input/event3)
    [  1163.691] (**) PixArt USB Optical Mouse: Applying InputClass "evdev pointer catchall"
    [  1163.691] (**) PixArt USB Optical Mouse: Applying InputClass "evdev pointer catchall"
    [  1163.692] (II) Using input driver 'evdev' for 'PixArt USB Optical Mouse'
    [  1163.692] (**) PixArt USB Optical Mouse: always reports core events
    [  1163.692] (**) evdev: PixArt USB Optical Mouse: Device: "/dev/input/event3"
    [  1163.692] (--) evdev: PixArt USB Optical Mouse: Vendor 0x93a Product 0x2510
    [  1163.692] (--) evdev: PixArt USB Optical Mouse: Found 3 mouse buttons
    [  1163.692] (--) evdev: PixArt USB Optical Mouse: Found scroll wheel(s)
    [  1163.692] (--) evdev: PixArt USB Optical Mouse: Found relative axes
    [  1163.692] (--) evdev: PixArt USB Optical Mouse: Found x and y relative axes
    [  1163.692] (II) evdev: PixArt USB Optical Mouse: Configuring as mouse
    [  1163.692] (II) evdev: PixArt USB Optical Mouse: Adding scrollwheel support
    [  1163.692] (**) evdev: PixArt USB Optical Mouse: YAxisMapping: buttons 4 and 5
    [  1163.692] (**) evdev: PixArt USB Optical Mouse: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
    [  1163.692] (**) Option "config_info" "udev:/sys/devices/platform/soc/5311400.usb/usb6/6-1/6-1.2/6-1.2:1.0/0003:093A:2510.0003/input/input3/event3"
    [  1163.692] (II) XINPUT: Adding extended input device "PixArt USB Optical Mouse" (type: MOUSE, id 10)
    [  1163.692] (II) evdev: PixArt USB Optical Mouse: initialized for relative axes.
    [  1163.693] (**) PixArt USB Optical Mouse: (accel) keeping acceleration scheme 1
    [  1163.693] (**) PixArt USB Optical Mouse: (accel) acceleration profile 0
    [  1163.693] (**) PixArt USB Optical Mouse: (accel) acceleration factor: 2.000
    [  1163.693] (**) PixArt USB Optical Mouse: (accel) acceleration threshold: 4
    [  1163.695] (II) config/udev: Adding input device PixArt USB Optical Mouse (/dev/input/mouse0)
    [  1163.695] (II) No input driver specified, ignoring this device.
    [  1163.695] (II) This device may have been added with another device file.
    [  1166.523] (II) evdev: PixArt USB Optical Mouse: Close
    [  1166.523] (II) UnloadModule: "evdev"
    [  1166.523] (II) evdev: Mitsumi Electric Apple Extended USB Keyboard Consumer Control: Close
    [  1166.524] (II) UnloadModule: "evdev"
    [  1166.524] (II) evdev: Mitsumi Electric Apple Extended USB Keyboard System Control: Close
    [  1166.524] (II) UnloadModule: "evdev"
    [  1166.524] (II) evdev: Mitsumi Electric Apple Extended USB Keyboard: Close
    [  1166.524] (II) UnloadModule: "evdev"
    [  1166.524] (II) evdev: ADS7846 Touchscreen: Close
    [  1166.525] (II) UnloadModule: "evdev"
    [  1167.522] (II) Server terminated successfully (0). Closing log file.

     

    dmesg|grep MESA shows nothing.

     

    Probably here is the solution https://github.com/agherzan/meta-raspberrypi/issues/1389 rebuilding mesa with some extra dependencies

    Bookworm containg mesa 22.3.6 right now, but Trixie contains mesa 25.0.5

    I tried the same in Trixie and Sid, but still get the same error: not able to load panel-mipi-dbi_dri.so

     

    I have a newly built armbian OS with kernel 6.15.x... I will try it later today.

     

     

  4. Hello WDR_s,

    If you upgraded kernel recently, did you have any problem starting X11 (or lightdm, or desktop)?

     

    I started with a downloaded arm minimal image with linux 6.12, and my DTS would bring up the panel-mipi-dbi-spi driver correctly in text mode, but X11 can't start.

     

    When I have my normal 99-fbdev.conf, I get this: FBDEV(0): FBIOPUT_VSCREENINFO: Invalid argument,

    When I remove 99-fbdev.conf and let X11 setup everything automatically, X11 complains about needing panel-mipi-dbi_dri.so.

     

    I restored an old armbian OS backup with linux 6.11, and everything worked normally.

     

    You are using a different LCD driver, did you have any problem?

  5. I am having trouble with my SPI LCD, which uses driver panel-mipi-dbi

     

    It works great when I use a minimal Armbian image, but with a desktop image it doesn't work. This is because package "plymouth" does something in the ko loading order: it loads panel-mipi-dbi too early.

     

    Plymouth provides a graphical boot animation.

     

    The driver depends on a binary file /lib/firmware/panel-mipi-dbi-spi.bin (but the file name could change depending on the DTS)

     

    At boot time, I saw that the panel-mipi-dbi.ko is loaded BEFORE the EXT4 in the microSD is mounted... and the binary file is not in the initrd.img-version (checked with lsinitramfs)

     

    Is it possible to add something in /etc/initramfs-tools/ to include /lib/firmware/panel-mipi-dbi-spi.bin ?

     

     

     

    With my Raspberry Pi (Raspbian) I don't have this problem, because the panel-mipi-dbi driver is loaded AFTER EXT4-fs (and it also uses plymouth)

     

    I found that when plymouth is not installed, usr/lib/modules/6.15.0-edge-sunxi64/modules.dep doesn't have this line

    kernel/drivers/gpu/drm/tiny/panel-mipi-dbi.ko: kernel/drivers/gpu/drm/drm_mipi_dbi.ko

     

    Also, in Raspbian, the same file has the dependency line, but changed with 5 more dependencies

    kernel/drivers/gpu/drm/tiny/panel-mipi-dbi.ko: kernel/drivers/gpu/drm/drm_dma_helper.ko kernel/drivers/gpu/drm/drm_mipi_dbi.ko kernel/drivers/gpu/drm/drm_kms_helper.ko kernel/drivers/gpu/drm/drm.ko kernel/drivers/gpu/drm/drm_panel_orientation_quirks.ko kernel/drivers/video/backlight/backlight.ko

     

    And this is confirmed with modinfo drm_mipi_dbi: 1 dependency in armbian and 5 dependencies in raspbian... could this be the reason why the ko is loading too early?

  6. I confirm that this repository ffmpeg works for me:

     

    * Orange Pi Zero 3

    * self built image with Debian Trixie and Xfce desktop

    * Linux Edge 6.15.0

    * Login in Xfce X11 mode

    * follow all the instructions in original post

    * mpv plays most mp4s VERY SMOOTHLY :)

    * some resolutions will crash mpv with "Segmentation Fault" and cause a kernel crash shortly after

     

    Then, to make it work with an ili9488 LCD, I needed to change these:

     

    * install LCD DTS, firmware, remove plymouth (see my ili9488 thread)

    * I can't make X11 work with my LCD driver and panel-mipi-dbi-spi recently... (still investigating why it worked before)

    * but I can make it work with labwc and sway

    * install seatd (authorization library), labwc (I only have experience with labwc) and foot (wayland terminal)

    * Choose labwc instead of xfce in lightdm login

    * from SSH session: DISPLAY=:0 foot&

    * in foot: mpv videofile.mpv

    * it plays most mp4s VERY SMOOTHLY :)

    * some resolutions will crash mpv with "Segmentation Fault" and cause a kernel crash shortly after

     

  7. Ok I was able to get the LCD working with a self built image, by copying the linux config from the armbian.com image to the build/userpatches/linux-sunxi64-edge.config

     

    :)

     

    Currently rebuilding without the successful linux config, and then I will look at the difference

    Update: I didn't find any differences and the new image without the userpatches config accepts the LCD DTS and bin file. Ok, I dont understand what was happening before.

     

    Now I am getting the same X11 error as before:

    MESA-LOADER: failed to open panel-mipi-dbi: /usr/lib/dri/panel-mipi-dbi_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/aarch64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)

     

    I see that this panel-mipi-dbi_dri.so is part of libgl1-mesa-dri debian package, in DEBIAN SID, but not Bookworm

    https://packages.debian.org/sid/arm64/libgl1-mesa-dri/filelist

    https://packages.debian.org/bookworm/arm64/libgl1-mesa-dri/filelist

     

    Next, when I rebuilt the armbian OS with xfce desktop, I get the same panel-mipi-dbi-spi error: can't find the bin file. I checked the config again... and it was the same

     

    Update: It was easier to build Sid minimal, and install labwc (wayland), just remember to install seatd: https://eirenicon.org/labwc-a-tutorial/

    IMG_9274.jpeg

     

    I isolated why the panel-mipi-dbi-spi can't load when I apply it in an Armbian OS with XFCE.

    xcfe requires plymouth, and plymouth does something to the uInitRd

    Spoiler
    roberto@orangepizero3:~$ sudo apt install plymouth
    Installing:                     
      plymouth
    
    Installing dependencies:
      libplymouth5
    
    Suggested packages:
      desktop-base  plymouth-themes
    
    Summary:
      Upgrading: 0, Installing: 2, Removing: 0, Not Upgrading: 0
      Download size: 254 kB
      Space needed: 1,708 kB / 58.6 GB available
    
    Continue? [Y/n] Y
    Get:1 http://deb.debian.org/debian sid/main arm64 libplymouth5 arm64 24.004.60-5 [119 kB]
    Get:2 http://deb.debian.org/debian sid/main arm64 plymouth arm64 24.004.60-5 [135 kB]
    Fetched 254 kB in 0s (900 kB/s)   
    Selecting previously unselected package libplymouth5:arm64.
    (Reading database ... 36565 files and directories currently installed.)
    Preparing to unpack .../libplymouth5_24.004.60-5_arm64.deb ...
    Unpacking libplymouth5:arm64 (24.004.60-5) ...
    Selecting previously unselected package plymouth.
    Preparing to unpack .../plymouth_24.004.60-5_arm64.deb ...
    Unpacking plymouth (24.004.60-5) ...
    Setting up libplymouth5:arm64 (24.004.60-5) ...
    Setting up plymouth (24.004.60-5) ...
    update-initramfs: Generating /boot/initrd.img-6.15.0-edge-sunxi64
    update-initramfs: Armbian: Converting to u-boot format: /boot/uInitrd-6.15.0-edge-sunxi64
    Image Name:   uInitrd
    Created:      Fri Jul  4 07:25:17 2025
    Image Type:   AArch64 Linux RAMDisk Image (gzip compressed)
    Data Size:    18504970 Bytes = 18071.26 KiB = 17.65 MiB
    Load Address: 00000000
    Entry Point:  00000000
    update-initramfs: Armbian: Symlinking /boot/uInitrd-6.15.0-edge-sunxi64 to /boot/uInitrd
    '/boot/uInitrd' -> 'uInitrd-6.15.0-edge-sunxi64'
    update-initramfs: Armbian: done.
    Processing triggers for man-db (2.13.1-1) ...
    Processing triggers for libc-bin (2.41-9) ...
    roberto@orangepizero3:~$

     

    And when I reboot immediately after installing plymouth, the SPI LCD does not start, and dmesg shows that panel-mipi-dbi-spi could not find the firmware file.

     

    Update: I realized that even before plymouth, the uinitrd does not contain the LCD firmware file... but it is doing something that prevents panel-mipi-dbi-spi from loading the file.

    Update: the initrd.img lacks the LCD bin file ... I will work on including this file later.

     

    An interesting observation from my X11-running armbian OS: it does not contain the file /usr/lib/dri/panel-mipi-dbi_dri.so (not even the dri folder)

    This working Xorg is version 1.21.1.7. Same as in my failed attempt with Armbian bookworm. It was failing because it demanded panel-mipi-dbi_dri.so... I will re-test tomorrow.

  8. I keep having trouble with panel-mipi-dbi-spi not finding /lib/firmware/panel-mipi-dbi-spi.bin even if it exists and it works in another Armbian and Raspberry.

     

    This happens only with the armbian OS that I compiled with default linux configuration.

     

    The armbian OS image that I downloaded from armbian.com can drive the LCD (but has other problems with X11).

     

    When I boot my image while watching the serial output, I only see "Starting kernel", then a few lines regarding udev, then the login prompt (sorry, I will be more exact when I get back home).

    I changed console=both to console=serial, in armbianEnv.txt but I still don't see more kernel or init messages while booting.

     

    How can I activate this verbose boot?

     

    Is there any chance that the /lib/firmware is not mounted and available to the kernel module in this early stage?

  9. Please someone help :)

    I can't start X11... I installed:

    sudo apt install xserver-xorg-video-fbdev openbox x11-xserver-utils xinit xserver-xorg-input-evdev

    Created this /etc/X11/xorg.conf.d/99-fbdev.conf file

    Spoiler
    Section "Device"
        Identifier "myfb"
        Driver "fbdev"
        Option "fbdev" "/dev/fb0"
    EndSection

     

     

    And tried sudo startx, then the LCD got a black screen for a fraction of a second, and I got (in my ssh session)

     

    Spoiler
    roberto@orangepizero3:~$ sudo startx
    [sudo] password for roberto: 
    
    
    X.Org X Server 1.21.1.7
    X Protocol Version 11, Revision 0
    Current Operating System: Linux orangepizero3 6.12.30-current-sunxi64 #1 SMP Thu May 22 12:29:54 UTC 2025 aarch64
    Kernel command line: root=UUID=d276f8bc-e3b7-451c-88c3-5fa736369eee rootwait rootfstype=ext4 splash=verbose console=ttyS0,115200 console=tty1 consoleblank=0 loglevel=1 ubootpart=6329069a-01 usb-storage.quirks=0x2537:0x1066:u,0x2537:0x1068:u   cgroup_enable=memory
    xorg-server 2:21.1.7-3+deb12u10 (https://www.debian.org/support) 
    Current version of pixman: 0.42.2
    	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: Sat Jun 28 21:30:56 2025
    (==) Using config directory: "/etc/X11/xorg.conf.d"
    (==) Using system config directory "/usr/share/X11/xorg.conf.d"
    (EE) 
    Fatal server error:
    (EE) AddScreen/ScreenInit failed for driver 0
    (EE) 
    (EE) 
    Please consult the The X.Org Foundation support 
    	 at http://wiki.x.org
     for help. 
    (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
    (EE) 
    (EE) Server terminated with error (1). Closing log file.
    ^Cxinit: giving up
    xinit: unable to connect to X server: Connection refused
    xinit: unexpected signal 2
    
    
    roberto@orangepizero3:~$ tail -40 /var/log/Xorg.0.log
    [    36.850] 	ABI class: X.Org Video Driver, version 25.2
    [    36.850] (II) FBDEV(0): using /dev/fb0
    [    36.850] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
    [    36.850] (II) FBDEV(0): Creating default Display subsection in Screen section
    	"Default Screen Section" for depth/fbbpp 24/32
    [    36.850] (==) FBDEV(0): Depth 24, (==) framebuffer bpp 32
    [    36.850] (==) FBDEV(0): RGB weight 888
    [    36.850] (==) FBDEV(0): Default visual is TrueColor
    [    36.850] (==) FBDEV(0): Using gamma correction (1.0, 1.0, 1.0)
    [    36.850] (II) FBDEV(0): hardware: panel-mipi-dbid (video memory: 450kB)
    [    36.850] (DB) xf86MergeOutputClassOptions unsupported bus type 0
    [    36.850] (**) FBDEV(0): Option "fbdev" "/dev/fb0"
    [    36.850] (II) FBDEV(0): checking modes against framebuffer device...
    [    36.850] (II) FBDEV(0): checking modes against monitor...
    [    36.850] (II) FBDEV(0): Virtual size is 480x320 (pitch 480)
    [    36.850] (**) FBDEV(0):  Built-in mode "current"
    [    36.850] (==) FBDEV(0): DPI set to (96, 96)
    [    36.850] (II) Loading sub module "fb"
    [    36.850] (II) LoadModule: "fb"
    [    36.850] (II) Module "fb" already built-in
    [    36.850] (**) FBDEV(0): using shadow framebuffer
    [    36.850] (II) Loading sub module "shadow"
    [    36.850] (II) LoadModule: "shadow"
    [    36.851] (II) Loading /usr/lib/xorg/modules/libshadow.so
    [    36.855] (II) Module shadow: vendor="X.Org Foundation"
    [    36.855] 	compiled for 1.21.1.7, module version = 1.1.0
    [    36.855] 	ABI class: X.Org ANSI C Emulation, version 0.4
    [    36.855] (EE) FBDEV(0): FBIOPUT_VSCREENINFO: Invalid argument
    [    36.855] (EE) FBDEV(0): mode initialization failed
    [    36.855] (EE) 
    Fatal server error:
    [    36.855] (EE) AddScreen/ScreenInit failed for driver 0
    [    36.855] (EE) 
    [    36.855] (EE) 
    Please consult the The X.Org Foundation support 
    	 at http://wiki.x.org
     for help. 
    [    36.855] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
    [    36.855] (EE) 
    [    37.441] (EE) Server terminated with error (1). Closing log file.

     

     

    The error message is FBIOPUT_VSCREENINFO: Invalid argument

     

    I also see that xorg wants to use 24 bit color, but my LCD is 18 bit color. <- update: this does not matter... my opiz3 with running X11 shows the same message

     

    I will try to get X11 working again with the linux 6.13 build folders that worked for me in april

     

    panel-mipi-dbi-spi reference:

    https://github.com/notro/panel-mipi-dbi/wiki

    https://www.kernel.org/doc/Documentation/devicetree/bindings/display/panel/panel-mipi-dbi-spi.yaml

     

    Is anyone here experienced with panel-mipi-dbi-spi? I am having problems loading the bin file again. What's weird is that sometimes the same bin file works in one Armbian version and Raspberry, but not for the Armbian version I want.

     

    Ok. Here, they say that if the LCD works in console, but not X, then it is not a kernel problem

    https://github.com/raspberrypi/linux/issues/5615

     

    This might be related:

    https://forums.raspberrypi.com/viewtopic.php?t=386528

  10. Happy to report that with a different wiring, I got the touch part working... it served me well to follow examples from the Raspberry forum

     

    Spoiler
    roberto@orangepizero3:~/ili9488$ cat ili9488-ads7846.dts 
    /dts-v1/;
    /plugin/;
    / {
        compatible = "allwinner,sun50i-h616";
        fragment@0 {
            target = <&spi1>;
            __overlay__ {
                status = "okay";
                pinctrl-names = "default"; //new for linux 6.13
                pinctrl-0 = <&spi1_pins>; //new for linux 6.13
    	    cs-gpios = <&pio 7 9 0>,<&pio 2 10 0>;  //PIN24=PH9=CS0 (default) for lcd, PIN26=PC10=CS1 for touch
                panel: panel@0 {
                    compatible = "panel-mipi-dbi-spi";
                    reg = <0>;
                    spi-max-frequency = <40000000>;
                    width-mm=<84>;
                    height-mm=<56>;
                    reset-gpios = <&pio 2 7 0>; // PIN22=PC7
                    dc-gpios = <&pio 2 14 0>; // PIN18=PC14
                    write-only;
                    format = "b6x2g6x2r6x2";
                    panel-timing {
                        hactive = <480>;
                        vactive = <320>;
                        hback-porch = <0>;
                        vback-porch = <0>;
                        clock-frequency = <0>;
                        hfront-porch = <0>;
                        hsync-len = <0>;
                        vfront-porch = <0>;
                        vsync-len = <0>;
                    };
                };
    
                ads7846: ads7846@1 {
                    compatible = "ti,ads7846";
                    reg = <1>;
                    pinctrl-names = "default";
                    spi-max-frequency = <1000000>;
                    interrupt-parent = <&pio>;
                    interrupts = <2 15 2>; /* PIN16=PC15 - IRQ */
                    pendown-gpio = <&pio 2 15 1>; /* PIN16=PC15 */
                    
                    /* OPTIONS */
                    ti,x-min = /bits/ 16 <0>;
                    ti,y-min = /bits/ 16 <0>;
    		ti,x-max = /bits/ 16 <0xFFF>;
    		ti,y-max = /bits/ 16 <0xFFF>;
                    ti,pressure-min = /bits/ 16 <0>;
                    ti,pressure-max = /bits/ 16 <0xFFF>;
                    ti,x-plate-ohms = /bits/ 16 <400>;
                    ti,swap-xy = <1>;
    	    };
            };
        };
    };

     

     

    The mipi command string is the same as the one kungfupancake github, but removing the 0x21 command. The bin file should be copied into /lib/firmware/panel-mipi-dbi-spi.bin

     

    I used the vanilla armbian image with kernel 6.12.30 (not using my custom build method of removing the arm64-dts-sun50i-h618-orangepi-zero2w-Add-missing-nodes.patch ) :)

     

    It works with all the 3.5" and 4.0" red LCDs I have (some 3.5" LCDs I have are ili9486).

  11. They are in the same pin numbers, but different GPIO

    image.thumb.png.1eab4d844ace4930e2c97c646b6b65d8.png

    Update:

    I found that I can just use both CS0 and CS1 in opiz3 normally as expected in a DTS for a SPI ili948x LCD and touch screen, as seen in my ili9488 thread.

    (PH9=CS0, PC10=CS1)

    I was having so much trouble before, but now I finally got it

     

  12. Connect to the orange pi's serial port with a usb-serial from your laptop. Make sure you connect the TX with the RX, and viceversa. The speed is 115200.

    You will see booting messages, before the login prompt.

     

    If nothing works, re-write the img to the microSD.

  13. Thank you! I will try it tomorrow.

     

    What is spi1_cs0_pin and spi1_cs1_pin equal to, in Orange Pi Zero 2W, and in Opiz3?

     

    Is it defined in the spi-spidev dtso, or in the main opiz3/opiz2w dts? I need to have it correctly in the main DTS, because the LCD driver doesn't use spidev (and it would conflict).

     

    cs0 matches the pin position in raspberry pi: pin 24.... so it would make sense if cs1 is pin 26.

     

    Reference. This is the patch that changes the opiz3/2w DTS https://forum.armbian.com/topic/50418-dont-use-kernel-61216-on-sunxi64/page/2/#findComment-216934

     

     

×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines