AVM - FRITZ! WLAN USB Stick - Problem

Hi, I’m an absolute newbie (so the reason could be very simple). I’ve already googled and tried some things out to fix it, not knowing what I was doing.
When I follow the way of installation proposed by the readme file, I encounter the following error:

linux-xjq4:/home/christian/Desktop/Linux/USB WLAN # uname -a
Linux linux-xjq4 2.6.25.5-1.1-pae #1 SMP 2008-06-07 01:55:22 +0200 i686 athlon i386 GNU/Linux

linux-xjq4:/home/christian/Desktop/Linux/USB WLAN # rpm -qa | grep kernel
kernel-syms-2.6.25.5-1.1
linux-kernel-headers-2.6.25-8.1
kernel-source-2.6.25.5-1.1
kernel-docs-2.6.25.5-1.1
nfs-kernel-server-1.1.2-8.1
kernel-xen-2.6.25.5-1.1
kernel-pae-2.6.25.5-1.1
kernel-default-2.6.25.5-1.1

linux-xjq4:/home/christian/Desktop/Linux/USB WLAN # cat /etc/SuSE-release
openSUSE 11.0 (i586)
VERSION = 11.0

linux-xjq4:/home/christian/Desktop/Linux/USB WLAN # rpm -qa |grep cc
xorg-x11-libX11-ccache-7.3-77.1
simple-ccsm-0.7.4-35.1
delayacct-utils-2.6.25.5-1.1
gcc43-fortran-4.3.1_20080507-6.1
gcc-objc-4.3-39.1
ruby-racc-1.4.5_all-185.1
ccache-2.4-112.1
gcc43-4.3.1_20080507-6.1
libgcc43-4.3.1_20080507-6.1
javacc-4.0-44.1
ccrtp-1.5.0-112.1
gcc43-c+±4.3.1_20080507-6.1
gcc-java-4.3-39.1
gcc43-info-4.3.1_20080507-6.1
cross-spu-gcc-4.3.1_20080507-7.1
gcc-c+±4.3-39.1
posix_cc-1.4-465.1
gcc43-gij-4.3.1_20080507-9.1
gcc-4.3-39.1
gcc43-java-4.3.1_20080507-9.1
perl-Class-Accessor-0.31-50.1
gcc-gij-4.3-39.1
gcc-info-4.3-39.1
gcc43-objc-4.3.1_20080507-6.1
gcc-fortran-4.3-39.1

linux-xjq4:/home/christian/Desktop/Linux/USB WLAN/fritz # ./install
make: Entering directory /home/christian/Desktop/Linux/USB WLAN/fritz/src' rm -f main.o driver.o tools.o lib.o buffers.o wext.o rm -f fwlanusb.o fwlanusb.ko make: Leaving directory /home/christian/Desktop/Linux/USB WLAN/fritz/src’
make: Entering directory /home/christian/Desktop/Linux/USB WLAN/fritz/src' make -C /lib/modules/2.6.25.5-1.1-pae/build SUBDIRS=/home/christian/Desktop/Linux/USB WLAN/fritz/src modules make[1]: Entering directory /usr/src/linux-2.6.25.5-1.1-obj/i386/pae’
make -C /usr/src/linux-2.6.25.5-1.1 O=/usr/src/linux-2.6.25.5-1.1-obj/i386/pae/. WLAN/fritz/src modules
make[3]: *** No rule to make target WLAN/fritz/src'. Stop. make[2]: *** [sub-make] Error 2 make[1]: *** [all] Error 2 make[1]: Leaving directory /usr/src/linux-2.6.25.5-1.1-obj/i386/pae’
make: *** [fwlanusb.o] Error 2
make: Leaving directory /home/christian/Desktop/Linux/USB WLAN/fritz/src' make: Entering directory /home/christian/Desktop/Linux/USB WLAN/fritz/src’
cp: cannot stat fwlanusb.ko': No such file or directory make: *** [install] Error 1 make: Leaving directory /home/christian/Desktop/Linux/USB WLAN/fritz/src’

Hi Chris – need more information:
What’s the make and model and hardware version of the usb wlan stick
What’s the response you get in a console to this command (with the usb wlan attached): lsusb
What readme file are you talking about, can you attach it for us to see?

I hope these are the ones you asked for:
make version: 3.81-103.1
model of the stick: AVM WLAN USB Device

sorry, how do I look up the hardware version?

linux-xjq4:/home/christian/Desktop/Linux/USB WLAN/fritz # lsusb
Bus 002 Device 004: ID 046d:0a06 Logitech, Inc.
Bus 002 Device 003: ID 046d:c51c Logitech, Inc.
Bus 002 Device 002: ID 0451:2036 Texas Instruments, Inc. TUSB2036 Hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 004: ID 05e3:0710 Genesys Logic, Inc. USB 2.0 33-in-1 Card Reader
Bus 001 Device 002: ID 057c:5601 AVM GmbH AVM FRITZ!WLAN Stick
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub 

http://www.avm.de/files/cardware/fritzwlanusb.stick/linux/suse.10.2/fwlanusb-1.00.00.tar.gz
Inside this file’s subfolder /fritz is the README.html file. The size of the .tar.gz is 300k.

Maybe this might help getting on track of the problem:
I tried to make ndiswrapper and the error looks absolutely the same to me, I’ve already read somewhere that this error (AVM USB WLAN STICK) is due to the new kernel version. But if this is not helpful, then please ignore it:

linux-xjq4:/home/christian/Desktop/Linux/USB WLAN/ndiswrapper-1.53 # make
make -C driver
make[1]: Entering directory `/home/christian/Desktop/Linux/USB WLAN/ndiswrapper-1.53/driver'
make -C /usr/src/linux-2.6.25.5-1.1-obj/i386/pae M=/home/christian/Desktop/Linux/USB WLAN/ndiswrapper-1.53/driver
make[2]: Entering directory `/usr/src/linux-2.6.25.5-1.1-obj/i386/pae'
make -C /usr/src/linux-2.6.25.5-1.1 O=/usr/src/linux-2.6.25.5-1.1-obj/i386/pae/. WLAN/ndiswrapper-1.53/driver
make[4]: *** No rule to make target `WLAN/ndiswrapper-1.53/driver'.  Stop.
make[3]: *** [sub-make] Error 2
make[2]: *** [all] Error 2
make[2]: Leaving directory `/usr/src/linux-2.6.25.5-1.1-obj/i386/pae'
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/home/christian/Desktop/Linux/USB WLAN/ndiswrapper-1.53/driver'
make: *** [all] Error 2

You can get it to compile if you change fritz/src/defs.h and comment line 63.


/* typedef unsigned long uintptr_t; */

It’s defining it when it shouldn’t. However the driver uses a GPL-only ‘usb_kill_urb’ symbol.

To understand what it means, take a look here (since you’re German I’m sure you’ll understand as well :wink: ):
forum.archlinux.de :: Kernel 2.6.25 in [testing] - Zu erwartende Probleme

You can get it to compile if you change fritz/src/defs.h and comment line 63.

/* typedef unsigned long uintptr_t; */

Tried this out, still doesn’t work with exactely the same error. I’m now getting 2.6.24.6 kernels, maybe that will do it. I should take a close look to what I’m buying in the future…

It’s not a problem with the kernel version - well it is but you’ll have to wait until the manufacturer can provide you with fixed drivers.

did something wrong with the kernel :(…
reinstalled, now I use ndiswrapper, works fine :slight_smile:

thanks anyway!