[Ilugc] HOW TO - INSTALL/CONFIGURE ECIADSL DRIVER FOR TOUCHTEL USB
MODEM [TERA-100U TERRAGATE ]
nallu ignacius
nallu.ignacius at gmail.com
Fri Feb 18 08:20:39 IST 2005
HOW TO INSTALL/CONFIGURE ECIADSL DRIVER FOR TOUCHTEL USB MODEM
[TERA-100U TERRAGATE ]
I found many people mailing about setting up USB modem provided with
touchtel. Please use this as a reference[HOW TO].
My modem is marked as tera-100U terragate inc. If you turn your modem
upside down, there will be a sticker.If you peel it on one side and
see, it will be marked as tera-100U terragate inc.
PREREQUEST:
[root at localhost eciadsl-modem-drivers-for-linux-full]# lsmod
uhci_hcd 24472 0
This module must be available.
It took more time for me to setup the modem because I restarted the PC
if I get into any trouble.Instead use:
[root at localhost eciadsl-modem-drivers-for-linux-full]#modprobe -r uhci_hcd
[root at localhost eciadsl-modem-drivers-for-linux-full]#modprobe uhci_hcd
And proceed further.
STEP 1:
I installed the eciadsl usermode driver.
As root:
rpm -i eciadsl-usermode-0.9-2.i386.rpm
STEP 2: The default kernel will through some kernel errors.
The linux kernel that I use is kernel-2.6.6-1.427. I downloaded it
from the fedora update site.As root user install it using
rpm -i <downloadedKernelRPM>
STEP 3: The files to be taken into consideration for the modem setup:
/etc/eciadsl/eciadsl.conf
/etc/ppp/peers/adsl
/etc/ppp/pap-secrets
/etc/ppp/chap-secrets
STEP 4:
As root run /usr/local/bin/probe_device.sh:
[root at localhost eciadsl]# /usr/local/bin/probe_device.sh
===========================start of output=========================
WARNING: before probing, please ensure that your USB devices are plugged in
and that your system's USB support is properly configured
USB modem to probe must be UNinitialized, it will surely appear as an unknown
device (because it is not initialized yet), for instance: ? (0547:2131)
config read from /etc/eciadsl/eciadsl.conf
your USB devices:
1: UHCI Host Controller / Linux 2.6.5-1.358 uhci_hcd (0000:0000)
2: USB-ADSL Modem / GlobeSpan Inc. (0915:8000)
enter device to probe (1-2): 2
probing, please wait..
your USB devices now:
1: UHCI Host Controller / Linux 2.6.5-1.358 uhci_hcd (0000:0000)
2: USB-ADSL Modem / GlobeSpan Inc. (0915:8000)
probed USB device: USB-ADSL Modem / GlobeSpan Inc.
VID1=0915, PID1=8000
VID2=0915, PID2=8000
Did you really unplug/replug your modem before launching this script?
===========================end of output=========================
If the probing fails then your modem is not supported.
Use the values in the probing
VID1=0915, PID1=8000
VID2=0915, PID2=8000
in the next step.
STEP 5:
You must run probe_synch.sh inorder to setup the proper SYNCH file
for your modem[It is somewhat tedious to setup.I used usb-sniffer and
other tools, but it is not needed.. Any one of the 55 synch.bin files
will work for you.So, no need to use sniff tools]. Now, the
probe_synch.sh finds the appropriate synchXX.bin file for your modem
and prompts with OK.Enter the file that is shown as OK in the above
step in your /etc/eciadsl/ecadsl.conf
For me it is SYNCH=/etc/eciadsl/synch02.bin
STEP 6:
Add the line:
"Yourname_tn at touchtelindia.net" * "yourpassword" *
to /etc/ppp/pap-secrets and /etc/ppp/chap-secrets [Enter yourname and
password.. Please refer the config files given in STEP 8]
STEP 7:
Use the /usr/local/bin/eciconf.sh or /usr/local/bin/eciconftxt.sh to
generate your configuration files. Ofcourse you may put the content of
my config files replacing some of the values that are modem/chipset
dependent.The documentation provided in the eciadsl site is itself
sufficient enough to setup the modem. Please use it for reference
purpose.
STEP 8:
Consider my eciadsl config files for reference.
1.My /etc/eciadsl/eciadsl.conf file
==========================start of file=========================
VID1=0915
PID1=8000
VID2=0915
PID2=8000
MODE=VCM_RFC2364
VCI=32
VPI=1
FIRMWARE=/etc/eciadsl/firmware00.bin
SYNCH=/etc/eciadsl/synch02.bin
PPPD_USER=myid_tn at touchtelindia.net
PPPD_PASSWD=password
USE_DHCP=yes
USE_STATICIP=no
STATICIP=
GATEWAY=
MODEM=Other
PROVIDER=Other
DNS1=
DNS2=
==========================end of file=========================
2.My /etc/ppp/peers/adsl file
==========================start of file=========================
# this file has been generated by the configuration tool of the ECIADSL driver
debug
kdebug 1
noipdefault
defaultroute
pty "/usr/local/bin/pppoeci -alt 4 -vpi 1 -vci 32 -vendor 0x0915
-product 0x8000 -mode VCM_RFC2364"
sync
user "myid_tn at touchtelindia.net"
noaccomp
nopcomp
noccp
novj
holdoff 10
# This will store the pid of pppd in the first line of /var/run/ppp-eciadsl.pid
# and the interface created (like ppp0) on the second line.
linkname eciadsl
# maxfail is the number of times pppd retries to execute pppoeci after
# an error. If you put 0, pppd retries forever, filling up the process table
# and thus, making the computer unusable.
maxfail 10
usepeerdns
noauth
# If your PPP peer answer to LCP EchoReq (lcp-echo requests), you can
# use the lcp-echo-failure to detect disconnected links with:
#
# lcp-echo-interval 600
# lcp-echo-failure 10
#
# However, if your PPP peer DOES NOT answer to lcp-echo request, you MUST
# desactivate this feature with the following line
#
lcp-echo-interval 0
# You may need the following, but ONLY as a workaround
# mtu 1432
persist
==========================end of file=========================
3.My /etc/ppp/pap-secrets file:
==========================start of file=========================
# Secrets for authentication using PAP
# client server secret IP addresses
####### redhat-config-network will overwrite this part!!! (begin) ##########
####### redhat-config-network will overwrite this part!!! (end) ############
"your-account" "foobar.com.in" "your-password"
"ignacius_tn at touchtelindia.net" * "password" *
==========================end of file=========================
4.My /etc/ppp/chap-secrets file:
==========================start of file=========================
# Secrets for authentication using CHAP
# client server secret IP addresses
####### redhat-config-network will overwrite this part!!! (begin) ##########
####### redhat-config-network will overwrite this part!!! (end) ############
"your-account" "foobar.com.in" "your-password"
"ignacius_tn at touchtelindia.net" * "password" *
==========================end of file=========================
STEP 9:
As root run /usr/local/bin/probe_device.sh:
[root at localhost eciadsl]# /usr/local/bin/probe_device.sh
===========================start of output=========================
WARNING: before probing, please ensure that your USB devices are plugged in
and that your system's USB support is properly configured
USB modem to probe must be UNinitialized, it will surely appear as an unknown
device (because it is not initialized yet), for instance: ? (0547:2131)
config read from /etc/eciadsl/eciadsl.conf
your USB devices:
1: UHCI Host Controller / Linux 2.6.5-1.358 uhci_hcd (0000:0000)
2: USB-ADSL Modem / GlobeSpan Inc. (0915:8000)
enter device to probe (1-2): 2
probing, please wait..
your USB devices now:
1: UHCI Host Controller / Linux 2.6.5-1.358 uhci_hcd (0000:0000)
2: USB-ADSL Modem / GlobeSpan Inc. (0915:8000)
probed USB device: USB-ADSL Modem / GlobeSpan Inc.
VID1=0915, PID1=8000
VID2=0915, PID2=8000
Did you really unplug/replug your modem before launching this script?
===========================end of output=========================
STEP 10 :
Starting the modem[connecting]
As root:
[root at localhost ignacius]# startmodem
===========================start of output=========================
setting up USB support (1/5)..
loading firmware (2/5)..
GlobeSpan USB ADSL WAN Modem compatible modem found (in 1001ms)
ECI load 1: success
firmware loaded successfully
setting up modem (3/5)..
ECI load 2: success
synchronization successful
connecting modem (4/5)..
using channel 4
Using interface ppp0
Connect: ppp0 <--> /dev/pts/10
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x84c6e958>]
rcvd [LCP ConfReq id=0x9c <mru 9178> <auth pap> <magic 0x1d4e1b2f>]
sent [LCP ConfAck id=0x9c <mru 9178> <auth pap> <magic 0x1d4e1b2f>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x84c6e958>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x84c6e958>]
sent [PAP AuthReq id=0x1 user="my id" password=<hidden>]
rcvd [PAP AuthAck id=0x1 ""]
PAP authentication succeeded
sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
rcvd [IPCP ConfNak id=0x1 <addr 61.247.246.234> <ms-dns1
203.145.184.13> <ms-dns3 202.56.250.5>]
sent [IPCP ConfReq id=0x2 <addr 61.247.246.234> <ms-dns1
203.145.184.13> <ms-dns3 202.56.250.5>]
rcvd [IPCP ConfAck id=0x2 <addr 61.247.246.234> <ms-dns1
203.145.184.13> <ms-dns3 202.56.250.5>]
rcvd [IPCP ConfReq id=0xe4 <addr 203.145.161.1>]
sent [IPCP ConfAck id=0xe4 <addr 203.145.161.1>]
local IP address 61.247.246.234
remote IP address 203.145.161.1
primary DNS address 203.145.184.13
secondary DNS address 202.56.250.5
connection successful
setting up route table (5/5)..
waiting for ppp0..
[root at localhost ignacius]
===========================end of output=========================
STEP 11 :
Entering the DNS (nameservers)
Add to the /etc/ppp/resolv.conf file
nameserver 203.145.184.13[add your pri DNS]
nameserver 202.56.250.5[add your sec DNS]
STEP 12:
Steps to check whether the connection is OK.
As root run "route"
[root at localhost ignacius]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
203.145.161.1 * 255.255.255.255 UH 0 0 0 ppp0
169.254.0.0 * 255.255.0.0 U 0 0 0 lo
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default 203.145.161.1 0.0.0.0 UG 0 0 0 ppp0
As root run "ifconfig"
[root at localhost ignacius]# ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:640 errors:0 dropped:0 overruns:0 frame:0
TX packets:640 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:50656 (49.4 Kb) TX bytes:50656 (49.4 Kb)
ppp0 Link encap:Point-to-Point Protocol
inet addr:61.247.246.234 P-t-P:203.145.161.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:3 errors:0 dropped:0 overruns:0 frame:0
TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:54 (54.0 b) TX bytes:54 (54.0 b)
content of /var/log/messages while connecting:
[root at localhost ignacius]# tail /var/log/messages
Oct 18 22:14:02 localhost pppd[3272]: pppd 2.4.2 started by ignacius, uid 0
Oct 18 22:14:03 localhost pppd[3272]: Using interface ppp0
Oct 18 22:14:03 localhost pppd[3272]: Connect: ppp0 <--> /dev/pts/10
Oct 18 22:14:03 localhost kernel: usb 1-1: usbfs: process 3273
(pppoeci) did not claim interface 0 before use
Oct 18 22:14:07 localhost pppd[3272]: PAP authentication succeeded
Oct 18 22:14:07 localhost pppd[3272]: local IP address 61.247.246.234
Oct 18 22:14:07 localhost pppd[3272]: remote IP address 203.145.161.1
Oct 18 22:14:07 localhost pppd[3272]: primary DNS address 203.145.184.13
Oct 18 22:14:07 localhost pppd[3272]: secondary DNS address 202.56.250.5
STEP 13:
Stopping the connection:
----------------------------
Just kill the pppd daemon:
Asroot:
# killall pppd
start the connection again?
-----------------------------
Re-start the pppd daemon this way:
As root:
# pppd call adsl
Any one of you please update this content in ILUGC's wiki page.
thank you,
Ignacius
More information about the ilugc
mailing list