我正在尝试通过 Arch Linux ARM 上 Wandboard 的 USB OTG 端口安装 USB 硬盘驱动器 (Seagate Backup Plus)。当我插入驱动器时,指示灯闪烁几次,Arch Linux 找到该设备,但发现它是 USB 集线器:
[ 1912.431400] ci_hdrc ci_hdrc.0: new USB bus registered, assigned bus number 1
[ 1912.452800] ci_hdrc ci_hdrc.0: USB 2.0 started, EHCI 1.00
[ 1912.458503] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.08
[ 1912.466803] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1912.474060] usb usb1: Product: EHCI Host Controller
[ 1912.478967] usb usb1: Manufacturer: Linux 5.8.7-1-ARCH ehci_hcd
[ 1912.484916] usb usb1: SerialNumber: ci_hdrc.0
[ 1912.489891] hub 1-0:1.0: USB hub found
[ 1912.493807] hub 1-0:1.0: 1 port detected
有没有办法让 Linux 将 HDD 识别为块设备,以便我可以安装它?
我很乐意提供任何进一步的信息。蒂亚莱斯
进度报告:在继续研究时,我发现 g_mass_storage 模块位于我的设备树中。我是否正确地假设我不需要重新编译 Arch ARM 来使用 USB HDD 作为存储设备,因为我已经有了这个模块?但是,我需要有关如何在启动时启用模块以便能够安装硬盘的帮助。下面是输出模组信息在模块上:
[alarm@alarm ~]$ modinfo g_mass_storage
filename: /lib/modules/5.8.7-1-ARCH/kernel/drivers/usb/gadget/legacy/g_mas s_storage.ko.gz
license: GPL
author: Michal Nazarewicz
description: Mass Storage Gadget
depends: usb_f_mass_storage,libcomposite
intree: Y
name: g_mass_storage
vermagic: 5.8.7-1-ARCH SMP preempt mod_unload modversions ARMv7 p2v8
parm: idVendor:USB Vendor ID (ushort)
parm: idProduct:USB Product ID (ushort)
parm: bcdDevice:USB Device version (BCD) (ushort)
parm: iSerialNumber:SerialNumber string (charp)
parm: iManufacturer:USB Manufacturer string (charp)
parm: iProduct:USB Product string (charp)
parm: file:names of backing files or devices (array of charp)
parm: ro:true to force read-only (array of bool)
parm: removable:true to simulate removable media (array of bool)
parm: cdrom:true to simulate CD-ROM instead of disk (array of bool)
parm: nofua:true to ignore SCSI WRITE(10,12) FUA bit (array of bool)
parm: luns:number of LUNs (uint)
parm: stall:false to prevent bulk stalls (bool)
``