[Atmel-WLAN-USB] Berlios driver and debian 2.4.20-i586-tsc (was
Re: Kernel error)
Florin Buzesteanu
atmel-wlan-usb@iprserv.jura.uni-leipzig.de
Sat, 12 Jul 2003 21:19:25 +0200
Hi Joerg,
I got the problem under debian i have looked at the Makefile in the
Berlios drivers and have see that this:
-----------------------------------
KERNEL_SRC = /lib/modules/$(KERNEL_VERSION)/build
KERNEL_HEADERS = $(KERNEL_SRC)/include
-----------------------------------
can not match on my System, so i have do an link with:
-----------------------------------
ln -s /usr/src/linux /lib/modules/2.4.20-1-586tsc/build
-----------------------------------
because the build directory is not there, and now the drivers work perfect
and since 2 days i have no kernel crash.
so a very big thx for your help.
/Florin
Joerg Albert wrote:
>Hi Florin,
>
>On Tue, 8 Jul 2003, Florin Buzesteanu wrote:
>
>
>
>>router:~/# depmod -ae
>>
>>depmod: *** Unresolved symbols in
>>/lib/modules/2.4.20-1-586tsc/kernel/drivers/usb/at76c503-i3861.o
>>depmod: usb_deregister
>>depmod: usb_register
>>depmod: printk
>>...
>>
>>dont know if this are errors, hope not ;)
>>
>>
>
>These are errors: loading these modules will fail, because there
>external symbol references cannot be satisfied by the running kernel or
>some other modules, i.e. the problem you get later.
>
>Seems your kernel has symbol versioning, while the Makefile of
>the driver cannot see it. Either the sources don't match the running
>kernel or the Makefile is broken. Please post the output of:
> grep CONFIG_MODVERSIONS \
> /lib/modules/`uname -r`/build/include/linux/autoconf.h
> grep printk /proc/ksyms
>
>
>
>>router:~/# grep usbdfu /proc/ksyms
>>
>>c59347dc usbdfu_register_R__ver_usbdfu_register [usbdfu]
>>c5934864 usbdfu_deregister_R__ver_usbdfu_deregister [usbdfu]
>>c5934914 usbdfu_in_use_R__ver_usbdfu_in_use [usbdfu]
>>c5934a68 usbdfu_initiate_download_R__ver_usbdfu_initiate_download [usbdfu]
>>c5934000
>>
>>
>
>Wonder how you got the _R_ tail here. I don't know the settings of this
>debain kernel. What does a
> grep usbdfu_ <your kernel root dir>/include/linux/modules/*
>reveal? Did you compile your own kernel from these sources?
>
>
>
>>this are the berlios 0.10 driver have download the latest snapshot from
>>there but i can not compile it.
>>
>>get this error:
>>
>>----------------------------------------------
>>router:~/at76c503a# make
>>gcc -MD -O2 -Wall -Wstrict-prototypes -pipe -fno-strict-aliasing
>>-fno-common -Wno-sign-compare -Wno-unused-variable -D__KERNEL__ -DMODULE
>>-DEXPORT_SYMTAB -DDRIVER_VERSION=\"v0.11beta2\"
>>-I/lib/modules/2.4.20-1-586tsc/build/include -c at76c503.c
>>cc1: Invalid option `-Wno-unused-variable'
>>make: *** [at76c503.o] Error 1
>>----------------------------------------------
>>
>>
>That option was introduced recently to suppress warnings of gcc 3.3
>(the version SuSE 8.2 installs) while compiling kernel headers.
>What's your gcc version ("gcc --version")?
>
>IMHO the latest cvs snapshot won't fix the insmod problems above.
>
>/Jörg
>