Wamu
Posts: 14
Joined: Sun Apr 05, 2015 2:15 pm
Location: Den Helder, NL

RPI2b RTL8192CU

Sun Apr 05, 2015 4:49 pm

Hello,
I've bought a RPI 2B last month. And I am still trying to set up at Access point......bought a USB WIFI Dongle.
chipset RTL8192.....doesn't work.
However I found some solutions with using a "special made" Hostapd...... I thought you have to alter it in the Kernel, but whatever.
downloaded it and installed it....... of course it doesn't work.
I read that the RTL8192 is recognised by the kernel....
If I read "LSUSB" the only thing I can discover is Realtek....and no mentioning 8192......
if I put the 5370 in.... that will be recognized when LSUSB'ing

The only dongle that is working is a RT5370.. straight out of the box.
When I am asking a question... most of the answers are..... It is written for ARMv6... not for 7.

Thus..... should a beginner start with an older version of the Pi.... so that he/she is sure that all the programs written are indeed
working for that PI??

Is there already a workaround or new stuff written for the RPI2B for using the RTL8192CU dongle...

Regards

Wally

User avatar
Hove
Posts: 1205
Joined: Sun Oct 21, 2012 6:55 pm
Location: Cotswolds, UK
Contact: Website

Re: RPI2b RTL8192CU

Sun Apr 05, 2015 6:04 pm

Have you tried this? http://www.jenssegers.be/blog/43/Realte ... spberry-Pi

This works with a variety of RealTek chipsets on my RPi B2.

Just FYI, prior to the B2, then this version also worked well - can't remember what the problem I saw with it on the B2.

http://www.daveconroy.com/turn-your-ras ... s-chipset/
www.pistuffing.co.uk - Raspberry Pi and other stuffing!

Wamu
Posts: 14
Joined: Sun Apr 05, 2015 2:15 pm
Location: Den Helder, NL

Re: RPI2b RTL8192CU

Sun Apr 05, 2015 6:41 pm

Wow...
Many thanks for the very quick answer.... much appreciated...

This answer is what I was looking for.......not yet tried, but will do this tomorrow morning first thing.

again, thank for quick respons..... will keep u in the loop

Wally

Wamu
Posts: 14
Joined: Sun Apr 05, 2015 2:15 pm
Location: Den Helder, NL

Re: RPI2b RTL8192CU

Sun Apr 05, 2015 7:03 pm

Dr Hove,
By the way. The RTL8188cus is that the correct driver for the 8192 too ?
Wally

User avatar
Hove
Posts: 1205
Joined: Sun Oct 21, 2012 6:55 pm
Location: Cotswolds, UK
Contact: Website

Re: RPI2b RTL8192CU

Sun Apr 05, 2015 7:17 pm

Wamu wrote:Dr Hove,
By the way. The RTL8188cus is that the correct driver for the 8192 too ?
Wally
I'm pretty sure this will work. The problem is not with the WiFi chipset / driver, but with hostapd which needs a revised version to access the difference ioctl API provided by the RealTech chipset. So once you have the right hostapd installed (linked in my previous post), it should work with any RealTech chipset that supports soft-AP / WAP.
www.pistuffing.co.uk - Raspberry Pi and other stuffing!

Wamu
Posts: 14
Joined: Sun Apr 05, 2015 2:15 pm
Location: Den Helder, NL

Re: RPI2b RTL8192CU

Mon Apr 06, 2015 11:24 am

Well, I must admit. The expectations were high....

I have a Realtek and a Ralink usb dongle...both came with an installation CD with the RTL1892 on it. So I assume that somewhere inside is such a chip or chipset.

Followed precisely ur example.. got a warning that there isn't a wlan0 though

Gave sudo reboot.......that's it........ no joy..

