我有一个便宜的 USB 适配器,并在最小的 CentOS 6.7 盒子上使用它,当我插入适配器时,它被识别为 USB 设备,但不被识别为以太网适配器,尽管我已经加载了这些内核模块:
dm9601 7261 0
usbnet 38366 1 dm9601
mii 5376 3 dm9601,usbnet,r8169
这是我从中得到的dmesg
:
usb 2-1.2: new full speed USB device number 3 using ehci_hcd
usb 2-1.2: New USB device found, idVendor=0fe6, idProduct=9700
usb 2-1.2: New USB device strings: Mfr=0, Product=2, SerialNumber=0
usb 2-1.2: Product: USB 2.0 10/100M Ethernet Adaptor
usb 2-1.2: configuration #1 chosen from 1 choice
另一方面,它在插入 Ubuntu 机器后立即工作,输出如下dmesg
:
[ 1398.631380] usb 6-1: new full-speed USB device number 3 using ohci-pci
[ 1398.796441] usb 6-1: New USB device found, idVendor=0fe6, idProduct=9700
[ 1398.796453] usb 6-1: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[ 1398.796461] usb 6-1: Product: USB 2.0 10/100M Ethernet Adaptor
[ 1398.864982] dm9601 6-1:1.0 eth1: register 'dm9601' at usb-0000:00:13.1-1, Davicom DM96xx USB 10/100 Ethernet, 00:e0:4c:53:44:58
[ 1398.886090] dm9601 6-1:1.0 enx00e04c534458: renamed from eth1
[ 1398.913870] IPv6: ADDRCONF(NETDEV_UP): enx00e04c534458: link is not ready
[ 1398.992407] dm9601 6-1:1.0 enx00e04c534458: link up, 100Mbps, full-duplex, lpa 0xFFFF
如何触发模块dm9601
识别设备?
编辑:modinfo dm9601
CentOS 上的输出
filename: /lib/modules/2.6.32-504.el6.x86_64/kernel/drivers/net/usb/dm9601.ko
license: GPL
description: Davicom DM9601 USB 1.1 ethernet devices
author: Peter Korsgaard <[email protected]>
srcversion: 4F5EB9E08E2E987CF777DB0
alias: usb:v0A46p9000d*dc*dsc*dp*ic*isc*ip*
alias: usb:v0FE6p8101d*dc*dsc*dp*ic*isc*ip*
alias: usb:v0A47p9601d*dc*dsc*dp*ic*isc*ip*
alias: usb:v0A46p8515d*dc*dsc*dp*ic*isc*ip*
alias: usb:v0A46p0268d*dc*dsc*dp*ic*isc*ip*
alias: usb:v0A46p6688d*dc*dsc*dp*ic*isc*ip*
alias: usb:v0A46p9601d*dc*dsc*dp*ic*isc*ip*
alias: usb:v07AAp9601d*dc*dsc*dp*ic*isc*ip*
depends: mii,usbnet
vermagic: 2.6.32-504.el6.x86_64 SMP mod_unload modversions
在Ubuntu上:
filename: /lib/modules/4.4.0-21-generic/kernel/drivers/net/usb/dm9601.ko
license: GPL
description: Davicom DM96xx USB 10/100 ethernet devices
author: Peter Korsgaard <[email protected]>
srcversion: 9188BA9738A6BCF0D399BC5
alias: usb:v0A46p1269d*dc*dsc*dp*ic*isc*ip*in*
alias: usb:v0A46p0269d*dc*dsc*dp*ic*isc*ip*in*
alias: usb:v0A46p9622d*dc*dsc*dp*ic*isc*ip*in*
alias: usb:v0A46p9621d*dc*dsc*dp*ic*isc*ip*in*
alias: usb:v0A46p9620d*dc*dsc*dp*ic*isc*ip*in*
alias: usb:v0A46p9000d*dc*dsc*dp*ic*isc*ip*in*
alias: usb:v0FE6p9700d*dc*dsc*dp*ic*isc*ip*in*
alias: usb:v0FE6p8101d*dc*dsc*dp*ic*isc*ip*in*
alias: usb:v0A47p9601d*dc*dsc*dp*ic*isc*ip*in*
alias: usb:v0A46p8515d*dc*dsc*dp*ic*isc*ip*in*
alias: usb:v0A46p0268d*dc*dsc*dp*ic*isc*ip*in*
alias: usb:v0A46p6688d*dc*dsc*dp*ic*isc*ip*in*
alias: usb:v0A46p9601d*dc*dsc*dp*ic*isc*ip*in*
alias: usb:v07AAp9601d*dc*dsc*dp*ic*isc*ip*in*
depends: usbnet,mii
intree: Y
vermagic: 4.4.0-21-generic SMP mod_unload modversions