红联Linux门户
Linux帮助
当前位置: 红联Linux门户 > Ubuntu

Ubuntu8.04 PCMCIA接口(华为EG602)EDGE上网卡安装笔记

发布时间:2008-07-11 21:53:43来源:红联作者:joyrce
硬件环境:IBM T43p
操作系统:Ubuntu8.04

我的无线上网卡是华为的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

前几日安装完ubuntu,成功设置好了EDGE卡并拨号上网。谁知天有不测风云,在xp下使用分区工具删除另外一个linux分区的时候,包括E盘在内的诸多分区都不翼而飞了,于是使用分区表工具恢复了分区,但是所有的linux分区都变成了未分区空间。

再次从装了ubuntu后,发现系统识别的EDGE卡和上一次有些区别,此后多次从装系统,依然无法像第一次一样正常使用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"

可惜当时没有lsusb看一下,系统把我的卡识别成什么型号设备!

哈哈,今天终于把问题给解决了

解决方法如下:

启动系统后,把原来系统加载的模块删除掉
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,无所谓了,反正好用了。
文章评论

共有 0 条评论