Build Wizards - can you build this driver for me?

Development on core packages and the distribution goes on in here.

Build Wizards - can you build this driver for me?

Postby BinaryJay » Wed Mar 02, 2011 10:39 pm

I feel like a dunce but I have been unable to get this driver for my wifi built...

http://www.realtek.com.tw/downloads/dow ... #RTL8192SU

First, I had to change the Makefile so that it stops using uname -m to determine the source folder and replaced it with just "arm"... that got it looking like it might start working...

Reason I'm wanting to try this is because, although the standard kernel firmware (r8712u) for the device included with Arch is working fine as a client, I cannot get it working with nl80211 and can't use it for it's intended purpose with hostapd.

Here's as far as my attempt has got me... what's going on here?

$this->bbcode_second_pass_code('', 'make
make ARCH="arm" CROSS_COMPILE= -C /lib/modules/2.6.37/build M=/media/STORAGE1/Ap plications/BelkinSurfUSB/rtl8712_8188_8191_8192SU_usb_linux_v2.6.6.0.20101111 m odules
make[1]: Entering directory `/usr/src/linux-2.6.37'
CC [M] /media/STORAGE1/Applications/BelkinSurfUSB/rtl8712_8188_8191_8192SU_us b_linux_v2.6.6.0.20101111/cmd/rtl871x_cmd.o
CC [M] /media/STORAGE1/Applications/BelkinSurfUSB/rtl8712_8188_8191_8192SU_us b_linux_v2.6.6.0.20101111/cmd/rtl8712_cmd.o
CC [M] /media/STORAGE1/Applications/BelkinSurfUSB/rtl8712_8188_8191_8192SU_us b_linux_v2.6.6.0.20101111/crypto/rtl871x_security.o
CC [M] /media/STORAGE1/Applications/BelkinSurfUSB/rtl8712_8188_8191_8192SU_us b_linux_v2.6.6.0.20101111/debug/rtl871x_debug.o
CC [M] /media/STORAGE1/Applications/BelkinSurfUSB/rtl8712_8188_8191_8192SU_us b_linux_v2.6.6.0.20101111/eeprom/rtl871x_eeprom.o
CC [M] /media/STORAGE1/Applications/BelkinSurfUSB/rtl8712_8188_8191_8192SU_us b_linux_v2.6.6.0.20101111/efuse/rtl8712_efuse.o
CC [M] /media/STORAGE1/Applications/BelkinSurfUSB/rtl8712_8188_8191_8192SU_us b_linux_v2.6.6.0.20101111/hal/rtl8712/hal_init.o
CC [M] /media/STORAGE1/Applications/BelkinSurfUSB/rtl8712_8188_8191_8192SU_us b_linux_v2.6.6.0.20101111/hal/rtl8712/usb_ops.o
CC [M] /media/STORAGE1/Applications/BelkinSurfUSB/rtl8712_8188_8191_8192SU_us b_linux_v2.6.6.0.20101111/hal/rtl8712/usb_ops_linux.o
CC [M] /media/STORAGE1/Applications/BelkinSurfUSB/rtl8712_8188_8191_8192SU_us b_linux_v2.6.6.0.20101111/hal/rtl8712/usb_halinit.o
CC [M] /media/STORAGE1/Applications/BelkinSurfUSB/rtl8712_8188_8191_8192SU_us b_linux_v2.6.6.0.20101111/io/rtl871x_io.o
CC [M] /media/STORAGE1/Applications/BelkinSurfUSB/rtl8712_8188_8191_8192SU_us b_linux_v2.6.6.0.20101111/io/rtl8712_io.o
CC [M] /media/STORAGE1/Applications/BelkinSurfUSB/rtl8712_8188_8191_8192SU_us b_linux_v2.6.6.0.20101111/ioctl/rtl871x_ioctl_query.o
CC [M] /media/STORAGE1/Applications/BelkinSurfUSB/rtl8712_8188_8191_8192SU_us b_linux_v2.6.6.0.20101111/ioctl/rtl871x_ioctl_set.o
CC [M] /media/STORAGE1/Applications/BelkinSurfUSB/rtl8712_8188_8191_8192SU_us b_linux_v2.6.6.0.20101111/ioctl/rtl871x_ioctl_linux.o
/media/STORAGE1/Applications/BelkinSurfUSB/rtl8712_8188_8191_8192SU_usb_linux_v2 .6.6.0.20101111/ioctl/rtl871x_ioctl_linux.c: In function âr871x_wx_set_privâ:
/media/STORAGE1/Applications/BelkinSurfUSB/rtl8712_8188_8191_8192SU_usb_linux_v2 .6.6.0.20101111/ioctl/rtl871x_ioctl_linux.c:1505:39: warning: comparison of dist inct pointer types lacks a cast
/media/STORAGE1/Applications/BelkinSurfUSB/rtl8712_8188_8191_8192SU_usb_linux_v2 .6.6.0.20101111/ioctl/rtl871x_ioctl_linux.c: In function âr8711_wx_get_scanâ:
/media/STORAGE1/Applications/BelkinSurfUSB/rtl8712_8188_8191_8192SU_usb_linux_v2 .6.6.0.20101111/ioctl/rtl871x_ioctl_linux.c:1841:1: warning: the frame size of 1 056 bytes is larger than 1024 bytes
CC [M] /media/STORAGE1/Applications/BelkinSurfUSB/rtl8712_8188_8191_8192SU_us b_linux_v2.6.6.0.20101111/ioctl/rtl871x_ioctl_rtl.o
CC [M] /media/STORAGE1/Applications/BelkinSurfUSB/rtl8712_8188_8191_8192SU_us b_linux_v2.6.6.0.20101111/led/rtl8712_led.o
CC [M] /media/STORAGE1/Applications/BelkinSurfUSB/rtl8712_8188_8191_8192SU_us b_linux_v2.6.6.0.20101111/mlme/ieee80211.o
CC [M] /media/STORAGE1/Applications/BelkinSurfUSB/rtl8712_8188_8191_8192SU_us b_linux_v2.6.6.0.20101111/mlme/rtl871x_mlme.o
CC [M] /media/STORAGE1/Applications/BelkinSurfUSB/rtl8712_8188_8191_8192SU_us b_linux_v2.6.6.0.20101111/mp/rtl871x_mp.o
CC [M] /media/STORAGE1/Applications/BelkinSurfUSB/rtl8712_8188_8191_8192SU_us b_linux_v2.6.6.0.20101111/mp/rtl871x_mp_ioctl.o
CC [M] /media/STORAGE1/Applications/BelkinSurfUSB/rtl8712_8188_8191_8192SU_us b_linux_v2.6.6.0.20101111/os_dep/linux/io_linux.o
CC [M] /media/STORAGE1/Applications/BelkinSurfUSB/rtl8712_8188_8191_8192SU_us b_linux_v2.6.6.0.20101111/os_dep/linux/xmit_linux.o
CC [M] /media/STORAGE1/Applications/BelkinSurfUSB/rtl8712_8188_8191_8192SU_us b_linux_v2.6.6.0.20101111/os_dep/linux/cmd_linux.o
CC [M] /media/STORAGE1/Applications/BelkinSurfUSB/rtl8712_8188_8191_8192SU_us b_linux_v2.6.6.0.20101111/os_dep/linux/mlme_linux.o
CC [M] /media/STORAGE1/Applications/BelkinSurfUSB/rtl8712_8188_8191_8192SU_us b_linux_v2.6.6.0.20101111/os_dep/linux/recv_linux.o
CC [M] /media/STORAGE1/Applications/BelkinSurfUSB/rtl8712_8188_8191_8192SU_us b_linux_v2.6.6.0.20101111/os_intf/osdep_service.o
/media/STORAGE1/Applications/BelkinSurfUSB/rtl8712_8188_8191_8192SU_usb_linux_v2 .6.6.0.20101111/os_intf/osdep_service.c: In function â_rtl_rwlock_initâ:
/media/STORAGE1/Applications/BelkinSurfUSB/rtl8712_8188_8191_8192SU_usb_linux_v2 .6.6.0.20101111/os_intf/osdep_service.c:306:2: error: implicit declaration of fu nction âinit_MUTEXâ
make[2]: *** [/media/STORAGE1/Applications/BelkinSurfUSB/rtl8712_8188_8191_8192S U_usb_linux_v2.6.6.0.20101111/os_intf/osdep_service.o] Error 1
make[1]: *** [_module_/media/STORAGE1/Applications/BelkinSurfUSB/rtl8712_8188_81 91_8192SU_usb_linux_v2.6.6.0.20101111] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.37'
make: *** [modules] Error 2
')

I'm googling on the " error: implicit declaration of function init_MUTEX" now, but maybe somebody just knows what the resolution is already around here.

Edit... well I guess I may have solved this myself...

I changed the init_MUTEX in the offending file to sema_init ... still not sure what's with init_MUTEX on this kernel/gcc version.
Last edited by BinaryJay on Wed Mar 02, 2011 11:08 pm, edited 2 times in total.
BinaryJay
 
Posts: 87
Joined: Mon Dec 06, 2010 10:27 pm

Re: Build Wizards - can you build this driver for me?

Postby pepedog » Wed Mar 02, 2011 10:57 pm

This driver is available in the current kernel, but not built.
It's in staging, perhaps it can be built in next build?
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Build Wizards - can you build this driver for me?

Postby BinaryJay » Thu Mar 03, 2011 12:35 am

Just in case anybody else stumbles on this page - the latest driver directly from realtek makes no difference. It works fine as a wext driver (which wpa_supplicant can use, but hostapd cannot) but not as a mac80211 driver.

There is some hope, the driver builtin to Kernel 2.6.37 r8712u looks to be still under development and I found some patches kicking around the last few months that state that adding mac80211 support to it is on the list.

http://help.lockergnome.com/linux/PATCH ... 31134.html

@@ -3,8 +3,6 @@ TODO:
- switch to use LIB80211
- switch to use MAC80211

Hopefully the developer is close to wrapping that up. I have two of these devices and no use for them as clients, really.
BinaryJay
 
Posts: 87
Joined: Mon Dec 06, 2010 10:27 pm

Re: Build Wizards - can you build this driver for me?

Postby pepedog » Thu Mar 03, 2011 1:22 am

Ath9170 and P54 based chips work nice with hostapd, P54 is more reliable, other has regdom problems
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Build Wizards - can you build this driver for me?

Postby BinaryJay » Thu Mar 03, 2011 1:44 am

$this->bbcode_second_pass_quote('pepedog', 'A')th9170 and P54 based chips work nice with hostapd, P54 is more reliable, other has regdom problems


Isn't P54 an older G only chipset?

The adapters I bought, which I didn't do enough research on to realize that they wouldn't work on either mac80211 or madwifi (or anything hostapd supports...) yet, I got because they are dual band 300 mbps chips and I figured at the end of the day that would be a better choice for an AP. Oh well.

I'm sure it'll be working ... maybe in 2.6.38... if I'm lucky.
BinaryJay
 
Posts: 87
Joined: Mon Dec 06, 2010 10:27 pm

Re: Build Wizards - can you build this driver for me?

Postby pepedog » Thu Mar 03, 2011 10:43 am

I don't know that n will work as an access point. The ath9170 is n as a client, but (using carl9170) up to g only
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Build Wizards - can you build this driver for me?

Postby BinaryJay » Sat Mar 05, 2011 2:30 am

I bled a few more dollars and ordered a Ralink 3070 based adapter to experiment with.

According to LinuxWireless.org, rt2800usb is looking better than the realtek drivers at this point.

Appears to be mac80211 ready, and confirmed monitor mode but question marks on AP support. I guess it will be touch and go but even if it doesn't work now it is closer to my goal than r8712u. Unfortunately Ralink 3070 is only 150mbps, but it's better than going all the way back to G.

If I can get everything working with the 3070 for now I'll be happy, and later on if the rtl drivers mature I can switch over. I just want to dump my router. Hopefully the chinese no-name USB ethernet adapter I ordered won't have any problems, though I expect that to be a lot easier to deal with than the wifi... from what I read it's chipset should be good to go in 2.6.37 (or even earlier) but with my luck it will have some chipset by some unheard of company in it as opposed to what was reported online.
BinaryJay
 
Posts: 87
Joined: Mon Dec 06, 2010 10:27 pm

Re: Build Wizards - can you build this driver for me?

Postby pepedog » Sat Mar 05, 2011 12:14 pm

Will be interesting to see if N works as an access point
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Build Wizards - can you build this driver for me?

Postby BinaryJay » Sat Mar 05, 2011 5:59 pm

$this->bbcode_second_pass_quote('pepedog', 'W')ill be interesting to see if N works as an access point


Right now I have conflicting information about the capabilities of the driver and this chipset so I just don't know what's going to happen. At least one piece of information I have seems to allude to the fact that it may not be supported in 2.6.37 but it is already in 2.6.38.

So, either way, I'll hope for a speedy release of .38. I think it's already on RC7 or RC8 by now.
BinaryJay
 
Posts: 87
Joined: Mon Dec 06, 2010 10:27 pm

Re: Build Wizards - can you build this driver for me?

Postby BinaryJay » Mon Mar 07, 2011 7:30 pm

FYI, I successfully got the new adapter which is a Rosewill RNX-EasyN1 to work with hostapd in AP mode. I was able to connect to it, but only as far as to get access to the plug itself because I am having problems understanding setting up the bridge to eth0 properly.

Posted separately here for help:
viewtopic.php?f=9&t=871
BinaryJay
 
Posts: 87
Joined: Mon Dec 06, 2010 10:27 pm

Next

Return to Arch Linux ARM

Who is online

Users browsing this forum: No registered users and 15 guests