attempt to get pi4 display working again

This commit is contained in:
Aaron Bieber 2022-11-23 14:48:08 -07:00
parent 31d382852a
commit f7f42c3006
No known key found for this signature in database
2 changed files with 20 additions and 3 deletions

View File

@ -17,7 +17,7 @@ in {
boot = {
initrd.availableKernelModules =
[ "usbhid" "usb_storage" "vc4" "rtc-ds3232" "rtc-ds1307" ];
kernelPackages = pkgs.linuxPackages_rpi4;
kernelPackages = pkgs.linuxPackages;
kernelModules = [ "raspberrypi_ts" "rtc-ds3232" "rtc-ds1307" ];
#kernelPatches = [{
# name = "touchscreen";

View File

@ -16,9 +16,26 @@
hardware.deviceTree = {
overlays = [
"${pkgs.raspberrypifw}/share/raspberrypi/boot/overlays/rpi-ft5406.dtbo"
#"${pkgs.raspberrypifw}/share/raspberrypi/boot/overlays/rpi-ft5406.dtbo"
{
name = "rpi4-cma-overlay";
dtsText = ''
// SPDX-License-Identifier: GPL-2.0
/dts-v1/;
/plugin/;
/ {
compatible = "brcm,bcm2711";
fragment@0 {
target = <&cma>;
__overlay__ {
size = <(512 * 1024 * 1024)>;
};
};
};
'';
}
];
};
hardware.raspberry-pi."4".fkms-3d.enable = true;
#hardware.raspberry-pi."4".fkms-3d.enable = true;
}