[speedtouch] Re: Problems after following Debian Sarge HOWTO
Gilles Espinasse a écrit : > Wich version of modem_run are you using? > v1.3 /v1.3.1 try to be smart (remember if the firmware was loaded or not but > this fail in some cases). When this happen, it is bad as the only way I know > to load the firmware really inside the modem again is to reboot. Right. modem_run tries to be smart, and sometimes this does not work. I think modem_run should display at least one message on stderr so that the user knows what happens. Benoit PAPILLAULT Liste de diffusion modem ALCATEL SpeedTouch USB Pour se désinscrire : mailto:[EMAIL PROTECTED]
[speedtouch] Re: Problems after following Debian Sarge HOWTO
> Look in /usr/share/doc/speedtouch/ > > You should only need to edit 2 files > > /etc/default/speedtouch > -- > #!/bin/sh -e > > # add -k when using the kernel mode driver > MODEM_RUN_OPTIONS="-s" > # modem firmware > FIRMWARE_FILE="/usr/share/speedtouch/mgmt.o" > # a PPP peer to call > PPPD_PEER="speedtouch" > > NET_IF=ppp0 > > modprobe -k n_hdlc > modprobe -k ppp_generic > modprobe -k ppp_synctty > modprobe -k ppp_deflate > modprobe -k bsd_comp > modprobe -k pppoatm > -- > > the comment above MODEM_RUN_OPTIONS is wrong -k is added automatically (-k is > for when you are using the kernel module) > i added all the modprobes just to be sure > > /etc/ppp/peers/speedtouch > > the ppp file must have the following at the end. the 0.38 is the VP.VC pair > which will be different for you > > plugin /usr/lib/pppd/2.4.2/pppoatm.so > 0.38 Hiya Just wanted to say thanks for all the tips -- I ended up reinstalling Sarge to start fresh (I think I'd gotten so mixed up between all the various instructions that I'd really messed stuff up) and then following your instructions managed to get it working (I think!) Meri -- "Because it's not *always* the quiet ones" http://blog.meriwilliams.com/ Liste de diffusion modem ALCATEL SpeedTouch USB Pour se désinscrire : mailto:[EMAIL PROTECTED]
[speedtouch] Re: Problems after following Debian Sarge HOWTO
> PPS: David Woodhouse and I have implemented firmware loading in > the speedtouch > module, so there will soon be no need to use modem_run with the > kernel module. Hello. I have same questions about modem_run and load firmware in kernel module. I use other modem, Zyxel 630, and other project, http://sourceforge.net/projects/zyxel630-11/ . ¿It is the place? I dont know too much about all this, I work whit tray and error To insert amload, like modem_run, inside kernel I try to look how modem_run work. But :^S . ¿modem_run stay resident in memory after load firmware? Amload load firmware, sync line and exit. ¿SpeedTouch auto re-sync line or modem_run do it? Amload have a char inifirm[] = {0x04, 0xa0, 0x00, 0x47, 0x02, 0x00, 0x00, 0xea,0x01, 0x00, 0x00, 0xea, 0x00, 0x00, 0x00, 0xea,. I suppose it have to be take out source before move to kernel module, isnt it? Sorry for my English . Aurelio Arroyo. Liste de diffusion modem ALCATEL SpeedTouch USB Pour se désinscrire : mailto:[EMAIL PROTECTED]
[speedtouch] Re: Problems after following Debian Sarge HOWTO
Hi Gilles, > Beware that implementing the firmware loading in the kernel module may > trigger some legal problem. the kernel gets the firmware from a file living on some disk-drive and uploads it to the modem. The firmware is **NOT** in the kernel source. So hopefully it is OK. Ciao, Duncan. Liste de diffusion modem ALCATEL SpeedTouch USB Pour se désinscrire : mailto:[EMAIL PROTECTED]
[speedtouch] Re: Problems after following Debian Sarge HOWTO
- Original Message - From: "Duncan Sands" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, October 11, 2004 11:03 AM Subject: [speedtouch] Re: Problems after following Debian Sarge HOWTO > > > Wich version of modem_run are you using? > > v1.3 /v1.3.1 try to be smart (remember if the firmware was loaded or not but > > this fail in some cases). When this happen, it is bad as the only way I know > > to load the firmware really inside the modem again is to reboot. > > To see if the semaphore is there "but shouldn't be", you can do > > cat /proc/sysvipc/sem > > If there is an entry, you can delete it using > > ipcrm sem id > > where id is the id from /proc/sysvipc/sem. > > Ciao, > > Duncan. > > PS: Gilles, the IPC semaphores often go wrong for me - it seems to be racy. > I've given up on it and gone back to an earlier version of modem_run. > PPS: David Woodhouse and I have implemented firmware loading in the speedtouch > module, so there will soon be no need to use modem_run with the kernel module. > I am still with v1.2 for the same reason. Thank for the semaphore help. I had sometime a problem with eci-usb too wich use the same sort of semaphore for other purpose. Beware that implementing the firmware loading in the kernel module may trigger some legal problem. We have still some legal question with eagle-usb driver .The module is GPL but some files status used inside the modem : firmware (internal firmware => bootloader in speedtouch) and dspcode is not clear. The firmware has a GPL header but is a binary with no source and is actually linked inside the module (it may be made external with a small change). The dspcode has no header, is a binary with no source and should be the equivalent of what is named firmware in speedtouch langage. A question concerning this subject was asked at debian-legal there http://lists.debian.org/debian-legal/2004/10/msg00088.html Liste de diffusion modem ALCATEL SpeedTouch USB Pour se désinscrire : mailto:[EMAIL PROTECTED]
[speedtouch] Re: Problems after following Debian Sarge HOWTO
> Wich version of modem_run are you using? > v1.3 /v1.3.1 try to be smart (remember if the firmware was loaded or not but > this fail in some cases). When this happen, it is bad as the only way I know > to load the firmware really inside the modem again is to reboot. To see if the semaphore is there "but shouldn't be", you can do cat /proc/sysvipc/sem If there is an entry, you can delete it using ipcrm sem id where id is the id from /proc/sysvipc/sem. Ciao, Duncan. PS: Gilles, the IPC semaphores often go wrong for me - it seems to be racy. I've given up on it and gone back to an earlier version of modem_run. PPS: David Woodhouse and I have implemented firmware loading in the speedtouch module, so there will soon be no need to use modem_run with the kernel module. Liste de diffusion modem ALCATEL SpeedTouch USB Pour se désinscrire : mailto:[EMAIL PROTECTED]
[speedtouch] Re: Problems after following Debian Sarge HOWTO
- Original Message - From: "Meri Williams" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, October 11, 2004 11:00 AM Subject: [speedtouch] Re: Problems after following Debian Sarge HOWTO > > > Wich version of modem_run are you using? > > v1.3 /v1.3.1 try to be smart (remember if the firmware was loaded or not but > > this fail in some cases). When this happen, it is bad as the only way I know > > to load the firmware really inside the modem again is to reboot. > > I'm running 1.3.1 -- but it still doesn't work even if I reboot. I am > unplugging from the WinXP box (which works and where I have net) and > straight into the Deb box sometimes -- is there a way to force reset > the modem or something? > No and this is the problem, I don't know a way to reset the semaphore. If you reset the modem (modprobe -r (your_usb_controller), modem_run don't know the firmware is not there and refuse to load it again. Maybe you don't see anything because modem_run is started by hotplug before you try by hand. If I remember well, modem_run display an explicit message stating that the firmware is already loaded. You may try with modem_run v1.2 but I don't know how the whole package will install after v1.3.1 was installed. v1.2 scripts does not support hot-plug. Liste de diffusion modem ALCATEL SpeedTouch USB Pour se désinscrire : mailto:[EMAIL PROTECTED]
[speedtouch] Re: Problems after following Debian Sarge HOWTO
On Monday 11 October 2004 09:38, Meri Williams wrote: > Hiya > > > you probably shouldn't be following that HOWTO: the debian package > > maintainer tells me that better instructions come with the package. > > OK -- any idea where I'd find them? I tried man speedtouch, etc, but > couldn't find anything and I think I'm being stupid but can't work it > out :-S > Look in /usr/share/doc/speedtouch/ You should only need to edit 2 files /etc/default/speedtouch -- #!/bin/sh -e # add -k when using the kernel mode driver MODEM_RUN_OPTIONS="-s" # modem firmware FIRMWARE_FILE="/usr/share/speedtouch/mgmt.o" # a PPP peer to call PPPD_PEER="speedtouch" NET_IF=ppp0 modprobe -k n_hdlc modprobe -k ppp_generic modprobe -k ppp_synctty modprobe -k ppp_deflate modprobe -k bsd_comp modprobe -k pppoatm -- the comment above MODEM_RUN_OPTIONS is wrong -k is added automatically (-k is for when you are using the kernel module) i added all the modprobes just to be sure /etc/ppp/peers/speedtouch the ppp file must have the following at the end. the 0.38 is the VP.VC pair which will be different for you plugin /usr/lib/pppd/2.4.2/pppoatm.so 0.38 Regards Nick Liste de diffusion modem ALCATEL SpeedTouch USB Pour se désinscrire : mailto:[EMAIL PROTECTED]
[speedtouch] Re: Problems after following Debian Sarge HOWTO
> Wich version of modem_run are you using? > v1.3 /v1.3.1 try to be smart (remember if the firmware was loaded or not but > this fail in some cases). When this happen, it is bad as the only way I know > to load the firmware really inside the modem again is to reboot. I'm running 1.3.1 -- but it still doesn't work even if I reboot. I am unplugging from the WinXP box (which works and where I have net) and straight into the Deb box sometimes -- is there a way to force reset the modem or something? Thanks Meri -- "Because it's not *always* the quiet ones" http://blog.meriwilliams.com/ Liste de diffusion modem ALCATEL SpeedTouch USB Pour se désinscrire : mailto:[EMAIL PROTECTED]
[speedtouch] Re: Problems after following Debian Sarge HOWTO
- Original Message - From: "Meri Williams" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, October 11, 2004 10:38 AM Subject: [speedtouch] Re: Problems after following Debian Sarge HOWTO > > Hiya > > > you probably shouldn't be following that HOWTO: the debian package > > maintainer tells me that better instructions come with the package. > > OK -- any idea where I'd find them? I tried man speedtouch, etc, but > couldn't find anything and I think I'm being stupid but can't work it > out :-S > > > This means that the firmware was not loaded. > > I tried manually loading the firmware using: > modem_run -k -f /correctpath/firmware.bin and > modem_run -f /correctpath/firmware.bin > (I'm a bit confused about whether to use the -k option or not at the > moment, if I'm honest) > > Neither of these had any effect. When I plug the modem in the lights > immediately both go green and neither of the modem_run commands > produces any change in this. The driver appears to be loaded and the > device is recognized if I type lsusb. > > > You may need a usermap. Put the following in /etc/hotplug/usb/speedtch.usermap > > speedtch 0x0003 0x06b9 0x4061 0x 0x 0x00 0x00 0x00 0x00 0x00 0x00 > > 0x > > Had a look and that was already in > /etc/hotplus/usb/speedtouch.usermap. Do I need to cp it across into > speedtch.usermap (which currently doesn't exist)? > > > It's more likely that the hotplug script can't find modem_run, or that modem_run > > can't find the firmware. > > I think I covered these eventualities by manually trying modem_run and > even with -v 2 flag set I'm getting no errors, so a bit confused. Any > ideas? > Wich version of modem_run are you using? v1.3 /v1.3.1 try to be smart (remember if the firmware was loaded or not but this fail in some cases). When this happen, it is bad as the only way I know to load the firmware really inside the modem again is to reboot. Liste de diffusion modem ALCATEL SpeedTouch USB Pour se désinscrire : mailto:[EMAIL PROTECTED]
[speedtouch] Re: Problems after following Debian Sarge HOWTO
Hiya > you probably shouldn't be following that HOWTO: the debian package > maintainer tells me that better instructions come with the package. OK -- any idea where I'd find them? I tried man speedtouch, etc, but couldn't find anything and I think I'm being stupid but can't work it out :-S > This means that the firmware was not loaded. I tried manually loading the firmware using: modem_run -k -f /correctpath/firmware.bin and modem_run -f /correctpath/firmware.bin (I'm a bit confused about whether to use the -k option or not at the moment, if I'm honest) Neither of these had any effect. When I plug the modem in the lights immediately both go green and neither of the modem_run commands produces any change in this. The driver appears to be loaded and the device is recognized if I type lsusb. > You may need a usermap. Put the following in /etc/hotplug/usb/speedtch.usermap > speedtch 0x0003 0x06b9 0x4061 0x 0x 0x00 0x00 0x00 0x00 0x00 0x00 > 0x Had a look and that was already in /etc/hotplus/usb/speedtouch.usermap. Do I need to cp it across into speedtch.usermap (which currently doesn't exist)? > It's more likely that the hotplug script can't find modem_run, or that modem_run > can't find the firmware. I think I covered these eventualities by manually trying modem_run and even with -v 2 flag set I'm getting no errors, so a bit confused. Any ideas? Thanks so much for taking the time to help me :-) Meri -- "Because it's not *always* the quiet ones" http://blog.meriwilliams.com/ Liste de diffusion modem ALCATEL SpeedTouch USB Pour se désinscrire : mailto:[EMAIL PROTECTED]
[speedtouch] Re: Problems after following Debian Sarge HOWTO
Hi Meri, > I'm trying to get a green stingray Alcatel speedtouch ADSL modem set > up on my Debian Sarge box (kernel: 2.4.24, packages latest from > testing) and have following the instructions in the Debian Sarge HOWTO > (http://linux-usb.sourceforge.net/SpeedTouch/docs/sargehowto.html) you probably shouldn't be following that HOWTO: the debian package maintainer tells me that better instructions come with the package. > connect(0.38): Resource temporarily unavailable This means that the firmware was not loaded. > I'm assuming this means that either the firmware isn't being loaded or > (more likely) the script to load the firmware (from the HOWTO) isn't > actually executed. > > Can anyone help me diagnose further/fix this please? You may need a usermap. Put the following in /etc/hotplug/usb/speedtch.usermap speedtch 0x0003 0x06b9 0x4061 0x 0x 0x00 0x00 0x00 0x00 0x00 0x00 0x It's more likely that the hotplug script can't find modem_run, or that modem_run can't find the firmware. All the best, Duncan. Liste de diffusion modem ALCATEL SpeedTouch USB Pour se désinscrire : mailto:[EMAIL PROTECTED]