Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
WUSB11v2.6; at76c503a driver fails to build
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
woolsherpahat
Guru
Guru


Joined: 09 Mar 2004
Posts: 347

PostPosted: Thu Oct 28, 2004 9:19 am    Post subject: WUSB11v2.6; at76c503a driver fails to build Reply with quote

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
View user's profile Send private message
woolsherpahat
Guru
Guru


Joined: 09 Mar 2004
Posts: 347

PostPosted: Fri Oct 29, 2004 4:21 am    Post subject: Reply with quote

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
View user's profile Send private message
jmanning
n00b
n00b


Joined: 22 Oct 2003
Posts: 27

PostPosted: Tue Nov 02, 2004 10:10 pm    Post subject: atmel driver working here Reply with quote

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
View user's profile Send private message
madmango
Guru
Guru


Joined: 15 Jul 2003
Posts: 507
Location: PA, USA

PostPosted: Wed Nov 03, 2004 11:20 pm    Post subject: Reply with quote

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
View user's profile Send private message
woolsherpahat
Guru
Guru


Joined: 09 Mar 2004
Posts: 347

PostPosted: Thu Nov 04, 2004 4:09 am    Post subject: Reply with quote

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
View user's profile Send private message
madmango
Guru
Guru


Joined: 15 Jul 2003
Posts: 507
Location: PA, USA

PostPosted: Thu Nov 04, 2004 10:48 am    Post subject: Reply with quote

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
View user's profile Send private message
woolsherpahat
Guru
Guru


Joined: 09 Mar 2004
Posts: 347

PostPosted: Thu Nov 04, 2004 11:41 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum