git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #63147 from samueldr/aarch64/graphics-fixes

aarch64: misc. graphical boot fixes

commit7c819989f99962d01aef9513f3a131ffe385ab38 authorSamuel Dionne-Riel <samuel@dionne-riel.com> dateMon 24 Jun 2019, 14:53 (7 years ago) parentc4a12ee5d92d16
2 files changed+10
nixos/modules/installer/cd-dvd/sd-image-aarch64.nix+7 pkgs/os-specific/linux/kernel/common-config.nix+3
nixos/modules/installer/cd-dvd/sd-image-aarch64.nix+7
@@ -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" ''
pkgs/os-specific/linux/kernel/common-config.nix+3
@@ -710,6 +710,9 @@ let
710710 # Bump the maximum number of CPUs to support systems like EC2 x1.*
711711 # instances and Xeon Phi.
712712 NR_CPUS = freeform "384";
713+ } // optionalAttrs (stdenv.hostPlatform.system == "aarch64-linux") {
714+ # Enables support for the Allwinner Display Engine 2.0
715+ SUN8I_DE2_CCU = whenAtLeast "4.13" yes;
713716 };
714717 };
715718in