Skip to contentSkip to conversation

speedtouch for 2.6.0

DISCUSSION Guldo K 2 participants 13 messages Dec 28, 2003 – Jan 7, 2004

lore
Share & tools
lore

Guldo K

author
#0 lore raw

Hello.
I'm trying to get this usb adsl modem to work with the latest stable kernel.
I searched for this on the ML archive, and realized that the kernel module should be used.
But I can't understand one thing (at least...) which consequences does the new alcatel module driver have on getting this modem to work? Does it override kernel setup described on the speedbundle site, or not?
How should the kernel be compiled?

Many thanks,

*Guldo*

#1 lore raw

Hi Guldo, I assume you are using the kernel mode driver (kernel module) and not the user mode driver (pppoa2, pppoa3). For that you need to compile the kernel module.

Quoted 7 lines

I'm trying to get this usb adsl modem to work with the latest stable kernel.
I searched for this on the ML archive, and realized that the kernel module should be used.
But I can't understand one thing (at least...) which consequences does the new alcatel module driver have on getting this modem to work?

It works the same as the module in 2.4.22 and later. This module was originally only available outside the kernel tree (it can be found for example in the speedbundle on http://linux-usb.sf.net/SpeedTouch).
Now that it is in the kernel tree it is pointless to compile it in the speedbundle (and it doesn't work right now for 2.6 kernels). Just turn it on in your kernel .config and recompile your kernel.

Quoted 2 lines

Does it override kernel setup described on the speedbundle site, or not?

Well, you still need to turn on ATM support etc, but there is no need to patch the kernel for example.

Quoted 1 line

How should the kernel be compiled?

With

CONFIG_USB_SPEEDTOUCH=m

at least.

Ciao,

Duncan.

author
#2 lore raw
Quoted 8 lines

It works the same as the module in 2.4.22 and later. This module was originally only available outside the kernel tree (it can be found for example in the speedbundle on http://linux-usb.sf.net/SpeedTouch).
Now that it is in the kernel tree it is pointless to compile it in the speedbundle (and it doesn't work right now for 2.6 kernels). Just turn it on in your kernel .config and recompile your kernel.

Thanks for your anwser.
I loaded all modules:

Module                  Size  Used by
uhci_hcd               30928  0 
speedtch               14096  0 
crc32                   4320  1 speedtch
tdfx                   37096  0 
pcspkr                  3300  0 
tdfxfb                 12456  0 
cfbimgblt               3136  1 tdfxfb

then configured all necessary files.
All fine. Nice green lights.

But when I ran pppd, I got:
pppd: /usr/lib/pppd/plugins/pppoatm.so:
cannot open shared object file: No such file or directory
pppd: Couldn't load plugin /usr/lib/pppd/plugins/pppoatm.so

I looked for it and noticed it was in /usr/lib/pppd/2.4.20/,
so I linked it; but then I got:
pppd: libatm.so.1: cannot open shared object file: No such file or directory
pppd: Couldn't load plugin /usr/lib/pppd/plugins/pppoatm.so

Looks like I missed some piece of installation...

Could you help me?

Grazie,

*Guldo*

#3 lore raw
Quoted 5 lines

But when I ran pppd, I got:
pppd: /usr/lib/pppd/plugins/pppoatm.so:
cannot open shared object file: No such file or directory
pppd: Couldn't load plugin /usr/lib/pppd/plugins/pppoatm.so

Quoted 8 lines

I looked for it and noticed it was in /usr/lib/pppd/2.4.20/, so I linked it; but then I got:
pppd: libatm.so.1: cannot open shared object file: No such file or directory pppd: Couldn't load plugin /usr/lib/pppd/plugins/pppoatm.so

Looks like I missed some piece of installation...

Could you help me?

Hi Guldo, from your email I had understood that your setup worked under 2.4. Is that right? Then it should work under 2.6. Anyway, the speedbundle (
http://linux-usb.sourceforge.net/SpeedTouch/download/index.html
) contains source code for an appropriate pppd + ATM library.

Ciao,

Duncan.

author
#4 lore raw
Quoted 2 lines · Duncan Sands

Hi Guldo, from your email I had understood that your setup worked under 2.4. Is that right?

It's not. I didn't tell you that my previous setup (2.4) was about the user driver, not the kernel one.

Quoted 3 lines

Anyway, the speedbundle (
http://linux-usb.sourceforge.net/SpeedTouch/download/index.html
) contains source code for an appropriate pppd + ATM library.

Thanks.
I tried to compile just ppp, but "make" resulted in:
cd chat; make all
make[1]: Entering directory /tmp/speedbundle-1.0/ppp/chat' make[1]: Nothing to be done for all'.
make[1]: Leaving directory `/tmp/speedbundle-1.0/ppp/chat'
cd pppd/plugins; make all
make[1]: Entering directory `/tmp/speedbundle-1.0/ppp/pppd/plugins' gcc -o pppoatm.so -shared -g -O2 -I.. -I../../include -fPIC pppoatm.c -latm pppoatm.c:19:17: atm.h: No such file or directory
In file included from /usr/include/linux/atmdev.h:12,

                 from pppoatm.c:20:

/usr/include/linux/atm.h:211: error: syntax error before "uint32_t" /usr/include/linux/atm.h:213: error: syntax error before '}' token /usr/include/linux/atm.h:217: error: parameter addr' has incomplete type pppoatm.c: In function setdevname_pppoatm':
pppoatm.c:78: error: T2A_PVC' undeclared (first use in this function) pppoatm.c:78: error: (Each undeclared identifier is reported only once pppoatm.c:78: error: for each function it appears in.) pppoatm.c:78: error: T2A_NAME' undeclared (first use in this function) make[1]: *** [pppoatm.so] Error 1
make[1]: Leaving directory `/tmp/speedbundle-1.0/ppp/pppd/plugins'
make: *** [all] Error 2

... and of course I don't understand anything of this.... Sorry.

*Guldo*

#5 lore raw
Quoted 7 lines · Guldo K
Quoted 2 lines · Duncan Sands

Hi Guldo, from your email I had understood that your setup worked under 2.4. Is that right?

It's not. I didn't tell you that my previous setup (2.4) was about the user driver, not the kernel one.

Quoted 6 lines
Quoted 3 lines

Anyway, the speedbundle (
http://linux-usb.sourceforge.net/SpeedTouch/download/index.html
) contains source code for an appropriate pppd + ATM library.

Thanks.
I tried to compile just ppp, but "make" resulted in:

Yeah, I was a bit brief :) Look in the top-level Makefile (in speedbundle) to see how to compile. The easiest thing to do though is probably to use the attached top-level Makefile, which is the same as the current one except that it doesn't compile the kernel module. I didn't test it but it should work.

Ciao,

Duncan.

all: build

configure: configure-stamp
configure-stamp:
./configure

build: configure-stamp build-stamp
build-stamp:
# cd kernel_module && $(MAKE)

	cd linux-atm/src/lib && $(MAKE)
	cd ppp/pppd && $(MAKE)
	cd ppp/pppd/plugins && $(MAKE) C_INCLUDE_PATH=../../../linux-atm/src/include LIBRARY_PATH=../../../linux-atm/src/lib/.libs
	cd firmware && $(MAKE)
	cd firmware_loader && $(MAKE)
	cd hotplug_scripts && $(MAKE)
	cd ppp_scripts && $(MAKE)
	touch build-stamp

clean:

	rm -f build-stamp configure-stamp
	cd firmware && $(MAKE) clean
	cd firmware_loader && $(MAKE) clean
	cd hotplug_scripts && $(MAKE) clean
#	cd kernel_module && $(MAKE) clean
	cd linux-atm/src/lib && $(MAKE) clean
	cd ppp/pppd/plugins && $(MAKE) clean
	cd ppp/pppd && $(MAKE) clean
	cd ppp_scripts && $(MAKE) clean

install: build
# cd kernel_module && $(MAKE) install

	cd firmware && $(MAKE) install
	cd firmware_loader && $(MAKE) modem_run
	cd hotplug_scripts && $(MAKE) install
	cd linux-atm/src/lib && $(MAKE) install
	cd ppp/pppd && $(MAKE) install
	cd ppp/pppd/plugins && $(MAKE) install
	cd ppp_scripts && $(MAKE) install
author
#6 lore raw
Quoted 9 lines · Duncan Sands

Yeah, I was a bit brief :) Look in the top-level Makefile (in speedbundle) to see how to compile. The easiest thing to do though is probably to use the attached top-level Makefile, which is the same as the current one except that it doesn't compile the kernel module. I didn't test it but it should work.

Ciao,

Duncan.

I couldn't compile.
I get the output below.
What's wrong with me?

*Guldo*

cd linux-atm/src/lib && make
make[1]: Entering directory `/tmp/speedbundle-1.0/linux-atm/src/lib'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/tmp/speedbundle-1.0/linux-atm/src/lib'
cd ppp/pppd && make
make[1]: Entering directory `/tmp/speedbundle-1.0/ppp/pppd'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/tmp/speedbundle-1.0/ppp/pppd'
cd ppp/pppd/plugins && make C_INCLUDE_PATH=../../../linux-atm/src/include LIBRARY_PATH=../../../linux-atm/src/lib/.libs make[1]: Entering directory `/tmp/speedbundle-1.0/ppp/pppd/plugins'
for d in rp-pppoe; do make -w -C $d all; done
make[2]: Entering directory `/tmp/speedbundle-1.0/ppp/pppd/plugins/rp-pppoe'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/tmp/speedbundle-1.0/ppp/pppd/plugins/rp-pppoe'
make[1]: Leaving directory `/tmp/speedbundle-1.0/ppp/pppd/plugins'
cd firmware && make
make[1]: Entering directory `/tmp/speedbundle-1.0/firmware'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/tmp/speedbundle-1.0/firmware'
cd firmware_loader && make
make[1]: Entering directory `/tmp/speedbundle-1.0/firmware_loader'
cd src && make
make[2]: Entering directory `/tmp/speedbundle-1.0/firmware_loader/src'
gcc -Wall -I. -I/usr/include -I/usr/include -O2 -DVERSION=\"1.2-beta2\" -D_REENTRANT -D_THREAD_SAFE -o pusb.o -c pusb-linux.c In file included from /usr/include/linux/usb.h:4,

                 from pusb-linux.c:42:

/usr/include/linux/mod_devicetable.h:18: error: syntax error before "__u32" /usr/include/linux/mod_devicetable.h:20: error: syntax error before "class" /usr/include/linux/mod_devicetable.h:21: error: syntax error before "driver_data" /usr/include/linux/mod_devicetable.h:31: error: syntax error before "__u32" /usr/include/linux/mod_devicetable.h:33: error: syntax error before "model_id" /usr/include/linux/mod_devicetable.h:34: error: syntax error before "specifier_id" /usr/include/linux/mod_devicetable.h:35: error: syntax error before "version" /usr/include/linux/mod_devicetable.h:36: error: syntax error before "driver_data" /usr/include/linux/mod_devicetable.h:99: error: syntax error before "__u16" /usr/include/linux/mod_devicetable.h:103: error: syntax error before "idProduct" /usr/include/linux/mod_devicetable.h:104: error: syntax error before "bcdDevice_lo" /usr/include/linux/mod_devicetable.h:105: error: syntax error before "bcdDevice_hi" /usr/include/linux/mod_devicetable.h:108: error: syntax error before "bDeviceClass" /usr/include/linux/mod_devicetable.h:109: error: syntax error before "bDeviceSubClass" /usr/include/linux/mod_devicetable.h:110: error: syntax error before "bDeviceProtocol" /usr/include/linux/mod_devicetable.h:113: error: syntax error before "bInterfaceClass" /usr/include/linux/mod_devicetable.h:114: error: syntax error before "bInterfaceSubClass" /usr/include/linux/mod_devicetable.h:115: error: syntax error before "bInterfaceProtocol" /usr/include/linux/mod_devicetable.h:118: error: syntax error before "driver_info" /usr/include/linux/mod_devicetable.h:135: error: syntax error before "__u16" /usr/include/linux/mod_devicetable.h:138: error: syntax error before "dev_type" /usr/include/linux/mod_devicetable.h:139: error: syntax error before "cu_model" /usr/include/linux/mod_devicetable.h:140: error: syntax error before "dev_model" /usr/include/linux/mod_devicetable.h:142: error: syntax error before "driver_info" pusb-linux.c:66: error: redefinition of struct usb_device_descriptor' pusb-linux.c: In function pusb_control_msg':
pusb-linux.c:164: error: structure has no member named requesttype' pusb-linux.c:165: error: structure has no member named request' pusb-linux.c:166: error: structure has no member named value' pusb-linux.c:167: error: structure has no member named index' pusb-linux.c:168: error: structure has no member named `length'
make[2]: *** [pusb.o] Error 1
make[2]: Leaving directory `/tmp/speedbundle-1.0/firmware_loader/src' make[1]: *** [modem] Error 2
make[1]: Leaving directory `/tmp/speedbundle-1.0/firmware_loader'
make: *** [build-stamp] Error 2

#7 lore raw
Quoted 3 lines

I couldn't compile.
I get the output below.
What's wrong with me?

You are compiling against 2.6 kernel headers.
(Most people have 2.4 kernel headers in
/usr/include/linux, even if they are running a
2.6 kernel). You will need to update the
firmware_loader directory. Do the following:

cvs -d:pserver:[email protected]:/cvsroot/speedtouch login

(just hit return if asked for a password). Then do

cvs -z 9 -d:pserver:[email protected]:/cvsroot/speedtouch co speedtouch

This creates a directory called speedtouch. Replace the contents of the firmware_loader directory with the contents of this new speedtouch directory. Now rebuild: in the top level of the speedbundle do

make clean
make
(become root)
make install

Quoted 1 line

*Guldo*

Duncan.

Quoted 70 lines

cd linux-atm/src/lib && make
make[1]: Entering directory /tmp/speedbundle-1.0/linux-atm/src/lib' make[1]: Nothing to be done for all'.
make[1]: Leaving directory `/tmp/speedbundle-1.0/linux-atm/src/lib' cd ppp/pppd && make
make[1]: Entering directory /tmp/speedbundle-1.0/ppp/pppd' make[1]: Nothing to be done for all'.
make[1]: Leaving directory `/tmp/speedbundle-1.0/ppp/pppd'
cd ppp/pppd/plugins && make C_INCLUDE_PATH=../../../linux-atm/src/include LIBRARY_PATH=../../../linux-atm/src/lib/.libs make[1]: Entering directory `/tmp/speedbundle-1.0/ppp/pppd/plugins' for d in rp-pppoe; do make -w -C $d all; done
make[2]: Entering directory /tmp/speedbundle-1.0/ppp/pppd/plugins/rp-pppoe' make[2]: Nothing to be done for all'.
make[2]: Leaving directory /tmp/speedbundle-1.0/ppp/pppd/plugins/rp-pppoe' make[1]: Leaving directory /tmp/speedbundle-1.0/ppp/pppd/plugins' cd firmware && make
make[1]: Entering directory /tmp/speedbundle-1.0/firmware' make[1]: Nothing to be done for all'.
make[1]: Leaving directory `/tmp/speedbundle-1.0/firmware'
cd firmware_loader && make
make[1]: Entering directory `/tmp/speedbundle-1.0/firmware_loader' cd src && make
make[2]: Entering directory `/tmp/speedbundle-1.0/firmware_loader/src' gcc -Wall -I. -I/usr/include -I/usr/include -O2 -DVERSION=\"1.2-beta2\" -D_REENTRANT -D_THREAD_SAFE -o pusb.o -c pusb-linux.c In file included from /usr/include/linux/usb.h:4,

                 from pusb-linux.c:42:

/usr/include/linux/mod_devicetable.h:18: error: syntax error before "__u32" /usr/include/linux/mod_devicetable.h:20: error: syntax error before "class" /usr/include/linux/mod_devicetable.h:21: error: syntax error before "driver_data" /usr/include/linux/mod_devicetable.h:31: error: syntax error before "__u32" /usr/include/linux/mod_devicetable.h:33: error: syntax error before "model_id" /usr/include/linux/mod_devicetable.h:34: error: syntax error before "specifier_id" /usr/include/linux/mod_devicetable.h:35: error:
syntax error before "version" /usr/include/linux/mod_devicetable.h:36:
error: syntax error before "driver_data" /usr/include/linux/mod_devicetable.h:99: error: syntax error before "__u16" /usr/include/linux/mod_devicetable.h:103: error: syntax error before "idProduct" /usr/include/linux/mod_devicetable.h:104: error: syntax error before "bcdDevice_lo" /usr/include/linux/mod_devicetable.h:105: error:
syntax error before "bcdDevice_hi" /usr/include/linux/mod_devicetable.h:108: error: syntax error before "bDeviceClass" /usr/include/linux/mod_devicetable.h:109: error: syntax error before "bDeviceSubClass" /usr/include/linux/mod_devicetable.h:110:
error: syntax error before "bDeviceProtocol" /usr/include/linux/mod_devicetable.h:113: error: syntax error before "bInterfaceClass" /usr/include/linux/mod_devicetable.h:114: error: syntax error before "bInterfaceSubClass" /usr/include/linux/mod_devicetable.h:115:
error: syntax error before "bInterfaceProtocol" /usr/include/linux/mod_devicetable.h:118: error: syntax error before "driver_info" /usr/include/linux/mod_devicetable.h:135: error: syntax error before "__u16" /usr/include/linux/mod_devicetable.h:138: error: syntax error before "dev_type" /usr/include/linux/mod_devicetable.h:139: error:
syntax error before "cu_model" /usr/include/linux/mod_devicetable.h:140:
error: syntax error before "dev_model" /usr/include/linux/mod_devicetable.h:142: error: syntax error before "driver_info" pusb-linux.c:66: error: redefinition of struct usb_device_descriptor' pusb-linux.c: In function pusb_control_msg':
pusb-linux.c:164: error: structure has no member named requesttype' pusb-linux.c:165: error: structure has no member named request' pusb-linux.c:166: error: structure has no member named value' pusb-linux.c:167: error: structure has no member named index' pusb-linux.c:168: error: structure has no member named `length' make[2]: *** [pusb.o] Error 1
make[2]: Leaving directory `/tmp/speedbundle-1.0/firmware_loader/src' make[1]: *** [modem] Error 2
make[1]: Leaving directory `/tmp/speedbundle-1.0/firmware_loader'
make: *** [build-stamp] Error 2

author
#8 lore raw
Quoted 9 lines · Duncan Sands

You are compiling against 2.6 kernel headers.
(Most people have 2.4 kernel headers in
/usr/include/linux, even if they are running a
2.6 kernel). You will need to update the
firmware_loader directory. Do the following:

cvs -d:pserver:[email protected]:/cvsroot/speedtouch login

(just hit return if asked for a password).

It looks like this needs a connection... it couldn't find the server. Of course, I'm offline when doing this. :-(

This is getting too frustrating...
Maybe I'd better get an ethernet modem, shouldn't I?

Anyway, thank you very much for your answers and your patience.

Happy 2004! :-)

*Guldo*

Quoted 13 lines

Then do

cvs -z 9 -d:pserver:[email protected]:/cvsroot/speedtouch co speedtouch

This creates a directory called speedtouch. Replace the contents of the firmware_loader directory with the contents of this new speedtouch directory. Now rebuild: in the top level of the speedbundle do

make clean
make
(become root)
make install

#9 lore raw
Quoted 2 lines

It looks like this needs a connection... it couldn't find the server. Of course, I'm offline when doing this. :-(

The famous catch-22 of setting up network connectivity...

Quoted 1 line

This is getting too frustrating...

You are nearly there.

Quoted 1 line

Maybe I'd better get an ethernet modem, shouldn't I?

Maybe you should start with 2.4 and not 2.6.

Ciao,

Duncan.

author
#10 lore raw
Quoted 1 line

Maybe you should start with 2.4 and not 2.6.

Thanks for your help.

I compiled 2.4.22, and tried to install speedbundle; but it looks like I still have the very same error messages... I'd try and understand what kernel headers *are* (sorry), but in the meantime I switched back to the user driver.
One more thing to ask you: I discarded all the config made for the kernel driver (I think so...), but as I plug my modem in, the speedtch module is loaded.
I have to unload it in order to get modem_run to work properly with the user driver.
Why is it so? How can I make speedtch not to be loaded automatically, if I can?
(without recompiling the kernel)

Thank you very much!

Quoted 3 lines

Ciao,

Duncan.

Ciao,

*Guldo*

#11 lore raw

Hi Guldo,

Quoted 5 lines

I compiled 2.4.22, and tried to install speedbundle; but it looks like I still have the very same error messages... I'd try and understand what kernel headers *are* (sorry), but in the meantime I switched back to the user driver.

Looks like your libc has 2.6 kernel headers. I refer you to my previous answer:

You are compiling against 2.6 kernel headers.
(Most people have 2.4 kernel headers in
/usr/include/linux, even if they are running a
2.6 kernel). You will need to update the
firmware_loader directory. Do the following:

cvs -d:pserver:[email protected]:/cvsroot/speedtouch login

(just hit return if asked for a password). Then do

cvs -z 9 -d:pserver:[email protected]:/cvsroot/speedtouch co speedtouch

This creates a directory called speedtouch. Replace the contents of the firmware_loader directory with the contents of this new speedtouch directory. Now rebuild: in the top level of the speedbundle do

make clean
make
(become root)
make install

Quoted 8 lines

One more thing to ask you: I discarded all the config made for the kernel driver (I think so...), but as I plug my modem in, the speedtch module is loaded.
I have to unload it in order to get modem_run to work properly with the user driver.
Why is it so? How can I make speedtch not to be loaded automatically, if I can?
(without recompiling the kernel)

Remove the speedtch.o file in
/lib/modules/(kernelversion)/kernel/drivers/usb

Ciao,

Duncan.

author
#12 lore raw
Quoted 2 lines · Duncan Sands

Looks like your libc has 2.6 kernel headers. I refer you to my previous answer:

<cut>

Thanks a lot!
I didn't realized what exactly was needed... I thought I could compile in 2.4.22, since 2.6.0 was not working...
Anyway I fixed it, thanks to the user module that let me set up that cvs dir.
So now I'm writing on my neatly working Debian Sid, with my nice kernel-driver-adsl-connection on my 2.6.0 Linux.
I really thank you *VERY MUCH* for your GREAT help. :-)))

All the best,

*Guldo*