initrd: add mmc_block to default available modules
mmc_block and sdhci_acpi are both necessary for a Bay Trail Chromebook with an
internal eMMC drive. The sdhci_acpi module is detectable but I can not figure
out a way to check whether the mmc_block module is needed by just looking at
/sys/
commitfda9d83ddfe833c95ca630064bb6d2cbaad2da6b
authorBrian McKenna <brian@brianmckenna.org>
dateFri 16 Oct 2015, 22:20 (11 years ago)
parentd0de36b
nixos/modules/installer/cd-dvd/system-tarball-sheevaplug.nix+1−2
@@ -86,8 +86,7 @@ in
8686 system.boot.loader.kernelFile = "uImage";
8787
8888 boot.initrd.availableKernelModules =
89− [ "mvsdio" "mmc_block" "reiserfs" "ext3" "ums-cypress" "rtc_mv"
90− "ext4" ];
89+ [ "mvsdio" "reiserfs" "ext3" "ums-cypress" "rtc_mv" "ext4" ];
9190
9291 boot.postBootCommands =
9392 ''
nixos/modules/installer/cd-dvd/system-tarball.nix+1−1
@@ -43,7 +43,7 @@ in
4343 # so that we don't need to know its device.
4444 fileSystems = [ ];
4545
46− # boot.initrd.availableKernelModules = [ "mvsdio" "mmc_block" "reiserfs" "ext3" "ext4" ];
46+ # boot.initrd.availableKernelModules = [ "mvsdio" "reiserfs" "ext3" "ext4" ];
4747
4848 # boot.initrd.kernelModules = [ "rtc_mv" ];
4949
nixos/modules/system/boot/kernel.nix+3
@@ -184,6 +184,9 @@ in
184184 "ide_disk"
185185 "ide_generic"
186186
187+ # SD cards and internal eMMC drives.
188+ "mmc_block"
189+
187190 # Support USB keyboards, in case the boot fails and we only have
188191 # a USB keyboard.
189192 "uhci_hcd"