ubuntu5.10下安装Conexant ADSL USB Modem成功一例
-
- 帖子: 3
- 注册时间: 2005-12-02 1:46
ubuntu5.10下安装Conexant ADSL USB Modem成功一例
ubuntu5.10下安装Conexant ADSL USB Modem成功一例
我用的是Ubuntu5.10最小化安装,然后下载2.6.14.2内核源文件,此内核中已有Conexant USB ADSL Modem 的驱动,无需另外下载。
我的是“万利达魔电MAU-201” USB接口的ADSL Modem,Conexant芯片,封装模式是PPP over Ethernet LLCSNAP(RFC2516)。
由于我只是个初学者,所以不能提供更详尽的信息。以下只是记录了我的安装过程,仅供大家参考。
(注:# 号后的是终端的命令)
(一) 首先下载以下文件:
2.6.14.2内核源文件
http://www.kernel.org/
cxacru-fw
在http://cvs.sourceforge.net/viewcvs.py/a ... ner/utils/中下载所有四个文件,保存在一个文件夹下(也可从附件中下载)
在Windows下查找CnxEtU.sys拷贝到cxacru-fw相同目录
在http://packages.ubuntu.com中搜索并下载以下包
libncurses5-dev,br2684ctl
rp-pppoe
http://www.roaringpenguin.com/penguin/o ... -pppoe.php
(也可从附件中下载)
重启进入Ubuntu
(二) 生成firmware
在cxacru-fw目录下编译生成cxacru-fw,然后
# ./cxacru-fw CnxEtU.sys cxacru-fw.bin
拷贝cxacru-fw.bin到/lib/hotplug/firmware或/lib/firmware下
# cp cxacru-fw.bin /lib/hotplug/firmware
(三) 编译内核
安装libncurses5-dev以便用菜单配置内核
解压内核后,接下来配置内核
使用默认内核配置选项
# make defconfig
# make menuconfig
我的部分配置如下:
Code maturity level options --->
[*] Prompt for development and/or incomplete code/drivers
Bus options --->
PCI access mode(Any)
[*] PCI Express support
[M] PCI Express Hotplug driver
[*] Use polling mechanism for hot-plug events
[*] Legacy /proc/pci interface
PCI Hotplug Support --->
[M] Support for PCI Hotplug
[*] Use polling mechanism for hot-plug events
Networking optings --->
[*] Packet socket
[*] Unix domain sockets
[*] TCP/IP sockets
[*] IP:multicasting
[M] Asynchronous Transfer Mode (ATM)
[M] classical IP over ATM
[M] LAN Emulation support
[M] Multi-protocol over ATM support
[M] RFC1483/2684 Bridged protocols
Device Drivers --->
Generic Driver Options --->
全选
Plug and Play support --->
[*] Plug and Play BIOS support
[*] Plug and Play BIOS /proc interface
Network device support --->
ATM drivers --->
[M] ATM over TCP
[M] PPP support
[M] PPP over Ethernet
[M] PPP over ATM
[*] PPP multilink support
USB support --->
[*] Support for Host-side USB
[*] USB device filesystem
USB DSL modem support --->
[M] USB DSL modem support
[M] Speedtouch USB support
[M] Conexant AccessRunner USB support
[M] Other USB DSL modem support
退出保存,然后编译
# make
# make install
# make modules_install
配置grub加入新内核,重启选择新内核,启动后Modem的Link灯开始闪烁,常亮后进行下一步。
(四) 安装br2684ctl(用来虚拟出网络设备nas0)
# dpkg -i br2684_20040226-1_i386.deb
执行
# br2684ctl -b -c 0 -a 8.81
其中8.81为VPI和VCI,根据自己的配置填写,可在Windows下获得。
显示:
# Interface "nas0" created sucessfully
# Communicating over ATM 0.8.81,encapsulation:LLC
# Interface configured
如上显示表示成功。
(五) 安装adsl拨号软件
解压缩rp-pppoe3.5
# cd rp-pppoe-3.5
# ./go
根据提示填写以下内容:
username: ADSL帐号
interface: 这里填nas0
demand value: 直接回车
DNS: 填server
password: ADSL密码
firewall: 选1
最后保存
(六)现在已经可以拨号了
# adsl-start
如果显示Connected表示连接成功。现在就可以上网了,断开连接用adsl-stop,查看连接状态用adsl-status。
此时用ifconfig -a命令会显示nas0和ppp0的相关信息。
我用的是Ubuntu5.10最小化安装,然后下载2.6.14.2内核源文件,此内核中已有Conexant USB ADSL Modem 的驱动,无需另外下载。
我的是“万利达魔电MAU-201” USB接口的ADSL Modem,Conexant芯片,封装模式是PPP over Ethernet LLCSNAP(RFC2516)。
由于我只是个初学者,所以不能提供更详尽的信息。以下只是记录了我的安装过程,仅供大家参考。
(注:# 号后的是终端的命令)
(一) 首先下载以下文件:
2.6.14.2内核源文件
http://www.kernel.org/
cxacru-fw
在http://cvs.sourceforge.net/viewcvs.py/a ... ner/utils/中下载所有四个文件,保存在一个文件夹下(也可从附件中下载)
在Windows下查找CnxEtU.sys拷贝到cxacru-fw相同目录
在http://packages.ubuntu.com中搜索并下载以下包
libncurses5-dev,br2684ctl
rp-pppoe
http://www.roaringpenguin.com/penguin/o ... -pppoe.php
(也可从附件中下载)
重启进入Ubuntu
(二) 生成firmware
在cxacru-fw目录下编译生成cxacru-fw,然后
# ./cxacru-fw CnxEtU.sys cxacru-fw.bin
拷贝cxacru-fw.bin到/lib/hotplug/firmware或/lib/firmware下
# cp cxacru-fw.bin /lib/hotplug/firmware
(三) 编译内核
安装libncurses5-dev以便用菜单配置内核
解压内核后,接下来配置内核
使用默认内核配置选项
# make defconfig
# make menuconfig
我的部分配置如下:
Code maturity level options --->
[*] Prompt for development and/or incomplete code/drivers
Bus options --->
PCI access mode(Any)
[*] PCI Express support
[M] PCI Express Hotplug driver
[*] Use polling mechanism for hot-plug events
[*] Legacy /proc/pci interface
PCI Hotplug Support --->
[M] Support for PCI Hotplug
[*] Use polling mechanism for hot-plug events
Networking optings --->
[*] Packet socket
[*] Unix domain sockets
[*] TCP/IP sockets
[*] IP:multicasting
[M] Asynchronous Transfer Mode (ATM)
[M] classical IP over ATM
[M] LAN Emulation support
[M] Multi-protocol over ATM support
[M] RFC1483/2684 Bridged protocols
Device Drivers --->
Generic Driver Options --->
全选
Plug and Play support --->
[*] Plug and Play BIOS support
[*] Plug and Play BIOS /proc interface
Network device support --->
ATM drivers --->
[M] ATM over TCP
[M] PPP support
[M] PPP over Ethernet
[M] PPP over ATM
[*] PPP multilink support
USB support --->
[*] Support for Host-side USB
[*] USB device filesystem
USB DSL modem support --->
[M] USB DSL modem support
[M] Speedtouch USB support
[M] Conexant AccessRunner USB support
[M] Other USB DSL modem support
退出保存,然后编译
# make
# make install
# make modules_install
配置grub加入新内核,重启选择新内核,启动后Modem的Link灯开始闪烁,常亮后进行下一步。
(四) 安装br2684ctl(用来虚拟出网络设备nas0)
# dpkg -i br2684_20040226-1_i386.deb
执行
# br2684ctl -b -c 0 -a 8.81
其中8.81为VPI和VCI,根据自己的配置填写,可在Windows下获得。
显示:
# Interface "nas0" created sucessfully
# Communicating over ATM 0.8.81,encapsulation:LLC
# Interface configured
如上显示表示成功。
(五) 安装adsl拨号软件
解压缩rp-pppoe3.5
# cd rp-pppoe-3.5
# ./go
根据提示填写以下内容:
username: ADSL帐号
interface: 这里填nas0
demand value: 直接回车
DNS: 填server
password: ADSL密码
firewall: 选1
最后保存
(六)现在已经可以拨号了
# adsl-start
如果显示Connected表示连接成功。现在就可以上网了,断开连接用adsl-stop,查看连接状态用adsl-status。
此时用ifconfig -a命令会显示nas0和ppp0的相关信息。
- 附件
-
- utils.zip
- cxacru-fw
- (9.78 KiB) 已下载 111 次
-
- rp-pppoe-3.5.tar.gz
- rp-pppoe-3.5
- (184.88 KiB) 已下载 876 次
上次由 deang 在 2006-08-15 12:08,总共编辑 1 次。
-
- 帖子: 65
- 注册时间: 2005-06-26 12:40
-
- 帖子: 17
- 注册时间: 2005-10-21 14:43
-
- 帖子: 3
- 注册时间: 2005-12-02 1:46
如下设置可实现开机自动拨号上网:
编辑/etc/network/interfaces,加入以下几行:
我的interfaces配置如下:
编辑/etc/network/interfaces,加入以下几行:
代码: 全选
# PPPoE
auto pppoe
iface pppoe inet ppp
provider pppoe
pre-up br2684ctl -b -c 0 -a 8.81
pre-up adsl-start
post-down kill $(cat /var/run/nas0.pid)
代码: 全选
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# PPPoE created by deang
auto pppoe
iface pppoe inet ppp
provider pppoe
pre-up br2684ctl -b -c 0 -a 8.81
pre-up adsl-start
post-down kill $(cat /var/run/nas0.pid)
- 蝴蝶兰
- 帖子: 202
- 注册时间: 2006-04-18 10:13
- 来自: china
- 联系:
[讨论]楼主能成功,我为什么不成功啊!(我看到你的贴子太迟了)
我用的猫是MAU-201万利达的USB口的,应该和楼主是一样的;我的猫在WindowsXP下的CnxEtU.sys的版本是:40.1.14.0,也应该和你的是一样的;我在http://cvs.sourceforge.net/viewcvs.py/accessrunner/utile/下载的的东东由于和你下载的不是一个时间,可能不一样,但应该没有什么根本改变,也就是说cxacru-fw.c中的那段代码应该是不变的:
uint8_t *findfw(uint8_t *buf, int len, int *fwlen)
{
const static uint8_t fwstart[] = { /* ARM LE asm */
0x1c, 0x24, 0x9f, 0xe5, /* e59f241c ldr r2, [pc, #0x41c] */
0x00, 0x10, 0xa0, 0xe3, /* e3a01000 mov r1, #0x0 */
0x00, 0x10, 0x82, 0xe5, /* e5821000 str r1, [r2] */
0x22, 0x00, 0x00, 0xeb, /* eb000022 bl 0x9c */
};
const static uint8_t bpstart[] = {
0x78, 0x20, 0x9f, 0xe5, /* e59f2078 ldr r2, [pc, #0x78] */
0x01, 0x10, 0xa0, 0xe3, /* e3a01001 mov r1, #0x1 */
0x00, 0x10, 0x82, 0xe5, /* e5821000 str r1, [r2] */
0x70, 0x20, 0x9f, 0xe5, /* e59f2070 ldr r2, [pc, #0x70] */
};
......
/* find the starting sequence of the firmware image */
fw = (uint8_t *) memmem(buf + dataoff, datalen, fwstart, sizeof(fwstart));
if (!fw) {
error(0, 0, "firmware start sequence not found");
return NULL;
}
这段代码楼主一定看得懂吧!
非常不幸,我的CnxEtU.sys文件中没有这个特定的串
如果楼主看到我的求助,请把你的CnxEtU.sys和utils项目文件给我发一个,万分感谢!
mailto:zhuzhengan@yahoo.com.cn
uint8_t *findfw(uint8_t *buf, int len, int *fwlen)
{
const static uint8_t fwstart[] = { /* ARM LE asm */
0x1c, 0x24, 0x9f, 0xe5, /* e59f241c ldr r2, [pc, #0x41c] */
0x00, 0x10, 0xa0, 0xe3, /* e3a01000 mov r1, #0x0 */
0x00, 0x10, 0x82, 0xe5, /* e5821000 str r1, [r2] */
0x22, 0x00, 0x00, 0xeb, /* eb000022 bl 0x9c */
};
const static uint8_t bpstart[] = {
0x78, 0x20, 0x9f, 0xe5, /* e59f2078 ldr r2, [pc, #0x78] */
0x01, 0x10, 0xa0, 0xe3, /* e3a01001 mov r1, #0x1 */
0x00, 0x10, 0x82, 0xe5, /* e5821000 str r1, [r2] */
0x70, 0x20, 0x9f, 0xe5, /* e59f2070 ldr r2, [pc, #0x70] */
};
......
/* find the starting sequence of the firmware image */
fw = (uint8_t *) memmem(buf + dataoff, datalen, fwstart, sizeof(fwstart));
if (!fw) {
error(0, 0, "firmware start sequence not found");
return NULL;
}
这段代码楼主一定看得懂吧!
非常不幸,我的CnxEtU.sys文件中没有这个特定的串
如果楼主看到我的求助,请把你的CnxEtU.sys和utils项目文件给我发一个,万分感谢!
mailto:zhuzhengan@yahoo.com.cn
- 蝴蝶兰
- 帖子: 202
- 注册时间: 2006-04-18 10:13
- 来自: china
- 联系:
补充一点,我和楼主交流一下
我和你不同的是我没有下2.6.14.2内核。我用的是Ubuntu5.10最小化安装,然后下载2.6.14.2内核源文件,此内核中已有Conexant USB ADSL Modem 的驱动,无需另外下载。
我的是“万利达魔电MAU-201” USB接口的ADSL Modem,Conexant芯片,封装模式是PPP over Ethernet LLCSNAP(RFC2516)。
值得怀疑的是万利达的这只猫在http://accessrunner.sourceforge.net/modems.shtml这个页面上虽说Vendor ID和Product ID和这只猫的Vendor ID=0x572 Product ID=0xcb00相同,可还是不一定被支持啊!http://www.conexant.com/support/files/l ... Mdm.exe后显示:
=====================================================================
= SYSTEM INFORMATION =
=====================================================================
Date : 4/30/2006
ListMdm Ver : 1.6
Windows OS : Microsoft Windows XP
Build Number : 2600
=====================================================================
= RESULT OF MODEM QUERY =
=====================================================================
NUMBER OF MODEMS FOUND = 0
你能告诉我这些都正常吗?你提供的utils.zip我也下载了,我和下的一样。难道你的CnxEtU.sys版本和我的不一样吗?能给一个吗?
- eexpress
- 帖子: 58428
- 注册时间: 2005-08-14 21:55
- 来自: 长沙
-
- 帖子: 3
- 注册时间: 2005-12-02 1:46
- 蝴蝶兰
- 帖子: 202
- 注册时间: 2006-04-18 10:13
- 来自: china
- 联系:
多谢!
多谢楼主发来的adsl.zip。今天加班,晚上回去一试!
另外我想问一下eexpress老兄,你所说的源是什么?
虽说conexant芯片的USB猫有不少,可它们的驱动不一定能通用啊。不信你在Windows下多试试。(我没试过 )我下这个结论的根据就是依我的经验:我以前在FC3下用同样是conexant芯片的上海贝电的猫,没出现任何问题,一换成万利达MAU-201,好像是猫能驱动起来,可拔号时就傻眼了!加之FC3先天有些不足,所以把它放弃了。我接触ubuntu充其量也就是月余,加之工作忙,并没有在它上面下多少功夫,所以惭愧得很,至今没有解决这个问题。
另外我想问一下eexpress老兄,你所说的源是什么?
虽说conexant芯片的USB猫有不少,可它们的驱动不一定能通用啊。不信你在Windows下多试试。(我没试过 )我下这个结论的根据就是依我的经验:我以前在FC3下用同样是conexant芯片的上海贝电的猫,没出现任何问题,一换成万利达MAU-201,好像是猫能驱动起来,可拔号时就傻眼了!加之FC3先天有些不足,所以把它放弃了。我接触ubuntu充其量也就是月余,加之工作忙,并没有在它上面下多少功夫,所以惭愧得很,至今没有解决这个问题。