Rpi5: fix X11 failure

This commit is contained in:
Gunjan Gupta
2023-12-20 17:03:38 +05:30
committed by Igor
parent 363a069025
commit a82589e683

View File

@@ -155,6 +155,19 @@ function post_family_tweaks_bsp__add_hooks_to_move_kernel_initrd_and_dtb() {
run_host_command_logged chmod a+x "${destination}"/etc/initramfs/post-update.d/zzz-update-initramfs
}
function post_family_tweaks_bsp__add_x11_config() {
display_alert "rpi5b" "Adding X11 configuration" "info"
run_host_command_logged mkdir -p "${destination}"/etc/X11/xorg.conf.d/
run_host_command_logged cat <<- '99-vc4.conf' > "${destination}"/etc/X11/xorg.conf.d/99-vc4.conf
Section "OutputClass"
Identifier "vc4"
MatchDriver "vc4"
Driver "modesetting"
Option "PrimaryGPU" "true"
EndSection
99-vc4.conf
}
function post_family_tweaks__populate_boot_firmware_directory() {
# We install kernel before we install bsp package. This means hooks present in bsp are not executed.
# Running the hooks from bsp to populate /boot/firmware directory.