Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rpi5 core-image-sato requires /etc/X11/xorg.conf.d/99-vc4.conf file for GUI to appear (not needed for Rpi4...) #1312

Open
PSkeberdis opened this issue Apr 26, 2024 · 4 comments

Comments

@PSkeberdis
Copy link

Used yocto/poky and meta-raspberrypi "nanbield" branch to build core-image-sato for MACHINE?= "raspberrypi5".

(as an aside, had to increase boot partition size by adding BOOT_SPACE = "61440" in local.conf to create sd_image...)

Made an SD card and booted Rpi5 - the xserver fails, and the GUI does not appear as expected, and boots to console to login.

After searching for solutions, found the following:
Add below configuration to a file named 99-vc4.conf and save to /etc/X11/xorg.conf.d/ directory:

Section "OutputClass"
  Identifier "vc4"
  MatchDriver "vc4"
  Driver "modesetting"
  Option "PrimaryGPU" "true"
EndSection

Following reboot, the xserver succeeds and the GUI appears as expected.

References:
https://forums.raspberrypi.com/viewtopic.php?t=361902
https://forums.raspberrypi.com/viewtopic.php?p=2159161#p2159161

Seems like this /etc/X11/xorg.conf.d/99-vc4.conf should be added to the recipe.

@kraj
Copy link
Collaborator

kraj commented Apr 27, 2024

@PSkeberdis thanks for reporting the issue and also possible patch. Would be great if you can push it for a PR

@gitgonewithwind
Copy link

gitgonewithwind commented May 15, 2024

I bitbake core-image-base
I think I just met the same issue, X11 failed, before at commit meta-raspberry
Author: Vivien Didelot [email protected]
Date: Thu Aug 3 01:36:48 2023 -0400
I use almost the same local.conf
my X11 worked well in pi4,
but in pi5 , X sever is failed. let me try this solution.
directly run X, output

root@raspberrypi5:/etc/init.d# X

X.Org X Server 1.21.1.12
X Protocol Version 11, Revision 0
Current Operating System: Linux raspberrypi5 6.6.22-v8-16k #1 SMP PREEMPT Tue Mar 19 17:41:59 UTC 2024 aarch64
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:DE:27:D6 vc_mem.mem_base=0x3fc00000 vc_mem.mem_size=0x40000000 dwc_otg.lpm_enable=0 console=ttyAMA10,115200 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait

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: Fri Mar 9 12:45:15 2018
(==) Using config file: "/etc/X11/xorg.conf"
(==) Using config directory: "/etc/X11/xorg.conf.d"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
(EE)
Fatal server error:
(EE) Cannot run in framebuffer mode. Please specify busIDs for all framebuffer devices
(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.

root@raspberrypi5:# export DISPLAY=:0
root@raspberrypi5:
# chromium -no-sandbox
[852:852:0515/125839.814911:ERROR:ozone_platform_x11.cc(243)] Missing X server or $DISPLAY
[852:852:0515/125839.814954:ERROR:env.cc(257)] The platform failed to initialize. Exiting.

@gitgonewithwind
Copy link

right!
the solution works for me
Thanks

@carpajr
Copy link

carpajr commented Oct 8, 2024

Greetings everyone!

Was someone able to configure rotation of the screen? I can't find a way to do it over x11.

Here I'm having issues with xrandr returning xrandr: Failed to get size of gamma for output default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants