当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 7 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : [已解决][问题]IBM T43,华为EDGE602上网卡的问题!Ubuntu8.04,内核升级到2.6.24-19
帖子发表于 : 2008-07-04 11:09 

注册: 2008-06-28 11:03
帖子: 12
送出感谢: 0 次
接收感谢: 0 次
前几日安装好ubuntu,成功设置好了EDGE卡并拨号上网。谁知天有不测风云,在xp下使用分区工具删除另外一个linux分区的时候,包括E盘在内的诸多盘都不翼而飞了,于是使用分区表工具恢复了分区,但是所有的linux分区都变成了未分区空间。

再次从装了ubuntu后,发现系统识别的EDGE卡和上一次有些区别

原来:
插上设备的时候,多出ttyUSB0,1,2,3,4,5一系列设备

root@asia:~# dmesg |grep tty
[ 4.538995] console [tty0] enabled
[ 6.395706] 00:0a: ttyS0 at I/O 0x3f8 (irq = 4) is a NS16550A
[ 29.405636] usb 6-1: airprime converter now attached to ttyUSB0
[ 29.405681] usb 6-1: airprime converter now attached to ttyUSB1
[ 29.405725] usb 6-1: airprime converter now attached to ttyUSB2
[ 29.418744] usb 6-1: airprime converter now attached to ttyUSB3
[ 29.418789] usb 6-1: airprime converter now attached to ttyUSB4
[ 29.418836] usb 6-1: airprime converter now attached to ttyUSB5
[ 31.169171] audit(1214542582.464:2): type=1503 operation="inode_permission" requested_mask="a::" denied_mask="a::" name="/dev/tty" pid=5161 profile="/usr/sbin/cupsd" namespace="default"

现在:
较之原来缺少了USB3,4,5
[ 11.316735] console [tty0] enabled
[ 13.125485] 00:0a: ttyS0 at I/O 0x3f8 (irq = 4) is a NS16550A
[ 39.070248] usb 6-1: airprime converter now attached to ttyUSB0
[ 39.070298] usb 6-1: airprime converter now attached to ttyUSB1
[ 39.070342] usb 6-1: airprime converter now attached to ttyUSB2
[ 47.502244] audit(1215052757.361:2): type=1503 operation="inode_permission" requested_mask="a::" denied_mask="a::" name="/dev/tty" pid=5116 profile="/usr/sbin/cupsd" namespace="default"

查看设备
root@ubuntu:~# setserial -a /dev/ttyUSB0
/dev/ttyUSB0: No such file or directory

root@ubuntu:~# cat /dev/ttyUSB0
cat: /dev/ttyUSB0:No such file or directory

而:
root@ubuntu:~# ls /dev/ttyUSB
ttyUSB0 ttyUSB1 ttyUSB2

由此可以看出卡没有被真实驱动起来




在插入设备和拔出设备时的/var/log/messages的输出,还请各位朋友根据我给出的信息,帮忙指点迷津 ,我究竟如何才能使用这个设备上网呀??


插入设备:
Jul 3 16:08:02 ubuntu kernel: [ 3280.120956] pccard: CardBus card inserted into slot 0
Jul 3 16:08:03 ubuntu kernel: [ 3280.658451] PCI: Enabling device 0000:0c:00.0 (0000 -> 0002)
Jul 3 16:08:03 ubuntu kernel: [ 3280.658466] ACPI: PCI Interrupt 0000:0c:00.0[A] -> GSI 16 (level, low) -> IRQ 16
Jul 3 16:08:03 ubuntu kernel: [ 3280.658500] ohci_hcd 0000:0c:00.0: OHCI Host Controller
Jul 3 16:08:03 ubuntu kernel: [ 3280.659564] ohci_hcd 0000:0c:00.0: new USB bus registered, assigned bus number 6
Jul 3 16:08:03 ubuntu kernel: [ 3280.659897] ohci_hcd 0000:0c:00.0: irq 16, io mem 0xb8000000
Jul 3 16:08:03 ubuntu kernel: [ 3280.743804] usb usb6: configuration #1 chosen from 1 choice
Jul 3 16:08:03 ubuntu kernel: [ 3280.744526] hub 6-0:1.0: USB hub found
Jul 3 16:08:03 ubuntu kernel: [ 3280.745013] hub 6-0:1.0: 1 port detected
Jul 3 16:08:03 ubuntu kernel: [ 3280.846127] PCI: Enabling device 0000:0c:00.1 (0000 -> 0002)
Jul 3 16:08:03 ubuntu kernel: [ 3280.846143] ACPI: PCI Interrupt 0000:0c:00.1[B] -> GSI 16 (level, low) -> IRQ 16
Jul 3 16:08:03 ubuntu kernel: [ 3280.846184] ohci_hcd 0000:0c:00.1: OHCI Host Controller
Jul 3 16:08:03 ubuntu kernel: [ 3280.847279] ohci_hcd 0000:0c:00.1: new USB bus registered, assigned bus number 7
Jul 3 16:08:03 ubuntu kernel: [ 3280.847804] ohci_hcd 0000:0c:00.1: irq 16, io mem 0xb8001000
Jul 3 16:08:03 ubuntu kernel: [ 3280.933713] usb usb7: configuration #1 chosen from 1 choice
Jul 3 16:08:03 ubuntu kernel: [ 3280.934294] hub 7-0:1.0: USB hub found
Jul 3 16:08:03 ubuntu kernel: [ 3280.934540] hub 7-0:1.0: 1 port detected
Jul 3 16:08:07 ubuntu kernel: [ 3287.329755] usb 6-1: new full speed USB device using ohci_hcd and address 2
Jul 3 16:08:07 ubuntu kernel: [ 3287.542964] usb 6-1: configuration #1 chosen from 1 choice
Jul 3 16:08:08 ubuntu kernel: [ 3288.338948] usbcore: registered new interface driver usbserial
Jul 3 16:08:08 ubuntu kernel: [ 3288.339355] /build/buildd/linux-2.6.24/drivers/usb/serial/usb-serial.c: USB Serial support registered for generic
Jul 3 16:08:08 ubuntu kernel: [ 3288.339813] usbcore: registered new interface driver usbserial_generic
Jul 3 16:08:08 ubuntu kernel: [ 3288.339820] /build/buildd/linux-2.6.24/drivers/usb/serial/usb-serial.c: USB Serial Driver core
Jul 3 16:08:08 ubuntu kernel: [ 3288.369964] /build/buildd/linux-2.6.24/drivers/usb/serial/usb-serial.c: USB Serial support registered for airprime
Jul 3 16:08:08 ubuntu kernel: [ 3288.370002] airprime 6-1:1.0: airprime converter detected
Jul 3 16:08:08 ubuntu kernel: [ 3288.370193] usb 6-1: airprime converter now attached to ttyUSB0
Jul 3 16:08:08 ubuntu kernel: [ 3288.370298] usb 6-1: airprime converter now attached to ttyUSB1
Jul 3 16:08:08 ubuntu kernel: [ 3288.370403] usb 6-1: airprime converter now attached to ttyUSB2
Jul 3 16:08:08 ubuntu kernel: [ 3288.370422] usbcore: registered new interface driver airprime
Jul 3 16:08:08 ubuntu kernel: [ 1971.131916] usbcore: registered new interface driver libusual

拔出设备:
Jul 3 16:12:24 ubuntu kernel: [ 3627.543809] pccard: card ejected from slot 0
Jul 3 16:12:24 ubuntu kernel: [ 3627.544198] usb 6-1: USB disconnect, address 2
Jul 3 16:12:24 ubuntu kernel: [ 3627.544708] airprime ttyUSB0: airprime converter now disconnected from ttyUSB0
Jul 3 16:12:24 ubuntu kernel: [ 3627.544959] airprime ttyUSB1: airprime converter now disconnected from ttyUSB1
Jul 3 16:12:24 ubuntu kernel: [ 3627.545207] airprime ttyUSB2: airprime converter now disconnected from ttyUSB2
Jul 3 16:12:24 ubuntu kernel: [ 3627.545236] airprime 6-1:1.0: device disconnected
Jul 3 16:12:24 ubuntu kernel: [ 1552.270175] ohci_hcd 0000:0c:00.0: remove, state 0
Jul 3 16:12:24 ubuntu kernel: [ 1552.270185] usb usb6: USB disconnect, address 1
Jul 3 16:12:24 ubuntu kernel: [ 1552.270370] ohci_hcd 0000:0c:00.0: USB bus 6 deregistered
Jul 3 16:12:24 ubuntu kernel: [ 1552.270415] ACPI: PCI interrupt for device 0000:0c:00.0 disabled
Jul 3 16:12:24 ubuntu kernel: [ 1552.270456] ohci_hcd 0000:0c:00.1: remove, state 0
Jul 3 16:12:24 ubuntu kernel: [ 1552.270461] usb usb7: USB disconnect, address 1
Jul 3 16:12:24 ubuntu kernel: [ 1552.270605] ohci_hcd 0000:0c:00.1: USB bus 7 deregistered
Jul 3 16:12:24 ubuntu kernel: [ 1552.270631] ACPI: PCI interrupt for device 0000:0c:00.1 disabled


再次插入设备:
Jul 3 16:16:57 ubuntu kernel: [ 4008.698071] pccard: CardBus card inserted into slot 0
Jul 3 16:16:57 ubuntu kernel: [ 4008.698486] PCI: Enabling device 0000:0c:00.0 (0000 -> 0002)
Jul 3 16:16:57 ubuntu kernel: [ 4008.698499] ACPI: PCI Interrupt 0000:0c:00.0[A] -> GSI 16 (level, low) -> IRQ 16
Jul 3 16:16:57 ubuntu kernel: [ 4008.698543] ohci_hcd 0000:0c:00.0: OHCI Host Controller
Jul 3 16:16:57 ubuntu kernel: [ 4008.698597] ohci_hcd 0000:0c:00.0: new USB bus registered, assigned bus number 6
Jul 3 16:16:57 ubuntu kernel: [ 4008.698622] ohci_hcd 0000:0c:00.0: irq 16, io mem 0xb8000000
Jul 3 16:16:57 ubuntu kernel: [ 4008.784539] usb usb6: configuration #1 chosen from 1 choice
Jul 3 16:16:57 ubuntu kernel: [ 4008.784945] hub 6-0:1.0: USB hub found
Jul 3 16:16:57 ubuntu kernel: [ 4008.785184] hub 6-0:1.0: 1 port detected
Jul 3 16:16:57 ubuntu kernel: [ 1715.472777] PCI: Enabling device 0000:0c:00.1 (0000 -> 0002)
Jul 3 16:16:57 ubuntu kernel: [ 1715.472789] ACPI: PCI Interrupt 0000:0c:00.1[B] -> GSI 16 (level, low) -> IRQ 16
Jul 3 16:16:57 ubuntu kernel: [ 1715.472823] ohci_hcd 0000:0c:00.1: OHCI Host Controller
Jul 3 16:16:57 ubuntu kernel: [ 1715.472846] ohci_hcd 0000:0c:00.1: new USB bus registered, assigned bus number 7
Jul 3 16:16:57 ubuntu kernel: [ 1715.472861] ohci_hcd 0000:0c:00.1: irq 16, io mem 0xb8001000
Jul 3 16:16:58 ubuntu kernel: [ 1715.558435] usb usb7: configuration #1 chosen from 1 choice
Jul 3 16:16:58 ubuntu kernel: [ 1715.558670] hub 7-0:1.0: USB hub found
Jul 3 16:16:58 ubuntu kernel: [ 1715.558862] hub 7-0:1.0: 1 port detected
Jul 3 16:17:02 ubuntu kernel: [ 4014.962122] usb 6-1: new full speed USB device using ohci_hcd and address 2
Jul 3 16:17:02 ubuntu kernel: [ 4015.174331] usb 6-1: configuration #1 chosen from 1 choice
Jul 3 16:17:02 ubuntu kernel: [ 4015.182130] airprime 6-1:1.0: airprime converter detected
Jul 3 16:17:02 ubuntu kernel: [ 4015.182323] usb 6-1: airprime converter now attached to ttyUSB0
Jul 3 16:17:02 ubuntu kernel: [ 4015.182427] usb 6-1: airprime converter now attached to ttyUSB1
Jul 3 16:17:02 ubuntu kernel: [ 4015.182529] usb 6-1: airprime converter now attached to ttyUSB2


