LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 03-06-2004, 09:37 AM   #1
oh_me
LQ Newbie
 
Registered: Mar 2004
Distribution: Debian SID
Posts: 4

Rep: Reputation: 0
Speedtouch ADSL connection on kernel 2.6.x


Good afternoon!!

I'm currently running kernel 2.4.18. I connect to the net through alcatel speedtouch and am using roaring penguin. I live in Portugal so the ADSL connects through PPPoE bridged protocol. I've been trying to connect to the net using the 2.6.X kernel but haven't been quite successful. I correctly upload the firmware to the modem but when I type the 'adsl-start' command it always gets timed out.

Since i'm using the same configuration on 2.6.x that i use in 2.4.x I'm supposing that something's changed that unables roaring penguin software to correctly connect.

Anyone having the same problem?

Has anyone successfully connected to the internet with a alcatel speedtouch using kernel 2.6.x?

thanx for you time
 
Old 03-06-2004, 11:06 AM   #2
Qzukk
Member
 
Registered: Jun 2003
Posts: 132

Rep: Reputation: 15
Its possible that the "old" PPPoX stuff is no longer supported in 2.6. Around the end of 2.4, the kernel learned to do its own pppox with a current version of pppd. In the kernel menuconfig, under Device Drivers -> Networking Support, enable PPP, and in the new options there is PPP Over Ethernet. (looking now, it _says_ it should support the roaring penguin thing too... odd, if you have this enabled, I don't know what your problem is.)

Once thats enabled, install the latest pppd, and look in its documentation directory for the sample pppoe call file. It should only take minor editing, after which you can then run "pppd call filenamehere"
 
Old 03-06-2004, 02:59 PM   #3
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
You obviously don't have a speedtouch modem. This works for me http://www.mail-archive.com/speedtou.../msg05299.html
with the speedtouchconf package http://speedtouchconf.sourceforge.net/
make sure you don't enable the kernel module when you compile the kernel.
 
Old 03-07-2004, 08:10 AM   #4
oh_me
LQ Newbie
 
Registered: Mar 2004
Distribution: Debian SID
Posts: 4

Original Poster
Rep: Reputation: 0
I've tried the script suggested above but it won't work. It's been done for kernel 2.4.x since in kernel 2.6.x the UHCI module is no longer called usb_uhci but uhci_hcd. Anyhow i've tried running it after modprobing the uhci_hcd module. The firmware loading is OK but the connection always fails.

I've read the help on the pppoe kernel module and saw the roaring penguin suggestion. Anyway, it doesn't work. I currently have the 2.6.3 kernel and the 2.4.25 kernel. I use a simple script which i've made to connect to the net. When i call it using 2.4.25 kernel o get ....Connected, but on 2.6.3 i always get .....................TIMED OUT

This is the script by the way:

modprobe tun
sleep 2
modem_run -m -f /usr/lib/alcaudsl.sys
pppoa3 -vpi 0 -vci 35 -b -m 1 -c
adsl-start
sleep 2

I guess the problem is that in Portugal it is used a bridged pppoe protocol. Anyway, i still can't figure why it doesn't work with 2.6.x.

I've also tried editing the usb.c file but it was fruitless.
 
Old 03-07-2004, 12:47 PM   #5
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Did you try altering the kernel source as suggested http://www.mail-archive.com/speedtou.../msg05299.html ? As for uhci, it works for me with the 2.6.3 kernel, but I build it into the kernel. Why make it as a module? You need it to connect to the internet. What use is a computer without the internet?
 
Old 03-07-2004, 05:13 PM   #6
oh_me
LQ Newbie
 
Registered: Mar 2004
Distribution: Debian SID
Posts: 4

Original Poster
Rep: Reputation: 0
I've got it going now.

Well, the script didn't do the trick, but the kernel code comment proved quite worthy.
After commenting that line in the usb.c file and rebuilding the kernel, my 2.4.x script worked once more, yuppiiiiiiiii!!!

Thank you all for your help
 
Old 03-29-2004, 03:22 AM   #7
aftertaf
LQ Newbie
 
Registered: Mar 2004
Distribution: debian SID
Posts: 5

Rep: Reputation: 0
Unhappy Speedtouch 2.6.4 ... why don't you want to work!!?

Relative newbie with linux, running debian sid.
2.4.22 -> modem works ok...

tried to pass to 2.6.4... and no modem fun to be had.

I have tried different methods (mostly while 2.6 is running) and nothing works

1. The kernel module for the modem, do i include it when i compile 2.6.4 ?

2. Speedbundle package (tarball). Uncompressed, but make returns an error cos i have no Rules.make in /usr/src/linux. (i have changed the scripts etc...)

3. Been to Lea-Linux (french help site) but their methosd dont want to work either.

4. D/Loaded (zinXP) latest speedtouch .deb, dpkg'ed it under 2.6 and 2.4... no joy

when i run modem_run -f /usr/shape/speedtouch/mgmt.o -> zsh returns an error 255......

what is going on???
i think i've tried all the different techniques posted on the net, but have probably messed up somewhere and it blocks...
(btw, both LEDs are green...)

HELPPPPPPPPPPPPPPPPP

thx
 
Old 03-29-2004, 05:40 AM   #8
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
First, with a 2.6 kernel alter the source before you compile the kernel http://www.mail-archive.com/speedtou.../msg05299.html
Second, do not build the speedtouch driver into the kernel, do not build it as a module. Just say no. Use the user space drivers.
Third, the speedbundle package doesn't work with a 2.6 kernel, use speedtouchconf http://speedtouchconf.sourceforge.net/
 
Old 03-29-2004, 06:48 AM   #9
aftertaf
LQ Newbie
 
Registered: Mar 2004
Distribution: debian SID
Posts: 5

Rep: Reputation: 0
Smile

thx man....

i'll give it a go tomorrow...

and i'll post you the errors

thx again.... cos it's starting to get hairy...

LONG LIVE ETHERNET MODEMS


kernel mode drivers = bad thing, it seems......
 
Old 03-30-2004, 06:35 AM   #10
aftertaf
LQ Newbie
 
Registered: Mar 2004
Distribution: debian SID
Posts: 5

Rep: Reputation: 0
Talking No errors to be found

YES YES YES YES YES

and again...


YES YES YES YES YES YES YES


(posted from kernel 2.6.4 and happy about it )
 
Old 04-18-2004, 02:07 PM   #11
Evilone
Member
 
Registered: Oct 2002
Location: UK
Distribution: Slack 9.1 (2.6.5)
Posts: 307

Rep: Reputation: 30
Problemo !!!!!!!

The new kernel 2.6.6-pre* seems to be different.

The usb.c file no longer contains the code required to comment out to fix the alcatel usb adsl modem problem.

Any takers on a solution? I know it's not a stable kernel yet, but it will
be soon, and yet again *sigh* us alcatel users are going to get shafted.

I did notice another problem with the 2.6.6 series, you now have the option to select 4 or 8k kernel buffers. 4 kills the Nvidia driver, use 8. The newer kernels will soon be migrating totally to 4, and nvidia have announced that there is a new driver in the pipeline to address this issue.

evilone !!
 
Old 04-18-2004, 04:38 PM   #12
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Solution - alter the code in the driver. If you use the current speedtouchconf tarball it uses the speedtouch-1.2-sgp.tar.gz tarball. If you untar that it will make a speedtouch-1.2-sgp folder, if you go into that and find the file speedtouch-1.2-sgp/src/pppoa3.c there's some code which looks like this
Code:
/* Logging variables */
static FILE *log;
#ifndef USE_SYSLOG
#define LOG_NAME_FORMAT "/var/log/pppoa3-modem%d.log"
static char *log_file;
#endif
static int verbose;
static int alternate_ep = -1;	/* historically wasn't set */

/* Named pipe filename */
#define PIPE_NAME_FORMAT "/var/run/pppoa3-modem%d.pipe"
static int use_pipe;
static int pipe_fd;
See the line with the /* historically wasn't set */? Delete the minus sign from infront of the 1 so it looks like this
Code:
static int alternate_ep = 1;	/* historically wasn't set */
then open a terminal and cd into the speedtouch-1.2-sgp folder and
Code:
./configure && make && cp src/modem_run /usr/local/sbin && rm -f /usr/local/sbin/pppoa3 && cp src/pppoa3 /usr/local/sbin
and it should work as normal. At least, it's working for me now with a 2.6.6-rc1 kernel and an old green Speedtouch. I'll need to test it some more to see if there are any problems. I'll go upstairs and try it with a purple Speedtouch 330 in a bit. Good luck.

Edit - I knew there was a reason I didn't like this solution. It's not so reliable. I've had to increase the sleep time in my dial script to 15 seconds as it quite often fails to connect when I reboot so it is a bit of a backward step but it's not the end of the world.

Edit (again) no it's not the sleep time that's the problem it's the pppd call adsl part that's taking longer. It seems to be working though

Last edited by Andrew Benton; 04-18-2004 at 06:20 PM.
 
Old 04-19-2004, 08:47 AM   #13
Evilone
Member
 
Registered: Oct 2002
Location: UK
Distribution: Slack 9.1 (2.6.5)
Posts: 307

Rep: Reputation: 30
Oh great, so now i have to re-install the speedtouch stuff. Where before all i had to do was edit the usb.c on a new kernel.

This makes me nervous..... I did'nt mind editing usb.c everytime i recompiled my kernel.. But the speedtouch i allready have working, and god i remember the hours i spent getting it that way. Ok maybee i know a hundred times as much about linux as i did back when i was a noob, but that modem scares me. I remember the late nights getting it to work in the first place lol, at least recompiling kernels i could go back a version and have working internet, if i stuff the speedtouch config up, i'll have no net access whatsoever

Anyway, cheers for the solution, i'll give it a whirl when i can pluck up courage. Will repost and let you know how it went.

Ade
 
Old 05-04-2004, 11:21 AM   #14
Mr Tickle
Member
 
Registered: Jul 2003
Location: England, Derbyshire
Distribution: Dual boot XP pro & MDK 10 official, KDE.
Posts: 69

Rep: Reputation: 15
I can't find the folder drivers/usb/core/usb.c

where is it located?

Thanks
 
Old 05-04-2004, 11:25 AM   #15
Evilone
Member
 
Registered: Oct 2002
Location: UK
Distribution: Slack 9.1 (2.6.5)
Posts: 307

Rep: Reputation: 30
it's located under your kernel source folder.

For example. mine is under /usr/src/linux-2.6.5/
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
2.6.10 upgrade - speedtouch 330 adsl - reboot - usbdevfs not supported by kernel lets-eat-gary Fedora 2 01-25-2005 11:17 AM
ADSL Speedtouch USB Linbie23 Yoper 1 01-09-2005 07:16 AM
speedtouch usb adsl modem - 2.6 kernel - working! lets-eat-gary LinuxQuestions.org Member Success Stories 1 08-21-2004 06:32 PM
Can't get ADSL connection to work (Speedtouch USB) modem sleeper_service Mandriva 5 03-31-2004 05:30 AM
Speedtouch ADSL modem Pietje70 Linux - Newbie 1 09-04-2003 10:31 PM


All times are GMT -5. The time now is 05:05 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration