LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 08-01-2008, 04:19 PM   #1
STARHARVEST
Member
 
Registered: Nov 2005
Location: Russia, republic of Bashkiria
Distribution: Slackware 12.1
Posts: 294

Rep: Reputation: 31
Installing Conexant chip based USB ADSL Modem


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/
 
Old 08-05-2008, 07:07 PM   #2
STARHARVEST
Member
 
Registered: Nov 2005
Location: Russia, republic of Bashkiria
Distribution: Slackware 12.1
Posts: 294

Original Poster
Rep: Reputation: 31
Moders, make it sticky please=)
 
Old 03-21-2009, 04:52 AM   #3
pathum
LQ Newbie
 
Registered: Mar 2009
Posts: 13

Rep: Reputation: 0
Lightbulb

i will try this and give some feed back...

Thanks bro
 
Old 03-21-2009, 11:41 AM   #4
pathum
LQ Newbie
 
Registered: Mar 2009
Posts: 13

Rep: Reputation: 0
It aint working for me bro...i dont get the

ls /proc/net/atm/
br2684 cxacru:0 devices pvc svc vc

after i do the ls/proc/net/atm line, i get the above output WITHOUT the cxacru

also my MAC address is all Zeros

and when i do
ifconfig nas0

i get some line correct but i the last line is an error. i will update this with what i actually get
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Conexant USB ADSL modem in FC5 siddharth1986 Linux - Networking 3 05-24-2006 01:14 AM
Conexant USB ADSL Modem Paul7 Linux - Software 5 11-11-2005 12:22 PM
usb adsl modem conexant yusufozk Linux - Hardware 2 03-23-2005 03:20 PM
adsl with linuadsl usb modem..conexant unionjak Mandriva 2 10-28-2004 05:56 AM
Conexant USB ADSL MODEM athen Linux - Newbie 6 12-22-2003 11:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 06:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration