解决linux 2.6.21上sierra.ko驱动无法正确处理Air card 313U modem

【问题】

linux-2.6.21.x\drivers\usb\serial\sierra.c 这个文件有点老,导致编译出来的sierra.ko无法正确驱动air card 313u;

 

【解决办法】

从下面链接中,下载2.6.21版本内核对应的驱动v1.26_1740;解压后,使用新的sierra.c 替代原内核中的sierra.c;重新编译生成sierra.ko

http://mycusthelp.net/SIERRAWIRELESS/_cs/AnswerDetail.aspx?aid=44

 

【结果】

更新驱动后,如下所示,sierra.ko能够正确驱动air card 313u, 生成设备节点

# usb 1-1: new high speed USB device using rt3xxx-ehci and address 5
usb 1-1: config 1 has an invalid interface number: 9 but max is 0
usb 1-1: config 1 has no interface number 0
usb 1-1: Product: USB MMC Storage
usb 1-1: Manufacturer: Sierra Wireless, Incorporated
usb 1-1: SerialNumber: SWOC22905731
usb 1-1: configuration #1 chosen from 1 choice
scsi5 : SCSI emulation for USB Mass Storage devices
scsi 5:0:0:0: CD-ROM SWI TRU-Install 2.31 PQ: 0 ANSI: 3
sr0: scsi3-mmc drive: 0x/0x caddy
Uniform CD-ROM driver Revision: 3.20
sr 5:0:0:0: Attached scsi generic sg0 type 5
usb 1-1: USB disconnect, address 5
usb 1-1: new high speed USB device using rt3xxx-ehci and address 6
usb 1-1: config 1 has an invalid interface number: 9 but max is 6
usb 1-1: config 1 has an invalid interface number: 7 but max is 6
usb 1-1: config 1 has no interface number 5
usb 1-1: config 1 has no interface number 6
usb 1-1: Product: AirCard 313U
usb 1-1: Manufacturer: Sierra Wireless, Incorporated
usb 1-1: SerialNumber: 012615000666926
usb 1-1: configuration #1 chosen from 1 choice
sierra 1-1:1.0: Sierra USB modem converter detected
usb 1-1: Sierra USB modem converter now attached to ttyUSB0
sierra 1-1:1.1: Sierra USB modem converter detected
usb 1-1: Sierra USB modem converter now attached to ttyUSB1
sierra 1-1:1.2: Sierra USB modem converter detected
usb 1-1: Sierra USB modem converter now attached to ttyUSB2
sierra 1-1:1.3: Sierra USB modem converter detected
usb 1-1: Sierra USB modem converter now attached to ttyUSB3
sierra 1-1:1.4: Sierra USB modem converter detected
usb 1-1: Sierra USB modem converter now attached to ttyUSB4
scsi6 : SCSI emulation for USB Mass Storage devices
scsi 6:0:0:0: Direct-Access SWI SD Card 2.31 PQ: 0 ANSI: 2
sd 6:0:0:0: Attached scsi removable disk sda
sd 6:0:0:0: Attached scsi generic sg0 type 0

#
#
#
#
# cat /proc/bus/usb/devices

T: Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 1
B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 2.06
S: Manufacturer=Linux 2.6.21 ohci_hcd
S: Product=RT3xxx OHCI Controller
S: SerialNumber=rt3xxx-ohci
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms

T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 1
B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 2.06
S: Manufacturer=Linux 2.6.21 ehci_hcd
S: Product=Ralink EHCI Host Controller
S: SerialNumber=rt3xxx
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms

T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 6 Spd=480 MxCh= 0
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=0f3d ProdID=68aa Rev= 0.06
S: Manufacturer=Sierra Wireless, Incorporated
S: Product=AirCard 313U
S: SerialNumber=012615000666926
C:* #Ifs= 7 Cfg#= 1 Atr=a0 MxPwr=500mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=sierra
E: Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
I:* If#= 1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=sierra
E: Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
I:* If#= 2 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=sierra
E: Ad=83(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
I:* If#= 3 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=sierra
E: Ad=84(I) Atr=03(Int.) MxPS= 64 Ivl=2ms
E: Ad=85(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=04(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
I:* If#= 4 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=sierra
E: Ad=86(I) Atr=03(Int.) MxPS= 64 Ivl=2ms
E: Ad=87(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=05(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
I:* If#= 9 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E: Ad=06(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=88(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 7 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
E: Ad=89(I) Atr=03(Int.) MxPS= 64 Ivl=2ms
E: Ad=8a(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=07(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
#

你可能感兴趣的:(linux,usb,sierra,313u,aircard)