Skip to contentSkip to conversation

Xorg on RPI5

Buildroot Waldemar Brodkorb 1 participant 2 messages Aug 24, 2024

lore
Share & tools
lore
#0 lore raw

Hi,

does anyone use Xorg on RPI5?

I activated the vc4-kms-v3d-pi5 overlay in config.txt. I have a /dev/dri directory on the device.
I am using Buildroot next branch.

But Xorg fails to start.

# cat /var/log/Xorg.0.log 
[   756.753] 
X.Org X Server 1.21.1.11
X Protocol Version 11, Revision 0
[   756.753] Current Operating System: Linux buildroot 6.6.28-v8-16k #1 SMP PREEMPT Fri Aug 23 10:05:16 CEST 2024 aarch64
[   756.753] Kernel command line: reboot=w coherent_pool=1M 8250.nr_uarts=1 pci=pcie_bus_safe snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1  smsc95xx.macaddr=D8:3A:DD:E2:F0:05 vc_mem.mem_base=0x3fc00000 vc_mem.mem_size=0x40000000  root=/dev/mmcblk0p2 rootwait console=tty1 console=ttyAMA10,115200
[   756.753]  
[   756.753] Current version of pixman: 0.42.2
[   756.753] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[   756.753] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   756.753] (==) Log file: "/var/log/Xorg.0.log", Time: Thu Jan  1 00:34:46 1970
[   756.753] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[   756.753] (==) No Layout section.  Using the first Screen section.
[   756.753] (==) No screen section available. Using defaults.
[   756.753] (**) |-->Screen "Default Screen Section" (0)
[   756.753] (**) |   |-->Monitor "<default monitor>"
[   756.754] (==) No monitor specified for screen "Default Screen Section".
	Using a default monitor configuration.
[   756.754] (==) Automatically adding devices
[   756.754] (==) Automatically enabling devices
[   756.754] (==) Automatically adding GPU devices
[   756.754] (==) Automatically binding GPU devices
[   756.754] (==) Max clients allowed: 256, resource mask: 0x1fffff
[   756.754] (WW) The directory "/usr/share/fonts/X11//TTF/" does not exist.
[   756.754] 	Entry deleted from font path.
[   756.754] (WW) The directory "/usr/share/fonts/X11//OTF/" does not exist.
[   756.754] 	Entry deleted from font path.
[   756.754] (WW) The directory "/usr/share/fonts/X11//Type1/" does not exist.
[   756.754] 	Entry deleted from font path.
[   756.754] (==) FontPath set to:
	/usr/share/fonts/X11//misc/,
	/usr/share/fonts/X11//100dpi/,
	/usr/share/fonts/X11//75dpi/
[   756.754] (==) ModulePath set to "/usr/lib/xorg/modules"
[   756.754] (II) The server relies on udev to provide the list of input devices.
	If no devices become available, reconfigure udev or disable AutoAddDevices.
