Bug#866521: [PATCH] initramfs-tools: rootfs on USB mass storage broken for a number of armhf systems
Package: initramfs-tools
Severity: important
Tags: patch
Hello,
with newer kernels (including kernel 4.9 as used in stretch),
initializing the USB host controllers on a number of armhf
systems is not possible without having the "axp20x_usb_power"
power supply driver module available. To be able to have the
rootfs on a USB mass storage device on such systems it is
therefore necessary to include this module in the initramfs,
which currently isn't the case.
Attached is a patch that adds the "axp20x_usb_power" module to
the "base" module list for the "MODULES=most" setting.
JFTR: The patch doesn't address the "MODULES=dep" case; rootfs on
USB mass storage currently doesn't work at all with "MODULES=dep"
as the necessary USB controller drivers don't get included. An
Example (Allwinner A20) with MODULES=dep:
lib/modules/4.9.0-3-armmp-lpae/kernel/drivers
lib/modules/4.9.0-3-armmp-lpae/kernel/drivers/usb
lib/modules/4.9.0-3-armmp-lpae/kernel/drivers/usb/common
lib/modules/4.9.0-3-armmp-lpae/kernel/drivers/usb/common/usb-common.ko
lib/modules/4.9.0-3-armmp-lpae/kernel/drivers/usb/phy
lib/modules/4.9.0-3-armmp-lpae/kernel/drivers/usb/phy/phy-generic.ko
lib/modules/4.9.0-3-armmp-lpae/kernel/drivers/scsi
lib/modules/4.9.0-3-armmp-lpae/kernel/drivers/scsi/sd_mod.ko
lib/modules/4.9.0-3-armmp-lpae/kernel/drivers/scsi/scsi_mod.ko
lib/modules/4.9.0-3-armmp-lpae/kernel/drivers/i2c
lib/modules/4.9.0-3-armmp-lpae/kernel/drivers/i2c/busses
lib/modules/4.9.0-3-armmp-lpae/kernel/drivers/i2c/busses/i2c-mv64xxx.ko
lib/modules/4.9.0-3-armmp-lpae/kernel/drivers/phy
lib/modules/4.9.0-3-armmp-lpae/kernel/drivers/phy/phy-sun4i-usb.ko
lib/modules/4.9.0-3-armmp-lpae/kernel/drivers/extcon
lib/modules/4.9.0-3-armmp-lpae/kernel/drivers/extcon/extcon-core.ko
Missing are at least ehci_platform, ehci_hcd, ohci_platform,
ohci_hcd and usbcore (when using the OTG controller also
musb_hdrc and udc_core) plus the axp20x_regulator regulator
driver and the axp20x_usb_power power supply driver.
Regards,
Karsten
--
Gem. Par. 28 Abs. 4 Bundesdatenschutzgesetz widerspreche ich der Nutzung
sowie der Weitergabe meiner personenbezogenen Daten für Zwecke der
Werbung sowie der Markt- oder Meinungsforschung.
>From 7358533bcf35c7237ad8ab57dd2fe0b7db5f553c Mon Sep 17 00:00:00 2001
From: Karsten Merker <merker@debian.org>
Date: Thu, 29 Jun 2017 20:51:03 +0200
Subject: [PATCH] Include the axp20x_usb_power module in the base modules list
for MODULES=most
With newer kernels (including kernel 4.9 as used in stretch),
initializing the USB host controllers on a number of armhf systems
is not possible without having the "axp20x_usb_power" power supply
driver module available. To be able to have the rootfs on a USB
mass storage device on such systems it is therefore necessary to
include this module in the initramfs.
---
hook-functions | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/hook-functions b/hook-functions
index 679e11d..4c68c90 100644
--- a/hook-functions
+++ b/hook-functions
@@ -513,6 +513,10 @@ auto_add_modules()
copy_modules_dir kernel/drivers/usb/renesas_usbhs
# and any extcon drivers for USB
modules="$modules extcon-usb-gpio"
+ # Add the axp20x_usb_power power supply driver,
+ # required to initialize the USB host controllers
+ # on a number of armhf systems
+ modules="$modules axp20x_usb_power"
# Include all HID drivers unless we're sure they
# don't support keyboards. hid-*ff covers various
--
2.13.2
Reply to: