Page 1 of 5 123 ... LastLast
Results 1 to 10 of 44

Thread: HOWTO: Speedtouch USB ADSL Modem

  1. #1
    Join Date
    Nov 2004
    Beans
    42

    HOWTO: Speedtouch USB ADSL Modem (UK)

    Since Hoary is running on kernel 2.6.10, you do not need the speedtouch package to get these adsl modems to work. All you actually need apart from a Hoary installation cd is some firmware for your modem.

    I've now made this specific to the UK, as that's all I can test. In other countries using PPPoA it should work by changing the VPI/VCI numbers. (see below). Otherwise, http://www.linux-usb.org/SpeedTouch/ubuntu/index.html may be able to help.

    The procedure I outlined in my previous posts on configuring speedtouch is broken because the latest firmware .deb contains renamed firmware files, so the hotplug script provided with the speedtouch package can't find them, exits with an error and never gets around to bringing up the connection with the ISP. It would be simple enough to replace the hard-coded firmware file names with the new ones, but why install a package which is not needed? This new method does without the speedtouch package, but includes creating an alternative hotplug setup so that the automatic connection to the ISP still happens after the adsl line comes up.

    The HOWTO follows.

    In this HOWTO, I assume that you have no working net connection in Ubuntu. For now, you will need a computer that is capable of connecting to the internet, whether this be another computer, or your Ubuntu box booted with some other operating system (maybe you've set it up to dual-boot Ubuntu and Windows).

    I am working on utilizing the firmware which you should have on your Speedtouch Windows installation cd - I will update the howto once I have demonstrated to myself that this works. You will still need a net connection at some point to read/print these instructions, though!

    Step 1: Stuff to download

    Get hold of some firmware for your modem. The firmware is the code which needs to be loaded into the modem every time it is plugged in or the computer is switched on. Without the firmware, nothing else will happen.

    There is a useful debian package containing the firmware at http://ftp.linux.it/pub/People/md/wa....3012k_all.deb

    You might also like to save this HOWTO webpage - then you can copy and paste configuration file stuff later on, rather than type it in from a printed copy of the HOWTO.

    I have created a hotplug script called speedtch.txt which is attached to this post. download this.

    So, confirm before you leave your net-connected pc, that you have the above firmware package, the hotplug script, and these instructions, on a floppy, or burnt to a cd, or possibly on a Windows partition on your dual-boot Ubuntu box, which you can mount in Ubuntu.

    Step 2: Boot into Ubuntu and install the necessary software

    You will need to install the package libatm1 - put your Hoary cd in the drive and open a terminal. Then type:
    Code:
    sudo apt-get install libatm1
    This should install the package from the Hoary cd
    Now insert the floppy/cd containing the firmware downloaded earlier (or mount the relevant partition if you managed to save somewhere on your Ubuntu machine) and type:
    Code:
    sudo dpkg -i /path/to/your/download/speedtouch-firmware_0.3012k_all.deb
    This will install the firmware files to your computer.

    Step 3: Configure your software

    load the pppoatm module, and set up your machine so it is loaded at every boot:
    Code:
    sudo modprobe pppoatm
    sudo gedit /etc/modules
    in the editor window, add
    Code:
    pppoatm
    at the bottom of the list, save and exit.

    Create a pppd connection script to control logging on to your ISP:
    Code:
    sudo cp /usr/share/doc/ppp/examples/peers-pppoe /etc/ppp/peers/adslscript
    sudo gedit /etc/ppp/peers/adslscript
    change the line:
    Code:
    # user "myusername@myprovider.net"
    to:
    Code:
    user "your-own-isp-username"
    remove:
    Code:
    # Load the pppoe plugin. Change the ethernet interface name if needed.
    plugin rp-pppoe.so
    eth0
    and replace with
    Code:
    # These options configure pppd to talk with the kernelspace speedtch driver.
    # Don't forget to adapt the VP.VC pair to your ISP/country settings.
    # (see http://www.linux-usb.org/SpeedTouch/faq/index.html#q12)
    plugin pppoatm.so
    0.38 #UK
    Towards the bottom, comment out (ie put a # at the beginning of the line):
    Code:
    noaccomp
    
    and
    
    default-asyncmap
    save and exit the editor

    Now, set up your isp password:
    Code:
    sudo gedit /etc/ppp/chap-secrets
    In the editor window, add a line:
    Code:
    your-isp-user-name * your-isp-password *
    Save file and close editor
    Code:
    sudo gedit /etc/ppp/pap-secrets
    In the editor window, add an identical line to that just added to the chap secrets file. Save and close editor. You will only use one of these two files, depending on the authentication method used by your isp, but is doesn't hurt to have both on your system.

    Finally, setup the hotplug system to automatically connect when the modem is plugged in and at boot time:
    Code:
    sudo cp /your/path/to/speedtch.txt /etc/hotplug/usb/speedtch
    Make this script executable
    Code:
    sudo chmod +x /etc/hotplug/usb/speedtch
    Now, enter
    Code:
    tail -f /var/log/messages
    plug in your modem and (hopefully) watch it connect. you should see in the messages display, the speedtch module being loaded, the adsl line synchronising, then the pppd process establishing the connection, and your computer being allocated its ip address and dns servers.
    use ctrl-c to get out of the scrolling messages display.

    You should now be connected to the internet.

    Please post any questions/problems with the above, and I will try to help.

    Darrell
    Attached Files Attached Files
    Last edited by darrell; June 29th, 2005 at 12:06 AM. Reason: simplification, feedback

  2. #2
    Join Date
    Jul 2005
    Beans
    12

    Re: HOWTO: Speedtouch USB ADSL Modem

    Hi, Darrell. First of all thanks for the help. The installation of the speedtouch 330 (frog) on my Ubuntu has been taking my days lately. With your instructions, it went *almost* there!! So I feel there must be a small tweak somewhere to do yet,

    I did everything as you say. Then, when I restart the computer and try to use internet, it just stalls there... no error sign (I guess there'd be a timeout sooner or later), no download sign, nothing! I'm from Portugal, so I used 0.35 in the VPI/VCI thing.

    There is one slight thing to add (and it may make the difference!): when I installed Ubuntu yesterday, I connected it via ethernet using another (windows) computer, so that the installer could get stuff from outside. I then ran your instructions. I removed the ethernet cable, plugged the modem, restarted, and the rest you already know...

    Big thanks in advance

  3. #3
    Join Date
    Jul 2005
    Beans
    1

    Re: HOWTO: Speedtouch USB ADSL Modem

    Thanks for the help there pal, when i finally set it all up i felt so good, truly a moment of pure Frisson

  4. #4
    Join Date
    Nov 2004
    Beans
    42

    Re: HOWTO: Speedtouch USB ADSL Modem

    Hi Camara

    Do you get an IP address assigned from your ISP? - to check, from a command line:

    Code:
    ifconfig
    you should get something like
    Code:
    lo        Link encap:Local Loopback
              inet addr:127.0.0.1  Mask:255.0.0.0
              inet6 addr: ::1/128 Scope:Host
              UP LOOPBACK RUNNING  MTU:16436  Metric:1
              RX packets:163787 errors:0 dropped:0 overruns:0 frame:0
              TX packets:163787 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0
              RX bytes:35849281 (34.1 MiB)  TX bytes:35849281 (34.1 MiB)
    
    ppp0      Link encap:Point-to-Point Protocol
              inet addr:80.229.150.88  P-t-P:195.166.128.72  Mask:255.255.255.255
              UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:32725  Metric:1
              RX packets:417285 errors:0 dropped:0 overruns:0 frame:0
              TX packets:335497 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:3
              RX bytes:464076351 (442.5 MiB)  TX bytes:44431357 (42.3 MiB)
    I've highlighted the important bit in bold. If you've got this (your IP address will of course be different to mine - you just need to have one), it's probably a routing issue, especially since you configured an ethernet connection as your default connection during installation. Type:

    Code:
    route
    you should have a default route which points to your adsl modem interface (probably ppp0):

    Code:
    default         lo0-plusnet.pte 0.0.0.0         UG    0      0        0 ppp0
    but you've probably got one which points to your ethernet interface (for example eth0). In that case:

    Code:
    sudo route del default
    sudo poff adslscript
    sudo pon adslscript
    route
    you should now see a default route pointing to your speedtouch interface.

    If this has solved your problem, you need to make sure that your ethernet interface isn't set as the default route the next time you boot. Do this by editing your /etc/network/interfaces file:

    Code:
    sudo gedit /etc/network/interfaces
    and comment out the "gateway" instruction in the ethernet section (probably eth0). Also comment out any lines which start with "dns".

    Please let me know how you get on.

    I should give credit to linux speedtouch pages, referenced in the HOWTO above. All I'm really doing is rehashing the information there.

    Darrell
    Last edited by darrell; July 5th, 2005 at 03:16 PM.

  5. #5
    Join Date
    Jul 2005
    Beans
    12

    Re: HOWTO: Speedtouch USB ADSL Modem

    Hi Darrel,

    Here go the results for the commands you suggested:
    >ifconfig
    eth0 Link encap:Ethernet HWaddr 00:0C:6E:EB:82:82
    UP BROADCAST RUNNING 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)
    Interrupt:22 Memory:feafc000-0

    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    inet6 addr: ::1/128 Scope:Host
    UP LOOPBACK RUNNING MTU:16436 Metric:1
    RX packets:1828 errors:0 dropped:0 overruns:0 frame:0
    TX packets:1828 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:165740 (161.8 KiB) TX bytes:165740 (161.8 KiB)



    >route
    Kernel IP routing table
    Destination Gateway Genmask Flags Metric Ref Use Iface

    I think it is strange that it doesn't even start the ppp0. Is there anything missing in my system? The whole process ran smoothly, following every step you described.

    Thanks again

  6. #6
    Join Date
    Nov 2004
    Beans
    42

    Re: HOWTO: Speedtouch USB ADSL Modem

    OK, all my stuff yesterday about routing was a bit premature - might still need it, though. From your ifconfig output the ppp interface has not been brought up, so lets go back a bit.

    do
    Code:
    tail -f /var/log/syslog
    unplug and replug the modem. Post the syslog output here.

    Can you connect to the 'net from another machine while trying all this on your ubuntu box? if so, we could go sort of interactive here on the forums - let me know when you'd like to do this.

    Darrell.

  7. #7
    Join Date
    Jul 2005
    Beans
    12

    Re: HOWTO: Speedtouch USB ADSL Modem

    Darrel,

    Here goes the log you asked for:

    Jul 6 09:50:06 localhost pppd[8539]: pppd 2.4.2 started by root, uid 0
    Jul 6 09:50:06 localhost kernel: usb 4-1: found stage 1 firmware speedtch-1.bin.0
    Jul 6 09:50:06 localhost kernel: usb 4-1: found stage 2 firmware speedtch-2.bin.0
    Jul 6 09:50:09 localhost pppd[8492]: connect(0.35): Address already in use
    Jul 6 09:50:09 localhost pppd[8418]: connect(0.35): Address already in use
    Jul 6 09:50:09 localhost pppd[8539]: Using interface ppp0
    Jul 6 09:50:09 localhost pppd[8492]: Exit.
    Jul 6 09:50:09 localhost pppd[8418]: Exit.
    Jul 6 09:50:09 localhost pppd[8539]: Connect: ppp0 <--> 0.35
    Jul 6 09:50:10 localhost kernel: ADSL line is synchronising
    Jul 6 09:50:23 localhost kernel: usb 4-1: USB disconnect, address 4
    Jul 6 09:50:23 localhost kernel: usb_unlink_urb() is deprecated for synchronous unlinks. Use usb_kill_urb() instead.
    Jul 6 09:50:23 localhost kernel: Badness in usb_unlink_urb at drivers/usb/core/urb.c:457
    Jul 6 09:50:23 localhost kernel: [pg0+542452267/1070015488] usb_unlink_urb+0x47/0x7e [usbcore]
    Jul 6 09:50:23 localhost kernel: [pg0+544612127/1070015488] speedtch_usb_disconnect+0x2b/0x6a [speedtch]
    Jul 6 09:50:23 localhost kernel: [pg0+542433446/1070015488] usb_unbind_interface+0x38/0x69 [usbcore]
    Jul 6 09:50:23 localhost kernel: [device_release_driver+80/92] device_release_driver+0x50/0x5c
    Jul 6 09:50:23 localhost kernel: [bus_remove_device+57/104] bus_remove_device+0x39/0x68
    Jul 6 09:50:23 localhost kernel: [device_del+67/103] device_del+0x43/0x67
    Jul 6 09:50:23 localhost kernel: [pg0+542456104/1070015488] usb_disable_device+0x65/0xd6 [usbcore]
    Jul 6 09:50:23 localhost kernel: [pg0+542440580/1070015488] usb_disconnect+0x96/0x10e [usbcore]
    Jul 6 09:50:23 localhost kernel: [pg0+542443569/1070015488] hub_port_connect_change+0x5e/0x32a [usbcore]
    Jul 6 09:50:23 localhost kernel: [pg0+542444828/1070015488] hub_events+0x21f/0x2d0 [usbcore]
    Jul 6 09:50:23 localhost kernel: [pg0+542445005/1070015488] hub_thread+0x0/0xe4 [usbcore]
    Jul 6 09:50:23 localhost kernel: [pg0+542445034/1070015488] hub_thread+0x1d/0xe4 [usbcore]
    Jul 6 09:50:23 localhost kernel: [autoremove_wake_function+0/58] autoremove_wake_function+0x0/0x3a
    Jul 6 09:50:23 localhost kernel: [ret_from_fork+6/20] ret_from_fork+0x6/0x14
    Jul 6 09:50:23 localhost kernel: [pg0+542445005/1070015488] hub_thread+0x0/0xe4 [usbcore]
    Jul 6 09:50:23 localhost kernel: [autoremove_wake_function+0/58] autoremove_wake_function+0x0/0x3a
    Jul 6 09:50:23 localhost kernel: [kernel_thread_helper+5/11] kernel_thread_helper+0x5/0xb
    Jul 6 09:50:23 localhost pppd[8539]: Terminating on signal 15.
    Jul 6 09:50:28 localhost last message repeated 5 times
    Jul 6 09:50:28 localhost kernel: usb 4-1: new full speed USB device using uhci_hcd and address 5
    Jul 6 09:50:29 localhost kernel: usb 4-1: device descriptor read/64, error -71
    Jul 6 09:50:29 localhost pppd[8539]: Connection terminated.
    Jul 6 09:50:29 localhost pppd[8539]: Exit.
    Jul 6 09:50:29 localhost kernel: usb 4-1: khubd timed out on ep0in
    Jul 6 09:50:33 localhost usb.agent[8847]: speedtch: already loaded
    Jul 6 09:50:33 localhost pppd[8884]: Plugin pppoatm.so loaded.
    Jul 6 09:50:33 localhost pppd[8884]: PPPoATM plugin_init
    Jul 6 09:50:33 localhost pppd[8884]: PPPoATM setdevname - remove unwanted options
    Jul 6 09:50:33 localhost pppd[8884]: PPPoATM setdevname_pppoatm - SUCCESS:0.35
    Jul 6 09:50:33 localhost usb.agent[8847]: speedtouch: loaded successfully
    Jul 6 09:50:33 localhost pppd[8885]: pppd 2.4.2 started by root, uid 0
    Jul 6 09:50:33 localhost usb.agent[8895]: speedtch: already loaded
    Jul 6 09:50:33 localhost pppd[8945]: Plugin pppoatm.so loaded.
    Jul 6 09:50:33 localhost pppd[8945]: PPPoATM plugin_init
    Jul 6 09:50:33 localhost pppd[8945]: PPPoATM setdevname - remove unwanted options
    Jul 6 09:50:33 localhost pppd[8945]: PPPoATM setdevname_pppoatm - SUCCESS:0.35
    Jul 6 09:50:33 localhost usb.agent[8895]: speedtouch: loaded successfully
    Jul 6 09:50:33 localhost usb.agent[8865]: speedtch: already loaded
    Jul 6 09:50:33 localhost pppd[8999]: Plugin pppoatm.so loaded.
    Jul 6 09:50:33 localhost pppd[8999]: PPPoATM plugin_init
    Jul 6 09:50:33 localhost pppd[8999]: PPPoATM setdevname - remove unwanted options
    Jul 6 09:50:33 localhost pppd[8999]: PPPoATM setdevname_pppoatm - SUCCESS:0.35
    Jul 6 09:50:33 localhost usb.agent[8865]: speedtouch: loaded successfully
    Jul 6 09:50:33 localhost pppd[8946]: pppd 2.4.2 started by root, uid 0
    Jul 6 09:50:33 localhost pppd[9000]: pppd 2.4.2 started by root, uid 0
    Jul 6 09:50:33 localhost kernel: usb 4-1: found stage 1 firmware speedtch-1.bin.0
    Jul 6 09:50:33 localhost kernel: usb 4-1: found stage 2 firmware speedtch-2.bin.0
    Jul 6 09:50:37 localhost pppd[8946]: connect(0.35): Address already in use
    Jul 6 09:50:37 localhost pppd[8885]: connect(0.35): Address already in use
    Jul 6 09:50:37 localhost pppd[9000]: Using interface ppp0
    Jul 6 09:50:37 localhost pppd[8946]: Exit.
    Jul 6 09:50:37 localhost pppd[8885]: Exit.
    Jul 6 09:50:37 localhost pppd[9000]: Connect: ppp0 <--> 0.35
    Jul 6 09:50:38 localhost kernel: ADSL line is synchronising

    I'll be around during next few hours so we can proceed with this interaction!
    I have a laptop connected to the internet (with that famous modem) in the meantime. This laptopt has been the actual router of my home little net...
    Last edited by camara; July 6th, 2005 at 10:00 AM.

  8. #8
    Join Date
    Nov 2004
    Beans
    42

    Re: HOWTO: Speedtouch USB ADSL Modem

    sorry camara, I got into a urgent, long, long phone call. Am looking at your log now.

  9. #9
    Join Date
    Nov 2004
    Beans
    42

    Re: HOWTO: Speedtouch USB ADSL Modem

    let's try to do things manually.

    first of all, move the hotplug script out of the way so it doesn't run:
    Code:
    sudo mv /etc/hotplug/usb/speedtch /etc/hotplug/usb/speedtchxxx
    get a second terminal going to monitor the syslog:
    Code:
    tail -f /var/log/syslog
    unplug the modem, wait a few seconds until you see in the log that the unplugging has been recognised.
    in the first terminal again:
    Code:
    sudo rmmod speedtch
    now plug in the modem again and report what the syslog says (it should load the speedtch module, load the firmware, and bring up the adsl line - this could take 30 seconds or so)

  10. #10
    Join Date
    Jan 2005
    Beans
    4

    Re: HOWTO: Speedtouch USB ADSL Modem

    Hi there,

    Camara I have the same problem has you, and I think the problem is that your ISP don't use PPPoATM, it uses PPPoE (I live in Portugal too, and my isp is clix), but I can't get my connection to work with the http://linux-usb.sourceforge.net/Spe...ntu/index.html tutorial using the PPPoE method, maybe darrell can help us connecting with the pppoe protocol.

Page 1 of 5 123 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •