Skip to content

Commit c769753

Browse files
xiaoleiwang123456agherzan
authored andcommitted
meta-raspberrypi: Add Xorg conf for raspberrypi5
Specifying xorg to use the Raspberry Pi 5 GPU prevents boot failures caused by the xorg load framebuffer module. Signed-off-by: Xiaolei Wang <xiaolei.wang@windriver.com>
1 parent 44cb3ba commit c769753

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Section "OutputClass"
2+
Identifier "vc4"
3+
MatchDriver "vc4"
4+
Driver "modesetting"
5+
Option "PrimaryGPU" "true"
6+
EndSection

recipes-graphics/xorg-xserver/xserver-xf86-config_%.bbappend

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,16 @@ FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
33
SRC_URI:append:rpi = " \
44
file://xorg.conf.d/98-pitft.conf \
55
file://xorg.conf.d/99-calibration.conf \
6+
file://xorg.conf.d/99-v3d.conf \
67
"
78
do_install:append:rpi () {
9+
install -d ${D}/${sysconfdir}/X11/xorg.conf.d/
810
PITFT="${@bb.utils.contains("MACHINE_FEATURES", "pitft", "1", "0", d)}"
911
if [ "${PITFT}" = "1" ]; then
10-
install -d ${D}/${sysconfdir}/X11/xorg.conf.d/
1112
install -m 0644 ${UNPACKDIR}/xorg.conf.d/98-pitft.conf ${D}/${sysconfdir}/X11/xorg.conf.d/
1213
install -m 0644 ${UNPACKDIR}/xorg.conf.d/99-calibration.conf ${D}/${sysconfdir}/X11/xorg.conf.d/
1314
fi
15+
install -m 0644 ${UNPACKDIR}/xorg.conf.d/99-v3d.conf ${D}/${sysconfdir}/X11/xorg.conf.d/
1416
}
1517

1618
FILES:${PN}:append:rpi = " ${sysconfdir}/X11/xorg.conf.d/*"

0 commit comments

Comments
 (0)