附件:
2.png
2.png [ 315.21 KiB | 被浏览 1024 次 ]



最后由 asia_ji 编辑于 2008-07-06 15:37,总共编辑了 1 次
页首
 用户资料  
 
2 楼 
 文章标题 :
帖子发表于 : 2008-07-06 15:28 

注册: 2008-06-28 11:03
帖子: 12
送出感谢: 0 次
接收感谢: 0 次
哈哈,今天终于把问题给解决了

解决方法如下:

启动系统后,把原来系统加载的模块删除掉
root@ubuntu:~# rmmod airprime usbserial

把卡弹出后在插入后,奇迹出现了

root@ubuntu:~# dmesg |grep tty
[ 765.702220] usb 6-1: airprime converter now attached to ttyUSB0
[ 765.702329] usb 6-1: airprime converter now attached to ttyUSB1
[ 765.702430] usb 6-1: airprime converter now attached to ttyUSB2
[ 765.709661] usb 6-1: airprime converter now attached to ttyUSB3
[ 765.709785] usb 6-1: airprime converter now attached to ttyUSB4
[ 765.709888] usb 6-1: airprime converter now attached to ttyUSB5

直觉告诉我,问题已经迎刃而解了!
果然
root@ubuntu:~# wvdial
--> WvDial: Internet dialer version 1.60
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Modem initialized.
--> Sending: ATDT*99#
--> Waiting for carrier.
ATDT*99#
CONNECT
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Sun Jul 6 15:01:58 2008
--> Pid of pppd: 7154
--> Using interface ppp0
--> local IP address 10.48.161.254
--> remote IP address 10.64.64.64
--> primary DNS address 211.137.32.178
--> secondary DNS address 211.136.17.107

哈哈,困扰我几天的难题解决了!

root@ubuntu:~# lsusb
Bus 007 Device 001: ID 0000:0000
Bus 006 Device 003: ID 12d1:1003 Huawei Technologies Co., Ltd. E220 HSDPA Modem
Bus 006 Device 001: ID 0000:0000
Bus 005 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 002: ID 0483:2016 SGS Thomson Microelectronics Fingerprint Reader
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 003: ID 046d:c019 Logitech, Inc.
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000

晕,居然EG602卡还是被系统识别成E220,无所谓了,反正好用了!!


页首
 用户资料  
 
3 楼 
 文章标题 :
帖子发表于 : 2008-07-11 11:21 
头像

注册: 2006-11-24 14:46
帖子: 87
地址: china
送出感谢: 0 次
接收感谢: 0 次
看楼主这么一用,我有点信心了,俺也去买个 华为 EG602 , 楼主在哪买的?多少米?


页首
 用户资料  
 
4 楼 
 文章标题 :
帖子发表于 : 2008-07-15 13:56 

注册: 2008-06-28 11:03
帖子: 12
送出感谢: 0 次
接收感谢: 0 次
我在大连,在电子城买的,550元


页首
 用户资料  
 
5 楼 
 文章标题 :
帖子发表于 : 2008-07-15 20:26 

注册: 2008-07-13 5:21
帖子: 16
送出感谢: 0 次
接收感谢: 0 次
LZ 怎么安装这个设备的驱动? huawei有LINUX驱动么?


页首
 用户资料  
 
6 楼 
 文章标题 :
帖子发表于 : 2008-07-16 13:32 
头像

注册: 2006-11-24 14:46
帖子: 87
地址: china
送出感谢: 0 次
接收感谢: 0 次
华为 E620 ,不用另外装驱动了,直接 apt 安装一个 gnome-ppp 的工具即可使用
附:lsusb 看看有没 E620 这个设备,如果有就说明可以直接用了


页首
 用户资料  
 
7 楼 
 文章标题 :
帖子发表于 : 2008-07-17 3:19 

注册: 2008-07-13 5:21
帖子: 16
送出感谢: 0 次
接收感谢: 0 次
我的USB网卡 用了 E620 做驱动也装上了
因为也是HUWEI的 用的是O2 UMT/S HSPDA网络
速度 和XP下的一样 都能上 300+的下载速度


小黑X60


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 7 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 3 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译