QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1463|回复: 3

使用USB接口的ADSL的linux用户请进,

[复制链接]
发表于 2006-9-3 10:42:56 | 显示全部楼层 |阅读模式
我按下面的文档配置,在cxacru CnxEtU.sys cxacru-fw.bin时出错,错误信息是“Firmware start sequence not found, Can't find AccessRunner firmware in ''CnxEtU.sys”, 哪位成功的兄弟贴一份cxacru-fw.bin上来,不胜感激!

--------Linux ADSL USB Modem - How To

These are instructions on how to get USB ADSL modems based on the Conexant AccessRunner chipset to work with Linux (Update: It looks like the driver has been included in the 2.6.15 kernel; if your kernel is 2.6.15 or higher, you can skips steps 1 and 2 and proceed directly to step 3).


Upgrade the kernel The driver needs a kernel newer than 2.6.10. If you already have a kernel newer than 2.6.10, go to Step 2. If you have an older kernel, you will have to upgrade. Get the latest kernel sources from here (ensure that you get the full sources). You will have to include the driver sources in the kernel source tree before configuring/building the kernel.

Assuming that the kernel sources have been extracted to /home/name/linux-src, extract the driver sources to /home/name/linux-src/drivers/usb/atm. This directory will have a Kbuild file present already, so you must either merge the contents of the downloaded Kbuild file with this, or, if you are not very picky, replace the contents of the directory completely with the driver files. These are the steps to build the kernel (Note: you will need gcc [2.95.3 or higher] to compile the kernel)

mkdir -p /home/name/build/kernel
cd /home/name/linux-src
make mrproper
make O=/home/name/build/kernel menuconfig

This will invoke the configuration menu. Navigate to Device Drivers -> USB Support -> USB DSL Modem Support and select the "Conexant AccessRunner USB support" option. Make sure that you save your configuration when you exit the menu.

make O=/home/name/build/kernel
sudo make O=/home/name/build/kernel modules_install install

This will create the new kernel image in /boot. If you are using LILO as your bootloader, run /sbin/lilo. If you use GRUB, edit /boot/grub/menu.lst to add an entry for the new kernel image.

Go to Step 3.


Install the driver module [Note: I'm not sure this will work for all scenarios; Mandriva, for example, stores modules in gzipped format, so the modules.dep file will have to be suitably modified. The best approach would be to integrate the module build process within the kernel's makefile system and install the modules using configure/make. I am working on it. Update: I have created a tar.gz file that you can use to do this (configure, make, etc.). You will need your kernel sources to be installed for this)]


[Skip this if you have used the above tar.gz file to create the .ko files] Extract the files usbatm.ko and cxacru.ko from this file and place them in /lib/modules/<kernel version>/kernel/drivers/usb/atm.
Add these lines to your /lib/modules/<kernel version>/modules.dep file: /lib/modules/<kernel version>/kernel/drivers/usb/atm/cxacru.ko: /lib/modules/<kernel version>/kernel/drivers/base/firmware_class.ko /lib/modules/<kernel version>/kernel/drivers/usb/atm/usbatm.ko /lib/modules/<kernel version>/kernel/drivers/usb/core/usbcore.ko /lib/modules/<kernel version>/kernel/net/atm/atm.ko


Extract firmware binary
Locate the file CnxEtU.sys from your Windows setup CD for the driver and copy it to Linux.
Download the file cxacru-fw.c from here.
Compile this file: gcc -o cxacru cxacru-fw.c
Create the Linux firmware binary as below: cxacru CnxEtU.sys cxacru-fw.bin

Copy the newly created cxacru-fw.bin to /usr/lib/hotplug/firmware (Note: the location of the 'firmware' directory may be different in your case)


Reboot (using the new kernel if you had to upgrade your kernel [TO DO: find out if a reboot is the only way to load the firmware])

Attach the modem Now plug in the modem. After about 20 seconds or so, the LED light should start blinking and then stay lit. Verify the /proc/net/atm/cxcrau:0 file to ensure that the line is up.


Create /etc/ppp/peers file Create a file called conexant in /etc/ppp/peers. A sample is provided here. Fill in your own values for user name, isp and vpi/vci.


Store password Enter the password for your user name in /etc/ppp/pap-secrets. Note: Make sure that the fields in this file are enclosed in single quotes.


Ensure that the pppoatm module has been loaded Run modprobe pppoatm as root.


Connect to your ISP Login as root and run pppd call conexant from the /etc/ppp/peers directory.
 楼主| 发表于 2006-9-3 10:53:28 | 显示全部楼层
我的猫是conexant芯片的,参考N多贴子,在Centos4和FC5中配置失败,郁闷好几天了
回复

使用道具 举报

 楼主| 发表于 2006-9-5 09:51:16 | 显示全部楼层
网上当了个firmware.bin,改为cxacru-fw.bin, 放到/lib/firmware下, 重起机器显示modem 初始化失败...
回复

使用道具 举报

 楼主| 发表于 2006-9-12 11:22:22 | 显示全部楼层
看来还是ubuntu厉害啊

http://eciadsl.flashtux.org/modems.php?lang=en
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-26 04:26 , Processed in 0.079997 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表