歡迎您光臨本站 註冊首頁

Ubuntu8.04 PCMCIA介面(華為EG602)EDGE上網卡安裝筆記

←手機掃碼閱讀     火星人 @ 2014-03-26 , reply:0

硬體環境: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,無所謂了,反正好用了。

[火星人 ] Ubuntu8.04 PCMCIA介面(華為EG602)EDGE上網卡安裝筆記已經有607次圍觀

http://coctec.com/docs/linux/show-post-177882.html