sd-image-aarch64: Allows early modesetting for the Raspberry Pi
This will reduce the confusion at boot, where the only thing visible is
the last message from u-boot; where it looks like the Raspberry Pi is
hung, while in reality it's likely resizing partitions.
commit390f2071df6f846f0e5ce488c3caeb03cdd43260
authorSamuel Dionne-Riel <samuel@dionne-riel.com>
dateMon 10 Jun 2019, 21:33 (7 years ago)
parentadc6290
nixos/modules/installer/cd-dvd/sd-image-aarch64.nix+5
@@ -26,6 +26,11 @@ 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+ ];
33+
2934 sdImage = {
3035 populateBootCommands = let
3136 configTxt = pkgs.writeText "config.txt" ''