[   756.754] (II) Loader magic: 0x55588d8010
[   756.754] (II) Module ABI versions:
[   756.754] 	X.Org ANSI C Emulation: 0.4
[   756.754] 	X.Org Video Driver: 25.2
[   756.754] 	X.Org XInput driver : 24.4
[   756.754] 	X.Org Server Extension : 10.0
[   756.754] (II) xfree86: Adding drm device (/dev/dri/card0)
[   756.754] (II) Platform probe for /sys/devices/platform/axi/1002000000.v3d/drm/card0
[   756.754] (II) xfree86: Adding drm device (/dev/dri/card1)
[   756.754] (II) Platform probe for /sys/devices/platform/axi/axi:gpu/drm/card1
[   756.762] (II) no primary bus or device found
[   756.762] 	falling back to /sys/devices/platform/axi/1002000000.v3d/drm/card0
[   756.762] (==) Matched modesetting as autoconfigured driver 0
[   756.762] (==) Matched fbdev as autoconfigured driver 1
[   756.762] (==) Assigned the driver to the xf86ConfigLayout
[   756.762] (II) LoadModule: "modesetting"
[   756.762] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[   756.762] (II) Module modesetting: vendor="X.Org Foundation"
[   756.762] 	compiled for 1.21.1.11, module version = 1.21.1
[   756.762] 	Module class: X.Org Video Driver
[   756.762] 	ABI class: X.Org Video Driver, version 25.2
[   756.762] (II) LoadModule: "fbdev"
[   756.762] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
[   756.762] (EE) Failed to load /usr/lib/xorg/modules/drivers/fbdev_drv.so: /usr/lib/xorg/modules/drivers/fbdev_drv.so: undefined symbol: fbdevHWSave
[   756.762] (EE) Failed to load module "fbdev" (loader failed, 0)
[   756.762] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[   756.763] (++) using VT number 1
[   756.763] (WW) Falling back to old probe method for modesetting
[   756.763] (WW) Falling back to old probe method for modesetting
[   756.775] (II) modeset(G0): using drv /dev/dri/card1
[   756.775] (EE) No devices detected.
[   756.775] (EE) 
Fatal server error:
[   756.775] (EE) no screens found(EE) 
[   756.775] (EE) 
Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
[   756.775] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[   756.775] (EE) 
[   756.816] (EE) Server terminated with error (1). Closing log file.

ls -la /dev/dri/
total 0

drwxr-xr-x    3 root     root           120 Jan  1 00:22 .
drwxr-xr-x   13 root     root          3640 Jan  1 00:22 ..
drwxr-xr-x    2 root     root           100 Jan  1 00:22 by-path
crw-rw----    1 root     video     226,   0 Jan  1 00:22 card0
crw-rw----    1 root     video     226,   1 Jan  1 00:22 card1
crw-rw-rw-    1 root     video     226, 128 Jan  1 00:22 renderD128

I am using busybox init, not systemd.

Anyone have an idea?

best regards
Waldemar

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#1 lore raw

Hi,

answering my own question. I found this forum post:
https://forum.manjaro.org/t/rpi4-issues-with-fbdev-driver-and-newer-kernel/159991/20

And adding a /etc/X11/xorg.conf like this helped:

# cat xorg.conf
Section "OutputClass"
  Identifier "vc4"
  MatchDriver "vc4"
  Driver "modesetting"
  Option "PrimaryGPU" "true"
EndSection

best regards
Waldemar

Waldemar Brodkorb wrote,

Quoted 105 lines

Hi,

does anyone use Xorg on RPI5?

I activated the vc4-kms-v3d-pi5 overlay in config.txt. I have a /dev/dri directory on the device.
I am using Buildroot next branch.

But Xorg fails to start.

# cat /var/log/Xorg.0.log 
[   756.753] 
X.Org X Server 1.21.1.11
X Protocol Version 11, Revision 0
[   756.753] Current Operating System: Linux buildroot 6.6.28-v8-16k #1 SMP PREEMPT Fri Aug 23 10:05:16 CEST 2024 aarch64
[   756.753] Kernel command line: reboot=w coherent_pool=1M 8250.nr_uarts=1 pci=pcie_bus_safe snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1  smsc95xx.macaddr=D8:3A:DD:E2:F0:05 vc_mem.mem_base=0x3fc00000 vc_mem.mem_size=0x40000000  root=/dev/mmcblk0p2 rootwait console=tty1 console=ttyAMA10,115200
[   756.753]  
[   756.753] Current version of pixman: 0.42.2
[   756.753] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[   756.753] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   756.753] (==) Log file: "/var/log/Xorg.0.log", Time: Thu Jan  1 00:34:46 1970
[   756.753] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[   756.753] (==) No Layout section.  Using the first Screen section.
[   756.753] (==) No screen section available. Using defaults.
[   756.753] (**) |-->Screen "Default Screen Section" (0)
[   756.753] (**) |   |-->Monitor "<default monitor>"
[   756.754] (==) No monitor specified for screen "Default Screen Section".
	Using a default monitor configuration.
