在自定义 Linux 内核中,USB 驱动器未被识别为 scsi 设备

在自定义 Linux 内核中,USB 驱动器未被识别为 scsi 设备

我在自定义 Linux 内核中遇到了 USB 驱动器写入速度慢的问题。我怀疑是硬件问题,但在相同的硬件和 Opensuse 12.1 操作系统下,我的 USB 驱动器的写入速度要快得多。

我还发现,当我的 USB 驱动器插入 OpenSuse 12.1 和我的自定义内核时,dmesg 输出存在显著差异。

OpenSuse12.1 中的 dmesg

[  665.417077] usb 2-2: USB disconnect, device number 4
[  668.676014] usb 2-2: new high speed USB device number 5 using ehci_hcd
[  668.812675] usb 2-2: New USB device found, idVendor=0815, idProduct=2002
[  668.812679] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  668.812682] usb 2-2: Product: USBInstallMedia
[  668.812685] usb 2-2: Manufacturer:         
[  668.812687] usb 2-2: SerialNumber: 070B49D39981F580
[  668.813052] scsi7 : usb-storage 2-2:1.0
[  669.813701] scsi 7:0:0:0: Direct-Access              USBDrive  PMAP PQ: 0 ANSI: 6
[  669.813893] sd 7:0:0:0: Attached scsi generic sg2 type 0
[  670.912190] sd 7:0:0:0: [sdc] 62554112 512-byte logical blocks: (32.0 GB/29.8 GiB)
[  670.913182] sd 7:0:0:0: [sdc] Write Protect is off
[  670.913186] sd 7:0:0:0: [sdc] Mode Sense: 23 00 00 00
[  670.914181] sd 7:0:0:0: [sdc] No Caching mode page present
[  670.914185] sd 7:0:0:0: [sdc] Assuming drive cache: write through
[  670.918180] sd 7:0:0:0: [sdc] No Caching mode page present
[  670.918184] sd 7:0:0:0: [sdc] Assuming drive cache: write through
[  670.919112]  sdc: sdc1
[  670.923056] sd 7:0:0:0: [sdc] No Caching mode page present
[  670.923060] sd 7:0:0:0: [sdc] Assuming drive cache: write through
[  670.923063] sd 7:0:0:0: [sdc] Attached SCSI removable disk

我的自定义内核中的 dmesg:

usb 2-1: new high speed USB device number 3 using ehci_hcd
usb 2-1: New USB device found, idVendor=0815, idProduct=2002
usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 2-1: Product: USBDrive
usb 2-1: Manufacturer:         
usb 2-1: SerialNumber: 070B49D39981F580
 ubb: ubb1

从 dmesg 输出来看,我的 USB 设备在 OpenSuse 12.1 中被识别为 scsi 设备,而在我的自定义内核中它没有被识别为 scsi 设备。

我怀疑这可能是我的自定义内核写入速度慢的一个可能原因。如果我错了,请纠正我。

如果我希望我的 USB 设备被识别为 scsi 设备,我是否需要启用任何内核配置?如果是,如果有人能指出我应该修改哪些内核配置,那将很有帮助。谢谢。

相关内容