Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[DSL] RP-PPPoE with a Speedtouch USB Modem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
ThE_TemPLaR
Tux's lil' helper
Tux's lil' helper


Joined: 30 May 2003
Posts: 149
Location: Salon de Provence

PostPosted: Thu Oct 02, 2003 6:10 am    Post subject: [DSL] RP-PPPoE with a Speedtouch USB Modem Reply with quote

Want to benefit of the advantages of rp-pppoe or simply want to test another way to set up your Speedtouch USB... Here is a solution.


What you must have ?


A kernel 2.4.20+ which supports :
Asynchronous Transfer Mode protocol
RFC1483/2684 Bridged protocols
PPP over ATM
Alcatel Speedtouch USB support

The bridging tool : http://home.sch.bme.hu/%7Ecell/br2684/dist/010402/brctl-010226.c

RP-PPPoE
Linux-atm
modem_run from Speedtouch usermode drivers.
The firmware.
(facultative) hotplug.


Compile the Kernel :

Here is the list of options you must activate to make things work properly with your Speedtouch USB :

Networking Options
    Asynchronous Transfer Mode (ATM) (EXPERIMENTAL) [Y]

    RFC1483/2684 Bridged protocols [Y]


Network device support
    PPP (point-to-point protocol) support [Y]

    PPP support for async serial ports [M]

    PPP support for sync tty ports [M]

    PPP over ATM (EXPERIMENTAL) [Y]


USB support
    Preliminary USB device filesystem [Y]

    UHCI (Intel PIIX4, VIA, ...) support [Y]

(This can depend of your USB on-board support. Choose UHCI, OHCI or EHCI, like you'll chose with every kernel. lspci -v can give you the USB support that you motherboard provides.)
    Alcatel Speedtouch USB support [Y]


Compile the kernel but don't reboot now (You don't have the proper packages installed and don't know how to set up the connection again ;)).

Now you must have the modem_run binary which comes from the speedtouch usermode drivers.

You can get the speedtouch ebuild and skip this section "compile modem_run" and continue to the firmware section.

Code:
emerge -v speedtouch



Compile modem_run :


Download Benoit Papillaut's drivers and compile modem_run with :
Code:
./configure && make && make modem_run


The firmware :

Get the firmware :
alcaudsl.sys
mgmt.o


and copy it in /usr/lib/firmware.bin

Code:
cp alcaudsl.sys /usr/lib/firmware.bin

(or mgmt.o)

Compile linux_atm :

Now we must get the linux-atm headers to compile the bridging tool

Code:
emerge -v linux-atm


To compile it manually do :
Code:
./configure --prefix=/usr --sysconfdir=/etc && make && make install


Now compile the bridging tool :

Code:
cc -o br2684ctl brctl-010226.c -latm
cp ./br2684ctl /usr/sbin


Compile rp-pppoe :

You can get the ebuild :

Code:
emerge -v rp-pppoe


or compile it manually :

Code:
cd src
./configure --prefix=/usr --sysconfdir=/etc && make && make install


Code:
Configure rp-pppoe :


Type :
Code:
adsl-setup


The interface will be nas0, not eth0.

Now you can reboot on your new kernel.

Final step :

If it boots fine, type :
Code:
modem_run -k -f /usr/lib/firmware.bin
br2684ctl -b -c 0 -a 0.VP.VC
adsl-start


You must replace VP and VC by correct VPI and VCI values.
You can look at this :
http://www.linux-usb.org/SpeedTouch/faq/index.html#q12

Maybe will it help you

If all worked fine, you should be connected else, be sure to have compiled the speedtch driver in built-in.
If not load it before launching the bridgle control.

If you launched the bridge control before loading the module, unplug and plug the modem again. Restart modem_run
Code:
modprobe speedtch

And launch the bridge control process.

Note : That will not work with 2.6-test6 which KP when you kill modem_run. At least on my box it does.

Note2 : I didn't get hotplug working so if you a know a way that works, let me know ;)
_________________
...
Back to top
View user's profile Send private message
ozonator
Guru
Guru


Joined: 11 Jun 2003
Posts: 591
Location: Ontario, Canada

PostPosted: Tue Jun 29, 2004 1:40 pm    Post subject: Reply with quote

Many thanks for this guide! For some reason, most of the discussion of this modem on these forums has been centred around pppoa, not pppoe. In any case, I now have my speedtouch usb modem working very well.

A few notes. First, I'm using the firmware from speedtouch.sourceforge.net/files/firmware.bin, as described in the pppoa guides (e.g., this one). Possibly as a result, I have to specify boot code (included with the speedtouch package) when using modem_run:

Code:
/usr/sbin/modem_run -k -a /usr/share/speedtouch/boot.v123.bin -f /usr/local/lib/speedtouch/firmware.bin


Second, I don't get a kernel panic when killing modem_run; I'm using a kernel from development-sources-2.6.7. (Haven't tried hotplug.) On the other hand, I'm using a laptop, and the modem doesn't seem to work after a sleep/wake cycle, even if I unplug and replug the modem -- I have to reboot between connections, it seems. (A minor inconvenience compared to using an analog modem. :) )

Finally, all this is working on ppc. My laptop is an iBook 2.3 (G3 800 MHz).
Back to top
View user's profile Send private message
sh1ft
n00b
n00b


Joined: 24 Jun 2004
Posts: 5

PostPosted: Tue Jun 29, 2004 3:39 pm    Post subject: Reply with quote

ozonator wrote:
On the other hand, I'm using a laptop, and the modem doesn't seem to work after a sleep/wake cycle, even if I unplug and replug the modem -- I have to reboot between connections, it seems. (A minor inconvenience compared to using an analog modem. :) )

Finally, all this is working on ppc. My laptop is an iBook 2.3 (G3 800 MHz).


Well in order to use the modem after you unplug it and plug it back in, you need to kill off the bridge and remove the kernel module. I made a simple script to do this:

Code:

#!/bin/bash
echo "Attempting to disconnect..."; adsl-stop
echo "killing bridge..."; ps xu | grep br2684ctl | grep -v grep | awk '{ print $2 }' | xargs kill -9
sleep 2
modprobe -rf speedtch


Note: for this to work you need module unloading + forced module unloading enabled in the kernel.
_________________
emerge -fu world
Back to top
View user's profile Send private message
ozonator
Guru
Guru


Joined: 11 Jun 2003
Posts: 591
Location: Ontario, Canada

PostPosted: Wed Jun 30, 2004 1:27 am    Post subject: Reply with quote

sh1ft wrote:
Well in order to use the modem after you unplug it and plug it back in, you need to kill off the bridge and remove the kernel module. I made a simple script to do this:

Code:

#!/bin/bash
echo "Attempting to disconnect..."; adsl-stop
echo "killing bridge..."; ps xu | grep br2684ctl | grep -v grep | awk '{ print $2 }' | xargs kill -9
sleep 2
modprobe -rf speedtch


Note: for this to work you need module unloading + forced module unloading enabled in the kernel.


Thanks for the tip! That works perfectly, even without forced module unloading enabled ('modprobe -r speedtch' seems to work fine).
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum