PDA

View Full Version : SpeedTouch 330 USB modem


Nyati
February 21st, 2006, 05:07 PM
I've recently installed Dapper on my IBM T30 with no problems except being able to connect to the internet to install updates and bug fix's.

I developed a script which enabled me to connect to the net using my usb Speedtouch 330 modem in HH5.10.

I attempted an installation of the packages required and everything was accepted, although these were the required packages for 5.10.

On command: #tail -f /var/log/messages

I plugged in my usb modem and got the response:

usb 2-2: new full speed USB device using uhci_hcd and address 4
usb 2-2: reset full speed USB device using uhci_hcd and address 4
speedtch 2-2:1.0: no stage 1 firmware found!

Can anybody tell me where I can get a workable firmware download that is compatible with Dapper, please?

Nyati
February 21st, 2006, 05:12 PM
Some more information.

I had to create the following sub directories in the /etc directory:

/hotplug
/usb

so that the script that I used in 5.10 would work.

The compilation is attached.

Keffin
February 21st, 2006, 07:02 PM
Dapper does not use the hotplug package any more, it does everything through the udev system, so the short answer is that the howto from breezy isn't meant to work in dapper.

The firmware you used in breezy will work fine in dapper too but you have to put it in /lib/firmware (rather than /usr/lib/hotplug/firmware). Unless you know some apt-foo that I don't then this means manually digging the files out of the speedtouch-firmware_0.3012k_all.deb package mentioned in the howto and putting them there (There should be 2 files with the extention .bin, mine are called speedtch-1.bin and speedtch-2.bin, though I got them by some method I forget before I even tried ubuntu).

As for the speedtch.txt hotplug script, I can't work out how to make that work with udev, but once everything else is set up you can just manually type "pppd call adslscript" to bring up the connection.

Also in dapper libatm1_2.4.1-17_i386.deb (or whatever version is current now) comes installed as standard, so you can skip installing this.

So the steps to make this work in dapper:

1) Copy the 2 .bin firmware files (either from speedtouch-firmware_0.3012k_all.deb or just from /usr/lib/hotplug/firmware/ in the breezy installation where you have it working) to /lib/firmware.

2) modprobe pppoatm

3) echo "pppoatm" >> /etc/modules

4) Do with /etc/ppp/peers/adslscript as you always did (or just copy it direct from your breezy install).

5) Do with /etc/ppp/chap-secrets and/or /etc/ppp/pap-secrets as you always did (or just copy them direct from your breezy install).

6) Unplug and replug your modem, wait until both lights are fixed on. You only have to do this when you are setting up, after that reboots will notice the modem as in breezy.

7) pppd call adslscript. All of the above steps are one-time-only, but you have to do this every time you reboot when the modem is ready (both lights on) as I can't get the speedtch.txt script to work with udev. You could have it run automatically when you log on, but just don't log on so fast that you beat the modem startup :S.

8) Wait a couple of seconds and you should be up.


Good luck.

Gallows
March 16th, 2006, 07:20 PM
Well, I upgraded to Dapper from Breezy and I too have had some troubles with the Speedtouch modem. For some reason the modem is unrecognised when the machine boots and I have to clong about a bit to get it working.

(Just in case you ask speedtch-1.bin and speedtch-2.bin are in /lib/firmware)

Perhaps I need to read up on udev but anyway this is what I have to do.

Open a terminal and sudo tail -f /var/log/messages
Open another terminal unregister the speedtch driver sudo remmod speedtch

Check the messages log for:
localhost kernel: usbcore: deregistering driver speedtch

Go back and load the driver again sudo modprobe speedtch
Check the messages log to make sure it's loaded and unload it again sudo remmod speedtch
Check the messages log again to make sure it went.

Reload it! sudo modprobe speedtch

OK check the log and look for:
localhost kernel: usbcore: registered new driver speedtch
localhost kernel: speedtch: no stage 1 firmware found

Unload / reload it again and check out the messages log

You should see:
speedtch 1-2:1.0: found stage 1 firmware speedtch-1.bin
speedtch 1-2:1.0: found stage 2 firmware speedtch-2.bin
usbcore: registered new driver
ADSL line is synchronising

Right, once synchronised call you pppd connection script with
pppd call adslscript

And wait for that internet goodness.

I understand that it's a bit of a rubbish solution but hey, Dappers in development and we're still learning udev right? You could script this in python or the like but I won't offend any proper coders with my limited scripting skills.

Keffin
March 18th, 2006, 04:36 PM
Well, I upgraded to Dapper from Breezy and I too have had some troubles with the Speedtouch modem......

How odd. Maybe this is to do with the fact that you updated from Breezy, I did a clean install of Dapper from one of the flights and am having no problem.

heri
March 22nd, 2006, 02:32 PM
O.K., I'm using Speedtouch 330 the silver model and my ISP uses PPoATM

I just follow step by step, copy and paste :) the clear and nice instructions in:

http://linux-usb.sourceforge.net/SpeedTouch/ubuntu/index.html

Except for the firmware installation part, which now has to be installed in this directory:
/lib/firmware/2.6.15-18-386/

so instead of:
sudo cp speedtch* /lib/hotplug/firmware

I did this:
sudo cp speedtch* /lib/firmware/2.6.15-18-386

Note:
I found this tips from this article:
http://www.noulakaz.net/weblog/2006/03/09/im-running-kubuntu-604-dapper-drake/

It works like a charm :) :) :)