On Sat Jan 11, 2025 at 10:11 PM CET, Andreas Barth wrote:
> Package: installation-reports
>
> Boot method: sdcard
> Image version: trixie
> Date: 2024-12-27 (download date)
>
> Machine: Banana Pi BPI-M1
> Processor: armhf ARM Cortex-A7
>
> Base System Installation Checklist:
> [O] = OK, [E] = Error (please elaborate below), [ ] = didn't try it
>
> Detect hard drives:     [E]
>
>
> Comments/Problems:
>
> I connected an usb hard drive (with external power). That hard drive
> was not found. Also e.g. an USB mouse was not powered within d-i.
>
> After installation on an sdcard, the resulting debian system booted
> fine and found the USB hard drive without any hassle. Also, the hard
> drive seems to be found within u-boot.
>
> This is not a regression in trixie, as this hit me first with the
> stable installer, and then I tryed if that was fixed with the trixie
> version.

My guess would be that the appropriate module needs to be added to the
*kernel* configuration in debian/installer/modules/armhf-armmp/

Looking at ``arch/arm/boot/dts/allwinner/sun7i-a20-bananapi-m1-plus.dts``
shows ``arch/arm/boot/dts/allwinner/sun7i-a20.dtsi`` as being the most
relevant one and when I ran my (VERY crude*) script on it to detect
which kernel modules would be needed, then ``USB_MUSB_SUNXI`` is the one
that stands out for me in this case.
It would also need PHY modules, but I _think_ that ``PHY_SUN4I_USB``
should be included due to 
``debian/installer/modules/usb-modules:21:drivers/phy/*/phy-*-usb* ?``

(and the phy driver is ``drivers/phy/allwinner/phy-sun4i-usb.c``)

It's unlikely I'd be able to give further assistence, but hopefully this
will (still) help.

Cheers,
  Diederik

*) My script looks up the "compatible = XYZ" in the DeviceTree
Specification and tries to find the kernel module which is probably
needed for that piece (in this case USB) to work (by grepping the
upstream kernel source). Normally I'd use the (attached) output as a
*starting* point and check whether they indeed make sense and try to
find manually the ones my script didn't find. I do not care enough (and
don't have time for it), to do such an enhancement for the BPi-M1.
$ find-kernel-modules.sh arch/arm/boot/dts/allwinner/sun7i-a20.dtsi
compatible: "allwinner,simple-framebuffer"

compatible: "allwinner,sun4i-a10-ahci"
source file: drivers/ata/ahci_sunxi.c
drivers/ata/Kconfig: AHCI_SUNXI (tristate)
Debian config settings:
debian/config/armhf/config:CONFIG_AHCI_SUNXI=m

compatible: "allwinner,sun4i-a10-dma"
source file: drivers/dma/sun4i-dma.c
drivers/dma/Kconfig: DMA_SUN4I (tristate)

compatible: "allwinner,sun4i-a10-emac"
source file: drivers/net/ethernet/allwinner/sun4i-emac.c
drivers/net/ethernet/allwinner/Kconfig: SUN4I_EMAC (tristate)
Debian config settings:
debian/config/armhf/config:CONFIG_SUN4I_EMAC=m

compatible: "allwinner,sun4i-a10-i2s"
source file: sound/soc/sunxi/sun4i-i2s.c
sound/soc/sunxi/Kconfig: SND_SUN4I_I2S (tristate)
Debian config settings:
debian/config/arm64/config:CONFIG_SND_SUN4I_I2S=m
debian/config/arm64/debarm64_defconfig:CONFIG_SND_SUN4I_I2S=m
debian/config/armhf/config:CONFIG_SND_SUN4I_I2S=m

compatible: "allwinner,sun4i-a10-ir"
source file: drivers/media/rc/sunxi-cir.c
drivers/media/rc/Kconfig: IR_SUNXI (tristate)
Debian config settings:
debian/config/arm64/config:CONFIG_IR_SUNXI=m
debian/config/arm64/debarm64_defconfig:CONFIG_IR_SUNXI=m
debian/config/armhf/config:CONFIG_IR_SUNXI=m

compatible: "allwinner,sun4i-a10-lradc-keys"
source file: drivers/input/keyboard/sun4i-lradc-keys.c
drivers/input/keyboard/Kconfig: KEYBOARD_SUN4I_LRADC (tristate)
Debian config settings:
debian/config/armhf/config:CONFIG_KEYBOARD_SUN4I_LRADC=m

compatible: "allwinner,sun4i-a10-mdio"
source file: drivers/net/mdio/mdio-sun4i.c
drivers/net/mdio/Kconfig: MDIO_SUN4I (tristate)
Debian config settings:
debian/config/armhf/config:CONFIG_MDIO_SUN4I=y

compatible: "allwinner,sun4i-a10-musb"
source file: drivers/usb/musb/sunxi.c
drivers/usb/musb/Kconfig: USB_MUSB_SUNXI (tristate)
Debian config settings:
debian/config/arm64/config:CONFIG_USB_MUSB_SUNXI=m
debian/config/arm64/debarm64_defconfig:CONFIG_USB_MUSB_SUNXI=m
debian/config/armhf/config:CONFIG_USB_MUSB_SUNXI=m
debian/config/riscv64/config:CONFIG_USB_MUSB_SUNXI=m

compatible: "allwinner,sun4i-a10-nand"
source file: drivers/mtd/nand/raw/sunxi_nand.c
drivers/mtd/nand/raw/Kconfig: MTD_NAND_SUNXI (tristate)
Debian config settings:
debian/config/armhf/config:CONFIG_MTD_NAND_SUNXI=m

compatible: "allwinner,sun4i-a10-ps2"
source file: drivers/input/serio/sun4i-ps2.c
drivers/input/serio/Kconfig: SERIO_SUN4I_PS2 (tristate)
Debian config settings:
debian/config/armhf/config:CONFIG_SERIO_SUN4I_PS2=m

compatible: "allwinner,sun4i-a10-spdif"
source file: sound/soc/sunxi/sun4i-spdif.c
sound/soc/sunxi/Kconfig: SND_SUN4I_SPDIF (tristate)
Debian config settings:
debian/config/armhf/config:CONFIG_SND_SUN4I_SPDIF=m

compatible: "allwinner,sun4i-a10-spi"
source file: drivers/spi/spi-sun4i.c
drivers/spi/Kconfig: SPI_SUN4I (tristate)
Debian config settings:
debian/config/armhf/config:CONFIG_SPI_SUN4I=m

compatible: "allwinner,sun4i-a10-timer"

compatible: "allwinner,sun4i-a10-wdt"
source file: drivers/watchdog/sunxi_wdt.c
drivers/watchdog/Kconfig: SUNXI_WATCHDOG (tristate)
Debian config settings:
debian/config/arm64/config:CONFIG_SUNXI_WATCHDOG=m
debian/config/arm64/debarm64_defconfig:CONFIG_SUNXI_WATCHDOG=m
debian/config/armhf/config:CONFIG_SUNXI_WATCHDOG=m
debian/config/riscv64/config:CONFIG_SUNXI_WATCHDOG=m

compatible: "allwinner,sun5i-a13-ts"
source file: drivers/mfd/sun4i-gpadc.c
drivers/mfd/Kconfig: MFD_SUN4I_GPADC (tristate)
source file: drivers/input/touchscreen/sun4i-ts.c
drivers/input/touchscreen/Kconfig: TOUCHSCREEN_SUN4I (tristate)
Debian config settings:
debian/config/armhf/config:CONFIG_TOUCHSCREEN_SUN4I=m

compatible: "allwinner,sun7i-a20-can"
source file: drivers/net/can/sun4i_can.c
drivers/net/can/Kconfig: CAN_SUN4I (tristate)
Debian config settings:
debian/config/armhf/config:CONFIG_CAN_SUN4I=m

compatible: "allwinner,sun7i-a20-ccu"
source file: drivers/clk/sunxi-ng/ccu-sun4i-a10.c

compatible: "allwinner,sun7i-a20-codec"
source file: sound/soc/sunxi/sun4i-codec.c
sound/soc/sunxi/Kconfig: SND_SUN4I_CODEC (tristate)
Debian config settings:
debian/config/arm64/debarm64_defconfig:# CONFIG_SND_SUN4I_CODEC is not set
debian/config/armhf/config:CONFIG_SND_SUN4I_CODEC=m
debian/config/config:# CONFIG_SND_SUN4I_CODEC is not set

compatible: "allwinner,sun7i-a20-crypto"

compatible: "allwinner,sun7i-a20-csi0"
source file: drivers/media/platform/sunxi/sun4i-csi/sun4i_csi.c

compatible: "allwinner,sun7i-a20-csi1"

compatible: "allwinner,sun7i-a20-display-backend"
source file: drivers/gpu/drm/sun4i/sun4i_backend.c

compatible: "allwinner,sun7i-a20-display-engine"
source file: drivers/gpu/drm/sun4i/sun4i_drv.c

compatible: "allwinner,sun7i-a20-display-frontend"
source file: drivers/gpu/drm/sun4i/sun4i_frontend.c

compatible: "allwinner,sun7i-a20-ehci"

compatible: "allwinner,sun7i-a20-gmac"
source file: drivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c
drivers/net/ethernet/stmicro/stmmac/Kconfig: DWMAC_SUNXI (tristate)
Debian config settings:
debian/config/armhf/config:CONFIG_DWMAC_SUNXI=m

compatible: "allwinner,sun7i-a20-gmac-clk"

compatible: "allwinner,sun7i-a20-hdmi"

compatible: "allwinner,sun7i-a20-hstimer"
source file: drivers/clocksource/timer-sun5i.c
drivers/clocksource/Kconfig: SUN5I_HSTIMER (bool)

compatible: "allwinner,sun7i-a20-i2c"

compatible: "allwinner,sun7i-a20-mali"

compatible: "allwinner,sun7i-a20-mmc"
source file: drivers/mmc/host/sunxi-mmc.c
drivers/mmc/host/Kconfig: MMC_SUNXI (tristate)
Debian config settings:
debian/config/arm64/config:CONFIG_MMC_SUNXI=m
debian/config/arm64/debarm64_defconfig:CONFIG_MMC_SUNXI=m
debian/config/armhf/config:CONFIG_MMC_SUNXI=m
debian/config/riscv64/config:CONFIG_MMC_SUNXI=m

compatible: "allwinner,sun7i-a20-ohci"

compatible: "allwinner,sun7i-a20-pinctrl"
source file: drivers/pinctrl/sunxi/pinctrl-sun4i-a10.c
drivers/pinctrl/sunxi/Kconfig: PINCTRL_SUN4I_A10 (bool)

compatible: "allwinner,sun7i-a20-pwm"
source file: drivers/pwm/pwm-sun4i.c
drivers/pwm/Kconfig: PWM_SUN4I (tristate)
Debian config settings:
debian/config/arm64/config:CONFIG_PWM_SUN4I=m
debian/config/arm64/debarm64_defconfig:CONFIG_PWM_SUN4I=m
debian/config/armhf/config:CONFIG_PWM_SUN4I=m

compatible: "allwinner,sun7i-a20-rtc"
source file: drivers/rtc/rtc-sunxi.c
drivers/rtc/Kconfig: RTC_DRV_SUNXI (tristate)
Debian config settings:
debian/config/armhf/config:CONFIG_RTC_DRV_SUNXI=y

compatible: "allwinner,sun7i-a20-sc-nmi"

compatible: "allwinner,sun7i-a20-sid"
source file: drivers/nvmem/sunxi_sid.c
drivers/nvmem/Kconfig: NVMEM_SUNXI_SID (tristate)
Debian config settings:
debian/config/arm64/config:CONFIG_NVMEM_SUNXI_SID=m
debian/config/arm64/debarm64_defconfig:CONFIG_NVMEM_SUNXI_SID=m
debian/config/armhf/config:CONFIG_NVMEM_SUNXI_SID=m
debian/config/riscv64/config:CONFIG_NVMEM_SUNXI_SID=m

compatible: "allwinner,sun7i-a20-sram-a3-a4"

compatible: "allwinner,sun7i-a20-sram-c1"

compatible: "allwinner,sun7i-a20-sram-d"

compatible: "allwinner,sun7i-a20-system-control"

compatible: "allwinner,sun7i-a20-tcon0"
source file: drivers/gpu/drm/sun4i/sun4i_tcon.c

compatible: "allwinner,sun7i-a20-tcon1"
source file: drivers/gpu/drm/sun4i/sun4i_tcon.c

compatible: "allwinner,sun7i-a20-usb-phy"
source file: drivers/phy/allwinner/phy-sun4i-usb.c
drivers/phy/allwinner/Kconfig: PHY_SUN4I_USB (tristate)
Debian config settings:
debian/config/arm64/config:CONFIG_PHY_SUN4I_USB=m
debian/config/arm64/debarm64_defconfig:CONFIG_PHY_SUN4I_USB=m
debian/config/armhf/config:CONFIG_PHY_SUN4I_USB=m
debian/config/riscv64/config:CONFIG_PHY_SUN4I_USB=m

compatible: "allwinner,sun7i-a20-video-engine"
source file: drivers/staging/media/sunxi/cedrus/cedrus.c
drivers/staging/media/sunxi/cedrus/Kconfig: VIDEO_SUNXI_CEDRUS (tristate)
Debian config settings:
debian/config/arm64/config:CONFIG_VIDEO_SUNXI_CEDRUS=m
debian/config/arm64/debarm64_defconfig:CONFIG_VIDEO_SUNXI_CEDRUS=m
debian/config/armhf/config:CONFIG_VIDEO_SUNXI_CEDRUS=m

compatible: "arm,armv7-timer"
source file: drivers/clocksource/arm_arch_timer.c
drivers/clocksource/Kconfig: ARM_ARCH_TIMER (bool (not selectable))

compatible: "arm,cortex-a7"

compatible: "arm,cortex-a7-pmu"
source file: drivers/perf/arm_v7_pmu.c
drivers/perf/Kconfig: ARM_V7_PMU (def_bool y)

compatible: "arm,gic-400"

compatible: "fixed-clock"
source file: drivers/clk/clk-fixed-rate.c
drivers/clk/Kconfig: COMMON_CLK (bool)
Debian config settings:
debian/config/arm64/config:CONFIG_COMMON_CLK=y
debian/config/arm64/debarm64_defconfig:CONFIG_COMMON_CLK=y
source file: drivers/clk/kunit_clk_fixed_rate_test.dtso
source file: drivers/clk/ti/clk.c
source file: drivers/clk/kunit_clk_parent_data_test.dtso
source file: drivers/clk/kunit_clk_parent_data_test.dtso
source file: drivers/misc/lan966x_pci.dtso
source file: drivers/misc/lan966x_pci.dtso
source file: drivers/misc/lan966x_pci.dtso
source file: arch/nios2/platform/platform.c

compatible: "mmio-sram"
source file: drivers/misc/sram.c
drivers/misc/Kconfig: SRAM (bool)
Debian config settings:
debian/config/arm64/config:CONFIG_SRAM=y
debian/config/arm64/debarm64_defconfig:CONFIG_SRAM=y
debian/config/config:# CONFIG_SRAM is not set

compatible: "shared-dma-pool"

compatible: "simple-bus"
source file: drivers/of/unittest-data/overlay_pci_node.dtso
source file: drivers/of/unittest-data/tests-overlay.dtsi
source file: drivers/of/platform.c
source file: drivers/misc/lan966x_pci.dtso
source file: drivers/bus/ti-sysc.c
drivers/bus/Kconfig: TI_SYSC (bool)
source file: drivers/bus/simple-pm-bus.c
drivers/of/Kconfig: OF (bool)
Debian config settings:
debian/config/arm64/debarm64_defconfig:# CONFIG_OF is not set
debian/config/config.cloud:# CONFIG_OF is not set
debian/config/config:# CONFIG_OF is not set
debian/config/kernelarch-mips/config.loongson-3:CONFIG_OF=y

compatible: "snps,dw-apb-uart"
source file: drivers/tty/serial/8250/8250_dw.c
drivers/tty/serial/8250/Kconfig: SERIAL_8250_DW (tristate)
Debian config settings:
debian/config/arm64/config:CONFIG_SERIAL_8250_DW=y
debian/config/arm64/debarm64_defconfig:CONFIG_SERIAL_8250_DW=y
debian/config/armhf/config:CONFIG_SERIAL_8250_DW=y
debian/config/config:# CONFIG_SERIAL_8250_DW is not set
debian/config/kernelarch-mips/config.octeon:CONFIG_SERIAL_8250_DW=y
debian/config/kernelarch-x86/config:CONFIG_SERIAL_8250_DW=y
debian/config/riscv64/config:CONFIG_SERIAL_8250_DW=y

compatible: "snps,dwmac-mdio"

Attachment: signature.asc
Description: PGP signature

Reply via email to