Maybe I am just plain simple... the RTL5370 is supported.... I assume it is supported in the kernel. or are all the different USB dongles supported in hostapd??
browsing the internet there is a lot about the 8192 chipset..... my simple question is....( I don't have that kind of knowledge)
Why isn't there somebody of the RPI imperium who can fix this issue???

I give it up.... somewhere along the line I lost the "bubble"

But thanks anyway for your answer..

Wally

User avatar
Hove
Posts: 1205
Joined: Sun Oct 21, 2012 6:55 pm
Location: Cotswolds, UK
Contact: Website

Re: RPI2b RTL8192CU

Mon Apr 06, 2015 12:31 pm

Wamu wrote: Why isn't there somebody of the RPI imperium who can fix this issue???
Wally
I can't help with the overall problem without a lot more detail about what the errors were. The fact wlan0 isn't there at all hasn't anything to do with hostapd nor (probably) the kernel driver. Something else is wrong.

Linux is open / free ware - the foundation have done a lot of work to get a lot of things in the raspberry pi, but at the same time, it's also up to the community to add support for other things, like WAP support for a broad range of WiFi dongles - and that's what those links I gave are - community enhancement to support other WAP dongles.
www.pistuffing.co.uk - Raspberry Pi and other stuffing!

Wamu
Posts: 14
Joined: Sun Apr 05, 2015 2:15 pm
Location: Den Helder, NL

Re: RPI2b RTL8192CU

Mon Apr 06, 2015 12:53 pm

Dear Hove,
Sorry for that reply. You are absolutely right about that. I was reacting from my emotion why it doesn't work. My mistake.

I was trying to get a copy of the reading..... but whenever the pi is started up as an AP. the browser isn't able to connect
to the internet anymore.....So i couldn.t copy/paste to mail it to myself

I will try again both of the solutions and try to write down the errormessages........

Wally

User avatar
rpdom
Posts: 17275
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: RPI2b RTL8192CU

Mon Apr 06, 2015 1:42 pm

I don't know about setting up as an AP, but my rtl8192cu was recognised out of the box on my Pi wit Raspbian. The same drivers are present on the Pi 2, so should work on there too (I've got an rt5370 on the 2).

If yours isn't recognised at all then I'd suspect hardware error. It should at least show on lsusb

Code: Select all

rpdom@raspi4:~$ lsusb
Bus 001 Device 002: ID 0bda:8178 Realtek Semiconductor Corp. RTL8192CU 802.11n WLAN Adapter
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Wamu
Posts: 14
Joined: Sun Apr 05, 2015 2:15 pm
Location: Den Helder, NL

Re: RPI2b RTL8192CU

Mon Apr 06, 2015 5:01 pm

tks for replying....

I only get this

Bus 001 Device 002: ID 0bda:8178 Realtek Semiconductor Corp.

as well when using the Ralink as the Realtek..........

The only adapter that is recognized is the 5370

Wally

Wamu
Posts: 14
Joined: Sun Apr 05, 2015 2:15 pm
Location: Den Helder, NL

Re: RPI2b RTL8192CU

Mon Apr 06, 2015 5:02 pm

btw how do u transfer the output from the RPI to this....

User avatar
rpdom
Posts: 17275
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: RPI2b RTL8192CU

Mon Apr 06, 2015 5:15 pm

Wamu wrote:I only get this

Bus 001 Device 002: ID 0bda:8178 Realtek Semiconductor Corp.
That's the RTL8192CU. See that the Vendor ID 0bda and Device ID 8178 are the same as mine.

My RT5370 shows as

Code: Select all

Bus 001 Device 004: ID 148f:5370 Ralink Technology, Corp. RT5370 Wireless Adapter
See the Vendor ID is 148f for Ralink and 5370 for the Device ID.
btw how do u transfer the output from the RPI to this....
I use my Pi via SSH using a terminal session on my laptop. I copy and paste the text I need.
To show it as code you need to use the

Code: Select all

 
tags around it

Wamu
Posts: 14
Joined: Sun Apr 05, 2015 2:15 pm
Location: Den Helder, NL

Re: RPI2b RTL8192CU

Mon Apr 06, 2015 5:44 pm

Ok, I understand why it isn't working
I setup the RPI as a reapeater cf this
http://www.instructables.com/id/How-to- ... Raspberry/

And u can't SSH to that.....

I have put the adapter in my PC (running Mint 17.1)
This is what i get:

Bus 001 Device 005: ID 148f:7601 Ralink Technology, Corp.

Strange that it is now seen as a Ralink device. and in the RPI as a Realtek.......
But it is still not working.
I'll just stick to the 5370. that's working ok.
But look at the bright side.... I have a spare external antenna....

MrEngman
Posts: 4037
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: RPI2b RTL8192CU

Mon Apr 06, 2015 5:56 pm

Wamu wrote:Ok, I understand why it isn't working
I setup the RPI as a reapeater cf this
http://www.instructables.com/id/How-to- ... Raspberry/

And u can't SSH to that.....

I have put the adapter in my PC (running Mint 17.1)
This is what i get:

Bus 001 Device 005: ID 148f:7601 Ralink Technology, Corp.

Strange that it is now seen as a Ralink device. and in the RPI as a Realtek.......
But it is still not working.
I'll just stick to the 5370. that's working ok.
But look at the bright side.... I have a spare external antenna....
I have drivers for this device. Post the output from command uname -a and I can tell you the right download and install commands.


MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

User avatar
pluggy
Posts: 3635
Joined: Thu May 31, 2012 3:52 pm
Location: Barnoldswick, Lancashire,UK
Contact: Website

Re: RPI2b RTL8192CU

Mon Apr 06, 2015 6:16 pm

You've got "the man" on the case. You should be good to go now..... :)
Don't judge Linux by the Pi.......
I must not tread on too many sacred cows......

Wamu
Posts: 14
Joined: Sun Apr 05, 2015 2:15 pm
Location: Den Helder, NL

Re: RPI2b RTL8192CU

Mon Apr 06, 2015 8:05 pm

MrEngman.
Tks for support.
the output of uname -a is

"Linux raspberrypi 3.18.7-v7+ #755 SMP PREEMPT thu Feb 12 17:20:48 GMT 2015 armv7l GNU/linux"

(last character of armv7l is l as in lima)

But is not too nice from the vendor... I had bought a RTL5370 and got this one...

MrEngman... Thanks in advance

Wally

Wamu
Posts: 14
Joined: Sun Apr 05, 2015 2:15 pm
Location: Den Helder, NL

Re: RPI2b RTL8192CU

Mon Apr 06, 2015 8:12 pm

for Hove.

Sorry for misleading you.
I was convinced I was dealing with a RTL8192CU. because that is one the install CD that came with it.

And that' s why I became frustrated why it didn't work.....

Anyway... my learningcurve is very steep this evening....

Thanks for trying to push me in the right way

Wally

MrEngman
Posts: 4037
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: RPI2b RTL8192CU

Mon Apr 06, 2015 8:46 pm

Wamu wrote:MrEngman.
Tks for support.
the output of uname -a is

"Linux raspberrypi 3.18.7-v7+ #755 SMP PREEMPT thu Feb 12 17:20:48 GMT 2015 armv7l GNU/linux"

(last character of armv7l is l as in lima)

But is not too nice from the vendor... I had bought a RTL5370 and got this one...

MrEngman... Thanks in advance

Wally
OK, you can download and install the driver with the commands

Code: Select all

wget https://dl.dropboxusercontent.com/u/80256631/mt7601-3.18.7-v7-755.tar.gz
tar xzf mt7601-3.18.7-v7-755.tar.gz
./install.sh
The driver comes with several other files that are needed by the driver so use the ./install.sh command to install the driver and the extra files. Also the device normally uses the wifi name ra0 but my install.sh script installs a file, /etc/modprobe.d/95-ralink.rules, that renames the device to wlan0, the standard name for wifi devices, hopefully to make wifi configuration a little easier.

Hope this helps.


MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

Wamu
Posts: 14
Joined: Sun Apr 05, 2015 2:15 pm
Location: Den Helder, NL

Re: RPI2b RTL8192CU

Tue Apr 07, 2015 8:47 am

Nope..........

This is what I am using for setting up the AP

http://www.instructables.com/id/How-to- ... Raspberry/

driver=nl80211 Is that phrase still correct ???

all the other instructions went smooth..... but after that.......quiet

Wally

MrEngman
Posts: 4037
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: RPI2b RTL8192CU

Tue Apr 07, 2015 11:38 am

Wamu wrote:Nope..........

This is what I am using for setting up the AP

http://www.instructables.com/id/How-to- ... Raspberry/

driver=nl80211 Is that phrase still correct ???

all the other instructions went smooth..... but after that.......quiet

Wally
Hi,

Good you have now got your wifi module working.

I am not sure about your question. I have not tried a 7601 wifi module as an AP.

I did notice that on the link you pointed to the on the image of the RPi terminal the kernel version is showing as 3.2.27+ which is really old, October 2013, so I don't know if the instructions are up to date or not.


MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

Wamu
Posts: 14
Joined: Sun Apr 05, 2015 2:15 pm
Location: Den Helder, NL

Re: RPI2b RTL8192CU

Tue Apr 07, 2015 2:34 pm

MrEngman,
I am very stubborn, so I keep on trying.
It is not working as an AP.......

BUT.....
again I have installed a fresh version of Raspbian gave an update/upgrade and installed ur software again...
It IS WORKING.... As I type now... I am using the RPI.... but when configuring as an AP it won't work.
But nevertheless I am very happy that it is working.......Thank you very very much......
I can use the 5370 adapter for using the AP and this one just for connecting to the internet.

where did u see the old kernel?
maybe if I use a " newer" AP design it'll work?

but for now.... many thanks for spending your precious time to me.... much appreciated

Wally

Wamu
Posts: 14
Joined: Sun Apr 05, 2015 2:15 pm
Location: Den Helder, NL

Re: RPI2b RTL8192CU

Tue Apr 07, 2015 2:41 pm

Oh yes I discovered it on the the image........

MrEngman
Posts: 4037
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: RPI2b RTL8192CU

Tue Apr 07, 2015 3:00 pm

Wamu wrote:MrEngman,
I am very stubborn, so I keep on trying.
It is not working as an AP.......

BUT.....
again I have installed a fresh version of Raspbian gave an update/upgrade and installed ur software again...
It IS WORKING.... As I type now... I am using the RPI.... but when configuring as an AP it won't work.
But nevertheless I am very happy that it is working.......Thank you very very much......
I can use the 5370 adapter for using the AP and this one just for connecting to the internet.

where did u see the old kernel?
maybe if I use a " newer" AP design it'll work?

but for now.... many thanks for spending your precious time to me.... much appreciated

Wally
I saw the old kernel on the web page your link pointed to. Look at the picture of the Linux command terminal at the start of the instructions at Step 1. http://www.instructables.com/id/How-to- ... Raspberry/ It shows the kernel as "Linux raspberrypi 3.2.27+ #250 PREEMPT Thu Oct 18 19:03:02 BST 2012 armv6l". I did say Oct 2013 but it is even older, Oct 2012.

I have a device using that driver. I can see if I can set up an AP just to see what happens but I'm not sure if I can do it today.


MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

amztech
Posts: 3
Joined: Fri Mar 13, 2015 6:07 am

Re: RPI2b RTL8192CU

Wed Apr 08, 2015 1:47 am

http://www.realtek.com/downloads/downlo ... loads=true

Hope this link may help.
BTW, RTL8188 is better compatible for Linux / Raspberry Pi

Wamu
Posts: 14
Joined: Sun Apr 05, 2015 2:15 pm
Location: Den Helder, NL

Re: RPI2b RTL8192CU

Wed Apr 08, 2015 8:12 pm

amztech,
Thanks for your input...
I understand that RTL8188 a better options is.
But if you order a adapter and you think it has got a particular chipset in it but you receive a complete different one.
Than there is not much I can do.... except send it back to the seller...
The "nice" thing was.... the supplied cdrom has install files for the 8192 chipset... and of course when trying to run it on my
Win pc..... it couldn't find the according adapter..... now I understand why......

But life is a bitch and then you die.......

Wally

Return to “Beginners”