我已经找到了Conexant USB ADSL for linux的驱程,但是…………
我已经找到了Conexant USB ADSL for linux的驱程,下面是作者写的说明文件安装说明(英文版)
Brief instructions (for RFC1483/2684 routed and PPP over ATM (PPPoA) protocols, but you can modify for others):
.- Download driver from http://adslinux.iespana.es/adslinux/descargas/Drivers/ADSLinux/cxacru-2003-01-24-src.tgz
.- Copy to /usr directory from Linux.
.- Change to /usr directory (cd /usr).
.- Uncompress archive (tar -zxvf cxacru-2003-01-24-src.tgz).
.- Download Linux kernel code source from (http://www.kernel.org), same version that you are running. Type uname -r to know version.
.- Copy Linux kernel code source downloaded to /usr/src and uncompress it.
.- go to /usr/src/linux directory and type: make mrproper
.- Select this options after you type: make menuconfig (or if you prefer graphic mode then make xconfig).
Code maturity level options
[*] Prompt for development and/or incomplete code/drivers
Loadable module support
[*] Enable loadable module support
[*] Set version information on all module symbols
[*] Kernel module loader
Networking options
<*> Packet socket
<*> Unix domain sockets
[*] TCP/IP networking
[*] Asynchronous Transfer Mode (ATM)
USB support
<*> Support for USB
[*] Preliminary USB device filesystem
<M> UHCI
<M> OHCI
If you are using RFC1483/2684 then choose:
Networking options
[*] Asynchronous Transfer Mode (ATM)
[*] Classical IP over ATM
If you are using PPP over ATM (PPPoA) then choose:
Network Device Support
<M > PPP (point-to-point protocol) support
<M> PPP Deflate compression
<M> PPP over ATM
And unselect this option:
Processor type and features
[ ] Symmetric multi-processing support
Exit and save configuration (ONLY SAVE INFORMATION, AFTER NOT COMPILE KERNEL CODE SOURCE).
.- Go to /usr/cxacru directory and type make to compile and install the driver.
.- Edit /etc/cxacru file
.- Change protocol mode in file if it is necessary:
PROTOCOL_MODE=1 # 1 = RFC1483/2684 routed, 2 = PPP over ATM (pppoa)
.- Change VPI, VCI according your provider:
# ATM
VPI=8
VCI=32
This values are for Telefonica, in Spain.
.- For RFC1483/2684 routed put your configuration in:
# Specific for RFC1483/2684 routed
IP_ADDRESS=
NETMASK=255.255.255.0
GATEWAY=
.- If you are using static DNS servers as RFC1483/2684 routed then put into /etc/resolv.conf. Example:
nameserver 10.1.10.1
nameserver 10.1.10.2
(This is an example, not use this values).
.- If you are using ppp over atm then edit /etc/ppp file. Example:
lock
defaultroute
noipdefault
noauth
sync
noaccomp
nopcomp
noccp
novj
holdoff 4
persist
maxfail 25
usepeerdns
passive
asyncmap 0
lcp-echo-interval 2
lcp-echo-failure 7
name any
user any
plugin /usr/lib/pppd/plugins/pppoatm.so
VPI.VCI
(Change VPI and VCI (between VPI and VCI is a ".") according your provider). Also, you must edit chap-secrets and pap-secrets files according your provider.
.- Add a new line in /etc/hotplug/blacklist file:
usbcam
.- Running the driver:
Unplug the modem if it was connected.
Plug the modem.
To start driver type:
cxstart.sh
To stop driver type:
cxstop.sh
If your driver is running ok then you can it installs as service (go to /usr/cxacru directory and type make add_service then go to your service manager and start service cxacru or restart your computer).
但是很失败,虽然这是for Conexant USB ADSL的,但是目前我还没能把他驱动起来,居然是:sorry,i didn‘t find ADSL
晕啊!!
有兄弟成功过吗???
或者成功了的兄弟上来发个话!!!!! 为了这个东东,我已经整整研究了一周,
现在,终于搞定90%。
MODEM的灯终于亮了,也能连接上网了,只是不太稳定,经常出现连接不上的情况。
上面这个驱动可算是一个福音,特别是对我这种使用实达5000UB(conexant accessrunner 芯片),不过它只提供了rfc1483 route 和ppp over atm 的脚本,实际上很多用户所属的ISP是使用ATM rfc1483 brige桥接,并且采用pppoe连接ISP的。
特别注意的地方可能有以下几点,害得我花费了好几个晚上,最后发现原来如此。
1、2.4.18以后的内核实际上不需要重新编者按译,但是得重新make menuconfig,按上述配置。最好是make modouls,make modules_install,不然可能会出现找不到模块的情况。
2、一定要安装linux-atm软件包。
3、实际上对任何该类USB ADSL,驱动程序只是前面一步(cxload.sh),后面的script是针对各种连接协议配置的,需要根据自已的实际情况改变。
4、对rfc1483 route或ppp over atm的情况,我没试成功,因为自已是用rfc1483 bridge的,但是这个脚本和驱动里面无法配置atm0 的硬件地址,将atm0 ifconfig为ether的hw时不成功。很奇怪,hw address 是 00-00-00.....,配置ADSL-setup时提示无法定位atm0的link 方式(not ethernet)。
5、对rfc1483 brige的情况,以上步骤有好几步得需要更改。
a、如果是2.4.18以前的内核,需要patch rfc1483/2684的补丁,使内核支持rfc1483 bridge,只需要编译MODULES。然后insmod br2684(关键),不要将br2684编入内核中,要编成MODULES。
b、安装linux-atm后,一定要安装1483 bridgeusespace ,一般是br2684ctl.c或者br011220.c,注意这个小程序只能在2.4.19以上的内核下自动可以编译,在以前的内核下必须先补丁内核。否则可能会出现一些错误。反正我在2.4.18下编了好久没成功。
c、编译好后,执行br2684ctl -c 0 -e 0 itf.VPI.VCI(根据当地的值填),使之出现nas0界面。然后 ifconfig nas0....注意设定hw address, 或自动配上去。
d、route。
e、adsl-setup中,网络界面选择nas0,DNS由sever指定。
f、adsl-start,出现ppp0 interface ,,,,OK
以上只是自已的经历,还望指正。
有几个地方还没有设置好。
一是自动加载驱动不太稳定,关机后开机,驱动好象正常,但是MODEM实际上灯并没亮,驱动硬件实际上并没成功,再次cxstop.sh然后cxstart.sh驱动OK。可能有些MODEM不一样。
二是对rfc1483 bridge还没有完全配置好,如果不配置atmarpd/atm0,好象连上去没感觉,整了好久也没有整出一个自动驱动并且连接上ADSL的scripts.
三是连接上后,ADSL不稳定,虽然一点不会断线,但是经常打开网站的时候提示连接被拒绝,刷新几次又OK了。 另外,上面这些设置可以参照的网站:
http://home.sch.bme.hu/~cell/br2684/
慢慢研究吧,共同探讨
其实对LINUX,我是菜 多谢兄弟的指点!!我这就去试试!
页:
[1]