Dragan Noveski | 13 Feb 2007 02:09
Picon

problems running 2.6.20-rt5 and at76_usb

hi to the list!

i have a problem here with just compiled linux-2.6.20-rt5 on debian testing.

well, the kernel is 2.6.20, the rt patch comes from:

http://people.redhat.com/mingo/realtime-preempt/older/

with my last kernel 2.6.18 i also was using ingo molnars patches for 
realtime audio, everything was working fine.
for the network i am using here atmel-usb-addapter.

ok, the problem is, that the latest source-code (at76_usb-0.14beta1) 
does not compile:

nowhiskey <at> murija2:~/software/wlan/at76_usb-0.14beta1$ make
make -C /usr/src/linux-2.6.20
M=/home/nowhiskey/software/wlan/at76_usb-0.14beta1
KERNELRELEASE=2.6.20-rt5Centrino modules
make[1]: Entering directory `/usr/src/linux-2.6.20'
  CC [M]  /home/nowhiskey/software/wlan/at76_usb-0.14beta1/at76c503.o
/home/nowhiskey/software/wlan/at76_usb-0.14beta1/at76c503.c:21:26: error:
linux/config.h: Datei oder Verzeichnis nicht gefunden
/home/nowhiskey/software/wlan/at76_usb-0.14beta1/at76c503.c:6374:38: error:
macro "INIT_WORK" passed 3 arguments, but takes just 2
/home/nowhiskey/software/wlan/at76_usb-0.14beta1/at76c503.c: In function
'alloc_new_device':
/home/nowhiskey/software/wlan/at76_usb-0.14beta1/at76c503.c:6374: error:
'INIT_WORK' undeclared (first use in this function)
/home/nowhiskey/software/wlan/at76_usb-0.14beta1/at76c503.c:6374: error:
(Continue reading)

Pavel Roskin | 5 Mar 2007 08:16
Picon

Re: problems running 2.6.20-rt5 and at76_usb

On Tue, 2007-02-13 at 02:09 +0100, Dragan Noveski wrote:
> ok, the problem is, that the latest source-code (at76_usb-0.14beta1) 
> does not compile:

The INIT_WORK problem is fixed in the git repository that is going to be
into the kernel.  You can get the source by this command:

git-clone http://honk.sigxcpu.org/git/at76c503a.git/

> Message from syslogd <at> localhost at Mon Feb 12 23:41:19 2007 ...
> localhostlocalhostlocalhostlocalhostlocalhost     kernel:  [<c012750e>]
> kthread+0x0/0xcakernel:  [<c0103857>] kernel_thread_helper+0x7/0x10kernel:
> =======================kernel: Code: 86 a0 07 00 00 0f af 86 a4 07 00 00 0f
> b6 5f 01 0f af d8 a1 60 a3 3a c0 e8 05 4d e4 df 89 c2 89 d8 2b 96 a8 07 00
> 00 89 d1 31 d2 <f7> f1 88 46 66 a1 60 a3 3a c0 e8 e8 4c e4 df c7 86 a4 07 00
> 00 kernel: EIP: [<e02d5fb7>] update_wstats+0x6c/0xb6 [at76_usb] SS:ESP
> 0068:df681e3c

Next time please try to capture the kernel output.  You can do it by
running dmesg.  The system can become unstable after such problems, so
it would be best if you redirect dmesg output to a file and then reboot.

>     iwconfig wlan0 mode ad-hoc essid olsr.freifunk.net channel 10

I can reproduce the crash in ad-hoc mode!  It's a division by zero in
calc_qual(), which is called by update_wstats().

The code is not careful to check if the time has changed since the last
measurement.  And update_wstats() is called from rx_mgmt() in ad-hoc
mode.  Suppose the card gets more than one management frame in a jiffy
(Continue reading)

Dragan Noveski | 13 Feb 2007 15:23
Picon

Re: problems running 2.6.20-rt5 and at76_usb

Dragan Noveski wrote:
> hi to the list!
>
> i have a problem here with just compiled linux-2.6.20-rt5 on debian testing.
>
> well, the kernel is 2.6.20, the rt patch comes from:
>
>
> http://people.redhat.com/mingo/realtime-preempt/older/
>
>
> with my last kernel 2.6.18 i also was using ingo molnars patches for 
> realtime audio, everything was working fine.
> for the network i am using here atmel-usb-addapter.
>
> ok, the problem is, that the latest source-code (at76_usb-0.14beta1) 
> does not compile:
>
> nowhiskey <at> murija2:~/software/wlan/at76_usb-0.14beta1$ make
> make -C /usr/src/linux-2.6.20
> M=/home/nowhiskey/software/wlan/at76_usb-0.14beta1
> KERNELRELEASE=2.6.20-rt5Centrino modules
> make[1]: Entering directory `/usr/src/linux-2.6.20'
>   CC [M]  /home/nowhiskey/software/wlan/at76_usb-0.14beta1/at76c503.o
> /home/nowhiskey/software/wlan/at76_usb-0.14beta1/at76c503.c:21:26: error:
> linux/config.h: Datei oder Verzeichnis nicht gefunden
> /home/nowhiskey/software/wlan/at76_usb-0.14beta1/at76c503.c:6374:38: error:
> macro "INIT_WORK" passed 3 arguments, but takes just 2
> /home/nowhiskey/software/wlan/at76_usb-0.14beta1/at76c503.c: In function
> 'alloc_new_device':
(Continue reading)


Gmane