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!
Re: iw issue about RTL8188CUS
As I don't know howto edit the post, I just write other infos here: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!
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.
Re: iw issue about RTL8188CUS
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.
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.
-
- Posts: 89
- Joined: Sat Jun 30, 2012 7:53 am
Re: iw issue about RTL8188CUS
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.
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.
Re: iw issue about RTL8188CUS
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.
Re: iw issue about RTL8188CUS
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.
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.
Re: iw issue about RTL8188CUS
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?
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?
Re: iw issue about RTL8188CUS
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?
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
----
https://www.alexellis.io
-
- Posts: 122
- Joined: Mon May 28, 2012 12:18 pm
Re: iw issue about RTL8188CUS
The script here worked for me with an Edimax dongle
http://blog.sip2serve.com/post/48899893 ... all-script
http://blog.sip2serve.com/post/48899893 ... all-script
Re: iw issue about RTL8188CUS
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.
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
----
https://www.alexellis.io
Re: iw issue about RTL8188CUS
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
but no mon0 device was created and i couldn't run airodump-ng.
I tried to compile the driver but got this error.
then i tried to cross compile the driver on ubuntu 15.04 with this command
As usual it didn't work. I got this errors :
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?
I install aircrack-ng suite to capture packets. using this command
Code: Select all
airmon-ng start wlan0
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.
Code: Select all
make AUTH=arm CROSS_COMPILE=arm-linux-gnueabihf-
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’
Can anybody help me solve this?