DOSSTONED
Posts: 14
Joined: Wed Sep 19, 2012 2:47 pm

iw issue about RTL8188CUS

Sat Sep 29, 2012 5:10 am

Hi, everyone!
I wanna use my Pi as a router/AP, and I have a wireless card:
0bda:8176 RTL8188CUS 802.11n WLAN Adapter - (Realtek Semiconductor Corp.)
and the RPi wheezy image:09-18(currently the latest)

I take this thread as a reference:
http://sirlagz.net/2012/08/09/how-to-us ... er-part-1/
but I cannot find the iw command, only iwconfig.
Thus I installed by "apt-get install iw"
after that, I ran "iw list", got "nl80211 not found." error. Of course, when I installed hostapd and ran it, it also returns a cannot find the driver error.

I also use "iwconfig wlan0 mode master", it gives me an error like cannot write to it.(Sorry I forgot the exact words.)

But when in my Fedora17, I ran "iw list", and really got the wireless information, IT IS SUPPORT AP, AP/VLAN mode!

The final purpose I wanted is to set my Pi as a router & seedbox. I just plug-in my 2.5 inch USB HDD and found out power is not enough. But that's not a main problem.I only just want my PI WORKED as an AP now!

DOSSTONED
Posts: 14
Joined: Wed Sep 19, 2012 2:47 pm

Re: iw issue about RTL8188CUS

Sat Sep 29, 2012 8:18 am

DOSSTONED wrote:Hi, everyone!
I wanna use my Pi as a router/AP, and I have a wireless card:
0bda:8176 RTL8188CUS 802.11n WLAN Adapter - (Realtek Semiconductor Corp.)
and the RPi wheezy image:09-18(currently the latest)

I take this thread as a reference:
http://sirlagz.net/2012/08/09/how-to-us ... er-part-1/
but I cannot find the iw command, only iwconfig.
Thus I installed by "apt-get install iw"
after that, I ran "iw list", got "nl80211 not found." error. Of course, when I installed hostapd and ran it, it also returns a cannot find the driver error.

I also use "iwconfig wlan0 mode master", it gives me an error like cannot write to it.(Sorry I forgot the exact words.)

But when in my Fedora17, I ran "iw list", and really got the wireless information, IT IS SUPPORT AP, AP/VLAN mode!

The final purpose I wanted is to set my Pi as a router & seedbox. I just plug-in my 2.5 inch USB HDD and found out power is not enough. But that's not a main problem.I only just want my PI WORKED as an AP now!
As I don't know howto edit the post, I just write other infos here:
In Fedora17(x86_64), I got
Supported interface modes:
* IBSS
* managed
* AP
* AP/VLAN
* monitor
software interface modes (can always be added):
* AP/VLAN
* monitor
And I really setup an AP with Fedora17, hostapd, dhcpd, iptables. I use my I917(Windows Phone) to connect, all works well, except the network drop frequently. Maybe it is related to energy management, since when I click on a link, everything goes right, only the hostapd gives lines that my phone connect it again.

I wonder whether the Fedora-remix would work for my RTL8188CUS. If you have any solution on current raspbian, post below, I really appreciate that.

DOSSTONED
Posts: 14
Joined: Wed Sep 19, 2012 2:47 pm

Re: iw issue about RTL8188CUS

Sat Oct 06, 2012 3:04 am

After testing for a day, I finally gave up Fedora Remix 17. It gives nothing when type "iw list", and also "ifconfig" did not show wlan0. But "lsusb" showed the device. Hence this may be a driver issue.
I downloaded the driver from Realtek and wanted to compile by myself. But the repo site:
http://scotland.proximity.on.ca/~agreen ... repomd.xml
cannot be opened.
As I have no source for the system, I just return back to Raspbian-0918. Maybe the driver compilation can be done.

BrendonShaw
Posts: 89
Joined: Sat Jun 30, 2012 7:53 am

Re: iw issue about RTL8188CUS

Sat Oct 06, 2012 6:31 am

Just to let you know I am trying to do the same thing, I am using Arch and with the latest Arch image the driver for the RTL8188cus is inculded. I have the WiFi card up and running using netcfg and no trying to create the AP or AdHoc mode.

I don't think iw will work with the RTL8188cus you have to use iwconfig.

If I managed to get this up and running I will let you know the process.

gilduz
Posts: 1
Joined: Sun Oct 07, 2012 2:23 pm

Re: iw issue about RTL8188CUS

Sun Oct 07, 2012 2:27 pm

I'm working on that too. I have the same wireless adapter, and I'm following this guide http://sirlagz.net/2012/08/09/how-to-us ... er-part-1/ but I'm not able to make a working AP.

DOSSTONED
Posts: 14
Joined: Wed Sep 19, 2012 2:47 pm

Re: iw issue about RTL8188CUS

Tue Oct 09, 2012 2:57 pm

I tried again under Raspbian-0918
this time, I ran "ifconfig wlan0 down" first, and then "iwconfig wlan0 mode master". It returns no error!
But I don't know how to set up the wireless network. Another problem is: (of course, I set the mode back to managed)
iwconfig wlan0 essid "TEST"
while TEST is the open wireless network, but somehow the light flash a few times and no further action, the status is still un-associated.

FY4Sne
Posts: 28
Joined: Fri Dec 14, 2012 7:22 am

Re: iw issue about RTL8188CUS

Thu Oct 24, 2013 7:41 am

RPi ver: 3.6.11+ #456
driver: Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN Adapter

i'll chime in, incase there is some updated info to get 'iw' command to work with "rtl8188cus" driver.

'iwconfig' works.

'iw list' i get the same error, "nl80211 not found."

'iwlist wlan0 scanning' returns:
wlan0 No scan results

'iwlist br0 scanning' returns:
br0 Interface doesn't support scanning.

do we need to re-build the kernel with out-of-tree driver or something?

alexellis
Posts: 66
Joined: Tue Nov 26, 2013 10:00 am
Location: United Kingdom
Contact: Website Twitter

Re: iw issue about RTL8188CUS

Thu Jan 23, 2014 8:41 pm

How are you guys getting on with this?

I need to set up Ad-Hoc or Soft hotspot for my robot and I have this chipset. Have any of you made any progress?
Alex Ellis
----
https://www.alexellis.io

bantammenace2012
Posts: 122
Joined: Mon May 28, 2012 12:18 pm

Re: iw issue about RTL8188CUS

Fri Jan 24, 2014 8:07 pm

The script here worked for me with an Edimax dongle

http://blog.sip2serve.com/post/48899893 ... all-script

alexellis
Posts: 66
Joined: Tue Nov 26, 2013 10:00 am
Location: United Kingdom
Contact: Website Twitter

Re: iw issue about RTL8188CUS

Fri Jan 24, 2014 8:51 pm

I am running Arch Linux - this script won't work. I see that the author of the .sh has specified a different driver in /etc/hostapd/hostapd.conf. Is this the key to it - not quite, he also downloads a different binary version of hostapd from dropbox. I've seen similar on another tutorial but that version of the binary didn't work for me.

driver=rtl871xdrv

His references to iface apt-get and /etc/network/interfaces just won't work as it's all different sub-systems on Arch.
Alex Ellis
----
https://www.alexellis.io

eh3kk1
Posts: 1
Joined: Tue Aug 25, 2015 3:10 pm

Re: iw issue about RTL8188CUS

Tue Aug 25, 2015 3:36 pm

I'm having the same problem with rtl8192cu on raspberry pi 2 with raspbian.
I install aircrack-ng suite to capture packets. using this command

Code: Select all

airmon-ng start wlan0
but no mon0 device was created and i couldn't run airodump-ng.
I tried to compile the driver but got this error.

Code: Select all

Makefile:610: arch/armv7l/Makefile: No such file or directory
make[1]: *** No rule to make target 'arch/armv7l/Makefile'.  Stop.
then i tried to cross compile the driver on ubuntu 15.04 with this command

Code: Select all

make AUTH=arm CROSS_COMPILE=arm-linux-gnueabihf-
As usual it didn't work. I got this errors :

Code: Select all

arm-linux-gnueabihf-gcc: error: unrecognized argument in option ‘-march=i686’
arm-linux-gnueabihf-gcc: note: valid arguments to ‘-march=’ are: armv2 armv2a armv3 armv3m armv4 armv4t armv5 armv5e armv5t armv5te armv6 armv6-m armv6j armv6k armv6s-m armv6t2 armv6z armv6zk armv7 armv7-a armv7-m armv7-r armv7e-m armv7ve armv8-a armv8-a+crc iwmmxt iwmmxt2 native
arm-linux-gnueabihf-gcc: error: unrecognized command line option ‘-mregparm=3’
arm-linux-gnueabihf-gcc: error: unrecognized command line option ‘-mno-sse’
arm-linux-gnueabihf-gcc: error: unrecognized command line option ‘-mno-mmx’
arm-linux-gnueabihf-gcc: error: unrecognized command line option ‘-mno-sse2’
arm-linux-gnueabihf-gcc: error: unrecognized command line option ‘-mno-3dnow’
I don't really know how to cross compile a source code and I don't know what to do.

Can anybody help me solve this?

Return to “Networking and servers”