https://wiki.archlinux.org/api.php?action=feedcontributions&user=84.64.14.220&feedformat=atomArchWiki - User contributions [en]2024-03-28T10:40:31ZUser contributionsMediaWiki 1.41.0https://wiki.archlinux.org/index.php?title=DSL_SpeedTouch_modem&diff=5652DSL SpeedTouch modem2005-11-08T11:44:02Z<p>84.64.14.220: /* Introduction */</p>
<hr />
<div>[[Category:DSL Modem]]<br />
[Stub]<br />
=ATTENTION=<br />
Newer udev (060 or so) puts itself as the hotplug program in /proc/sys/kernel/hotplug, but doesn't handle firmware loading requests, thus the automatic firmware loading as described below won't work. Best way to solve this problem is yet unclear.<br />
<br />
Please see this bug report for more details: http://bugs.archlinux.org/task/3439<br />
<br />
==Introduction==<br />
This howto shows one way to get a working speedtouch USB modem. It uses the kernel driver, '''not''' the userspace driver. This howto assumes that your ISP uses PPPoA and not PPPoE. For info about PPPoE with these modems see first url below.<br />
<br />
Important sites where most info comes from:<br />
* [http://www.linux-usb.org/SpeedTouch Link1]<br />
* [http://lkml.org/lkml/2004/12/27/63 Link2]<br />
<br />
If the below instructions are not enough to get it working, then read the above sites.<br />
<br />
The following steps are needed to get the modem working:<br />
<br />
1) Make sure you have a kernel with the proper support (at least the modules ppp_generic, pppoatm, slhc, atm, usbatm and speedtch). The default Arch kernel should work: <code>pacman -S kernel26</code><br />
<br />
2) Install ppp: <code>pacman -S ppp</code><br />
<br />
3) Configure pppd's config files<br />
<br />
==Configuring pppd==<br />
<pre><br />
### /etc/ppp/peers/speedtch<br />
<br />
# To connect to using this configuration file, do<br />
# pppd call speedtch<br />
<br />
lcp-echo-interval 10<br />
lcp-echo-failure 10<br />
noipdefault<br />
defaultroute<br />
user "username@ispname"<br />
noauth<br />
noaccomp<br />
nopcomp<br />
noccp<br />
novj<br />
holdoff 4<br />
persist<br />
maxfail 25<br />
updetach<br />
usepeerdns<br />
plugin pppoatm.so<br />
# Following entry is country/ISP dependent<br />
8.48<br />
</pre><br />
<br />
The last entry depends on your country/ISP and is created from the VPI and VCI setting in the format <code>VPI.VCI</code>. A windows speedtouch diagnostic program may show you the VPI and VCI settings for your country/ISP.<br />
<br />
This page has a [http://www.edimax.com.tw/html/english/products/AR-7024Um.htm VPI / VCI Setting List], which I have partially reproduced below.<br />
<br />
{|style="width:400px; height:50px" border="1" cellpadding="5" cellspacing="0" align="Left"<br />
|-<br />
!style="background:#efefef;" | Country<br />
!style="background:#efefef;" | ISP<br />
!style="background:#efefef;" | VPI<br />
!style="background:#efefef;" | VCI<br />
|-<br />
| Australia<br />
| All Internet providers<br />
| 8<br />
| 35<br />
|-<br />
| rowspan=3|Suomi<br />
| Island ssimi<br />
| 0<br />
| 35<br />
|-<br />
| Landssimi<br />
| rowspan=2| 8<br />
| rowspan=2| 48<br />
|-<br />
| Vortex<br />
|-<br />
| United Kingdom<br />
| British Telecom<br />
| 0<br />
| 38<br />
|}<br />
<br><br />
<br />
You also need to configure /etc/ppp/pap-secrets or chap-secrets, depending on your ISP. pap-secrets files are of the format:<br />
<pre><br />
# Secrets for authentication using PAP<br />
# client server secret acceptable local IP addresses<br />
fred * flintstone<br />
</pre><br />
See [http://www.tldp.org/HOWTO/PPP-HOWTO/x1005.html The PAP/CHAP secrets file] for more detials.<br />
<br />
If you want to use the DNS servers provided by your ISP then make a symlink /etc/resolv.conf pointing to /etc/ppp/resolv.conf:<br />
cd etc<br />
rm resolv.conf<br />
ln -s ppp/resolv.conf resolv.conf<br />
<br />
4) Configure hotplug:<br />
<br />
Make an executable (chmod +x) file /etc/hotplug/usb/speedtch and put something like the next in it:<br />
<pre><br />
#!/bin/sh<br />
case $ACTION in<br />
add)<br />
if [[ ! -z "$SEQNUM" -a ! -f /tmp/bla ]]; then<br />
sleep 1;<br />
/usr/sbin/pppd call speedtch &> /tmp/bla;<br />
echo -e "--- $SEQNUM ---\n$DEVPATH" >> /tmp/bla;<br />
fi<br />
;;<br />
*)<br />
echo -n "speedtch unknown action: $ACTION" >> /tmp/unknown-action;<br />
esac<br />
</pre><br />
<br />
<br />
5) Now you have everything except the firmware loading. Easiest is if you let hotplug do it. The above script assumes that. If you want to do it manually then you'll need to do it in the above speedtch script with the appropriate sleeps to give the modem enough time.<br />
<br />
If you have a zip like e.g. rev4fw.zip, then unzip it. It probably contains two files, a small one and a big one. Copy the small file to:<br />
<br />
<code>/lib/firmware/speedtch-1.bin</code><br />
<br />
and the big one to:<br />
<br />
<code>/lib/firmware/speedtch-2.bin</code><br />
<br />
The first one should be about 990 bytes, and the second one about 660Kb. If you don't get those two files, but only one, then follow the instructions of the second link above and use the firmware extractor (or download another firmware which has the two files). The lib/firmware/ most likely doesn't exist yet, just make it.<br />
<br />
Make sure that the kernel supports firmware loading:<br />
$ zcat /proc/config.gz || grep FW_LOADER<br />
<br />
should tell that. The default Arch kernel is ok.<br />
<br />
Now reboot and pray that it works. In dmesg you'll get something like the following if everything goes alright:<br />
<br />
<pre><br />
usbcore: registered new driver speedtch<br />
usb 1-1: found stage 1 firmware speedtch-1.bin<br />
CSLIP: code copyright 1989 Regents of the University of California<br />
PPP generic driver version 2.4.2<br />
usb 1-1: found stage 2 firmware speedtch-2.bin<br />
ip_tables: (C) 2000-2002 Netfilter core team<br />
ADSL line is synchronising<br />
DSL line goes up<br />
ADSL line is up (800 Kib/s down || 256 Kib/s up)<br />
</pre><br />
<br />
And the content of the /tmp/bla file should be something like:<br />
<br />
<pre><br />
Plugin pppoatm.so loaded.<br />
PPPoATM plugin_init<br />
PPPoATM setdevname - remove unwanted options<br />
PPPoATM setdevname_pppoatm - SUCCESS:8.48<br />
Using interface ppp0<br />
Connect: ppp0 <--> 8.48<br />
PAP authentication succeeded<br />
local IP address 123.45.67.89<br />
remote IP address 195.190.249.10<br />
primary DNS address 195.121.1.34<br />
secondary DNS address 195.121.1.66<br />
--- 363 ---<br />
/devices/pci0000:00/0000:00:02.1/usb2/2-1/2-1:1.2<br />
</pre><br />
<br />
----<br />
For the origin of this doc, feedback or requests go to the [http://bbs.archlinux.org/viewtopic.php?p=80638 Forum discussion]</div>84.64.14.220https://wiki.archlinux.org/index.php?title=DSL_SpeedTouch_modem&diff=5651DSL SpeedTouch modem2005-11-08T11:43:41Z<p>84.64.14.220: /* Introduction */</p>
<hr />
<div>[[Category:DSL Modem]]<br />
[Stub]<br />
=ATTENTION=<br />
Newer udev (060 or so) puts itself as the hotplug program in /proc/sys/kernel/hotplug, but doesn't handle firmware loading requests, thus the automatic firmware loading as described below won't work. Best way to solve this problem is yet unclear.<br />
<br />
Please see this bug report for more details: http://bugs.archlinux.org/task/3439<br />
<br />
==Introduction==<br />
This howto shows one way to get a working speedtouch USB modem. It uses the kernel driver, '''not''' the userspace driver. This howto assumes that your ISP uses PPPoA and not PPPoE. For info about PPPoE with these modems see first url below.<br />
<br />
Important sites where most info comes from:<br />
* [http://www.linux-usb.org/SpeedTouch Link1]<br />
* [http://lkml.org/lkml/2004/12/27/63 Link2]<br />
<br />
If the below instructions are not enough to get it working, then read the above sites.<br />
<br />
The following steps are needed to get the modem working:<br />
<br />
1) Make sure you have a kernel with the proper support (at least the modules ppp_generic, pppoatm, slhc, atm, usb_atm and speedtch). The default Arch kernel should work: <code>pacman -S kernel26</code><br />
<br />
2) Install ppp: <code>pacman -S ppp</code><br />
<br />
3) Configure pppd's config files<br />
<br />
==Configuring pppd==<br />
<pre><br />
### /etc/ppp/peers/speedtch<br />
<br />
# To connect to using this configuration file, do<br />
# pppd call speedtch<br />
<br />
lcp-echo-interval 10<br />
lcp-echo-failure 10<br />
noipdefault<br />
defaultroute<br />
user "username@ispname"<br />
noauth<br />
noaccomp<br />
nopcomp<br />
noccp<br />
novj<br />
holdoff 4<br />
persist<br />
maxfail 25<br />
updetach<br />
usepeerdns<br />
plugin pppoatm.so<br />
# Following entry is country/ISP dependent<br />
8.48<br />
</pre><br />
<br />
The last entry depends on your country/ISP and is created from the VPI and VCI setting in the format <code>VPI.VCI</code>. A windows speedtouch diagnostic program may show you the VPI and VCI settings for your country/ISP.<br />
<br />
This page has a [http://www.edimax.com.tw/html/english/products/AR-7024Um.htm VPI / VCI Setting List], which I have partially reproduced below.<br />
<br />
{|style="width:400px; height:50px" border="1" cellpadding="5" cellspacing="0" align="Left"<br />
|-<br />
!style="background:#efefef;" | Country<br />
!style="background:#efefef;" | ISP<br />
!style="background:#efefef;" | VPI<br />
!style="background:#efefef;" | VCI<br />
|-<br />
| Australia<br />
| All Internet providers<br />
| 8<br />
| 35<br />
|-<br />
| rowspan=3|Suomi<br />
| Island ssimi<br />
| 0<br />
| 35<br />
|-<br />
| Landssimi<br />
| rowspan=2| 8<br />
| rowspan=2| 48<br />
|-<br />
| Vortex<br />
|-<br />
| United Kingdom<br />
| British Telecom<br />
| 0<br />
| 38<br />
|}<br />
<br><br />
<br />
You also need to configure /etc/ppp/pap-secrets or chap-secrets, depending on your ISP. pap-secrets files are of the format:<br />
<pre><br />
# Secrets for authentication using PAP<br />
# client server secret acceptable local IP addresses<br />
fred * flintstone<br />
</pre><br />
See [http://www.tldp.org/HOWTO/PPP-HOWTO/x1005.html The PAP/CHAP secrets file] for more detials.<br />
<br />
If you want to use the DNS servers provided by your ISP then make a symlink /etc/resolv.conf pointing to /etc/ppp/resolv.conf:<br />
cd etc<br />
rm resolv.conf<br />
ln -s ppp/resolv.conf resolv.conf<br />
<br />
4) Configure hotplug:<br />
<br />
Make an executable (chmod +x) file /etc/hotplug/usb/speedtch and put something like the next in it:<br />
<pre><br />
#!/bin/sh<br />
case $ACTION in<br />
add)<br />
if [[ ! -z "$SEQNUM" -a ! -f /tmp/bla ]]; then<br />
sleep 1;<br />
/usr/sbin/pppd call speedtch &> /tmp/bla;<br />
echo -e "--- $SEQNUM ---\n$DEVPATH" >> /tmp/bla;<br />
fi<br />
;;<br />
*)<br />
echo -n "speedtch unknown action: $ACTION" >> /tmp/unknown-action;<br />
esac<br />
</pre><br />
<br />
<br />
5) Now you have everything except the firmware loading. Easiest is if you let hotplug do it. The above script assumes that. If you want to do it manually then you'll need to do it in the above speedtch script with the appropriate sleeps to give the modem enough time.<br />
<br />
If you have a zip like e.g. rev4fw.zip, then unzip it. It probably contains two files, a small one and a big one. Copy the small file to:<br />
<br />
<code>/lib/firmware/speedtch-1.bin</code><br />
<br />
and the big one to:<br />
<br />
<code>/lib/firmware/speedtch-2.bin</code><br />
<br />
The first one should be about 990 bytes, and the second one about 660Kb. If you don't get those two files, but only one, then follow the instructions of the second link above and use the firmware extractor (or download another firmware which has the two files). The lib/firmware/ most likely doesn't exist yet, just make it.<br />
<br />
Make sure that the kernel supports firmware loading:<br />
$ zcat /proc/config.gz || grep FW_LOADER<br />
<br />
should tell that. The default Arch kernel is ok.<br />
<br />
Now reboot and pray that it works. In dmesg you'll get something like the following if everything goes alright:<br />
<br />
<pre><br />
usbcore: registered new driver speedtch<br />
usb 1-1: found stage 1 firmware speedtch-1.bin<br />
CSLIP: code copyright 1989 Regents of the University of California<br />
PPP generic driver version 2.4.2<br />
usb 1-1: found stage 2 firmware speedtch-2.bin<br />
ip_tables: (C) 2000-2002 Netfilter core team<br />
ADSL line is synchronising<br />
DSL line goes up<br />
ADSL line is up (800 Kib/s down || 256 Kib/s up)<br />
</pre><br />
<br />
And the content of the /tmp/bla file should be something like:<br />
<br />
<pre><br />
Plugin pppoatm.so loaded.<br />
PPPoATM plugin_init<br />
PPPoATM setdevname - remove unwanted options<br />
PPPoATM setdevname_pppoatm - SUCCESS:8.48<br />
Using interface ppp0<br />
Connect: ppp0 <--> 8.48<br />
PAP authentication succeeded<br />
local IP address 123.45.67.89<br />
remote IP address 195.190.249.10<br />
primary DNS address 195.121.1.34<br />
secondary DNS address 195.121.1.66<br />
--- 363 ---<br />
/devices/pci0000:00/0000:00:02.1/usb2/2-1/2-1:1.2<br />
</pre><br />
<br />
----<br />
For the origin of this doc, feedback or requests go to the [http://bbs.archlinux.org/viewtopic.php?p=80638 Forum discussion]</div>84.64.14.220