Even though it seems like my mesa build is fine, I just did a git pull of the latest and I’m doing a build as described here:
(The parameters are a little different and it sounds like it was working for him, so I figured it couldn’t hurt.)
But I still think something is just wrong in a config file somewhere, and I have no idea where to look.
After the rebuild I have this in my xorg log instead. Still no mention of card 2, but [ 24.417] (EE) AIGLX error: Calling driver entry point failed
is new, and there is at least a mention of sun4i on a couple of lines.
[ 23.299]
X.Org X Server 1.20.4
X Protocol Version 11, Revision 0
[ 23.299] Build Operating System: Linux 4.9.0-8-arm64 armv8l Debian
[ 23.299] Current Operating System: Linux clockworkpi 5.3.6-clockworkpi-cpi3 #1 SMP Tue Oct 15 17:26:44 CST 2019 armv7l
[ 23.300] Kernel command line: console=ttyS0,115200n8 earlyprintk no_console_suspend root=/dev/mmcblk0p2 rootfstype=ext4 rootwait init=/sbin/init noinitrd panic=10
[ 23.300] Build Date: 05 March 2019 08:11:12PM
[ 23.300] xorg-server 2:1.20.4-1 (https://www.debian.org/support)
[ 23.300] Current version of pixman: 0.36.0
[ 23.300] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 23.300] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 23.301] (==) Log file: "/home/cpi/.local/share/xorg/Xorg.0.log", Time: Fri Jan 31 16:13:54 2020
[ 23.311] (++) Using config file: "/home/cpi/launcher/.xorg_lima.conf"
[ 23.311] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 23.323] (==) No Layout section. Using the first Screen section.
[ 23.323] (==) No screen section available. Using defaults.
[ 23.323] (**) |-->Screen "Default Screen Section" (0)
[ 23.323] (**) | |-->Monitor "<default monitor>"
[ 23.324] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[ 23.325] (**) Option "AutoAddGPU" "off"
[ 23.325] (**) Option "Debug" "dmabuf_capable"
[ 23.325] (==) Automatically adding devices
[ 23.325] (==) Automatically enabling devices
[ 23.325] (**) Not automatically adding GPU devices
[ 23.331] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 23.343] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[ 23.343] Entry deleted from font path.
[ 23.357] (==) FontPath set to:
/usr/share/fonts/X11/misc,
/usr/share/fonts/X11/100dpi/:unscaled,
/usr/share/fonts/X11/75dpi/:unscaled,
/usr/share/fonts/X11/Type1,
/usr/share/fonts/X11/100dpi,
/usr/share/fonts/X11/75dpi,
built-ins
[ 23.357] (==) ModulePath set to "/usr/lib/xorg/modules"
[ 23.357] (II) The server relies on udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 23.357] (II) Loader magic: 0x590f98
[ 23.357] (II) Module ABI versions:
[ 23.357] X.Org ANSI C Emulation: 0.4
[ 23.357] X.Org Video Driver: 24.0
[ 23.358] X.Org XInput driver : 24.1
[ 23.358] X.Org Server Extension : 10.0
[ 23.361] (++) using VT number 1
[ 23.369] (II) systemd-logind: took control of session /org/freedesktop/login1/session/c1
[ 23.372] (II) xfree86: Adding drm device (/dev/dri/card1)
[ 23.374] (II) systemd-logind: got fd for /dev/dri/card1 226:1 fd 11 paused 0
[ 23.376] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 23.379] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 12 paused 0
[ 23.379] (II) no primary bus or device found
[ 23.380] falling back to /sys/devices/platform/display-engine/drm/card1
[ 23.380] (II) LoadModule: "glx"
[ 23.385] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 23.444] (II) Module glx: vendor="X.Org Foundation"
[ 23.444] compiled for 1.20.4, module version = 1.0.0
[ 23.444] ABI class: X.Org Server Extension, version 10.0
[ 23.444] (==) Matched modesetting as autoconfigured driver 0
[ 23.444] (==) Matched fbdev as autoconfigured driver 1
[ 23.444] (==) Assigned the driver to the xf86ConfigLayout
[ 23.444] (II) LoadModule: "modesetting"
[ 23.445] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[ 23.450] (II) Module modesetting: vendor="X.Org Foundation"
[ 23.450] compiled for 1.20.4, module version = 1.20.4
[ 23.450] Module class: X.Org Video Driver
[ 23.450] ABI class: X.Org Video Driver, version 24.0
[ 23.450] (II) LoadModule: "fbdev"
[ 23.450] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
[ 23.453] (II) Module fbdev: vendor="X.Org Foundation"
[ 23.453] compiled for 1.20.0, module version = 0.5.0
[ 23.453] Module class: X.Org Video Driver
[ 23.453] ABI class: X.Org Video Driver, version 24.0
[ 23.453] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 23.453] (II) FBDEV: driver for framebuffer: fbdev
[ 23.453] (II) modeset(0): using drv /dev/dri/card1
[ 23.453] (WW) Falling back to old probe method for fbdev
[ 23.454] (II) Loading sub module "fbdevhw"
[ 23.454] (II) LoadModule: "fbdevhw"
[ 23.454] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
[ 23.456] (II) Module fbdevhw: vendor="X.Org Foundation"
[ 23.456] compiled for 1.20.4, module version = 0.0.2
[ 23.456] ABI class: X.Org Video Driver, version 24.0
[ 23.456] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[ 23.457] (II) modeset(0): Creating default Display subsection in Screen section
"Default Screen Section" for depth/fbbpp 24/32
[ 23.457] (==) modeset(0): Depth 24, (==) framebuffer bpp 32
[ 23.457] (==) modeset(0): RGB weight 888
[ 23.457] (==) modeset(0): Default visual is TrueColor
[ 23.457] (II) Loading sub module "glamoregl"
[ 23.457] (II) LoadModule: "glamoregl"
[ 23.458] (II) Loading /usr/lib/xorg/modules/libglamoregl.so
[ 23.527] (II) Module glamoregl: vendor="X.Org Foundation"
[ 23.527] compiled for 1.20.4, module version = 1.0.1
[ 23.527] ABI class: X.Org ANSI C Emulation, version 0.4
[ 24.051] (II) modeset(0): glamor X acceleration enabled on softpipe
[ 24.051] (II) modeset(0): glamor initialized
[ 24.059] (II) modeset(0): Output None-1 has no monitor section
[ 24.059] (II) modeset(0): EDID for output None-1
[ 24.059] (II) modeset(0): Printing probed modes for output None-1
[ 24.060] (II) modeset(0): Modeline "320x240"x59.8 5.80 320 326 328 388 240 242 244 250 +hsync +vsync (14.9 kHz eP)
[ 24.060] (II) modeset(0): Output None-1 connected
[ 24.060] (II) modeset(0): Using exact sizes for initial modes
[ 24.060] (II) modeset(0): Output None-1 using initial mode 320x240 +0+0
[ 24.061] (==) modeset(0): Using gamma correction (1.0, 1.0, 1.0)
[ 24.061] (==) modeset(0): DPI set to (96, 96)
[ 24.061] (II) Loading sub module "fb"
[ 24.061] (II) LoadModule: "fb"
[ 24.067] (II) Loading /usr/lib/xorg/modules/libfb.so
[ 24.073] (II) Module fb: vendor="X.Org Foundation"
[ 24.073] compiled for 1.20.4, module version = 1.0.0
[ 24.073] ABI class: X.Org ANSI C Emulation, version 0.4
[ 24.073] (II) UnloadModule: "fbdev"
[ 24.073] (II) Unloading fbdev
[ 24.073] (II) UnloadSubModule: "fbdevhw"
[ 24.074] (II) Unloading fbdevhw
[ 24.350] (==) modeset(0): Backing store enabled
[ 24.351] (==) modeset(0): Silken mouse enabled
[ 24.370] (II) modeset(0): Initializing kms color map for depth 24, 8 bpc.
[ 24.370] (==) modeset(0): DPMS enabled
[ 24.373] (II) modeset(0): [DRI2] Setup complete
[ 24.373] (II) modeset(0): [DRI2] DRI driver: sun4i_drm
[ 24.373] (II) modeset(0): [DRI2] VDPAU driver: sun4i_drm
[ 24.373] (II) Initializing extension Generic Event Extension
[ 24.374] (II) Initializing extension SHAPE
[ 24.375] (II) Initializing extension MIT-SHM
[ 24.376] (II) Initializing extension XInputExtension
[ 24.378] (II) Initializing extension XTEST
[ 24.379] (II) Initializing extension BIG-REQUESTS
[ 24.380] (II) Initializing extension SYNC
[ 24.381] (II) Initializing extension XKEYBOARD
[ 24.382] (II) Initializing extension XC-MISC
[ 24.383] (II) Initializing extension SECURITY
[ 24.384] (II) Initializing extension XFIXES
[ 24.385] (II) Initializing extension RENDER
[ 24.387] (II) Initializing extension RANDR
[ 24.389] (II) Initializing extension COMPOSITE
[ 24.390] (II) Initializing extension DAMAGE
[ 24.391] (II) Initializing extension MIT-SCREEN-SAVER
[ 24.392] (II) Initializing extension DOUBLE-BUFFER
[ 24.393] (II) Initializing extension RECORD
[ 24.394] (II) Initializing extension DPMS
[ 24.395] (II) Initializing extension Present
[ 24.396] (II) Initializing extension DRI3
[ 24.397] (II) Initializing extension X-Resource
[ 24.399] (II) Initializing extension XVideo
[ 24.400] (II) Initializing extension XVideo-MotionCompensation
[ 24.400] (II) Initializing extension SELinux
[ 24.400] (II) SELinux: Disabled on system
[ 24.400] (II) Initializing extension GLX
[ 24.417] (EE) AIGLX error: Calling driver entry point failed
[ 24.435] (II) IGLX: Loaded and initialized swrast
[ 24.435] (II) GLX: Initialized DRISWRAST GL provider for screen 0
[ 24.435] (II) Initializing extension XFree86-VidModeExtension
[ 24.436] (II) Initializing extension XFree86-DGA
[ 24.438] (II) Initializing extension XFree86-DRI
[ 24.438] (II) Initializing extension DRI2
[ 24.445] (II) modeset(0): Damage tracking initialized
[ 24.445] (II) modeset(0): Setting screen physical size to 84 x 63
[ 25.127] (II) config/udev: Adding input device http://matrixstorm.com/avr/tinyusbboard/ tinyUSBboard (/dev/input/event1)
[ 25.128] (**) http://matrixstorm.com/avr/tinyusbboard/ tinyUSBboard: Applying InputClass "libinput keyboard catchall"
[ 25.128] (II) LoadModule: "libinput"
[ 25.128] (II) Loading /usr/lib/xorg/modules/input/libinput_drv.so
[ 25.181] (II) Module libinput: vendor="X.Org Foundation"
[ 25.182] compiled for 1.20.4, module version = 0.28.2
[ 25.182] Module class: X.Org XInput Driver
[ 25.182] ABI class: X.Org XInput driver, version 24.1
[ 25.182] (II) Using input driver 'libinput' for 'http://matrixstorm.com/avr/tinyusbboard/ tinyUSBboard'
[ 25.186] (II) systemd-logind: got fd for /dev/input/event1 13:65 fd 22 paused 0
[ 25.186] (**) http://matrixstorm.com/avr/tinyusbboard/ tinyUSBboard: always reports core events
[ 25.186] (**) Option "Device" "/dev/input/event1"
[ 25.187] (**) Option "_source" "server/udev"
[ 25.226] (II) event1 - http://matrixstorm.com/avr/tinyusbboard/ tinyUSBboard: is tagged by udev as: Keyboard
[ 25.226] (II) event1 - http://matrixstorm.com/avr/tinyusbboard/ tinyUSBboard: device is a keyboard
[ 25.228] (II) event1 - http://matrixstorm.com/avr/tinyusbboard/ tinyUSBboard: device removed
[ 25.228] (**) Option "config_info" "udev:/sys/devices/platform/soc/1c1a400.usb/usb2/2-1/2-1:1.0/0003:4242:E131.0001/input/input1/event1"
[ 25.228] (II) XINPUT: Adding extended input device "http://matrixstorm.com/avr/tinyusbboard/ tinyUSBboard" (type: KEYBOARD, id 6)
[ 25.228] (**) Option "xkb_model" "pc105"
[ 25.228] (**) Option "xkb_layout" "us"
[ 25.238] (II) event1 - http://matrixstorm.com/avr/tinyusbboard/ tinyUSBboard: is tagged by udev as: Keyboard
[ 25.238] (II) event1 - http://matrixstorm.com/avr/tinyusbboard/ tinyUSBboard: device is a keyboard
[ 25.244] (II) config/udev: Adding input device http://matrixstorm.com/avr/tinyusbboard/ tinyUSBboard (/dev/input/event2)
[ 25.244] (**) http://matrixstorm.com/avr/tinyusbboard/ tinyUSBboard: Applying InputClass "libinput pointer catchall"
[ 25.244] (II) Using input driver 'libinput' for 'http://matrixstorm.com/avr/tinyusbboard/ tinyUSBboard'
[ 25.311] (II) systemd-logind: got fd for /dev/input/event2 13:66 fd 25 paused 0
[ 25.311] (**) http://matrixstorm.com/avr/tinyusbboard/ tinyUSBboard: always reports core events
[ 25.311] (**) Option "Device" "/dev/input/event2"
[ 25.311] (**) Option "_source" "server/udev"
[ 25.320] (II) event2 - http://matrixstorm.com/avr/tinyusbboard/ tinyUSBboard: is tagged by udev as: Mouse
[ 25.321] (II) event2 - http://matrixstorm.com/avr/tinyusbboard/ tinyUSBboard: device is a pointer
[ 25.322] (II) event2 - http://matrixstorm.com/avr/tinyusbboard/ tinyUSBboard: device removed
[ 25.323] (**) Option "config_info" "udev:/sys/devices/platform/soc/1c1a400.usb/usb2/2-1/2-1:1.1/0003:4242:E131.0002/input/input2/event2"
[ 25.323] (II) XINPUT: Adding extended input device "http://matrixstorm.com/avr/tinyusbboard/ tinyUSBboard" (type: MOUSE, id 7)
[ 25.324] (**) Option "AccelerationScheme" "none"
[ 25.324] (**) http://matrixstorm.com/avr/tinyusbboard/ tinyUSBboard: (accel) selected scheme none/0
[ 25.324] (**) http://matrixstorm.com/avr/tinyusbboard/ tinyUSBboard: (accel) acceleration factor: 2.000
[ 25.324] (**) http://matrixstorm.com/avr/tinyusbboard/ tinyUSBboard: (accel) acceleration threshold: 4
[ 25.332] (II) event2 - http://matrixstorm.com/avr/tinyusbboard/ tinyUSBboard: is tagged by udev as: Mouse
[ 25.333] (II) event2 - http://matrixstorm.com/avr/tinyusbboard/ tinyUSBboard: device is a pointer
[ 25.339] (II) config/udev: Adding input device axp20x-pek (/dev/input/event0)
[ 25.339] (**) axp20x-pek: Applying InputClass "libinput keyboard catchall"
[ 25.339] (II) Using input driver 'libinput' for 'axp20x-pek'
[ 25.342] (II) systemd-logind: got fd for /dev/input/event0 13:64 fd 26 paused 0
[ 25.343] (**) axp20x-pek: always reports core events
[ 25.343] (**) Option "Device" "/dev/input/event0"
[ 25.343] (**) Option "_source" "server/udev"
[ 25.351] (II) event0 - axp20x-pek: is tagged by udev as: Keyboard
[ 25.351] (II) event0 - axp20x-pek: device is a keyboard
[ 25.351] (II) event0 - axp20x-pek: device removed
[ 25.352] (**) Option "config_info" "udev:/sys/devices/platform/soc/1f03400.rsb/sunxi-rsb-3a3/axp221-pek/input/input0/event0"
[ 25.352] (II) XINPUT: Adding extended input device "axp20x-pek" (type: KEYBOARD, id 8)
[ 25.352] (**) Option "xkb_model" "pc105"
[ 25.352] (**) Option "xkb_layout" "us"
[ 25.360] (II) event0 - axp20x-pek: is tagged by udev as: Keyboard
[ 25.360] (II) event0 - axp20x-pek: device is a keyboard
[ 26.236] (II) modeset(0): Disabling kernel dirty updates, not required.
The only difference between this one and the last one is that I ran a git pull on my mesa code directory, and then I rebuilt it with:
meson build/ --optimization s --buildtype release --prefix=/usr --libdir=lib/arm-linux-gnueabihf -Dgallium-drivers=lima,panfrost,kmsro,swrast -Dplatforms=x11,drm,surfaceless -Dvulkan-drivers= -Ddri-drivers= -Dllvm=false
ninja -C build/
sudo ninja -C build/ install
I didn’t change anything else, and yet the logs are somewhat different. Hopefully this provides a clue to you @r043v. I’m still very much in the dark!