LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-20-2004, 01:34 PM   #1
ttilt
Member
 
Registered: Dec 2003
Location: Campinas, Brasil
Distribution: slackware 10
Posts: 150

Rep: Reputation: 15
speedtouch modem initialization speed-up


i use that speedtouch 330 usb from Thomson on slack10. w/ the open drivers from SourceForge (http://sourceforge.net/projects/speedtouch/)

But whenever i issue the speedtouch-start command which initializes the modem (synchronizing it etc) it always takes a long time for the light to blink, to connect etc...

I know that this is a necessary process every time the computer is initialized but I noticed that in windows this happens while the computer is still starting and it doesn't block the computer, in other words, the rest of the initialization can still continue while the modem is busy blinking its lights.

So i was wondering if there's a way to speed up this initialization process by maybe issuing the command w/ a & at the end or something. Or using some other method to make it run on the background as one of the first things during initialization.

Does anyone know how if this is possible?

Thanks a lot!
 
Old 12-20-2004, 03:35 PM   #2
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Yes it's possible if you use the kernel space driver. Duncan Sands and David Woodhouse have improved the code in the 2.6.10 kernel so the kernel driver can now load the firmware without the help of modem_run from the package you mention. You need to prepare the firmware. Untar the speedtouch tarball you linked to, cd into speedtouch-1.3.1/src and then issue the command

gcc -o firmware firmware.c -DSTANDALONE_EXTRACTER

that will create a binary file called firmware. You can then use that to split whatever copy of the firmware you use into two parts. Copy it somewhere in a folder with the firmware, for example, mgmt.o then issue the command

./firmware mgmt.o

That will split mgmt.o into boot.bin and firmware.bin. You need to rename boot.bin speedtch-1.bin and rename firmware.bin speedtch-2.bin . Then you need to copy them to the folder that hotplug looks for firmware. This is defined in /etc/hotplug/firmware.agent . On my slackware install it's

# directory of the firmware files
FIRMWARE_DIR=/usr/lib/hotplug/firmware

but on lfs it's

# directory of the firmware files
FIRMWARE_DIR=/lib/firmware

Copy those two binary files in there. Compile a 2.6.10-rc3 kernel and make sure you enable hotplug firmware loading,
CONFIG_FW_LOADER=y
Then it should load the firmware on boot (works for me). Then you just need to run pppd to connect to your ISP.
The big difference is that hotplug hands the firmware to the kernel but it doesn't keep the focus (or whatever it's called). The boot process Keeps going and by the time gnome has loaded and drawn the desktop I'm online.
I've just done a test against the stopwatch and it was a dead heat. From the grub screen to my homepage rendered in Firefox took 45 seconds in both Windows XP and Linux From Scratch.

Last edited by Andrew Benton; 12-20-2004 at 03:39 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
modem 330 speedtouch fivesix Linux - Hardware 5 02-11-2005 03:01 PM
Speedtouch modem Nawas111 Linux - Hardware 1 11-21-2004 06:17 PM
problems with modem initialization process jamaso Linux - Hardware 2 05-17-2004 03:15 PM
Slow initialization with my external modem sinoue Linux - Hardware 5 03-11-2004 04:32 AM
Your modem is not responding to initialization lel800 Mandriva 14 12-04-2003 04:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration