Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Speedtouch 330 ADSL USB Modem [Alternative] HOWTO
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9  Next  
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Thu Feb 02, 2006 4:02 am    Post subject: Reply with quote

idodesuke wrote:
http://www.linux-usb.org/SpeedTouch/firmware/index.html

That page is not appropriate for Gentoo. For instance, it would be a very bad idea to install udev outside of portage. Gentoo has /sbin/firmware_helper installed by udev-084.

The file to add custom udev rules to is /etc/udev/rules.d/10-local.rules, but I've never heard of this file being required for the Speedtouch modems.
Back to top
View user's profile Send private message
idodesuke
Apprentice
Apprentice


Joined: 19 Dec 2005
Posts: 244
Location: France

PostPosted: Thu Feb 02, 2006 1:10 pm    Post subject: Reply with quote

Yes! but if I don't add this line in my /etc/udev/rules/50-udev.rules my firmware don't load (ACTION=="add", SUBSYSTEM=="firmware", RUN+="/lib/udev/firmware_helper")

I use udev-079-r1 (on my x86)
Back to top
View user's profile Send private message
idodesuke
Apprentice
Apprentice


Joined: 19 Dec 2005
Posts: 244
Location: France

PostPosted: Thu Feb 02, 2006 1:30 pm    Post subject: Reply with quote

Portage install firmware_helper in /sbin

Quote:
(chroot) zalem / # equery files udev
[ Searching for packages matching udev... ]
* Contents of sys-fs/udev-079-r1:
/etc
/etc/dev.d
/etc/dev.d/default
/etc/dev.d/net
/etc/dev.d/net/hotplug.dev
/etc/hotplug.d
/etc/hotplug.d/default
/etc/hotplug.d/default/10-udev.hotplug -> ../../../sbin/udevsend
/etc/scsi_id.config
/etc/udev
/etc/udev/rules.d
/etc/udev/rules.d/05-udev-early.rules
/etc/udev/rules.d/50-udev.rules
/etc/udev/udev.conf
/lib
/lib/rcscripts
/lib/rcscripts/addons
/lib/rcscripts/addons/udev-start.sh
/lib/rcscripts/addons/udev-stop.sh
/lib/udev
/lib/udev/devices
/lib/udev/raid-devfs.sh
/sbin
/sbin/ata_id
/sbin/cdrom_id
/sbin/create_floppy_devices
/sbin/firmware_helper


so I use:
ACTION=="add", SUBSYSTEM=="firmware", RUN+="/sbin/firmware_helper"
Back to top
View user's profile Send private message
Blutch
n00b
n00b


Joined: 03 Nov 2004
Posts: 53
Location: Belgium

PostPosted: Sat Feb 04, 2006 3:12 pm    Post subject: Reply with quote

I'm trying to set up my Alcatel Speedtouch USB for ISDN modem. Its revision is 0.01, then 0.

My kernel is 2.6.15-gentoo-r1. I have compiled in it all options you noticed.

When i plug my modem in, here is what i get:
Code:
Feb  4 15:00:29 [kernel] usb 2-2: new full speed USB device using uhci_hcd and address 10
Feb  4 15:00:30 [kernel] usb 2-2: reset full speed USB device using uhci_hcd and address 10
Feb  4 15:01:00 [kernel] speedtch 2-2:1.0: no stage 1 firmware found!


However, here is my /lib/firmware directory:
Code:
-rw-------  1 root root    991 Feb  4 12:22 speedtch-1.bin
-rw-------  1 root root 762650 Feb  4 12:22 speedtch-2.bin


Unplugging & replugging my modem won't change my messages, the firmware are never found.


Naturally, if i try to run /usr/sbin/pppd call adsl, i get the following:
Code:
Feb  4 15:01:29 [pppd] Plugin pppoatm.so loaded.
Feb  4 15:01:29 [pppd] pppd 2.4.2 started by root, uid 0
Feb  4 15:01:29 [pppd] connect(1.32): No such device
Feb  4 15:01:29 [pppd] Failed to open 1.32: No such device



By the way, i live in Hungary, with an "unknown" ISP (Hungarotel), i tried to use the VCI/VPI from Matav (the only informations i could get about a Hungarian ISP). But i don't think it has something to bother with the firmware not loading...

Any idea ?
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Sat Feb 04, 2006 3:49 pm    Post subject: Reply with quote

Blutch wrote:
I'm trying to set up my Alcatel Speedtouch USB for ISDN modem.

ISDN is not ADSL. You have an entirely different modem. What is its model number?
Back to top
View user's profile Send private message
Blutch
n00b
n00b


Joined: 03 Nov 2004
Posts: 53
Location: Belgium

PostPosted: Sat Feb 04, 2006 4:11 pm    Post subject: Reply with quote

It's ADSL over an ISDN line. I'm not an expert about communication technologies, but following this page, it seems to be ADSL, even if it is ISDN. My modem is the well-known green-blue fish like shown on the picture, but on it it's written "Alctatel Speedtouch USB ISDN".

My modems's serial number is CP0304KZ1MU.
Back to top
View user's profile Send private message
Blutch
n00b
n00b


Joined: 03 Nov 2004
Posts: 53
Location: Belgium

PostPosted: Tue Feb 07, 2006 10:01 am    Post subject: Reply with quote

Anybody ? :cry:
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Tue Feb 07, 2006 10:16 am    Post subject: Reply with quote

You could try contacting the developer of the kernel driver. There's practically no mention of ISDN on the mailing list archive.
Back to top
View user's profile Send private message
Blutch
n00b
n00b


Joined: 03 Nov 2004
Posts: 53
Location: Belgium

PostPosted: Wed Feb 08, 2006 10:02 am    Post subject: Reply with quote

Thanks, i'll give it a try.
Back to top
View user's profile Send private message
herchu
n00b
n00b


Joined: 12 Feb 2006
Posts: 10

PostPosted: Sun Feb 12, 2006 7:25 pm    Post subject: Reply with quote

Hi,
I am trying to make my speedtouch 330, rev 4, work. I have followed steps from HOWTO Speedtouch modem / Gentoo Linux Wiki, and I am stuck here:
Quote:
Feb 12 15:54:49 tita usb 3-1: new full speed USB device using uhci_hcd and address 3
Feb 12 15:54:49 tita modem_run[10555]: modem_run version 1.3.1 started by root uid 0
Feb 12 15:54:49 tita rc-scripts: Can't load the microcode !!
Feb 12 15:54:49 tita rc-scripts: Please detach and attach again your modem to the USB port to unload the microcode.
Feb 12 15:54:49 tita rc-scripts: Then run '/etc/init.d/speedtouch start'
Feb 12 15:54:49 tita rc-scripts: Speedtouch firmward load failed
Feb 12 15:54:50 tita usb 3-1: found stage 1 firmware speedtch-1.bin
Feb 12 15:54:50 tita usb 3-1: found stage 2 firmware speedtch-2.bin
Feb 12 15:54:55 tita ADSL line is synchronising
Feb 12 15:55:30 tita ADSL line is up (320 Kib/s down | 128 Kib/s up)

For some reason the microcode does not get loaded.
If, at any point, I run
Code:
modem_run -v 2 -f mgmt.o

(where mgmt.o was created following HOWTO as mentioned, and points to the appropriate file)
I get no ouput except a line in /var/log/messages:
Quote:
Feb 12 15:58:33 tita modem_run[10791]: modem_run version 1.3.1 started by root uid 0

, and no process is created.
Btw, no pppd is ever launched, though I think that's ok as the modem did not finish its setup.
Any idea? Thanks in advance!
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Mon Feb 13, 2006 12:14 am    Post subject: Reply with quote

herchu wrote:
For some reason the microcode does not get loaded.

I had the same inexplicable problem on one PC, with the old modem_run. Use the new method, and post some feedback on it on bugzilla.
Back to top
View user's profile Send private message
herchu
n00b
n00b


Joined: 12 Feb 2006
Posts: 10

PostPosted: Wed Feb 22, 2006 2:39 am    Post subject: Reply with quote

Thanks, sorry for the delay in coming back.
I removed most configuration following the "old" method and followed that https://bugs.gentoo.org/show_bug.cgi?id=110665... Had to download several new packages, booting to windows and back many times. Now everything seems to work, the ebuild installs smoothly, but when plugging the modem in I get:
Quote:
Feb 21 23:08:37 tita usb 3-1: new full speed USB device using uhci_hcd and address 4
Feb 21 23:08:37 tita usb 3-1: device descriptor read/64, error -71
Feb 21 23:08:37 tita usb 3-1: found stage 1 firmware speedtch-1.bin.4.00
Feb 21 23:08:37 tita usb 3-1: found stage 2 firmware speedtch-2.bin.4.00

Any idea about that "error -71"?
By the way I am not sure if those firmwares are getting loaded or not; those are the last lines in /var/log/messages.
Thanks!
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Wed Feb 22, 2006 3:07 am    Post subject: Reply with quote

herchu wrote:
Any idea about that "error -71"?

It sounds like you should be using pppoe. I only have pppoa modems, so can't set up the ebuild properly for pppoe :(

Is that all that the log file shows, even with the debug option?
Back to top
View user's profile Send private message
herchu
n00b
n00b


Joined: 12 Feb 2006
Posts: 10

PostPosted: Wed Feb 22, 2006 12:26 pm    Post subject: Reply with quote

Paul,

Yes, I think my provider uses pppoe. So you mean this ebuild will not work, or that I have to set an option which you can't test? (In that case, please let me know which option... I did not find anything in the ebuild itself). Or I should use the ebuild plus the pppoe-specific changes in linux-usb docs?

I will try the debug option today when I get home.

As a side note, I realize now that I am not using last ebuild version posted in bugzilla, but the previous one... The newest requires some versions (like baselayout-1.12.0_pre15-r1) which I don't have... and any update is a pain as I have to boot windows, wget the last requested fail, try again, see what file is required next, and so on... Do you think this (old) version should work?

Thanks for your replies.
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Wed Feb 22, 2006 12:48 pm    Post subject: Reply with quote

The ebuild does not support pppoe, and will not, until someone with the (relatively rare, compared to pppoa) appropriate hardware and ebuild skills improves it. I do not have the appropriate hardware, so cannot test pppoe.

You'll need to follow the guide for pppoe - the ebuild won't help you further than populating /lib/firmware (regardless that you initially tried an older version of the ebuild). You can emerge br2684ctl, rather than compile it manually.

If you're willing and able to document the steps you go through, and eager to see and test pppoe support in the ebuild, then I can make the changes to the ebuild for you to test...
Back to top
View user's profile Send private message
herchu
n00b
n00b


Joined: 12 Feb 2006
Posts: 10

PostPosted: Sun Feb 26, 2006 10:15 pm    Post subject: Reply with quote

I am willing to document, but still could not make it work...
Following gentoo speedtouch howto, I recompiled kernel adding br2684 and PPP Over Ethernet support (I don't remember the exact flag names).

When modprobe uhci-hcd and ehci-hcd, udev (or htoplug) invokes firmware_loader and uploads firmware onto the modem. I also compiled br2684ctl utility, which runs only if modprobe br2684 is run first (a "could not create nas0" msg is obtained if br2684 is not yet loaded). When I try to run this br2684ctl with command line: br2684ctl -b -c 0 -a 8.35, I get the following messages:
Quote:
Interface "nas0" created successfully
Communicating over ATM 0.8.35, encapsulation: LLC
Fatal: failed to connect on socket

(There is a approx. 1 second delay between 2nd and 3rd line)
I don't know how to solve the last problem, nor what it means.

If I still try to continue with instructions in the HOWTO, the line ifconfig nas0 192.168.0.1 netmask 255.255.255.0 runs ok (and creates lists nas0 as ifconfig output from then on), but the command pppd call speedtch totally freezes my computer -- no CtrlAltDel, nothing recovers from it but the Reset button.

The problem probably comes back from br2684ctl error, but don't know what it means, or what it should do if working properly. Anybody had this problem before? any idea?
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Sun Feb 26, 2006 11:07 pm    Post subject: Reply with quote

herchu wrote:
I also compiled br2684ctl utility, which runs only if modprobe br2684 is run first (a "could not create nas0" msg is obtained if br2684 is not yet loaded).

That's to be expected. Use /etc/modules.autoload.d/kernel-2.6, or compile the kernel modules into the kernel.
Back to top
View user's profile Send private message
herchu
n00b
n00b


Joined: 12 Feb 2006
Posts: 10

PostPosted: Mon Feb 27, 2006 1:58 am    Post subject: Reply with quote

Yes, I should load br2684ctl on startup by means of modules.autoload.d, but would that fix the problem I am getting about "failed to connect to socket"? AFAIK, that will help me just to load the module on boot sequence... I did not want to add them until I know they work (and do not crash, as if I include the pppd call as above)
Back to top
View user's profile Send private message
kwenspc
Advocate
Advocate


Joined: 21 Sep 2003
Posts: 4954

PostPosted: Sun Mar 12, 2006 9:45 pm    Post subject: Reply with quote

the two .eni files aren't possible to catch anymore.

I have downloaded Kqd6_3.012 which has the two files in it. But how do I get thoses files? :(
...

Where are .eni files or how do I get those files from Kqd6_3.012 ?
_________________
membre officieux du SAV Ati GEntoo
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Sun Mar 12, 2006 9:58 pm    Post subject: Reply with quote

kwenspc wrote:
Where are .eni files or how do I get those files from Kqd6_3.012 ?

They are just the .bin files that the ebuild creates in /lib/firmware/. Install the ebuild.
Back to top
View user's profile Send private message
peka
l33t
l33t


Joined: 16 Mar 2005
Posts: 773
Location: Płońsk, Poland

PostPosted: Fri Mar 17, 2006 7:29 am    Post subject: Reply with quote

kwenspc wrote:
the two .eni files aren't possible to catch anymore.

I have downloaded Kqd6_3.012 which has the two files in it. But how do I get thoses files? :(
...

Where are .eni files or how do I get those files from Kqd6_3.012 ?


... or use firmware extractor

P.S. I will update HOWTO in a spare time... :)
_________________
p3k4

Seize the time, Meribor. Live now; make now always the most precious time. Now will never come again...
Jean-Luc Picard, Star Trek TNG - The Inner Light
Back to top
View user's profile Send private message
cillianderoiste
n00b
n00b


Joined: 19 Apr 2005
Posts: 13
Location: London

PostPosted: Sat Mar 18, 2006 1:51 pm    Post subject: Reply with quote

Thanks!
I already had the speedtouch modem working according to the wiki but this was the trick that finally got firestarter to start on boot after the pppd connected

I also changed a couple of lines of the script to make it more generic:
I changed
start-stop-daemon --start\
--exec $(which pppd) call ${Peer} > /dev/null
to
start-stop-daemon --start --exec $(which pppd) call ${Peer} > /dev/null
(adding a space)

and
pppd call neostrada
to
pppd call ${Peer}

I called the adsl startup script adsl and added
provide myadsl
(not adsl) to the depends() section of it and then put
after myadsl
depend myadsl
in the depends() section of the firestarter init script
because without this firestarter was still trying to start before the adsl connection had been made.

Code:
#!/sbin/runscript
# $Header: $

depend() {
need net
after modules
provide myadsl
}

start() {
einfo "Starting Internet connection..."

ebegin " Checking interface..."
CheckIFace
eend

ebegin " Checking line status..."
CheckLine
eend

ebegin " Bringing ${IFLink} up"
if [ -x "$(which pppd)" ]
then
if [ -f "/etc/ppp/peers/${Peer}" ]
then
einfo "  Conncting to ${Peer}..."
start-stop-daemon --start --exec $(which pppd) call ${Peer} > /dev/null
else
eend "  ${Peer} not found in /etc/ppp/peers"
fi
else
eend "  pppd daemon not found"
fi
eend
}

stop() {
einfo "Stopping Internet connection..."

ebegin " Bringing ${IFLink} down"
if [ -x "$(which ifconfig)" ]
then

if [ -z "$(/sbin/ifconfig | egrep "$IFLink")" ]
then
# Link is not up but pppd may be running
ewarn "  Interface seems to be down already"
fi

einfo "  Stopping pppd"
start-stop-daemon --stop --pidfile /var/run/${IFLink}.pid

fi
eend

}

################################################################################

CheckLine() {

if [ "`cat /proc/net/atm/speedtch\:0 | grep Line | grep up | wc -l | awk '{print$1}'`" != "0" ]
then
pppd call ${Peer}
else
sleep 5
CheckLine
fi
}

CheckIFace() {

if [ -e "/var/run/${IFLink}.pid" ] \
&& [ -n "$(/sbin/ifconfig | grep $IFLink)" ]
then
einfo " Connection already established. Exiting"
exit

elif [ -e "/var/run/${IFLink}.pid" ] \
&& [ -n "$(/sbin/ifconfig | grep $IFLink)" ]
then
ewarn " ${IFLink} link is up but there is no established\
conncetion. Killing ${IFLink} process..."
start-stop-daemon --stop --pidfile /var/run/${IFLink}.pid
einfo "  Done ;)"
fi
}

# vim:ts=4
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Sat Mar 18, 2006 4:01 pm    Post subject: Reply with quote

cillianderoiste wrote:
start-stop-daemon --start\
--exec $(which pppd) call ${Peer} > /dev/null

Can you please report that as a bug on bugzilla - there should be a space between --start and \
Back to top
View user's profile Send private message
cillianderoiste
n00b
n00b


Joined: 19 Apr 2005
Posts: 13
Location: London

PostPosted: Sat Mar 18, 2006 4:48 pm    Post subject: Reply with quote

I'd gladly write a bug report, but unless I'm mistaken the init script posted by peka for the speedtouch modem isn't being used elsewhere.

I checked the wiki and I think that now you can load it with hotplug instead of a script in init.d or local.start? So I assume that it would load before the startup script loads firestarter: http://gentoo-wiki.com/HOWTO_Speedtouch_modem ... but I haven't tried this myself
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Sat Mar 18, 2006 4:56 pm    Post subject: Reply with quote

cillianderoiste wrote:
So I assume that it would load before the startup script loads firestarter

Unless the firewall contains rules which require an Internet connection, I would have firestarter start before the Internet connection, for safety.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9  Next
Page 4 of 9

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum