1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-20 04:31:52 +00:00

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.
This commit is contained in:
Samuel Dionne-Riel 2019-06-10 21:33:28 -04:00
parent adc62907a6
commit 390f2071df

View file

@ -26,6 +26,11 @@ in
# Also increase the amount of CMA to ensure the virtual console on the RPi3 works.
boot.kernelParams = ["cma=32M" "console=ttyS0,115200n8" "console=ttyAMA0,115200n8" "console=tty0"];
boot.initrd.availableKernelModules = [
# Allows early (earlier) modesetting for the Raspberry Pi
"vc4" "bcm2835_dma" "i2c_bcm2835"
];
sdImage = {
populateBootCommands = let
configTxt = pkgs.writeText "config.txt" ''