[   756.754] (==) Automatically adding devices
[   756.754] (==) Automatically enabling devices
[   756.754] (==) Automatically adding GPU devices
[   756.754] (==) Automatically binding GPU devices
[   756.754] (==) Max clients allowed: 256, resource mask: 0x1fffff
[   756.754] (WW) The directory "/usr/share/fonts/X11//TTF/" does not exist.
[   756.754] 	Entry deleted from font path.
[   756.754] (WW) The directory "/usr/share/fonts/X11//OTF/" does not exist.
[   756.754] 	Entry deleted from font path.
[   756.754] (WW) The directory "/usr/share/fonts/X11//Type1/" does not exist.
[   756.754] 	Entry deleted from font path.
[   756.754] (==) FontPath set to:
	/usr/share/fonts/X11//misc/,
	/usr/share/fonts/X11//100dpi/,
	/usr/share/fonts/X11//75dpi/
[   756.754] (==) ModulePath set to "/usr/lib/xorg/modules"
[   756.754] (II) The server relies on udev to provide the list of input devices.
	If no devices become available, reconfigure udev or disable AutoAddDevices.
[   756.754] (II) Loader magic: 0x55588d8010
[   756.754] (II) Module ABI versions:
[   756.754] 	X.Org ANSI C Emulation: 0.4
[   756.754] 	X.Org Video Driver: 25.2
[   756.754] 	X.Org XInput driver : 24.4
[   756.754] 	X.Org Server Extension : 10.0
[   756.754] (II) xfree86: Adding drm device (/dev/dri/card0)
[   756.754] (II) Platform probe for /sys/devices/platform/axi/1002000000.v3d/drm/card0
[   756.754] (II) xfree86: Adding drm device (/dev/dri/card1)
[   756.754] (II) Platform probe for /sys/devices/platform/axi/axi:gpu/drm/card1
[   756.762] (II) no primary bus or device found
[   756.762] 	falling back to /sys/devices/platform/axi/1002000000.v3d/drm/card0
[   756.762] (==) Matched modesetting as autoconfigured driver 0
[   756.762] (==) Matched fbdev as autoconfigured driver 1
[   756.762] (==) Assigned the driver to the xf86ConfigLayout
[   756.762] (II) LoadModule: "modesetting"
[   756.762] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[   756.762] (II) Module modesetting: vendor="X.Org Foundation"
[   756.762] 	compiled for 1.21.1.11, module version = 1.21.1
[   756.762] 	Module class: X.Org Video Driver
[   756.762] 	ABI class: X.Org Video Driver, version 25.2
[   756.762] (II) LoadModule: "fbdev"
[   756.762] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
[   756.762] (EE) Failed to load /usr/lib/xorg/modules/drivers/fbdev_drv.so: /usr/lib/xorg/modules/drivers/fbdev_drv.so: undefined symbol: fbdevHWSave
[   756.762] (EE) Failed to load module "fbdev" (loader failed, 0)
[   756.762] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[   756.763] (++) using VT number 1
[   756.763] (WW) Falling back to old probe method for modesetting
[   756.763] (WW) Falling back to old probe method for modesetting
[   756.775] (II) modeset(G0): using drv /dev/dri/card1
[   756.775] (EE) No devices detected.
[   756.775] (EE) 
Fatal server error:
[   756.775] (EE) no screens found(EE) 
[   756.775] (EE) 
Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
[   756.775] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[   756.775] (EE) 
[   756.816] (EE) Server terminated with error (1). Closing log file.

ls -la /dev/dri/
total 0

drwxr-xr-x    3 root     root           120 Jan  1 00:22 .
drwxr-xr-x   13 root     root          3640 Jan  1 00:22 ..
drwxr-xr-x    2 root     root           100 Jan  1 00:22 by-path
crw-rw----    1 root     video     226,   0 Jan  1 00:22 card0
crw-rw----    1 root     video     226,   1 Jan  1 00:22 card1
crw-rw-rw-    1 root     video     226, 128 Jan  1 00:22 renderD128

I am using busybox init, not systemd.

Anyone have an idea?

Quoted 9 lines

best regards
Waldemar

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot