Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
HOWTO: Alcatel Speedtouch USB with kernel 2.6 Revisited
View unanswered posts
View posts from last 24 hours

Goto page 1, 2, 3, 4, 5  Next  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
fazto
n00b
n00b


Joined: 17 Jun 2004
Posts: 19
Location: Alphen aan den Rijn, the Netherlands

PostPosted: Thu Jun 17, 2004 8:28 pm    Post subject: HOWTO: Alcatel Speedtouch USB with kernel 2.6 Revisited Reply with quote

HOWTO: Alcatel Speedtouch USB with kernel 2.6 Revisited

As I have a Alcatel Speedtouch 330 USB modem (purple) and Gentoo running kernel 2.6.7-rc3_mm2 I've had quit a challenge to get my box connected thru my ADSL line. Of course I found Kerframil's GREAT guide, but, as he already mentioned himself, it needs quit some updating. After working some nights on this I finally got it working, but with even more updates than mentioned in Kerframil's guide. So I decided to write an alternative howto, mainly because I used quit some stuff from the speedtouch package. This packages uses the user mode driver, but can be made working with the kernel mode driver without almost no adjustments. I will use Kerframil's guide as a template.

Here we go:

1. Assumptions
  • You've got Hotplug working
  • You've got USB working
  • You've got a syslogger working
  • You're using ADSL (pppoa)
  • You're logged in as root
  • The Speedtouch modem is NOT plugged in


2. Portage setup

  • put "atm" in you're USE flags in /etc/make.conf
  • put the following lines in /etc/portage/package.keywords
    Code:
    net-dialup/ppp ~x86
    net-dialup/speedtouch ~x86


3. Kernel setup

In section Device Drivers -> Networking support -> Networking Options:

Code:
  <M> Asynchronous Transfer Mode (ATM) (EXPERIMENTAL)
  <M>   Classical IP over ATM (EXPERIMENTAL)


In section Device Drivers -> Networking support:

Code:
<M>   PPP (point-to-point protocol) support
[ ]     PPP multilink support (EXPERIMENTAL) (NEW)
[ ]     PPP filtering (NEW)
< >     PPP support for async serial ports (NEW)
< >     PPP support for sync tty ports (NEW)
<M>     PPP Deflate compression
<M>     PPP BSD-Compress compression
< >     PPP over Ethernet (EXPERIMENTAL) (NEW)
<M>     PPP over ATM


In section Device Drives -> USB Support:

Code:
<M> Alcatel Speedtouch USB support


Although Kerframil's guide also enables ppp support for async serial ports and serial tty ports, my setup works fine without it. Also, HDLC and CRC32 modules are NOT needed.

Now, rebuild you're kernel, install it and reboot the way you're used to.

4. Packages

emerge the following packages:

Code:
emerge speedtouch
emerge linux-atm
emerge ppp


Download the firmware file and put it in a good spot:

Code:
mkdir /usr/local/lib/speedtouch
cd /usr/local/lib/speedtouch
wget http://speedtouch.sourceforge.net/files/firmware.bin
cd ~


5. Edit configuration files

Create a file /etc/ppp/peers/adsl and put the following code in:

Code:
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /home/cvsroot/gentoo-x86/net-dialup/speedtouch/files/adsl.sample,v 1.2 2004/03/04 19:12:20 vapier Exp $

# This file could be rename but its place is under /etc/ppp/peers
# To connect to Internet using this configuration file
# pppd call adsl, where "adsl" stands for the name of this file

lock
defaultroute
noipdefault
noauth
holdoff 4
maxfail 25
persist
asyncmap 0
usepeerdns
lcp-echo-interval 2
lcp-echo-failure 7
name {username@isp}

plugin pppoatm.so
8.48


notice that we don't need to specify a path anymore for the plugin. Also notice the nu,bers on the last line with the dot in the middle. This is the important VPI/VCI pair. These numbers are different per country and ISP. There's a (not complete) table with VPI/VCI pairs here.

Next, put you're username and password in /etc/ppp/pap-secrets:

Code:
# Secrets for authentication using PAP
# client   server   secret         IP addresses
{username@isp}   *   {password}


Somehow, kernel module pppoatm doesn't get loaded automatically, so either you compile it into the kernel or you autoload it by putting the next line into /etc/modules.autoload.d/kernel-2.6

Code:
pppoatm


OK, now the cool part :-). The speedtouch package contains the famous modem_run executable. It needs bootcode and firmware. Sometimes, both are contained in one file, sometimes there in separate files. Here, we have them in two seperate files. The bootcode is installed with the speedtouch package and is in file /usr/share/speedtouch/boot.v123.bin. The firmware is the firmware.bin file we downloaded in step 4.

With de speedtouch configuration file in /etc/conf.d we can instruct the startup script in /etc/init.d to do exactly what we want. Make sure you've got /etc/conf.d/speedtouch setup exactly like this:

Code:
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-dialup/speedtouch/files/speedtouch.confd,v 1.3 2004/03/04 19:13:39 vapier Exp $

# Config file for the speedtouch ebuild

# Set the microcode path
MICROCODE="/usr/local/lib/speedtouch/firmware.bin"

# Set verbose level for modem_run
VERBOSE="0"

# Set the peer filename
# This should be in /etc/ppp/peers/
PEER="adsl"

# Extra options to modem_run
# Some modems will need -s, if in doubt then leave blank
MODEM_RUN_EXTRAOPTS="-k -a /usr/share/speedtouch/boot.v123.bin"

6. Testing

First, plugin the speedtouch modem and check you're modules, you should see the speedtch and atm modules loaded by the hotplug subsystem.

Next, load the pppoatm module wich you put in the modules.autoload.d/kernel-2.6 file:

Code:
modprobe pppoatm


This loads the pppoatm, ppp_generic and slhc modules.

now, execute the speedtouch startup script:

Code:
/etc/init.d/speedtouch start


This will startup you're speedtouch modem by loading the bootcode and firmware and start pppd. This load's the modules ppp_deflate, zlib_deflate, zlib_inflate and bsd_comp and gives a nice and shining new ppp0 :-)

You're syslog output should look something like this:

Code:
Jun 17 21:03:15 shire modem_run[6578]: modem_run version 1.2 started by root uid 0
Jun 17 21:03:15 shire usb 1-2: usbfs: interface 1 claimed while 'modem_run' sets config #1
Jun 17 21:03:15 shire usb 1-2: usbfs: interface 2 claimed while 'modem_run' sets config #1
Jun 17 21:03:17 shire usb 1-2: bulk timeout on ep5in
Jun 17 21:03:17 shire usb 1-2: usbfs: USBDEVFS_BULK failed ep 0x85 len 512 ret -110
Jun 17 21:03:21 shire usb 1-2: usbfs: interface 0 claimed while 'modem_run' sets config #1
Jun 17 21:03:21 shire usb 1-2: usbfs: interface 1 claimed while 'modem_run' sets config #1
Jun 17 21:03:21 shire usb 1-2: usbfs: interface 2 claimed while 'modem_run' sets config #1
Jun 17 21:03:35 shire modem_run[6579]: [monitoring report] ADSL link went up
Jun 17 21:03:51 shire modem_run[6578]: ADSL synchronization has been obtained
Jun 17 21:03:51 shire modem_run[6578]: ADSL line is up (1120 kbit/s down | 352 kbit/s up)
Jun 17 21:03:52 shire pppd[6585]: Plugin pppoatm.so loaded.
Jun 17 21:03:52 shire pppd[6586]: pppd 2.4.2 started by root, uid 0
Jun 17 21:03:52 shire pppd[6586]: Using interface ppp0
Jun 17 21:03:52 shire pppd[6586]: Connect: ppp0 <--> 8.48
Jun 17 21:03:56 shire pppd[6586]: PAP authentication succeeded
Jun 17 21:03:56 shire pppd[6586]: kernel does not support PPP filtering
Jun 17 21:03:56 shire PPP BSD Compression module registered
Jun 17 21:03:56 shire PPP Deflate Compression module registered
Jun 17 21:03:56 shire pppd[6586]: local  IP address {ip}
Jun 17 21:03:56 shire pppd[6586]: remote IP address {ip}
Jun 17 21:03:56 shire pppd[6586]: primary   DNS address {ip}
Jun 17 21:03:56 shire pppd[6586]: secondary DNS address {ip}


7. Finishing up
OK, almost there. The last thing to do is to add the speedtouch startup script in the startup sequence:

Code:
rc-update add speedtouch default


There! Ready to Rock! Just reboot and you're online!

:-) Hope you got it running! :-)
Back to top
View user's profile Send private message
Saturation
n00b
n00b


Joined: 29 Mar 2004
Posts: 65

PostPosted: Sat Jun 19, 2004 10:59 am    Post subject: Reply with quote

Thanks fazto.

I have an internet connection now, but some things you wrote didn't work for me. I did almost everything you wrote, but to get a connection I had to do:

Code:
modem_run -k -f /root/firmware.bin


and after that:

Code:
pppd call adsl


I also put "chmod 644 $REALRESOLVCONF" in /etc/ppp/ip-up:

Code:
# backup the old configuration and install the new one
cp -a $REALRESOLVCONF $REALRESOLVCONF.pppd-backup
mv $REALRESOLVCONF.tmp $REALRESOLVCONF
chmod 644 $REALRESOLVCONF
fi


When I don't do that I can't browse with Firefox, Konqueror etc, but I'm able to do all things from a terminal. (FTP, ping, browse with links, etc.)

When I do what you wrote:

Code:
/etc/init.d/speedtouch start


the microcode can't be found and ppp isn't started.

I also don't have the directory /usr/share/speedtouch, and I can't find the bootcode anywhere on my system.

If some people having problems with loading the pppoatm.so, you can add the full path to the file in /etc/ppp/peers/adsl:

Code:
plugin /usr/lib/pppd/yourversionhere/pppoatm.so
(don't know if this is usefull, but I'd thought I add this in case it is.)
_________________
EVERYTHING you need to know to SECURE Linux
Back to top
View user's profile Send private message
oxman
n00b
n00b


Joined: 15 May 2004
Posts: 5

PostPosted: Sun Jun 20, 2004 11:11 am    Post subject: Reply with quote

It's because you don't have the experimental speedtouch packet.

Don't forget that :
net-dialup/speedtouch ~x86
Back to top
View user's profile Send private message
Saturation
n00b
n00b


Joined: 29 Mar 2004
Posts: 65

PostPosted: Sun Jun 20, 2004 11:29 am    Post subject: Reply with quote

Thanks, I will take a look at that.
_________________
EVERYTHING you need to know to SECURE Linux
Back to top
View user's profile Send private message
ozonator
Guru
Guru


Joined: 11 Jun 2003
Posts: 591
Location: Ontario, Canada

PostPosted: Mon Jun 21, 2004 1:41 am    Post subject: Reply with quote

oxman wrote:
net-dialup/speedtouch ~x86


Or, ~<arch> in case you're not using x86.

Speaking of which, anyone know why the ebuilds for the pppoatm-aware ppp will only enable pppoatm support for x86? For example, the ebuild for ppp-2.4.2-r2 -- masked for ppc -- adds the atm patch with this:

Code:
if use atm && use x86; then ...


I haven't seen anywhere that using the speedtouch only works with x86, but then again haven't seen any reports of success on any other architecture. Anyone get this to work with ppc?

I'll be getting one of these modems in a week or so, and would like to use it with my ppc machine, but I'd also be happy to avoid the trouble of trying if it's certain not to work with non-x86 hardware. In the meantime, I can confirm that all the required packages -- speedtouch, linux-atm, and ppp -- all compile without any problem on ppc (I used a modified ebuild for ppp, removing the x86 requirement).

fazto, thanks for the updated guide!

Edit: It seems to work fine on ppc, though I found out pretty quickly after trying the modem that my isp uses only pppoe (see this thread for a guide on getting pppoe to work). In any case, as I mentioned above, anyone using ppc will have to edit the atm-enabled ppp ebuild to remove the check for x86 to get the pppoatm stuff to build.


Last edited by ozonator on Tue Jun 29, 2004 1:37 pm; edited 1 time in total
Back to top
View user's profile Send private message
djm
Arch/Herd Tester
Arch/Herd Tester


Joined: 12 Apr 2004
Posts: 690
Location: Wadham College, Oxford

PostPosted: Tue Jun 29, 2004 11:00 am    Post subject: Reply with quote

:? I don't have pppoatm.so (according to both find and syslog when I try to start speedtouch)

lsmod lists speedtch, pppoatm, ppp_generic, slhc and atm (plus stuff not relevant)

btw, (the error message I got is that it can't load the microcode)

what have I done wrong???

edit: meh, what am I talking about? pppoatm.so should be provided by the ppp package, but it seems to only want to let me use pppoe :?

edit2: etcat -u has the answer - I need atm in my use flags

edit3: modem_run -k -s -f always says unable to locate firmware in PATH/firmware.bineven though the file exists (the oh-so-ugly chmod 777 didn't help)
_________________
the forums.gentoo.org poster formally known as metal leper
Back to top
View user's profile Send private message
Saturation
n00b
n00b


Joined: 29 Mar 2004
Posts: 65

PostPosted: Tue Jun 29, 2004 2:31 pm    Post subject: Reply with quote

Maybe it helps if you leave the -s.
If that doesn't help, have you checked the permissions of the microcode, and what do your logs show? Did you see if the pppoatm.so is loaded, and if it isn't, are you sure you installed it, and have you used the path to the pppoatm.so in /etc/ppp/peers/adsl? You can use the path to the file if you didn't put it there.
_________________
EVERYTHING you need to know to SECURE Linux
Back to top
View user's profile Send private message
djm
Arch/Herd Tester
Arch/Herd Tester


Joined: 12 Apr 2004
Posts: 690
Location: Wadham College, Oxford

PostPosted: Tue Jun 29, 2004 2:44 pm    Post subject: Reply with quote

pppoatm.so gets loaded, and leaving out -s makes no difference

I'm doing this as root and did chmod 777 on firmware.bin

Everything in the log is as expected until it says that it couldn't locate the firmware in firmware.bin (I don't think the error messages say anything else helpful (there's a number but I'm pretty sure it changes everytime), but I've turned my linux box off now)
_________________
the forums.gentoo.org poster formally known as metal leper
Back to top
View user's profile Send private message
ozonator
Guru
Guru


Joined: 11 Jun 2003
Posts: 591
Location: Ontario, Canada

PostPosted: Tue Jun 29, 2004 2:55 pm    Post subject: Reply with quote

metal leper wrote:
Everything in the log is as expected until it says that it couldn't locate the firmware in firmware.bin


What's the exact modem_run command you're trying? Or, if you're using /etc/init.d/speedtouch, what do you have in /etc/conf.d/speedtouch? If all that looks right, maybe you could try downloading the firmware file again.
Back to top
View user's profile Send private message
djm
Arch/Herd Tester
Arch/Herd Tester


Joined: 12 Apr 2004
Posts: 690
Location: Wadham College, Oxford

PostPosted: Tue Jun 29, 2004 3:15 pm    Post subject: Reply with quote

I've tried modem_run -k -f /root/firmware.bin, and I've tried adding -s as well

I gave up on using /etc/init.d/speedtouch start because this way I don't have to wait for it to finish trying to start pppd after it's failed to load the firmware, and because it stops extra syslog messages (i.e. the pppd ones)

I've tired downloading the firmware again, but I get the same error:
[code]
Jun 29 16:07:31 dhcp0212 usb 1-2: usbfs: interface 1 claimed while 'modem_run sets config #1
As above but interface 2
Jun 29 16:07:31 dhcp0212 modem_run [7009]: modem_run version 1.2 started by root uid 0
Jun 29 16:07:31 dhcp0212 modem_run [7009]: Unable to locate firmware in /root/firmware.bim

firmware.bin has permisions rwxrwxrwx (root root)
_________________
the forums.gentoo.org poster formally known as metal leper
Back to top
View user's profile Send private message
ozonator
Guru
Guru


Joined: 11 Jun 2003
Posts: 591
Location: Ontario, Canada

PostPosted: Tue Jun 29, 2004 3:26 pm    Post subject: Reply with quote

metal leper wrote:
I've tried modem_run -k -f /root/firmware.bin, and I've tried adding -s as well


Don't know if this will help, but to get modem_run to work, I have to specify the boot code (included with the speedtouch package), as well as the firmware:

Code:
/usr/sbin/modem_run -k -a /usr/share/speedtouch/boot.v123.bin -f /usr/local/lib/speedtouch/firmware.bin


Like you, I'm not using the init.d/speedtouch script. (I'm now using pppoe, and wrote a little script that runs modem_run, creates the nas0 bridge interface, and runs adsl-start.)
Back to top
View user's profile Send private message
djm
Arch/Herd Tester
Arch/Herd Tester


Joined: 12 Apr 2004
Posts: 690
Location: Wadham College, Oxford

PostPosted: Tue Jun 29, 2004 3:46 pm    Post subject: Reply with quote

Doesn't change anything, thanks anyway though
_________________
the forums.gentoo.org poster formally known as metal leper
Back to top
View user's profile Send private message
Saturation
n00b
n00b


Joined: 29 Mar 2004
Posts: 65

PostPosted: Tue Jun 29, 2004 5:20 pm    Post subject: Reply with quote

I had to put chmod 644 $REALRESOLVCONF in /etc/ppp/ip-up:

Code:

# backup the old configuration and install the new one
cp -a $REALRESOLVCONF $REALRESOLVCONF.pppd-backup
mv $REALRESOLVCONF.tmp $REALRESOLVCONF
chmod 644 $REALRESOLVCONF
fi


to make it all work. Have you done that also?

And you'll have to use the path to the microcode in /etc/conf.d/speedtouch I believe.
_________________
EVERYTHING you need to know to SECURE Linux
Back to top
View user's profile Send private message
djm
Arch/Herd Tester
Arch/Herd Tester


Joined: 12 Apr 2004
Posts: 690
Location: Wadham College, Oxford

PostPosted: Tue Jun 29, 2004 6:42 pm    Post subject: Reply with quote

still the same :(
_________________
the forums.gentoo.org poster formally known as metal leper
Back to top
View user's profile Send private message
Saturation
n00b
n00b


Joined: 29 Mar 2004
Posts: 65

PostPosted: Wed Jun 30, 2004 2:53 pm    Post subject: Reply with quote

Can you please post your logs and the output from dmesg? You never know.

Instead of the firmware.bin you can also use the mgmt.o and the alcaudsl.sys files. I can send you both if you want, but you can find the alcaudsl.sys on Windows where the Speeftouch is installed.

There are some other topics about the Speedtouch here including this one: https://forums.gentoo.org/viewtopic.php?t=99759&highlight=speedtouch

Maybe you didn't install hotplug or didn't build the apprpriate parts into the kernel.
_________________
EVERYTHING you need to know to SECURE Linux
Back to top
View user's profile Send private message
Ruzbeh
Apprentice
Apprentice


Joined: 23 Jun 2004
Posts: 223

PostPosted: Thu Jul 01, 2004 12:52 pm    Post subject: Reply with quote

Fazto you're a live saver :D

I'm trying it out as we speak, and i assume this is the same for Alcatel Speedtouch USB modems.

edit:

ok i keep double checking everything but i realised my modem_run isnt even being executed

when i boot i get this when it says its starting Alcatel Speedtouch modem

Code:

modem_run version 1.2-beta2:  $
usage: modem_run [-v level] [-m] -f microcode
  -v           : verbose level [0-2]
  -m           : monitor the line
  -s           : skip the first 512 bytes read
  -f microcode : upload this microcode file first
  -d device    : defines the device to use
  -k           : using the kernel mode driver
  --help       : this message


You can't be serious!! It will say it failed to load the microcode >_<

So, what do i do now?
Back to top
View user's profile Send private message
djm
Arch/Herd Tester
Arch/Herd Tester


Joined: 12 Apr 2004
Posts: 690
Location: Wadham College, Oxford

PostPosted: Thu Jul 01, 2004 4:14 pm    Post subject: Reply with quote

I spent several days doing nothing else but trying to get this to work a few months ago, but after a format and seeing this guide I thought I'd try again - I'm giving up soon and getting another modem soon. So I have tried the other 2 files, but not recently, so I'll try that soon, but I don't hold much hope. edit: same error messages for mgmt.o and alcaudsl.sys

dmesg after plugging the modem in:
Code:
PPP generic driver version 2.4.2
PCI: Setting latency timer of device 0000:00:11.5 to 64
uhci_hcd 0000:00:11.2: wakeup_hc
uhci_hcd 0000:00:11.2: port 2 portsc 0093
hub 1-0:1.0: port 2, status 0101, change 0001, 12 Mb/s
hub 1-0:1.0: debounce: port 2: delay 100ms stable 4 status 0x101
usb 1-2: new full speed USB device using address 2
usb 1-2: new device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-2: default language 0x0409
usb 1-2: Product: Speed Touch 330
usb 1-2: Manufacturer: THOMSON
usb 1-2: SerialNumber: 0090D0C8C18C
usb 1-2: hotplug
usb 1-2: adding 1-2:1.0 (config #1, interface 0)
usb 1-2:1.0: hotplug
usb 1-2: adding 1-2:1.1 (config #1, interface 1)
usb 1-2:1.1: hotplug
usb 1-2: adding 1-2:1.2 (config #1, interface 2)
usb 1-2:1.2: hotplug
drivers/usb/misc/speedtch.c: udsl_usb_init: driver version 1.8
speedtch 1-2:1.0: usb_probe_interface
speedtch 1-2:1.0: usb_probe_interface - got id
drivers/usb/misc/speedtch.c: udsl_usb_probe: trying device with vendor=0x6b9, product=0x4061, ifnum 0
speedtch 1-2:1.1: usb_probe_interface
speedtch 1-2:1.1: usb_probe_interface - got id
drivers/usb/misc/speedtch.c: udsl_usb_probe: trying device with vendor=0x6b9, product=0x4061, ifnum 1
drivers/usb/misc/speedtch.c: udsl_usb_probe: device accepted
speedtch 1-2:1.2: usb_probe_interface
speedtch 1-2:1.2: usb_probe_interface - got id
drivers/usb/misc/speedtch.c: udsl_usb_probe: trying device with vendor=0x6b9, product=0x4061, ifnum 2
usbcore: registered new driver speedtch


system log after plugging it in but before trying to start it:
Code:
tail -n 30 /var/log/messages
Jul  1 16:45:38 dhcp0212 su(pam_unix)[6964]: session opened for user root by djm(uid=1000)
Jul  1 16:45:51 dhcp0212 uhci_hcd 0000:00:11.2: wakeup_hc
Jul  1 16:45:52 dhcp0212 uhci_hcd 0000:00:11.2: port 2 portsc 0093
Jul  1 16:45:52 dhcp0212 hub 1-0:1.0: port 2, status 0101, change 0001, 12 Mb/s
Jul  1 16:45:52 dhcp0212 hub 1-0:1.0: debounce: port 2: delay 100ms stable 4 status 0x101
Jul  1 16:45:52 dhcp0212 usb 1-2: new full speed USB device using address 2
Jul  1 16:45:52 dhcp0212 usb 1-2: new device strings: Mfr=1, Product=2, SerialNumber=3
Jul  1 16:45:52 dhcp0212 usb 1-2: default language 0x0409
Jul  1 16:45:52 dhcp0212 usb 1-2: Product: Speed Touch 330
Jul  1 16:45:52 dhcp0212 usb 1-2: Manufacturer: THOMSON
Jul  1 16:45:52 dhcp0212 usb 1-2: SerialNumber: 0090D0C8C18C
Jul  1 16:45:52 dhcp0212 usb 1-2: hotplug
Jul  1 16:45:52 dhcp0212 usb 1-2: adding 1-2:1.0 (config #1, interface 0)
Jul  1 16:45:52 dhcp0212 usb 1-2:1.0: hotplug
Jul  1 16:45:52 dhcp0212 usb 1-2: adding 1-2:1.1 (config #1, interface 1)
Jul  1 16:45:52 dhcp0212 usb 1-2:1.1: hotplug
Jul  1 16:45:52 dhcp0212 usb 1-2: adding 1-2:1.2 (config #1, interface 2)
Jul  1 16:45:52 dhcp0212 usb 1-2:1.2: hotplug
Jul  1 16:45:53 dhcp0212 drivers/usb/misc/speedtch.c: udsl_usb_init: driver version 1.8
Jul  1 16:45:53 dhcp0212 speedtch 1-2:1.0: usb_probe_interface
Jul  1 16:45:53 dhcp0212 speedtch 1-2:1.0: usb_probe_interface - got id
Jul  1 16:45:53 dhcp0212 drivers/usb/misc/speedtch.c: udsl_usb_probe: trying device with vendor=0x6b9, product=0x4061, ifnum 0
Jul  1 16:45:53 dhcp0212 speedtch 1-2:1.1: usb_probe_interface
Jul  1 16:45:53 dhcp0212 speedtch 1-2:1.1: usb_probe_interface - got id
Jul  1 16:45:53 dhcp0212 drivers/usb/misc/speedtch.c: udsl_usb_probe: trying device with vendor=0x6b9, product=0x4061, ifnum 1
Jul  1 16:45:53 dhcp0212 drivers/usb/misc/speedtch.c: udsl_usb_probe: device accepted
Jul  1 16:45:53 dhcp0212 speedtch 1-2:1.2: usb_probe_interface
Jul  1 16:45:53 dhcp0212 speedtch 1-2:1.2: usb_probe_interface - got id
Jul  1 16:45:53 dhcp0212 drivers/usb/misc/speedtch.c: udsl_usb_probe: trying device with vendor=0x6b9, product=0x4061, ifnum 2
Jul  1 16:45:53 dhcp0212 usbcore: registered new driver speedtch


after modem_run -k [-s] -a /usr/share/speedtouch/boot.v123.bin -f /root/firmware.bin (as root)
Code:
tail -n 30 /var/log/messages
Jul  1 16:45:52 dhcp0212 usb 1-2: new full speed USB device using address 2
Jul  1 16:45:52 dhcp0212 usb 1-2: new device strings: Mfr=1, Product=2, SerialNumber=3
Jul  1 16:45:52 dhcp0212 usb 1-2: default language 0x0409
Jul  1 16:45:52 dhcp0212 usb 1-2: Product: Speed Touch 330
Jul  1 16:45:52 dhcp0212 usb 1-2: Manufacturer: THOMSON
Jul  1 16:45:52 dhcp0212 usb 1-2: SerialNumber: 0090D0C8C18C
Jul  1 16:45:52 dhcp0212 usb 1-2: hotplug
Jul  1 16:45:52 dhcp0212 usb 1-2: adding 1-2:1.0 (config #1, interface 0)
Jul  1 16:45:52 dhcp0212 usb 1-2:1.0: hotplug
Jul  1 16:45:52 dhcp0212 usb 1-2: adding 1-2:1.1 (config #1, interface 1)
Jul  1 16:45:52 dhcp0212 usb 1-2:1.1: hotplug
Jul  1 16:45:52 dhcp0212 usb 1-2: adding 1-2:1.2 (config #1, interface 2)
Jul  1 16:45:52 dhcp0212 usb 1-2:1.2: hotplug
Jul  1 16:45:53 dhcp0212 drivers/usb/misc/speedtch.c: udsl_usb_init: driver version 1.8
Jul  1 16:45:53 dhcp0212 speedtch 1-2:1.0: usb_probe_interface
Jul  1 16:45:53 dhcp0212 speedtch 1-2:1.0: usb_probe_interface - got id
Jul  1 16:45:53 dhcp0212 drivers/usb/misc/speedtch.c: udsl_usb_probe: trying device with vendor=0x6b9, product=0x4061, ifnum 0
Jul  1 16:45:53 dhcp0212 speedtch 1-2:1.1: usb_probe_interface
Jul  1 16:45:53 dhcp0212 speedtch 1-2:1.1: usb_probe_interface - got id
Jul  1 16:45:53 dhcp0212 drivers/usb/misc/speedtch.c: udsl_usb_probe: trying device with vendor=0x6b9, product=0x4061, ifnum 1
Jul  1 16:45:53 dhcp0212 drivers/usb/misc/speedtch.c: udsl_usb_probe: device accepted
Jul  1 16:45:53 dhcp0212 speedtch 1-2:1.2: usb_probe_interface
Jul  1 16:45:53 dhcp0212 speedtch 1-2:1.2: usb_probe_interface - got id
Jul  1 16:45:53 dhcp0212 drivers/usb/misc/speedtch.c: udsl_usb_probe: trying device with vendor=0x6b9, product=0x4061, ifnum 2
Jul  1 16:45:53 dhcp0212 usbcore: registered new driver speedtch
Jul  1 16:49:58 dhcp0212 usb 1-2: usbfs: interface 1 claimed while 'modem_run' sets config #1
Jul  1 16:49:58 dhcp0212 usb 1-2: usbfs: interface 2 claimed while 'modem_run' sets config #1
Jul  1 16:49:58 dhcp0212 modem_run[7095]: modem_run version 1.2 started by djm uid 0
Jul  1 16:49:58 dhcp0212 modem_run[7095]: Unable to locate firmware in /root/firmware.bin


lsmod lists speedtch, pppoatm, ppp_generic, slhc and atm

Everything seems to be as it should be (apart from it not being able to find the firmware in firmware.bin)
_________________
the forums.gentoo.org poster formally known as metal leper
Back to top
View user's profile Send private message
djm
Arch/Herd Tester
Arch/Herd Tester


Joined: 12 Apr 2004
Posts: 690
Location: Wadham College, Oxford

PostPosted: Thu Jul 01, 2004 4:24 pm    Post subject: Reply with quote

@Ruzbeh - what does /etc/init.d/speedtouch and /etc/conf.d/speedtouch say?

You can always just run modem_run manually, as in the second post in this thread
_________________
the forums.gentoo.org poster formally known as metal leper
Back to top
View user's profile Send private message
Ruzbeh
Apprentice
Apprentice


Joined: 23 Jun 2004
Posts: 223

PostPosted: Fri Jul 02, 2004 12:46 pm    Post subject: Reply with quote

metal leper wrote:
@Ruzbeh - what does /etc/init.d/speedtouch and /etc/conf.d/speedtouch say?

You can always just run modem_run manually, as in the second post in this thread


i both checked init.d and con.f speedt00ches, both are fine if i look at the example in the first post

i did run modem_run manually, but when i do pppd call adsl, it says it cant find pppoatm.so, edit: i don't have this file, i did a search

Is this what im supposed to get from 'emerge ppp', cuz i have pppoatm.o module compiled, or do i have to re-emerge ppp

but i dun understand why modem_run isnt being executed automatically, it doesn't make any sense to me


Last edited by Ruzbeh on Fri Jul 02, 2004 1:00 pm; edited 1 time in total
Back to top
View user's profile Send private message
djm
Arch/Herd Tester
Arch/Herd Tester


Joined: 12 Apr 2004
Posts: 690
Location: Wadham College, Oxford

PostPosted: Fri Jul 02, 2004 12:48 pm    Post subject: Reply with quote

To get pppoatm.so you need to emerge ppp with atm in your use flags
_________________
the forums.gentoo.org poster formally known as metal leper
Back to top
View user's profile Send private message
Ruzbeh
Apprentice
Apprentice


Joined: 23 Jun 2004
Posts: 223

PostPosted: Fri Jul 02, 2004 1:01 pm    Post subject: Reply with quote

metal leper wrote:
To get pppoatm.so you need to emerge ppp with atm in your use flags


I did emerge ppp, when atm was not in my flags, i deleted ppp (manually) and i did atm in mah flags, and did emerge ppp and i dun have it so i think i didn't delete it properly! >_<

how do i remove ppp properly? can it be done with portage?
Back to top
View user's profile Send private message
djm
Arch/Herd Tester
Arch/Herd Tester


Joined: 12 Apr 2004
Posts: 690
Location: Wadham College, Oxford

PostPosted: Fri Jul 02, 2004 1:06 pm    Post subject: Reply with quote

I didn't remove it, I just changed my use flags and did emerge ppp

But, to remove it, do emerge -C ppp
_________________
the forums.gentoo.org poster formally known as metal leper
Back to top
View user's profile Send private message
ozonator
Guru
Guru


Joined: 11 Jun 2003
Posts: 591
Location: Ontario, Canada

PostPosted: Fri Jul 02, 2004 1:21 pm    Post subject: Reply with quote

Ruzbeh wrote:
metal leper wrote:
To get pppoatm.so you need to emerge ppp with atm in your use flags


I did emerge ppp, when atm was not in my flags, i deleted ppp (manually) and i did atm in mah flags, and did emerge ppp and i dun have it so i think i didn't delete it properly! >_<


Also, as I described in my post above, if you're not using x86, you'll have to edit the ppp ebuild to remove the explicit requirement for x86 -- otherwise, even with atm in your flags, the atm support won't be built. There are two lines (32 and 103 in ppp-2.4.2-r2.ebuild) that say

Code:
if use atm && use x86; then


Change each of those to

Code:
if use atm; then


Of course, you can make this change on x86, too, but on x86 it won't affect how ppp is built.

Edit: If you're not using x86, also change the line near the top (in RDEPEND) from atm? ( x86? ( net-dialup/linux-atm ) ) to atm? ( net-dialup/linux-atm ). I've submitted this as bug 55881.


Last edited by ozonator on Fri Jul 02, 2004 2:25 pm; edited 1 time in total
Back to top
View user's profile Send private message
Saturation
n00b
n00b


Joined: 29 Mar 2004
Posts: 65

PostPosted: Fri Jul 02, 2004 1:57 pm    Post subject: Reply with quote

I have it working with both ways now, so the microcode is found now too when I run /etc/init.d/speedtouch start

Previously I did not put "net-dialup/ppp ~x86" and "net-dialup/speedtouch ~x86" in /etc/portage/package.keywords like fazto suggested, but I used ACCEPT_KEYWORDS="~86" on the commandline. So I changed that, reemerged speedtouch, linux-atm and ppp.

The packages I'm now using are: speedtouch-1.2, linux-atm-2.4.1 and ppp-2.4.2-r2. I've installed everything from those packages but debug from the speedtouch package.

The modem_run command I use is: modem_run -k -a /usr/share/speedtouch/boot.v123.bin -f /root/firmware.bin

I had to create the /etc/portage directory and the /etc/portage/package.keywords file manually, and didn't use the atm USE flag on the commandline, butI put it in /etc/make.conf
_________________
EVERYTHING you need to know to SECURE Linux
Back to top
View user's profile Send private message
Ruzbeh
Apprentice
Apprentice


Joined: 23 Jun 2004
Posts: 223

PostPosted: Fri Jul 02, 2004 2:32 pm    Post subject: Reply with quote

Saturation wrote:
I have it working with both ways now, so the microcode is found now too when I run /etc/init.d/speedtouch start

Previously I did not put "net-dialup/ppp ~x86" and "net-dialup/speedtouch ~x86" in /etc/portage/package.keywords like fazto suggested, but I used ACCEPT_KEYWORDS="~86" on the commandline. So I changed that, reemerged speedtouch, linux-atm and ppp.

The packages I'm now using are: speedtouch-1.2, linux-atm-2.4.1 and ppp-2.4.2-r2. I've installed everything from those packages but debug from the speedtouch package.

The modem_run command I use is: modem_run -k -a /usr/share/speedtouch/boot.v123.bin -f /root/firmware.bin

I had to create the /etc/portage directory and the /etc/portage/package.keywords file manually, and didn't use the atm USE flag on the commandline, butI put it in /etc/make.conf


I thought it was /usr/portage :oops:

ok so if i dun have /etc/portage i create it i guess :?

edit: now i understand why Xorg-x11 didnt want to merge when i added it to /usr/portage/package.keywords :lol:

edit number 2:
Code:
# emerge speedtouch
Calculating dependencies
!!! Problem in net-dialup/speedtouch dependencies.
!!! "Specific key requires an operator (x11-base/xorg-x11-6.7.0-r1) (try adding an '=')"


help 8O

edit number 3:
in my /etc/portage/package.keywords i had to add a "=" for every line, but why? it doesnt say so in the startpost

edit number 4:
great, when i do emerge speedtouch it needs a dependancy, and i cant connect to the thing that holds the dependancy (called libpcap) :roll:

edit number 5:
ok it got back up online again, i ran mirrorselect so it wont happen again :twisted:

ok im gonna install everything and configure everything right this time with the right files, i will let you guys know if it works ;)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Goto page 1, 2, 3, 4, 5  Next
Page 1 of 5

 
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