-
Notifications
You must be signed in to change notification settings - Fork 452
X11 at Raspberry Pi5 #1471
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
base: master
Are you sure you want to change the base?
X11 at Raspberry Pi5 #1471
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -336,6 +336,11 @@ do_deploy:append:raspberrypi3-64() { | |
echo "dtparam=audio=on" >> $CONFIG | ||
} | ||
|
||
do_deploy:append:raspberrypi5() { | ||
echo "max_framebuffers=2" >> $CONFIG | ||
echo "disable_fw_kms_setup=1" >> $CONFIG | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same here, it becomes effective for all kind of graphics stacks on top of pi5 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As above. I haven't needed this with a pi5 or cm5 with I/O board. With cm5 I needed updated mesa however. |
||
} | ||
|
||
do_deploy:append() { | ||
if grep -q -E '^.{80}.$' ${DEPLOYDIR}/${BOOTFILES_DIR_NAME}/config.txt; then | ||
bbwarn "config.txt contains lines longer than 80 characters, this is not supported" | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,2 @@ | ||
# DRI3 note: | ||
# With oe-core commit 8509e2e1a87578882b71948ccef3b50ccf1228b3 dri3 is set | ||
# as default. To state out clearly that Raspi needs dri3 and to avoid surprises | ||
# in case oe-core changes this default, we set dri3 explicitly. | ||
PACKAGECONFIG:append:rpi = " gallium vc4 v3d ${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'x11 dri3', '', d)} ${@bb.utils.contains('DISTRO_FEATURES', 'vulkan', 'vulkan broadcom', '', d)}" | ||
PACKAGECONFIG:append:rpi = " gallium vc4 v3d ${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'x11', '', d)} ${@bb.utils.contains('DISTRO_FEATURES', 'vulkan', 'vulkan broadcom', '', d)}" | ||
DRIDRIVERS:class-target:rpi = "" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Section "OutputClass" | ||
Identifier "vc4" | ||
MatchDriver "vc4" | ||
Driver "modesetting" | ||
Option "PrimaryGPU" "true" | ||
EndSection |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,11 @@ SRC_URI:append:rpi = " \ | |
file://xorg.conf.d/98-pitft.conf \ | ||
file://xorg.conf.d/99-calibration.conf \ | ||
" | ||
|
||
SRC_URI:append:raspberrypi5 = " \ | ||
file://99-vc4.conf \ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. does it need to be pi5 specific ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is needed for (at least) both pi5 and cm5 with I/O board. Using this in something like raspberrypi5.conf allows to do OVERRIDES:append = ":hwpi5:pi5" However, from what I have read vc4 may apply to pi4/cm4-io (at least) as well. One could do something like OVERRIDES:append = ":pi-vc4" in an include file for any Pi board to which this applies (e.g. probably not the Zero/Zero W) The official Pi hardware documentation might have the info needed to determine which models this is needed for. |
||
" | ||
|
||
do_install:append:rpi () { | ||
PITFT="${@bb.utils.contains("MACHINE_FEATURES", "pitft", "1", "0", d)}" | ||
if [ "${PITFT}" = "1" ]; then | ||
|
@@ -13,4 +18,9 @@ do_install:append:rpi () { | |
fi | ||
} | ||
|
||
do_install:append:raspberrypi5 () { | ||
install -d ${D}/${sysconfdir}/X11/xorg.conf.d/ | ||
install -m 0644 ${S}/99-vc4.conf ${D}/${sysconfdir}/X11/xorg.conf.d/ | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same question as one above, can it be more generic ? |
||
|
||
FILES:${PN}:append:rpi = " ${sysconfdir}/X11/xorg.conf.d/*" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is a common change that will affect wayland/weston or eglfs images as well. Can you see if core-image-weston boots for your case on pi5 ?
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't needed this with either a pi5 or cm5 with I/O board. When did you need it?
With cm5 I needed updated mesa, however.