免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2995 | 回复: 9
打印 上一主题 下一主题

IBM T43,华为EDGE卡上网的问题!Ubuntu8.04,内核升级到2.6.24-19(问题已经解决) [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-07-03 13:17 |只看该作者 |倒序浏览
前几日安装好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:~# ls /dev/ttyUSB
ttyUSB0  ttyUSB1  ttyUSB2

本人乃ubuntu新手,以前一直在RHEL平台,实在不知问题究竟出在哪里,特请大家帮忙!

另,我又在另一个分区上安装了同样的ubuntu8.04,结果还是现在这个样子,不知道为什么不能恢复第一次的样子。题

[ 本帖最后由 asia_ji 于 2008-7-6 15:30 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2008-07-03 15:04 |只看该作者
每次
root@ubuntu:~# setserial -a /dev/ttyUSB0
都会有下列信息出现

[  232.416331] airprime ttyUSB0: airprime_open - failed submitting read urb 0 for port 0, error -2
[  232.416437] airprime ttyUSB1: airprime_open - failed submitting read urb 0 for port 1, error -8
[  232.416592] airprime ttyUSB2: airprime_open - failed submitting read urb 0 for port 2, error -8
[  275.786647] airprime ttyUSB0: airprime_open - failed submitting read urb 0 for port 0, error -2
[ 1853.436191] airprime ttyUSB0: airprime_open - failed submitting read urb 0 for port 0, error -2
[ 1864.192653] airprime ttyUSB0: airprime_open - failed submitting read urb 0 for port 0, error -2

[ 本帖最后由 asia_ji 于 2008-7-3 15:17 编辑 ]

论坛徽章:
0
3 [报告]
发表于 2008-07-03 16:15 |只看该作者
在插入设备和拔出设备时的/var/log/messages的输出,还请各位cu朋友根据我给出的信息,帮忙指点迷津 ,我究竟如何才能使用这个设备上网呀??


插入设备:
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

[ 本帖最后由 asia_ji 于 2008-7-3 16:42 编辑 ]

论坛徽章:
0
4 [报告]
发表于 2008-07-04 09:08 |只看该作者
再次恳请大家帮忙分析原因!

论坛徽章:
0
5 [报告]
发表于 2008-07-04 16:50 |只看该作者
难道没有人和我遇到同样的问题么?

论坛徽章:
0
6 [报告]
发表于 2008-07-05 15:56 |只看该作者
我的无线上网卡是华为的EG602,结果被系统(ubuntu8.04)识别成华为E220

root@ubuntu:~# lsusb
Bus 007 Device 001: ID 0000:0000
Bus 006 Device 002: 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 002: ID 046d:c019 Logitech, Inc.
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000

[ 本帖最后由 asia_ji 于 2008-7-5 16:30 编辑 ]

2.png (279.65 KB, 下载次数: 22)

2.png

论坛徽章:
0
7 [报告]
发表于 2008-07-05 16:48 |只看该作者
富人们的讨论,别说是无线卡,
我的笔记本电脑还没见到呢

论坛徽章:
0
8 [报告]
发表于 2008-07-06 13:40 |只看该作者
无语了!!!!!!!!!!!!

论坛徽章:
0
9 [报告]
发表于 2008-07-06 13:41 |只看该作者
无语了!!!!!!!!!!!!

论坛徽章:
0
10 [报告]
发表于 2008-07-06 15:25 |只看该作者
哈哈,今天终于把问题给解决了

解决方法如下:

启动系统后,把原来系统加载的模块删除掉
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,无所谓了,反正好用了!!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP