Re: at76c503a crashes on 2.6.21.3
Pavel Roskin <[email protected]> Tue, 05 Jun 2007 16:40:46 -0400
| Newsgroups | gmane.linux.drivers.at76c503a.user |
|---|---|
| Message-ID | <1181076046.2709.8.camel@dv> |
Hello! On Tue, 2007-06-05 at 13:29 -0500, [email protected] wrote: > i686-pc-linux-gnu 2.6.21.3, > gcc 4.1.2, glibc 2.5, udev 111 > at76c503a-0.13.tar.gz Unfortunately, it's hard to make standalone packages because the kernel API is changing in every kernel version. The work is underway to include the driver into the kernel, which would provide a long term solution. Version 0.13 is obsolete, and I don't think any further standalone releases will be made. > In order to compile the driver at all, > I had to use three workarounds: [skip] > 3. To avoid the error: > /usr/src/at76c503a/at76c503.c:7037:38: error: > macro "INIT_WORK" passed 3 arguments, > but takes just 2, > I _alternately_ did: > 3a. In 'at76c503.c' changed > "INIT_WORK (&dev->kevent, kevent, dev);" > to "INIT_WORK (&dev->kevent, kevent);" > 3b. Left 'at76c503.c' unchanged and > in /linux-2.6.21.3/include/linux/ replaced > 'workqueue.h' with the symlink > workqueue.h -> /usr/include/linux/workqueue.h Neither is correct. The work handlers need to be changed to get the context correctly. > Whether 3a or 3b, after installing the driver > ('make install'), > on plugging the device in the USB 2.0 port, > the driver does come up with some clean messages > (correctly? - no mention of registering "wlan0") > but at that point the system crashes (freezes), > fortunately softly (Ctrl-Alt-Del). Please try the current version. You can get it by installing git and running git-clone http://honk.sigxcpu.org/git/at76c503a.git -- Regards, Pavel Roskin