diff --git a/hosts/weather/default.nix b/hosts/weather/default.nix index 8960835..48cd25f 100644 --- a/hosts/weather/default.nix +++ b/hosts/weather/default.nix @@ -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"; diff --git a/hosts/weather/hardware-configuration.nix b/hosts/weather/hardware-configuration.nix index a7fd6f4..d97f53d 100644 --- a/hosts/weather/hardware-configuration.nix +++ b/hosts/weather/hardware-configuration.nix @@ -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; }