Re: 2.6.10 and speedtouch usb

From: Andrew Benton
Date: Mon Dec 27 2004 - 10:51:06 EST


Serge Tchesmeli wrote:
Le Lundi 27 Décembre 2004 14:25, Andrew Benton a écrit :

Serge Tchesmeli wrote:

Hi,

i have try the new kernel 2.6.10, compil with exactly the same option
from my 2.6.9 (i have copied the .config) but i notice a high load on my
machine, and i see that was syslogd.
So, i look at my log and see:

Dec 26 19:40:44 gateway last message repeated 137 times
Dec 26 19:40:46 gateway kernel: usb 2-1: events/0 timed out on ep0in
Dec 26 19:40:46 gateway kernel: SpeedTouch: Error -110 fetching device
status Dec 26 19:40:46 gateway kernel: usb 2-1: modem_run timed out on
ep0in Dec 26 19:40:46 gateway kernel: usb 2-1: usbfs: USBDEVFS_CONTROL
failed cmd modem_run rqt 192 rq 18 len 8 ret -110

Are you using the kernel or userspace driver?


I'm using the kernel speedtouch driver.

Well it looks like modem_run is giving you problems. If you want you could do without it and let the kernel load the firmware itself. To try this you will need to prepare the firmware by splitting it into two parts To do that you'll need a copy of the speedtouch-1.3.1 driver
http://prdownloads.sourceforge.net/speedtouch/speedtouch-1.3.1.tar.gz?download
untar it and cd into the speedtouch-1.3.1/src folder and then enter

gcc -o firmware firmware.c -DSTANDALONE_EXTRACTER

That will compile a binary called firmware. You can use that to split the modems firmware into two parts. If (for example) the firmware is called mgmt.o, copy it into the speedtouch-1.3.1/src folder and then enter

./firmware mgmt.o
mv boot.bin speedtch-1
mv firmware.bin speedtch-2

That will create two files, boot.bin and firmware.bin. Rename boot.bin -> speedtch-1 and firmware.bin -> speedtch-2. Then you need to copy these two speedtch files into hotplugs firmware folder. You can find this by reading /etc/hotplug/firmware.agent

cat /etc/hotplug/firmware.agent | grep FIRMWARE_DIR=

Make sure you enabled hotplug firmware loading in your kernel config
CONFIG_FW_LOADER=y
and check that hotplug has this line in /etc/hotplug/usb.usermap

speedtouch 0x0003 0x06b9 0x4061 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00 0x00 0x00000000
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/