@@ -26,6 +26,13 @@ in
2626 # Also increase the amount of CMA to ensure the virtual console on the RPi3 works.
2727 boot.kernelParams = ["cma=32M" "console=ttyS0,115200n8" "console=ttyAMA0,115200n8" "console=tty0"];
2828
29+ boot.initrd.availableKernelModules = [
30+ # Allows early (earlier) modesetting for the Raspberry Pi
31+ "vc4" "bcm2835_dma" "i2c_bcm2835"
32+ # Allows early (earlier) modesetting for Allwinner SoCs
33+ "sun4i_drm" "sun8i_drm_hdmi" "sun8i_mixer"
34+ ];
35+
2936 sdImage = {
3037 populateBootCommands = let
3138 configTxt = pkgs.writeText "config.txt" ''