This is a howto on installing Conexant chip based USB ADSL Modem.
1. What we need.
Firmware for modem. You can download it here
http://depositfiles.com/files/6748275 (tar archive) (also you'll find there a so called bridge for creating nas0 interface plus script for autostart connection.)
2. Put the files on there place.
First of all, put cxacru-cf.bin and cxacru-fw.bin in /lib/firmware.
Then, put br2684ctl (the "bridge") in /usr/sbin.
3. Trying to connect.
Start the bridge:
# modprobe br2684
Check it:
# lsmod
br2684 9348 1
# ls /proc/net/atm/
br2684 cxacru:0 devices pvc svc vc
Then, we create nas0 interface:
# br2684ctl -b -c 0 -a 0.
0.33
Last two digits in above line are VPI and VCI. So change them according to your ISP.
Check:
# cat /proc/net/atm/br2684 | grep dev
dev nas0: num=1, mac=00:30:CD:00:05:16 (auto)
# ifconfig nas0
nas0 Link encap:Ethernet HWaddr 00:30:CD:00:05:16
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
If all is OK, let's setup inet connection:
# pppoe-setup (It will ask for username, password, etc...)
It will also ask for Ethernet interface, which is - nas0, in our case.
Options are stored in /etc/ppp/pppoe.conf
Check and edit if needed:
/etc/ppp/pppoe.conf
ETH='nas0'
USER='guest@mtu' # your username
DEMAND=no
DNSTYPE=NOCHANGE
PEERDNS=yes
CONNECT_TIMEOUT=30
CONNECT_POLL=2
PING="."
CF_BASE=`basename $CONFIG`
PIDFILE="/var/run/$CF_BASE-adsl.pid"
SYNCHRONOUS=no
CLAMPMSS=1412
LCP_INTERVAL=20
LCP_FAILURE=3
PPPOE_TIMEOUT=80
FIREWALL=NONE # may try STANDALONE
Two files, pap-secrets and chap-secrets located in /etc/ppp/ must be equal (there is your username and password).
File Options in /etc/ppp/ must be blank.
Try to connect:
pppoe-start
#############################################
Script for autostart creating nas0 interface:
(put it in /etc/rc.d/rc.local (this is for slackware, in my
case; and you should put it in the same place for automatic startup in your distro).
Code:
#!/bin/sh
#-----------------------------------------------------------------------------
/sbin/modprobe br2684
#
sleep 1
#
#
if ! cat /proc/net/atm/cxacru\:0 | grep up ; then
for second in 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 \
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 60 ;
do
if cat /proc/net/atm/cxacru\:0 | grep up ; then
break;
fi
sleep 3
tty -s && echo -n "."
done
if [ "$second" = "60" ]; then
echo -e "\n"
echo -e " \33[37;1;41m WARNING: Line failed !!! Try again ... \33[0m"
echo -e "\n"
exit 1
fi
fi
#
#
#
if ! cat /proc/net/atm/br2684 | grep dev ; then
br2684ctl -b -c 0 -a 0.0.33 # your VPI and VCI
fi
#
sleep 3
Tip: After reboot you'll get created nas0 interface and you will only need to open console to bring actual connection:
pppoe-start
#############################################
That's all my friends.
This is a howto version 0.01=) So, I will edit it if needed to make it more clear.
P.S. Also there is a gui app for that. rp-pppoe. You can download it here
http://depositfiles.com/en/files/6809878
Unpack archive, open console and type ./go-gui. Very easy to setup. Options are stored closely to pppoe.conf in /etc/ppp/