- 论坛徽章:
- 3
|
终于在WHEEL大哥和zhangxiangod大哥的提示下,搜索到了模块文件,是file:/lib/modules/2.6.9 -5.34DT/kernel/drivers/usb/net/usbnet.ko,我还以为是usbnet.o呢,谢谢WHEEL大哥,我用 insmod usbnet.ko加入模块,信息如下:
[root@localhost /]# insmod /lib/modules/2.6.9-5.34DT/kernel/drivers/usb/net/usbnet.ko
[root@localhost /]# lsmod
Module Size Used by
usbnet 24840 0
iptable_filter 2688 0
iptable_nat 22984 0
ip_conntrack 40724 1 iptable_nat
ip_tables 16128 2 iptable_filter,iptable_nat
wacom 11136 0
md5 3840 1
ipv6 215552 8
fwcore 74784 5
snd_intel8x0 29340 1
snd_ac97_codec 82720 1 snd_intel8x0
snd_ac97_bus 2048 1 snd_ac97_codec
snd_pcm_oss 47140 0
snd_mixer_oss 17664 1 snd_pcm_oss
snd_pcm 80008 3 snd_intel8x0,snd_ac97_codec,snd_pcm_oss
snd_timer 22020 1 snd_pcm
snd 49508 8 snd_intel8x0,snd_ac97_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer
soundcore 8928 1 snd
snd_page_alloc 10120 2 snd_intel8x0,snd_pcm
vfat 12544 1
fat 39072 1 vfat
nls_cp936 126464 3
ntfs 127888 1
ppdev 9092 0
parport_pc 23488 1
lp 10924 0
parport 32072 3 ppdev,parport_pc,lp
usbserial 25576 0
i2c_dev 9728 0
i2c_core 21392 1 i2c_dev
irlan 27536 0
irda 112188 1 irlan
crc_ccitt 2048 1 irda
8139too 22400 0
mii 4608 2 usbnet,8139too
microcode 5920 0
usb_storage 58184 0
scsi_mod 109836 1 usb_storage
ohci_hcd 18448 0
uhci_hcd 27672 0
ehci_hcd 27268 0
thermal 13192 0
fan 4100 0
button 6544 0
battery 8836 0
ac 4740 0
ext3 113032 2
jbd 50328 1 ext3
看样子USBNET是加载了,但是接下来,ifconfig 却出问题了,是不是还有什么步骤没做?
[root@localhost /]# ifconfig usb0 192.168.1.1 netmask 255.255.255.0 mtu 900
SIOCSIFADDR: 没有那个设备
usb0: unknown interface: 没有那个设备
SIOCSIFNETMASK: 没有那个设备
SIOCSIFMTU: 没有那个设备
[root@localhost /]# ifconfig usb0
usb0: error fetching interface information: Device not found
[root@localhost /]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:E0:4C:B0:91:2B
inet addr:192.168.1.102 Bcast:255.255.255.255 Mask:255.255.255.0
inet6 addr: fe80::2e0:4cff:feb0:912b/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1795 errors:0 dropped:0 overruns:0 frame:0
TX packets:1815 errors:0 dropped:0 overruns:0 carrier:0
collisions:27 txqueuelen:1000
RX bytes:1608327 (1.5 MiB) TX bytes:342956 (334.9 KiB)
Interrupt:11 Base address:0xc000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:19 errors:0 dropped:0 overruns:0 frame:0
TX packets:19 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1119 (1.0 KiB) TX bytes:1119 (1.0 KiB)
按ifconfig信息,好像是还不支持USBNET。不知道哪步没做或做错了呢?
[root@localhost /]# modprobe usbnet
这个命令是加载模块吧,也打了进去,还是一样啊? |
|