MandrivaThis Forum is for the discussion of Mandriva (Mandrake) Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Dual boot XP pro & MDK 10 official, KDE.
Posts: 69
Rep:
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
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
Distribution: Dual boot XP pro & MDK 10 official, KDE.
Posts: 69
Original Poster
Rep:
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
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.
Distribution: Dual boot XP pro & MDK 10 official, KDE.
Posts: 69
Original Poster
Rep:
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
Distribution: Dual boot XP pro & MDK 10 official, KDE.
Posts: 69
Original Poster
Rep:
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]#
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?
Distribution: Dual boot XP pro & MDK 10 official, KDE.
Posts: 69
Original Poster
Rep:
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
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
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.
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.
Distribution: Dual boot XP pro & MDK 10 official, KDE.
Posts: 69
Original Poster
Rep:
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?
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.
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.
Distribution: Dual boot XP pro & MDK 10 official, KDE.
Posts: 69
Original Poster
Rep:
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
Distribution: Dual boot XP pro & MDK 10 official, KDE.
Posts: 69
Original Poster
Rep:
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.