LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Alcatel SpeedTouch - kernel driver (https://www.linuxquestions.org/questions/linux-hardware-18/alcatel-speedtouch-kernel-driver-272705/)

guldo 01-01-2005 06:33 PM

Alcatel SpeedTouch - kernel driver
 
Hello

I used to connect to the internet via my speedtouch modem, using the kernel driver; then my hard disk broke down suddenly, and I had to perform a brand new install.
I compiled the 2.6.9 kernel in order to have its source at hand, then I compiled the speedtouch stuff contained in the speedbundle archive (all but the kernel module).
Right now, I can't get it to work. I'm using the user driver, but it works only with a 2.4.* kernel.
I'd like to get the kernel driver to work with the 2.6.9, too, as it used to work a couple of months ago...

On boot, the speedtch kernel module is loaded successfully (even though I've realized that, soon after its loading, I get a "speedtch module already loaded" warning three times).
Then, both of the green lights of the modem stay still, without blinking.
If I try a pppd call speedtch, I get:
PPPoATM plugin_init
PPPoATM setdevname - remove unwanted options
PPPoATM setdevname_pppoatm - SUCCESS: 8.35
connect(8.35): Resource temporarily unavailable

The firmware is OK
The usbdevfs line in fstab is OK
So what?!? :confused:

Could you please help me solve this?

guldo 01-03-2005 08:44 AM

up

Drayco 01-14-2005 01:13 PM

Just wondering, did you ever solve this problem? I have the exact same problem at the moment

guldo 01-18-2005 12:16 PM

Not solved yet.
Now I'm just about to try and undergo the whole process (kernel install, speedbundle compiling) with several 2.6.x kernels.
I'd let you know if I ever succeed.

Andrew Benton 01-24-2005 05:52 AM

Well if the kernel module is loaded you can get modem_run to load the firmware with the command
modem_run -k -f /path/to/firmware
(the -k switch tells it to use the kernel driver)
You're getting the warning "speedtch module already loaded" three times because the script in /etc/hotplug/usb is trying to use the userspace driver. I don't know why hotplug tries to run it three times. I'd move that script out of the way to stop it running on boot then see if you can connect with
modem_run -k -f /path/to/firmware
pppd call script
run that as root. Change /path/to/firmware to the path to your firmware and change script to the name of the script in /etc/ppp/peers that has the options you want pppd to use when it negotiates with the peer (your ISP)

guldo 01-24-2005 03:53 PM

Thanks a lot for your reply, Andrew :)

Anyway, it didn't work.
I moved the hotplug script away, installed module-init-tools and rebooted, but the three times attempt to load speedtch is still there.
Then, (using 2.6.10) I tried to invoke modem_run, but the green lights of my modem just stood still.
No error messages, though.
Soon after that I got:
Code:

# pppd call speedtch
Plugin pppoatm.so loaded.
PPPoATM plugin_init
PPPoATM setdevname - remove unwanted options
PPPoATM setdevname_pppoatm - SUCCESS:8.35
connect(8.35): Resource temporarily unavailable
<4>usb 1-2: no stage 1 firmware found!connect(8.35): Resource temporarily unavailable

Any further hint?

bye :)

Andrew Benton 01-24-2005 04:29 PM

Cool, the 2.6.10 kernel can load the firmware itself without modem_run (hence the no stage 1 firmware found message). You need to prepare the firmware like this. The kernel firmware loading is much better because it happens in the background whilst the system is booting which save time.

So if it's not a hotplug script that's invoking modem_run what is? Is there a speedtouch bootscript in /etc/init.d ?

guldo 01-24-2005 06:02 PM

YEAH!!!
That's it!
I wasn't aware of this new feature of the kernel!

THANK YOU VEEEEEERYYYYYYY MUCH!

In case it's still not plain to see, my modem now works like a charm! :D

Thanks a LOT, Andrew :)

Those three attempts to load speedtch, three times, are still there, but it just doesn't matter anymore.
I can let you take a look at my list, since I cannot find anything wrong...
Code:

totale 256K
-rwxr-xr-x  1 root root 1,1K 2002-01-18 09:13 atd*
-rw-r--r--  1 root root 2,6K 2004-09-10 17:00 bootclean.sh
-rwxr-xr-x  1 root root 1,5K 2004-09-10 17:00 bootlogd*
-rwxr-xr-x  1 root root 1,4K 2004-09-10 17:00 bootmisc.sh*
-rwxr-xr-x  1 root root  935 2004-09-10 17:00 checkfs.sh*
-rwxr-xr-x  1 root root 7,0K 2004-09-10 17:00 checkroot.sh*
-rwxr--r--  1 root root  111 2005-01-25 00:57 connetti_ppp*
-rwxr-xr-x  1 root root 5,3K 2004-07-30 22:44 console-screen.sh*
-rwxr-xr-x  1 root root 1,1K 2004-07-28 16:12 cron*
-rwxr-xr-x  1 root root 1,4K 2004-12-06 15:10 cupsys*
-rwxr-xr-x  1 root root 1,9K 2005-01-14 17:31 dbus-1*
-rwxr-xr-x  1 root root  729 2004-11-18 03:46 dns-clean*
-rwxr-xr-x  1 root root 1,4K 2004-08-23 16:08 etc-setserial*
-rwxr-xr-x  1 root root 1,4K 2004-05-06 19:14 exim*
-rwxr--r--  1 root root  51 2005-01-20 20:34 firewall.sh*
-rwxr-xr-x  1 root root  811 2004-09-10 17:00 halt*
-rwxr-xr-x  1 root root 3,8K 2004-11-26 17:56 hdparm*
-rwxr-xr-x  1 root root  165 2001-02-26 13:44 hostname.sh*
-rwxr-xr-x  1 root root 1,4K 2004-06-29 19:28 hotplug*
-rwxr-xr-x  1 root root 3,5K 2004-12-25 16:17 hwclockfirst.sh*
-rwxr-xr-x  1 root root 3,6K 2004-12-03 06:31 hwclock.sh*
-rwxr-xr-x  1 root root 2,1K 2004-08-16 09:18 ifupdown*
-rwxr-xr-x  1 root root 1,1K 2004-08-16 09:12 ifupdown-clean*
-rwxr-xr-x  1 root root 1,8K 2001-11-18 23:29 inetd*
-rwxr-xr-x  1 root root 3,1K 2002-04-13 23:50 iptables*
-rwxr-xr-x  1 root root 2,9K 2004-07-12 23:08 keymap.sh*
-rwxr-xr-x  1 root root 1,4K 2004-11-07 13:13 klogd*
-rwxr-xr-x  1 root root  775 2004-07-05 08:46 lpd*
-rwxr-xr-x  1 root root  798 2004-08-18 20:43 makedev*
-rwxr-xr-x  1 root root 1,3K 2004-09-12 18:50 module-init-tools*
-rwxr-xr-x  1 root root  864 2004-10-19 19:26 modutils*
-rwxr-xr-x  1 root root 1,1K 2004-09-10 17:00 mountall.sh*
-rwxr-xr-x  1 root root 1,6K 2004-09-10 17:02 mountnfs.sh*
-rwxr-xr-x  1 root root 4,8K 2004-09-10 17:00 mountvirtfs*
-rwxr-xr-x  1 root root 2,6K 2004-02-13 12:35 networking*
-rwxr-xr-x  1 root root 2,0K 2003-10-29 22:26 nfs-common*
-rwxr-xr-x  1 root root 2,4K 2003-07-24 21:18 nfs-kernel-server*
-rwxr-xr-x  1 root root  659 2004-07-27 04:53 ntpdate*
-rwxr-xr-x  1 root root 1,9K 2000-01-06 05:19 nviboot*
-rwxr-xr-x  1 root root 1,2K 2004-11-10 11:13 portmap*
-rwxr-xr-x  1 root root 1,1K 2001-11-07 20:49 ppp*
-rwxr-xr-x  1 root root 1,1K 2004-11-17 03:18 procps.sh*
-rwxr-xr-x  1 root root 2,2K 2004-09-10 17:00 rc*
-rwxr-xr-x  1 root root 1,2K 2004-09-10 17:00 rcS*
-rw-r--r--  1 root root  846 2004-09-10 17:00 README
-rwxr-xr-x  1 root root  197 1998-06-21 21:48 reboot*
-rwxr-xr-x  1 root root  457 2004-09-10 17:00 rmnologin*
-rwxr-xr-x  1 root root  358 2004-09-10 17:00 sendsigs*
-rwxr-xr-x  1 root root 4,3K 2004-08-23 16:08 setserial*
-rwxr-xr-x  1 root root  591 2004-09-10 17:00 single*
-rwxr-xr-x  1 root root 2,1K 2004-09-10 17:00 skeleton*
-rwxr-xr-x  1 root root 1,9K 2004-11-28 16:33 ssh*
lrwxrwxrwx  1 root root    8 2005-01-23 17:58 stop-bootlogd -> bootlogd*
-rwxr-xr-x  1 root root 2,1K 2004-11-07 13:13 sysklogd*
-rwxr-xr-x  1 root root  509 2004-09-10 17:00 umountfs*
-rwxr-xr-x  1 root root 1,3K 2004-09-10 17:00 umountnfs.sh*
-rwxr-xr-x  1 root root 1,4K 2004-09-10 17:00 urandom*
-rwxr-xr-x  1 root root 1,3K 2004-07-12 05:51 vsftpd*
-rwxr-xr-x  1 root root 3,2K 2004-12-09 15:53 xdm*
-rwxr-xr-x  1 root root 1,2K 2004-12-09 15:53 xfree86-common*
-rwxr-xr-x  1 root root 3,1K 2004-12-15 18:39 xfs*

where "connetti_ppp" now calls "pppd call speedtch", while it used to call "speedtouch-start";
"firewall.sh" is my iptables script.
Both of them are linked as S99 in rc2.d

Have I already said I have to thank you very much?!? :D

Andrew Benton 01-24-2005 07:16 PM

Thankyou. I do like a happy ending.
Might I suggest

sudo rm -f /usr/sbin/modem_run


All times are GMT -5. The time now is 08:24 AM.