2011-03-16 18:44:22

by Le Gluon du Net

[permalink] [raw]
Subject: can not compile ath9k driver for ubuntu 2.6.38-6-generic kernel

my config:
Ubuntu Natty
Kernel 2.6.38-X
Wifi pci card: Atheros Communications Inc. AR5008 Wireless Network
Adapter (rev 01)

Hello,

I'm using Ubuntu Natty and the ath9k driver of the different kernel of
this distribution do not make my AR5008 pci express wifi card run well:
the connection is too slow or halted.


I tried to compile Compat-wireless but it does not compile:

#./scripts/driver-select ath9k
Processing new driver-select request...
Backing up makefile: Makefile.bk
Backup exists: Makefile.bk
Backup exists: Makefile.bk
Backup exists: Makefile.bk
Backing up makefile: drivers/net/wireless/Makefile.bk
Backing up makefile: drivers/net/wireless/ath/Makefile.bk
Backing up makefile: net/wireless/Makefile.bk
Backing up makefile: drivers/net/Makefile.bk
Backing up makefile: drivers/ssb/Makefile.bk
Backing up makefile: drivers/misc/eeprom/Makefile.bk
Backup exists: Makefile.bk

#make
./scripts/gen-compat-autoconf.sh config.mk > include/linux/compat_autoconf.h
make -C /lib/modules/2.6.38-6-generic/build
M=/home/legluondunet/Bureau/compat-wireless-2011-03-15 modules
make[1]: entrant dans le répertoire «
/usr/src/linux-headers-2.6.38-6-generic »
LD /home/legluondunet/Bureau/compat-wireless-2011-03-15/compat/built-in.o
CC [M] /home/legluondunet/Bureau/compat-wireless-2011-03-15/compat/main.o
CC [M]
/home/legluondunet/Bureau/compat-wireless-2011-03-15/compat/compat-2.6.39.o
/home/legluondunet/Bureau/compat-wireless-2011-03-15/compat/compat-2.6.39.c:
In function ‘tty_set_termios’:
/home/legluondunet/Bureau/compat-wireless-2011-03-15/compat/compat-2.6.39.c:93:4:
error: ‘TASK_INTERRUPTIBLE’ undeclared (first use in this function)
/home/legluondunet/Bureau/compat-wireless-2011-03-15/compat/compat-2.6.39.c:93:4:
note: each undeclared identifier is reported only once for each function
it appears in
make[3]: ***
[/home/legluondunet/Bureau/compat-wireless-2011-03-15/compat/compat-2.6.39.o]
Erreur 1
make[2]: ***
[/home/legluondunet/Bureau/compat-wireless-2011-03-15/compat] Erreur 2
make[1]: ***
[_module_/home/legluondunet/Bureau/compat-wireless-2011-03-15] Erreur 2
make[1]: quittant le répertoire « /usr/src/linux-headers-2.6.38-6-generic »
make: *** [modules] Erreur 2

I tried different version of compat wireless and only the
compat-wireless-2011-02-13 compiles good on natty.
But it is not stable, I lost the connection several times per day.
In dmesg, I can see:

[125508.616378] ath: Failed to stop TX DMA in 100 msec after killing
last frame
[125508.616429] ath: Failed to stop TX DMA!
[125987.139552] ath: DMA failed to stop in 10 ms AR_CR=0x00000024
AR_DIAG_SW=0x42000020
[125987.139558] ath: Could not stop RX, we could be confusing the DMA
engine when we start RX up
[125987.150888] ath: DMA failed to stop in 10 ms AR_CR=0x00000024
AR_DIAG_SW=0x42000020
[126109.744252] ath: Failed to stop TX DMA in 100 msec after killing
last frame
[126109.744303] ath: Failed to stop TX DMA!
[126227.548359] ath: Failed to stop TX DMA in 100 msec after killing
last frame
[126227.548412] ath: Failed to stop TX DMA!
[126347.548348] ath: Failed to stop TX DMA in 100 msec after killing
last frame
[126347.548403] ath: Failed to stop TX DMA!
[126467.192362] ath: Failed to stop TX DMA in 100 msec after killing
last frame
[126467.192413] ath: Failed to stop TX DMA!
[126827.143471] ath: DMA failed to stop in 10 ms AR_CR=0x00000024
AR_DIAG_SW=0x42000020
[126827.143478] ath: Could not stop RX, we could be confusing the DMA
engine when we start RX up
[126827.154889] ath: DMA failed to stop in 10 ms AR_CR=0x00000024
AR_DIAG_SW=0x42000020


The connection is fast but the driver is totally unstable but it is the
only version I can compile.
Someone know why I can only compile this version? not the last?

Thanks for your help.

LGDN



2011-03-16 18:51:08

by Daniel Halperin

[permalink] [raw]
Subject: Re: can not compile ath9k driver for ubuntu 2.6.38-6-generic kernel

On Wed, Mar 16, 2011 at 11:44 AM, Le Gluon du Net <[email protected]> wrote:
> /home/legluondunet/Bureau/compat-wireless-2011-03-15/compat/compat-2.6.39.c:
> In function ?tty_set_termios?:
> /home/legluondunet/Bureau/compat-wireless-2011-03-15/compat/compat-2.6.39.c:93:4:
> error: ?TASK_INTERRUPTIBLE? undeclared (first use in this function)
> /home/legluondunet/Bureau/compat-wireless-2011-03-15/compat/compat-2.6.39.c:93:4:
> note: each undeclared identifier is reported only once for each function

This looks like the same problem that cropped up on iwlwifi 32-bit
last week. That file is probably missing an include for linux/sched.h


Dan

2011-03-17 22:21:56

by Le Gluon du Net

[permalink] [raw]
Subject: Re: can not compile ath9k driver for ubuntu 2.6.38-6-generic kernel

Daniel, I followed your advice, I added:

#include <linux/sched.h>

in compat/compat-2.6.39.c

and ath9k compiles without problem.

Thank you very much.

LGDN

Le 16/03/2011 19:50, Daniel Halperin a ?crit :
> On Wed, Mar 16, 2011 at 11:44 AM, Le Gluon du Net <[email protected]> wrote:
>> /home/legluondunet/Bureau/compat-wireless-2011-03-15/compat/compat-2.6.39.c:
>> In function ?tty_set_termios?:
>> /home/legluondunet/Bureau/compat-wireless-2011-03-15/compat/compat-2.6.39.c:93:4:
>> error: ?TASK_INTERRUPTIBLE? undeclared (first use in this function)
>> /home/legluondunet/Bureau/compat-wireless-2011-03-15/compat/compat-2.6.39.c:93:4:
>> note: each undeclared identifier is reported only once for each function
> This looks like the same problem that cropped up on iwlwifi 32-bit
> last week. That file is probably missing an include for linux/sched.h
>
>
> Dan
>