|
Peter Robinson |
3b4ce4 |
From e1ec3b48b3f63b30082bcfe7b0110ee24a989b67 Mon Sep 17 00:00:00 2001
|
|
Peter Robinson |
3b4ce4 |
From: Peter Robinson <pbrobinson@gmail.com>
|
|
Peter Robinson |
3b4ce4 |
Date: Fri, 23 May 2014 11:33:42 +0100
|
|
Peter Robinson |
3b4ce4 |
Subject: [PATCH] kernel-modules: Fix storage module selection for
|
|
Peter Robinson |
3b4ce4 |
sdhci/mmc/ahci
|
|
Peter Robinson |
3b4ce4 |
|
|
Peter Robinson |
3b4ce4 |
Currently the block driver detection for generic initrd doesn't include
|
|
Peter Robinson |
3b4ce4 |
the SD/MMC drivers so we fail to boot generic images on any device using
|
|
Peter Robinson |
3b4ce4 |
those platforms as boot devices when using a generic initrd. Add logic
|
|
Peter Robinson |
3b4ce4 |
to detect those modules. This primarily fixes embedded ARM devices but
|
|
Peter Robinson |
3b4ce4 |
also likely intel tablets/dev boards and enterprise hypervisors that
|
|
Peter Robinson |
3b4ce4 |
have the ability to boot from SD.
|
|
Peter Robinson |
3b4ce4 |
|
|
Peter Robinson |
3b4ce4 |
Also the ahci_init_controller misses a number of drivers that use the
|
|
Peter Robinson |
3b4ce4 |
libahci_platform module for the init so this fixes some missing achi
|
|
Peter Robinson |
3b4ce4 |
moduless too.
|
|
Peter Robinson |
3b4ce4 |
|
|
Peter Robinson |
3b4ce4 |
Finally it cleans up the ARM storage module hacks that the above now
|
|
Peter Robinson |
3b4ce4 |
deals with in a more generic manner.
|
|
Peter Robinson |
3b4ce4 |
|
|
Peter Robinson |
3b4ce4 |
Signed-off-by: <pbrobinson@gmail.com>
|
|
Peter Robinson |
3b4ce4 |
---
|
|
Peter Robinson |
3b4ce4 |
modules.d/90kernel-modules/module-setup.sh | 6 ++----
|
|
Peter Robinson |
3b4ce4 |
1 file changed, 2 insertions(+), 4 deletions(-)
|
|
Peter Robinson |
3b4ce4 |
|
|
Peter Robinson |
3b4ce4 |
diff --git a/modules.d/90kernel-modules/module-setup.sh b/modules.d/90kernel-modules/module-setup.sh
|
|
Peter Robinson |
3b4ce4 |
index 2378663..5271438 100755
|
|
Peter Robinson |
3b4ce4 |
--- a/modules.d/90kernel-modules/module-setup.sh
|
|
Peter Robinson |
3b4ce4 |
+++ b/modules.d/90kernel-modules/module-setup.sh
|
|
Peter Robinson |
3b4ce4 |
@@ -6,7 +6,7 @@
|
|
Peter Robinson |
3b4ce4 |
installkernel() {
|
|
Peter Robinson |
3b4ce4 |
if [[ -z $drivers ]]; then
|
|
Peter Robinson |
3b4ce4 |
block_module_filter() {
|
|
Peter Robinson |
3b4ce4 |
- local _blockfuncs='ahci_init_controller|ata_scsi_ioctl|scsi_add_host|blk_cleanup_queue|register_mtd_blktrans|scsi_esp_register|register_virtio_device|usb_stor_disconnect'
|
|
Peter Robinson |
3b4ce4 |
+ local _blockfuncs='ahci_platform_get_resources|ata_scsi_ioctl|scsi_add_host|blk_cleanup_queue|register_mtd_blktrans|scsi_esp_register|register_virtio_device|usb_stor_disconnect|mmc_add_host|sdhci_pltfm_init'
|
|
Peter Robinson |
3b4ce4 |
# subfunctions inherit following FDs
|
|
Peter Robinson |
3b4ce4 |
local _merge=8 _side2=9
|
|
Peter Robinson |
3b4ce4 |
function bmf1() {
|
|
Peter Robinson |
3b4ce4 |
@@ -51,9 +51,7 @@ installkernel() {
|
|
Peter Robinson |
3b4ce4 |
|
|
Peter Robinson |
3b4ce4 |
if [[ "$(uname -p)" == arm* ]]; then
|
|
Peter Robinson |
3b4ce4 |
# arm specific modules
|
|
Peter Robinson |
3b4ce4 |
- hostonly='' instmods sdhci_esdhc_imx mmci sdhci_tegra mvsdio omap omapdrm \
|
|
Peter Robinson |
3b4ce4 |
- omap_hsmmc panel-tfp410 sdhci_dove ahci_platform pata_imx sata_mv \
|
|
Peter Robinson |
3b4ce4 |
- ehci-tegra mmc_block usb_storage
|
|
Peter Robinson |
3b4ce4 |
+ hostonly='' instmods omapdrm panel-tfp410
|
|
Peter Robinson |
3b4ce4 |
fi
|
|
Peter Robinson |
3b4ce4 |
|
|
Peter Robinson |
3b4ce4 |
# install virtual machine support
|
|
Peter Robinson |
3b4ce4 |
--
|
|
Peter Robinson |
3b4ce4 |
1.9.3
|
|
Peter Robinson |
3b4ce4 |
|