[讨论]有用万利达MAU-201 USB口的ADSL在UBUNTU5.10下成功上网的吗?(conexant芯片)

CPU/显卡/打印机/USB设备等硬件问题
回复
头像
蝴蝶兰
帖子: 202
注册时间: 2006-04-18 10:13
来自: china
联系:

[讨论]有用万利达MAU-201 USB口的ADSL在UBUNTU5.10下成功上网的吗?(conexant芯片)

#1

帖子 蝴蝶兰 » 2006-04-24 14:43

我是山西网通用户,以前在red hat fedora cora 3下成功地用cxacru.tar.bz2提供的驱动使用上海贝电的USB ADSL猫上网,可是换成万利达的后就不行了!(我在linuxfans上发贴也是无人帮助,郁闷啊!)无奈之下又用上了Windows!我在初学者原地发了个贴,无人解答!(我不是初学者,只不过初次接触ubuntu/debian)
令我感到困惑的是成功编译之后(应该说cxacru/cxacrudbg这两个模块是被成功编译进内核了啊),为什么还会加载模块失败啊!
我改动过的地方有:/lib/modules/2.6.12.9-386/buile/Makefile中的CC改为了gcc-4.0HOSTCC也改为了gcc-4.0:oops:
执行cxstart.sh至modprobe $MODULE_RUN speed=$SPEED_OPTION open=$PARAM_0a || exit 1时报FATAL: Error inserting cxacru (/lib/modules/2.6.12-9-386/kernel/drivers/usb/cxacru.ko): Invalid module format失败!
系统日志中有usb.agent[7604]: cxacru: can't be loaded. missing kernel or user mode driver cxacru等信息。
头像
蝴蝶兰
帖子: 202
注册时间: 2006-04-18 10:13
来自: china
联系:

#2

帖子 蝴蝶兰 » 2006-04-24 15:14

问题快要明了了! :D 我刚才到所谓的安全模式下用root重新编译了一遍,之后对这只猫进行了一次热拔插! :D
终于在tty1上显示了我需要的信息,在一切在X上是永远看不到的啊! :D
我费点事,把它打在下面:
usb 1-2:USB disconnect, address 3
usb 1-2:new full speed USB device using uhci_hcd and address 4
cxacrudbg:version magic '2.6.12-9-386 386 gcc-4.0' should be '2.6.12-9-386 386 gcc-3.4'.
modprobe:FATAL: Error inserting cxacru (/lib/modules/2.6.12-9-386/kernel/drivers/usb/cxacrudbg.ko): Invalid module format
cxacru:version magic '2.6.12-9-386 386 gcc-4.0' should be '2.6.12-9-386 386 gcc-3.4'.
modprobe:FATAL: Error inserting cxacru (/lib/modules/2.6.12-9-386/kernel/drivers/usb/cxacru.ko): Invalid module format

说来惭愧 :oops: ,以后遇上这类问题再也不在X下搞了。
可我上哪去弄gcc3.4啊! :evil:
头像
蝴蝶兰
帖子: 202
注册时间: 2006-04-18 10:13
来自: china
联系:

#3

帖子 蝴蝶兰 » 2006-04-25 17:40

我下了gcc3.4,模块加载成功了 :D ,驱动猫的时候LINK灯一闪一闪,驱动成功了。可拔号还是超时,又回到FC3时遇到的问题了。/var/log/messages中有如下信息:
pppoe-discovery: Timeout waiting for PADO packets
非常不幸的是我的WINDOWSXP昨天中病毒了,幸运的是我今天手工把它清除了。
这次遇到的这个问题我一定要自己把它解决掉,希望能给遇到同样问题的朋友有一些帮助,早日抛弃WINDOWS!(虽然我用上了正版 :wink:
头像
蝴蝶兰
帖子: 202
注册时间: 2006-04-18 10:13
来自: china
联系:

微软技术支持网站上的东西

#4

帖子 蝴蝶兰 » 2006-04-27 11:11

「PPPoE 發現階段」由四個步驟組成:起始、提供、要求與確認工作階段:
1. 「PPPoE 主動發現起始」(PPPoE Active Discovery Initiation, PADI) 封包:
PPPoE 用戶端將 PADI 封包送出至廣播位址。如果 PPPoE 寬頻連線設定檔的撥號網路內容中有輸入服務名稱,此封包也可以填入「服務名稱」欄位。如果沒有輸入服務名稱,就無法填入此欄位。
2. 「PPPoE 主動發現提供」(PPPoE Active Discovery Offer, PADO) 封包:
如果 PPPoE 伺服器,或「存取集訊器」(Access Concentrator) 可以服務列在 PADI 封包中的「服務名稱」欄位,「存取集訊器」就應該以 PADO 來回應 PADI。如果沒有列出「服務名稱」欄位,「存取集訊器」應該要以填入「服務名稱」欄位的 PADO 封包來回應,且「服務名稱」欄位中應該要列出「存取集訊器」可以服務的服務名稱。PADO 封包會傳送至 PPPoE 用戶端的單點傳送位址。
3. 「PPPoE 主動發現要求」(PPPoE Active Discovery Request, PADR) 封包:
當 PPPoE 用戶端收到 PADO 封包時,會以 PADR 封包來回應。此封包會傳送至「存取集訊器」的單點傳送位址。用戶端可能會收到多個 PADO 封包,但只會對接收到的第一個有效的 PADO 做出回應。如果起始的 PADI 封包的「服務名稱」欄位是空白的,用戶端會在 PADR 封包的「服務名稱」欄位中填入 PADO 封包所傳回的第一個服務名稱。
4. 「PPPoE 主動發現工作階段確認」(PPPoE Active Discovery Session-confirmation, PADS) 封包:
當「存取集訊器」收到 PADR 時,會替此「點對點通訊協定」(PPP) 工作階段產生唯一的工作階段識別碼 (ID),並將此 ID 以 PADS 封包傳回給 PPPoE 用戶端。此封包會傳送至用戶端的單點傳送位址。
當此過程完成時,用戶端就會知道「存取集訊器」的位址,並知道已經建立了工作階段 ID。此時,會啟動一般的 PPP 工作階段。此工作階段可以維持連線不斷,直到送出「PPPoE 主動發現終止」(PPPoE Active Discovery Terminate, PADT) 封包為止。「存取集訊器」或 PPPoE 用戶端都可能會送出 PADT。
头像
蝴蝶兰
帖子: 202
注册时间: 2006-04-18 10:13
来自: china
联系:

我要结帐了!

#5

帖子 蝴蝶兰 » 2006-04-28 21:18

刚在网上找了一篇文章,呵呵,是该结帐的时候了!

I managed to get it works so I ll give you some hints on how to do it,
it worked for me on ubuntu 5.04 :

1) Get the kernel headers :
apt-cache install build-essential linux-headers-2.6.10-5-386
cd /usr/src/linux-headers-`uname -r`
make oldconfig

2) Compile kernel module for the modem
cd /root
Download from http://accessrunner.sourceforge.net/ the last file :
usbatm-20050216.tar.bz2
Decompress it:
bzip2 -d usbatm-20050216.tar.bz2
tar -xvf usbatm-20050216.tar


We change the configuration of the kernel :
cd /usr/src/linux-headers-`uname -r`
vi .config

Sarch for USB
add
CONFIG_USB_CXACRU=m
CONFIG_USB_ATM=m

Compile the modules
cd /root/drivers/usb/atm
make -C /usr/src/linux-headers-`uname -r` SUBDIRS=$PWD modules
make -C /usr/src/linux-headers-`uname -r` SUBDIRS=$PWD modules_install

You ll have a /usr/src/linux-2.6.10/extras with the two modules

3) Extract firmware from windows drivers
Download the files Makefile and cxacru-fw.c from
http://cvs.sourceforge.net/viewcvs.py/a ... ner/utils/
compile them with the command make
you should get a binary file cxacru-fw
Execute it to get the firmware from the windows drivers :
root@ubuntu:~/drivers # ./cxacru-fw /media/D/WINDOWS/system32/drivers/CnxEtU.sys cxacru-firmware.bin
found firmware in `/media/D/WINDOWS/system32/drivers/CnxEtU.sys' at offset 0x41c0
root@ubuntu:~/drivers # ls -al cxacru-firmware.bin
-rw-r--r-- 1 root root 624192 2005-07-15 01:26 cxacru-firmware.bin
Copy the firmware in the hotplug folder :
cp cxacru-firmware.bin /lib/hotplug/firmware/


Now load the module in the kernel :
insmod /lib/modules/2.6.10-5-386/kernel/drivers/base/firmware_class.ko
insmod /lib/modules/2.6.10/extra/usbatm.ko
insmod /lib/modules/2.6.10/extra/cxacru.ko

You should see :
Jul 15 00:20:21 ubuntu kernel: usbcore: registered new driver cxacru
Jul 15 00:20:36 ubuntu kernel: cxacru 2-1:1.0: ADSL line: attemtping to activate
Jul 15 00:20:41 ubuntu kernel: cxacru 2-1:1.0: ADSL line: channel analysis
Jul 15 00:20:46 ubuntu kernel: cxacru 2-1:1.0: ADSL line: up (2560 Kib/s down | 512 Kib/s up)

5) Establish connection
Now it s up to what connection you need PPPoE or PPPoA

if PPPoA , download from http://accessrunner.sourceforge.net/debian-scripts/
the peers-pppoa and put it in /etc/ppp/peers, edit that file especially the user
and the VPC/VCI peers.
Add also your login password in the /etc/ppp/pap-secrets /etc/ppp/chap-secrets
in the form
login * password *

insmod /lib/modules/2.6.10-5-386/kernel/net/atm/pppoatm.ko
pppd call peers-pppoa



if PPPoE
Install
apt-get install libatm1

also you ll need to download 2 package from the ubuntu

br2684ctl_20040226-1_i386.deb
atm-tools_2.4.1-16_i386.deb ( I m not sure if that one needed)

then install them with the command dpkg -i xxxxxfilexxxxx.deb

download from http://accessrunner.sourceforge.net/debian-scripts/
the peers-pppoe and put it in /etc/ppp/peers, edit that file especially the user.
Add also your login password in the /etc/ppp/pap-secrets /etc/ppp/chap-secrets
in the form
login * password *

after that modify the /etc/network/interfaces and add :
auto nas0
iface nas0 inet static
address 192.0.2.1
netmask 255.255.255.0
broadcast 192.0.2.255
gateway 192.0.2.254
pre-up br2684ctl -b -c 0 -a 0.0.100
post-down kill $(cat /var/run/$IFACE.pid)
(the 0.0.100 is the form itf.vpi.vci you should set vpi/vci accordingly to what you have see your ISP for this infos.)

Restart the network to get the nas0 match the atm interface
insmod /lib/modules/2.6.10-5-386/kernel/net/atm/br2684.ko
/etc/init.d/networking restart

And finally connect
pppd call peers-pppoe



I m sorry it s a bit hard and maybe not well organized but it should give you a better
idea of what you need to do.


他是5.04的,我想5.10也没问题。
the7thevil
帖子: 61
注册时间: 2006-03-08 15:43

#6

帖子 the7thevil » 2006-04-28 22:41

又钻研精神,赞一个~~~
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

#7

帖子 eexpress » 2006-04-28 22:45

我的站内blog有2个类似过程,最终发现,只要正确找出驱动名,源都会带上的。
● 鸣学
lithink
帖子: 2
注册时间: 2006-10-02 17:30

请问你现在连接上了么?

#8

帖子 lithink » 2006-10-02 17:33

usb的猫可真是麻烦,我用的是greennet的猫,也是山西网通,模式是pppoe(rfc2516),别人都是rfc1483,不知道你有没有办法!
回复