LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (http://www.linuxquestions.org/questions/mandriva-30/)
-   -   speedtouch usb connection (http://www.linuxquestions.org/questions/mandriva-30/speedtouch-usb-connection-168572/)

silvercastle 04-10-2004 07:27 PM

speedtouch usb connection
 
I am trying to set up adsl on my pc, running mandrake
I have - modified usb.c
compiled the kernel
installed speedtouchconf
run ./speedtouchconf as root

this is the result

************************************************************
No further user interaction is required.
Configuring SpeedTouch Driver...
Software Configuration - SUCCESS
Building SpeedTouch Driver...
Software Build - SUCCESS
Installing SpeedTouch Driver...
Software Installation - SUCCESS

*** Configuration finished. Starting the connection ***

The modem lights should start flashing for 20 seconds...
The modem_run command failed (code 250)
modem_run results:
Failed to load microcode - this is not a problem if you
have already loaded the microcode.
The microcode can only be loaded once per system boot;
We'll assume that the microcode is already loaded, and
not call this an error.
You may encounter problems, though.
FAILED because of modem_run error 250
Running : pppd call adsl
ppp0: error fetching interface information: Device not found
*********************************
* Don't seem to have connected. *
*********************************
Please check the username and password in /etc/ppp/*-secrets.
Then run /etc/rc. d/init.d/speedtouch start ( I have done this too)
************************************************************

Please help me fix this...:scratch: :Pengy:

pragmatic 04-28-2004 03:35 AM

From what I see hear it looks like you have tried to install the drivers like you would with say a Red Hat or Debian distro. With Mandrake you dont have to do all this. Mandy has a weird way of getting this little monster of a modem to work but it does work as i have been running the speedtouch on my linux box for months now without any problems at all. The first thing I would suggest is to uninstall all the stuff you have installed so far and start again from scratch. To get it to run you dont really need to install anything except copy and paste the mgmt.o file into the directory /usr/share/speedtouch. I have prepared this little how to on how to do it all I hope you find it of help:

Login as root

drakconf
Then run the setup wizard for networking and adsl
let it install the speedtouch directory in usr/share/speedtouch fill in user name DNS parts all the stuff u get from your isp then copy and paste the
mgmt.o file into the speedtouch directory then finish the install wizard DO NOT LET IT CONNECT
TO TEST THE CONNECTION IF IT SAYS IT WANTS TO

edit /etc/ppp/options and comment out (ie put a # at the begining of the line) the "default" and "persist route" lines.

Have a look in /etc/sysconfig/network. If there is a line saying "Gatewaydev=something-or-other" then delete it. Have a look in /etc/ppp/chap-secrets and /etc/ppp/pap-secrets. They should both have a line in with something like this (substituting your-dial-up-name and your-dial-up-password of course):
'your-dial-up-name' * 'your-dial-up-password' *


Have a look in /etc/ppp/peers/adsl. It should look like this:


noauth
noipdefault
pty "/usr/bin/pppoa3 -vpi 0 -vci 38"
sync
kdebug 1
noaccomp
nopcomp
noccp
novj
holdoff 4
maxfail 25
persist
usepeerdns
defaultroute
user "your-dial-up-name"

Now open up a command prompt and type lsmod now look at the output with regards to USB
for my particular usb-xhci was not usb-uhci but usb-ohci your system maybe different so make note
of what version usb your hardware uses

Then goto the files /etc/speedtouch.conf and make it look like this

LOAD_USBCORE="1"
LOAD_USBINTERFACE="1"
LOAD_NHDLC="1"
DEFAULT_USBINTERFACE="usb-xhci" (WHERE x is your hardware usb version)
MICROCODE="/usr/share/speedtouch/mgmt.o"
CONFIGURED="1"

Then look at the /etc/modules.conf and change any refers to usb-uhci to usb-ohci or
whatever your version is

Then cd to /usr/share/speedtouch
and at the promt type ./speedtouch.sh start
and hopefully it will start

Hope that helps :)

wrongmoon 04-30-2004 08:35 AM

:D

I am not a very experienced Linux hacker, however i have just managed to get my Alcatel/Thomson Speedtouch 330 (rev4 I think) working on Mandrake 9.2. I didn't have to recompile the kernel.

They key missing link was that the shell script that initialises the modem was using the wrong "modem_run" executable. I.e. it was using /usr/sbin/modem_run whereas it should have been running the new one that was installed in /usr/local/sbin

Maybe this is not exactly your situation, however, maybe this will be relevant.

The complete potted history is as follows:

-- I downloaded the opensource speedtouch driver from sourceforge (1.2beta I think)
-- I compiled it and installed it according to the instruction from doc at sourceforge
-- i configured it using speedtouchconf (can't remember the url, but a web search should find it)
-- I edited /etc/rc.d/init.d/speedtouch and changed where it sets the PATH variable:

#PATH=$PATH:/usr/local/bin <-- this is the original line
PATH=/usr/local/sbin:$PATH:/usr/local/bin

I also changed the line where it calls modem_run to use the 2 firmware files (as recommended by Benoit Papillaut at http://www.mail-archive.com/speedtou.../msg05877.html)

# $MODEM_RUN -v $VERBOSE -m -f $MICROCODE
$MODEM_RUN -v $VERBOSE -a /usr/share/speedtouch/ZZZLP1.eni -f /usr/share/speedtouch/ZZZLP2.eni

This got it working. You may also like to update the version of this script which lives at /usr/share/speedtouch/speedtouch.sh

BTW, I am with Freeserve in the UK.

Best regards Colin


All times are GMT -5. The time now is 01:08 PM.