View previous topic :: View next topic |
Author |
Message |
woolsherpahat Guru


Joined: 09 Mar 2004 Posts: 347
|
Posted: Thu Oct 28, 2004 9:19 am Post subject: WUSB11v2.6; at76c503a driver fails to build |
|
|
Hello,
I'm currently in the process of switching a MDK10 over to Gentoo. I'm trying to get the the wireless 802.11b card to work with just so happens to be the loathed Linksys WUSB11. I used to use the at76c503a under Mandrake 10 with good results, even WEP worked! However, I can't get them to compile under Gentoo.
Here's where things start to go sour:
Code: |
In file included from at76c503.c:100:
at76c503.h:459: error: field `tqueue' has incomplete type
at76c503.h:465: error: field `kevent' has incomplete type
at76c503.c: In function `send_mgmt_bulk':
at76c503.c:1427: error: `USB_ST_URB_PENDING' undeclared (first use in this function)
at76c503.c:1427: error: (Each undeclared identifier is reported only once
at76c503.c:1427: error: for each function it appears in.)
at76c503.c:1466: warning: implicit declaration of function `FILL_BULK_URB'
at76c503.c:1474: error: too few arguments to function `usb_submit_urb'
at76c503.c: In function `defer_kevent':
at76c503.c:1757: warning: passing arg 2 of `set_bit' from incompatible pointer type
at76c503.c:1758: warning: implicit declaration of function `schedule_task'
at76c503.c: In function `kevent':
at76c503.c:1782: warning: passing arg 2 of `constant_test_bit' from incompatible pointer type
at76c503.c:1782: warning: passing arg 2 of `variable_test_bit' from incompatible pointer type
at76c503.c:1790: warning: passing arg 2 of `clear_bit' from incompatible pointer type
at76c503.c:1794: warning: passing arg 2 of `constant_test_bit' from incompatible pointer type
at76c503.c:1794: warning: passing arg 2 of `variable_test_bit' from incompatible pointer type
at76c503.c:1821: warning: passing arg 2 of `clear_bit' from incompatible pointer type
at76c503.c:1825: warning: passing arg 2 of `constant_test_bit' from incompatible pointer type
at76c503.c:1825: warning: passing arg 2 of `variable_test_bit' from incompatible pointer type
at76c503.c:1829: warning: passing arg 2 of `clear_bit' from incompatible pointer type
at76c503.c:1832: warning: passing arg 2 of `constant_test_bit' from incompatible pointer type
at76c503.c:1832: warning: passing arg 2 of `variable_test_bit' from incompatible pointer type
at76c503.c:1833: warning: passing arg 2 of `clear_bit' from incompatible pointer type
at76c503.c:1838: warning: passing arg 2 of `constant_test_bit' from incompatible pointer type
at76c503.c:1838: warning: passing arg 2 of `variable_test_bit' from incompatible pointer type
at76c503.c:1840: warning: passing arg 2 of `clear_bit' from incompatible pointer type
at76c503.c:1877: warning: passing arg 2 of `constant_test_bit' from incompatible pointer type
at76c503.c:1877: warning: passing arg 2 of `variable_test_bit' from incompatible pointer type
at76c503.c:1878: warning: passing arg 2 of `clear_bit' from incompatible pointer type
at76c503.c:1948: warning: passing arg 2 of `constant_test_bit' from incompatible pointer type
at76c503.c:1948: warning: passing arg 2 of `variable_test_bit' from incompatible pointer type
at76c503.c:1949: warning: passing arg 2 of `clear_bit' from incompatible pointer type
at76c503.c:1999: warning: passing arg 2 of `constant_test_bit' from incompatible pointer type
at76c503.c:1999: warning: passing arg 2 of `variable_test_bit' from incompatible pointer type
at76c503.c:2000: warning: passing arg 2 of `clear_bit' from incompatible pointer type
at76c503.c:2005: warning: passing arg 2 of `constant_test_bit' from incompatible pointer type
at76c503.c:2005: warning: passing arg 2 of `variable_test_bit' from incompatible pointer type
at76c503.c:2006: warning: passing arg 2 of `clear_bit' from incompatible pointer type
at76c503.c:2014: warning: passing arg 2 of `constant_test_bit' from incompatible pointer type
at76c503.c:2014: warning: passing arg 2 of `variable_test_bit' from incompatible pointer type
at76c503.c:2015: warning: passing arg 2 of `clear_bit' from incompatible pointer type
at76c503.c: In function `ieee80211_to_eth':
at76c503.c:2712: error: union has no member named `ethernet'
at76c503.c: In function `submit_rx_urb':
at76c503.c:3089: warning: passing arg 6 of `usb_fill_bulk_urb' from incompatible pointer type
at76c503.c:3090: error: too few arguments to function `usb_submit_urb'
at76c503.c: In function `at76c503_write_bulk_callback':
at76c503.c:3235: error: too few arguments to function `usb_submit_urb'
at76c503.c: In function `at76c503_tx':
at76c503.c:3321: error: too few arguments to function `usb_submit_urb'
at76c503.c: In function `at76c503_tx_timeout':
at76c503.c:3346: error: `USB_ASYNC_UNLINK' undeclared (first use in this function)
at76c503.c: In function `ethtool_ioctl':
at76c503.c:3689: error: structure has no member named `owner'
at76c503.c:3695:41: missing binary operator before token "("
at76c503.c: In function `at76c503_delete_device':
at76c503.c:4353: warning: implicit declaration of function `flush_scheduled_tasks'
at76c503.c: In function `at76c503_alloc_urbs':
at76c503.c:4384: warning: initialization from incompatible pointer type
at76c503.c:4390: error: structure has no member named `endpoint'
at76c503.c:4396: error: too few arguments to function `usb_alloc_urb'
at76c503.c:4407: error: too few arguments to function `usb_alloc_urb'
at76c503.c:4429: error: too few arguments to function `usb_alloc_urb'
at76c503.c: In function `at76c503_new_device':
at76c503.c:4463: warning: implicit declaration of function `INIT_TQUEUE'
at76c503.c:4507: warning: assignment from incompatible pointer type
at76c503.c: In function `at76c503_do_probe':
at76c503.c:4595: warning: implicit declaration of function `usb_inc_dev_use'
at76c503.c:4597: warning: implicit declaration of function `usb_get_configuration'
at76c503.c:4602: warning: implicit declaration of function `usb_set_configuration'
at76c503.c:4610: error: `USB_ST_STALL' undeclared (first use in this function)
at76c503.c:4625: error: structure has no member named `owner'
at76c503.c:4640: warning: implicit declaration of function `usb_dec_dev_use'
make: *** [at76c503.o] Error 1
|
This a brand spanking new install of Gentoo so everthing should be current. _________________ The Real OTW
"Blue skies and high fives" |
|
Back to top |
|
 |
woolsherpahat Guru


Joined: 09 Mar 2004 Posts: 347
|
Posted: Fri Oct 29, 2004 4:21 am Post subject: |
|
|
Well, since no one piped up and I don't know anything about programing, I decided to try the atmel. I'm supposed to patch my kernel but, I both hunks fail to patch. I get the error, "Reversed (or previously applied) patch detected! Assume -R? [n]" I'm just using the plain jane vanilla kernel, 2.6.9 compiled with genkernel. Does anyone know if this one's already been patched? _________________ The Real OTW
"Blue skies and high fives" |
|
Back to top |
|
 |
jmanning n00b

Joined: 22 Oct 2003 Posts: 27
|
Posted: Tue Nov 02, 2004 10:10 pm Post subject: atmel driver working here |
|
|
Hello,
I'm using the atmelwlandriver successfully. The one difference I might have is that I'm using linux26-headers - that may be causing the at76c503a problems.
I also just skipped the kernel patch. I had no trouble with my USB device without it, despite what the website says. The website references 2.6.3, so perhaps the patch is included in recent kernels.
Just extract the source and run:
make usb buildonly=release
make lvnet
make install
The linksys WUSB11v2.6 ran just fine using the usbvnetr driver. I'd also suggest setting up hotplug, and following the advice in the wireless setup guide for using the latest baselayout (which will configure wireless in the startup scripts).
~J |
|
Back to top |
|
 |
madmango Guru


Joined: 15 Jul 2003 Posts: 507 Location: PA, USA
|
Posted: Wed Nov 03, 2004 11:20 pm Post subject: |
|
|
the reason the berlios driver won't work is that it's designed for 2.4 kernels. If you want to use it on a 2.6 kernel, you need ot use a cvs snapshot. _________________ word. |
|
Back to top |
|
 |
woolsherpahat Guru


Joined: 09 Mar 2004 Posts: 347
|
Posted: Thu Nov 04, 2004 4:09 am Post subject: |
|
|
Yeah, actually I was able to get things working by using the CVS version of the drivers. I did not patch my 2.6.9 kernel either.
Do you think this would deserve a little howto? _________________ The Real OTW
"Blue skies and high fives" |
|
Back to top |
|
 |
madmango Guru


Joined: 15 Jul 2003 Posts: 507 Location: PA, USA
|
Posted: Thu Nov 04, 2004 10:48 am Post subject: |
|
|
Not really. The at76c503's page tells you quite clearly that you need to use CVS for kernel 2.6, and gives you clear instructions on how to use CVS.
Although the instructions on how to modify at76c503-rfmd for Linksys WUSB11 v2.6 aren't very clear (you have to change a #include statement)... _________________ word. |
|
Back to top |
|
 |
woolsherpahat Guru


Joined: 09 Mar 2004 Posts: 347
|
Posted: Thu Nov 04, 2004 11:41 pm Post subject: |
|
|
Yeah, suppose you're right. The confusing thing is that the site instructs you to patch the kernel when you actually don't have too, at least with 2.6.9 kernel I used. _________________ The Real OTW
"Blue skies and high fives" |
|
Back to top |
|
 |
|