LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 04-29-2004, 11:53 AM   #1
Mr Tickle
Member
 
Registered: Jul 2003
Location: England, Derbyshire
Distribution: Dual boot XP pro & MDK 10 official, KDE.
Posts: 69

Rep: Reputation: 15
MDK 10 Official + speedtouch usb = 0 internet.


Yes it's the speedtouch usb again

When I try to configure the internet connection for my st usb modem I get an error 'Sorry, we only support 2.4 and above kernels'

Then I get a window popping up where I can select my isp. I'm with freeserve (wanadoo) but that comes under Spain and not UK. Anyway I've tried both and I still cannot connect.

I also get a FAILED while booting for eth0: Why the problems? I've copied the micro code for the st usb modem... It all worked in MDK 9.1

Thanks in advance.

Btw I don't want to go back to 9.1 cos 10 looks/feels better apart from the IC
 
Old 04-29-2004, 02:46 PM   #2
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
First thing it's important to choose the right country as the vpi/vci settings vary form country to country. For the UK the vpi : vci numbers are 0 38 whether it's BT or Freeserve/Wanadoo. Next thing, what type of speedtouch is it? If it's a silver, revision 4 one then I can't help but these instructions work for me on mandrake 10 with an old green speedtouch and a purple speedtouch 330, both of which I got from Freeserve. Get the speedtouchconf tarball from http://speedtouchconf.sourceforge.net/ Of course, that's not easy to do if you can't connect to the internet so I would suggest that you use windows as you should be able to drag and drop things from windows into your home folder on mandrake 10. Mandrake mounts the Windows partition automatically for me. Also, save these instructions into a text file with notepad then you can copy and paste them into a terminal to avoid typos.
Before you start you'll need to install the package bc-1.06. It's on the mandrake CD's. If you've used Mandrake 9.1 you should be familiar with grpmi so I won't go into that. Now, open a terminal and

tar xzf speedtouchconf-22-04-2004.tar.gz

then you'll need to copy the firmware you have (alcaudsl.sys, mgmt.o or firmware.bin) into the speedtouchconf-22-04-2004 folder and then carry on with these commands. Copy and paste the lot as one block.

cd speedtouchconf-22-04-2004 &&
tar xzf speedtouch-1.2-sgp.tar.gz &&
cp speedtouch-1.2-sgp/src/pppoa3.c{,.backup} &&
sed 's/ep = -1;/ep = 1;/g' speedtouch-1.2-sgp/src/pppoa3.c.backup > speedtouch-1.2-sgp/src/pppoa3.c &&
tar czf speedtouch-1.2-sgp.tar.gz speedtouch-1.2-sgp

Now become root

su
password
./speedtouchconf.sh

Good luck and god bless all who sail in her...
 
Old 04-29-2004, 04:56 PM   #3
Mr Tickle
Member
 
Registered: Jul 2003
Location: England, Derbyshire
Distribution: Dual boot XP pro & MDK 10 official, KDE.
Posts: 69

Original Poster
Rep: Reputation: 15
Thanks Andrew

I too have the green speedtouch so I think that should work for me too. I don't know/remember what the grpmi is I'll do a search to refresh my memory. When installing I did tick every box so I wonder if it's already installed

Right I've got the speedtouchconf file and just about to copy your reply to a textfile for reference and hopefully the next time I post here will be in linux

Thanks again m8

[EDIT]
I've installed bc and followed your advice. Now I get an error

No USB Bus found What do I need to do? I thought stuff like that gets configured when installing

Last edited by Mr Tickle; 04-29-2004 at 06:28 PM.
 
Old 04-30-2004, 04:19 PM   #4
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Sorry for being slow to reply but I've not been well today.
Do you have pciutils installed? If you open the Mandrake Control Centre and get it to list all the software you can install, look for pciutils-2.1.11-4mdk. The speedtouchconf script seems to use the command lspci to discover what sort of USB controller you have. Mandrake installed pciutils automatically when I installed it but maybe you chose different options. If you kept the speedtouchconf-22-04-2004 folder from before then continue from the
./speedtouchconf.sh
If you deleted it then start again from the top.
 
Old 04-30-2004, 05:32 PM   #5
Mr Tickle
Member
 
Registered: Jul 2003
Location: England, Derbyshire
Distribution: Dual boot XP pro & MDK 10 official, KDE.
Posts: 69

Original Poster
Rep: Reputation: 15
I installed pciutils and also usbview. I still get the no usb bus error.

I started usb view and in the list are 5 entries in black text for usb controllers ?? and at the bottom in red text is speedtouch usb. When I clicked it then on configure It pointed me to a file called devices in /proc/bus/usb/

When I looked at this file in vi there is my alcatel speedtouch usb on bus 1.

After installing those packages I didn't restart. Should I have restarted?
My bro has a silver usb modem from bt internet. He uses an adsl router now so if he can find the silver modem I might try that. If it still won't work then it's back to mdk 9.1 or forget the whole idea

Thanks for your time and help Andrew
 
Old 04-30-2004, 07:18 PM   #6
Mr Tickle
Member
 
Registered: Jul 2003
Location: England, Derbyshire
Distribution: Dual boot XP pro & MDK 10 official, KDE.
Posts: 69

Original Poster
Rep: Reputation: 15
Code:
*************************************************                                              
**       speedtouchconf.sh by Steve Parker      
**                                              
**    http://speedtouchconf.sourceforge.net/    
** based on speedtouch.sourceforge.net project  
**                                              
*************************************************
If you have any problems with this script, mail me
(steve at steve-parker dot org) with the files
/tmp/speedtouch.txt and /var/log/messages for diagnosis.
Using speedtouch-1.2-sgp
The kernel speedtch module is loaded. This is not
compatible with the speedtouch usermode driver.
Removing the speedtch module
microcode is mgmt.o
Using mgmt.o for microcode
  PPP version 2.4.1 okay.
  Linux kernel version 2.6.3 okay.
No USB Bus found!
Not ready to install the software at this time. - code 2
[root@localhost speedtouchconf-22-04-2004]#
Really... no USB Bus

Code:
T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  3 Spd=12  MxCh= 0
D:  Ver= 1.10 Cls=ff(vend.) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=06b9 ProdID=4061 Rev= 0.00
S:  Manufacturer=ALCATEL
S:  Product=Speed Touch USB
S:  SerialNumber=0090D050FD67
C:* #Ifs= 3 Cfg#= 1 Atr=80 MxPwr=500mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=ff(vend.) Sub=00 Prot=00 Driver=usbfs
E:  Ad=81(I) Atr=03(Int.) MxPS=  16 Ivl=50ms
I:  If#= 1 Alt= 0 #EPs= 0 Cls=ff(vend.) Sub=00 Prot=00 Driver=speedtch
I:  If#= 1 Alt= 1 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=speedtch
E:  Ad=06(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=07(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=87(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
I:  If#= 1 Alt= 2 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=speedtch
E:  Ad=06(O) Atr=02(Bulk) MxPS=  32 Ivl=0ms
E:  Ad=07(O) Atr=02(Bulk) MxPS=  32 Ivl=0ms
E:  Ad=87(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
I:  If#= 1 Alt= 3 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=speedtch
E:  Ad=06(O) Atr=02(Bulk) MxPS=  16 Ivl=0ms
E:  Ad=07(O) Atr=02(Bulk) MxPS=  16 Ivl=0ms
E:  Ad=87(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
I:  If#= 2 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=00 Prot=00 Driver=(none)
E:  Ad=05(O) Atr=02(Bulk) MxPS=   8 Ivl=0ms
E:  Ad=85(I) Atr=02(Bulk) MxPS=   8 Ivl=0ms
Code:
Vendor: Alcatel
Description: USB ADSL Modem (Speed Touch)
Media class: -
Module name: speedtch
Mac Address: speedtouch
Bus: USB
Location on the bus: 1
As you can see the modem is on bus 1 To say im a little pissed off is an understatement

Last edited by Mr Tickle; 04-30-2004 at 07:27 PM.
 
Old 05-01-2004, 04:10 AM   #7
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Me too. Makes me feel like an idiot when it doesn't work.
The Speedtouchconf thing isn't working so lets go a different way. The two options we could try are to either make the speedbundle work or just forget these packages altogether and put the scripts together ourselves. Both ways look long and complicated but either should work. If you cd into the speedtouchconf-22-04-2004/speedtouch-1.2-sgp folder and run ./configure and make it will make modem_run and pppoa3 which, along with the firmware, just needs the configuration scripts setting up.
It's going to take some typing and this thread may go to a few pages but we should get there. What do you think?
 
Old 05-01-2004, 05:09 AM   #8
Mr Tickle
Member
 
Registered: Jul 2003
Location: England, Derbyshire
Distribution: Dual boot XP pro & MDK 10 official, KDE.
Posts: 69

Original Poster
Rep: Reputation: 15
I'm up for it if you are m8 I really appreciate your help

I'll boot to mdk and do the ./configure bit in a mo.

Btw I'm with Freeserve (Wanadoo) Or should it be Wanadont in my case I thought they use PPPOE I have tried PPPOA also and neither made any difference.
Thanks again Andrew
 
Old 05-01-2004, 06:35 AM   #9
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Ok, so, first thing, it's important to do the
Code:
cd speedtouchconf-22-04-2004 &&
tar xzf speedtouch-1.2-sgp.tar.gz &&
cp speedtouch-1.2-sgp/src/pppoa3.c{,.backup} &&
sed 's/ep = -1;/ep = 1;/g' speedtouch-1.2-sgp/src/pppoa3.c.backup > speedtouch-1.2-sgp/src/pppoa3.c
before you compile pppoa3 or it won't work with a 2.6 kernel. What those commands do is delete a minus sign from the code in the file pppoa3.c. So if you cd speedtouch-1.2-sgp and then ./configure and make you should then have a modem_run and a pppoa3 in the folder speedtouchconf-22-04-2004/speedtouch-1.2-sgp/src. Copy modem_run and pppoa3 somewhere convenient. /usr/sbin works for me. I'll come back to them later. Now you need to make a plain text file in /etc/ppp called chap-secrets
Code:
# Secrets for authentication using CHAP
# client	server	secret		IP addresses
USERNAME	*	PASSWORD
You'll need to change the USERNAME and PASSWORD in that for the ones you use to connect to Freeserve, obviously, they're not the sort of things you can post in a forum.
This one is also a plain text file and it goes in /etc/ppp/peers and you can call it what you like but I'll call it adsl as I'll need to refer to it later
Code:
debug
kdebug 1
noipdefault
defaultroute
pty "/usr/sbin/pppoa3 -e 1 -m -1 -c -vpi 0 -vci 38"
sync
user "USERNAME"
noauth
noaccomp
nopcomp
noccp
novj
holdoff 4
persist
maxfail 25
usepeerdns
Again, you'll need to change USERNAME to your username with Freeserve and if you decided to put pppoa3 somewhere other than /usr/sbin you'll need to change the path to point to it.
Now, you'll need to put the firmware (mgmt.o) somewhere convenient./etc/ppp/mgmt.o works for me. To get the kernel ready to work we'll need to load some modules. Add these entries to /etc/modprobe.conf
Code:
alias ppp-compress-26 ppp_deflate
alias tty-ldisc-13 n_hdlc
alias ppp-compress-21 bsd_comp
alias speedtch off
alias tty-ldisc-3 ppp_async
alias char-major-108-* ppp_generic
alias tty-ldisc-14 ppp_synctty
alias ppp-compress-24 ppp_deflate
That's the bit I'm least sure about. I just copied and pasted that from the the /etc/modprobe.conf on my Mandrake 10 partition. They work for me but I don't really understand it. I prefer to build what I need into the kernel and do without the complications of modules. But lets hope that works.
Next, you'll need to create /etc/resolv.conf to connect to a domain name server. Put these entries in a plain text file called resolv.conf in /etc
Code:
nameserver 195.92.195.94
nameserver 195.92.195.95
It's best to use a DNS close to where you live and as we have the same ISP that should work fine. Now you should be ready to go. As root, use this command to load the firmware.
Code:
/usr/sbin/modem_run -s -f /etc/ppp/mgmt.o
If modem run isn't in /usr/sbin or if the firmware isn't in /etc/ppp or if it's called something other than mgmt.o , change the command to fit. Loading the firmware should make the lights on the modem flash in a reassuring way. Let it sit for a couple of seconds to settle the connect with the command
Code:
/usr/sbin/pppd call adsl
If you called the script in /etc/ppp/peers something other than adsl then change the command to fit. If all that worked you should be online. However the chances of it all working are not high. I've probably forgotten something and I don't know everything so this may take a few days work to straighten out all the wrinkles but we should be able to get there. Good luck.

Last edited by Andrew Benton; 05-01-2004 at 06:40 AM.
 
Old 05-01-2004, 07:47 AM   #10
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Hey! Hey! forget all that crap, that'll never work. To test all that I've just tried installing Mandrake 10 on the kids computer upstairs and of course that bollocks didn't work so I tried the speedtouchconf script and I got the No USB Bus found error message. This computer is different to mine as it has an ohci usb controller. Maybe that's the difference. Anyway, I just did a quick hack into the speedtouchconf script and it worked like a charm. Open speedtouchconf.sh with gedit or somesuch text editor and go to line 233 which looks like this
Code:
 else
    echo "  Linux kernel version ${KERNEL_MAJOR}.${KERNEL_MINOR} okay."
  fi

  if [ -z "${USB_TYPE}" ]; then
    echo "No USB Bus found!" | tee -a $LOGFILE
    error=`expr $error + 2`
  fi
  echo ${USB_TYPE} | grep -q UHCI 
  if [ "$?" -eq "0" ]; then 
    USB_TYPE=UHCI
  else
Comment out the nasty lines so it looks like this
Code:
 else
    echo "  Linux kernel version ${KERNEL_MAJOR}.${KERNEL_MINOR} okay."
  fi

#  if [ -z "${USB_TYPE}" ]; then
#    echo "No USB Bus found!" | tee -a $LOGFILE
#    error=`expr $error + 2`
#  fi
  echo ${USB_TYPE} | grep -q UHCI 
  if [ "$?" -eq "0" ]; then 
    USB_TYPE=UHCI
  else
...and then it just worked! I hope it works for you.
 
Old 05-01-2004, 07:57 AM   #11
Mr Tickle
Member
 
Registered: Jul 2003
Location: England, Derbyshire
Distribution: Dual boot XP pro & MDK 10 official, KDE.
Posts: 69

Original Poster
Rep: Reputation: 15
Lmao

I just got back into xp to let you know how I got on too. When it came time to :-

/usr/sbin/modem_run -s -f /etc/ppp/mgmt.o

I got both lights flash once then the left stayed green and the right stayed amber (not flashing) Before all of this both lights were green.

OK I'll try what you've done above. Should I write back the original files first? Some already existed so I backed them up.

Fingers crossed.... Reboot to linux again......

[EDIT]

I've done that and it almost worked. I got this error :-
Code:
Software Installation - SUCCESS

*** Configuration finished. Starting the connection ***
The modem lights should start flashing for approx. 20 seconds...
The modem_run command failed (code 237)
modem_run results:
Another device / program is already accessing the modem
FAILED because of modem_run error 237
The modem lights flashed once. The left staying green and right staying amber(neither flashing) How can I find out what's trying to use the modem?

Last edited by Mr Tickle; 05-01-2004 at 09:20 AM.
 
Old 05-01-2004, 12:03 PM   #12
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Just to keep you up to date, it seems one of the changes I'd made was important, I'd added this line to /etc/fstab
Code:
usbfs /proc/bus/usb usbfs defaults 0 0
If I delete it, reboot and run ./speedtouchconf.sh again I get an error very similar (but not the same) as yours. Now the problem I'm struggling with is that although running ./speedtouchconf.sh connects, the script it puts in /etc/rc.d/init.d is failing to connect when I reboot.
Try adding that line to /etc/fstab and see if it helps you.
 
Old 05-01-2004, 03:47 PM   #13
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Well I decided to go round the houses again and this time I gave the internet connection tools in the Mandrake Control Centre a good try. When I put Mandrake 10 on my computer I tried the Mandrake Control Centre but not very well, I didn't really pay attention to it as I didn't expect it to succeed - it never did in Mandrake 9.2 - but I though maybe if I tried it it might install some things that would help the speedtouchconf script to work. Perhaps that was the reason the speedtouchconf script worked on my computer. Anyway, I paid attention, did what it said ( copied the mgmt.o to /usr/speedtouch) and when I rebooted it connected. I didn't find out straight away though as by then I was into a prolonged battle with the Nvidia installer and XFree86. But anyway - Success! The Mandrake Control Centre works!
Open the Mandrake Control Centre, click new connection> ADSL connection> Alcatel Speedtouch USB modem> United Kingdom> British telecom (the company doesn't matter - it all goes through BT)> PPP over ATM (PPPoA)> fill in you details> Yes, connect at boot> No, don't restart the network> No, don't try to connect now> Reboot. Good luck. Sorry for wasting your time with all the nonesense above.
 
Old 05-01-2004, 04:54 PM   #14
Mr Tickle
Member
 
Registered: Jul 2003
Location: England, Derbyshire
Distribution: Dual boot XP pro & MDK 10 official, KDE.
Posts: 69

Original Poster
Rep: Reputation: 15
I'll try that tomorrow
You haven't wasted my time at all m8. If anything you've given me a good lesson in konsole j/k
Trying your suggestions did get me a little further. I was going insane when it said I had no usb bus. I'll let you know how I get on
 
Old 05-02-2004, 12:04 PM   #15
Mr Tickle
Member
 
Registered: Jul 2003
Location: England, Derbyshire
Distribution: Dual boot XP pro & MDK 10 official, KDE.
Posts: 69

Original Poster
Rep: Reputation: 15
I decided to reinstall mdk 10. I've copied the mgmt.o file to /usr/speedtouch and rebooted. When it reboots and the kde pops up with the icons, then modem lights start flashing for a few seconds until they stay green. But I cannot connect to any webpages.

At the bottom right of the desktop is an exclamationmark icon which says network is down press configure or something like that. I've been going in circles.

One thing concerns me though. I have a network card eth0: and adsl modem. I have a home network (both on xp). Is my internet trying to connect through my nic? How should I set them up?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
MDK 10.0 Official...USB woes...some success rhb327 Mandriva 2 12-20-2004 02:14 PM
Diff between mdk 10.1 official and mdk 10.1 community Damitha Mandriva 2 12-13-2004 02:01 AM
Internet connection with speedtouch usb-modem Solzhenitsyn Linux - Hardware 0 07-24-2004 12:48 PM
Mandrake 9.1 and speedtouch USB internet problem. Trazzt Linux - Newbie 1 05-31-2003 05:32 AM
ADSL Configuration for Speedtouch USB in Mdk 8.1 furrie Linux - Networking 4 02-05-2002 04:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 09:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration