Welcome! Log In Create A New Profile

Advanced

How to Compile Driver for RTL8191SU?

Posted by lincomatic 
How to Compile Driver for RTL8191SU?
March 08, 2013 08:25PM
Sorry if this question is too noobish, but it's been years since I've done anything w/ Linux kernels.
I'm trying to get a USB WiFi adapter working w/ my Pogo E02, and it needs the r8192cu module.
I found instructions here on how to compile the driver, but it's missing some details on critical steps, e.g. where is the drivers
directory that you're supposed to put the source code, where do you run the make command, etc:

http://forum.doozan.com/read.php?2,1598,4920#msg-4920

I've googled around for over and hour, and I can't find any details on the exact steps.

TIA
Re: How to Compile Driver for RTL8191SU?
March 08, 2013 09:06PM
lincomatic,

It's in the kernel already, you can try to load it at command line:
modprobe rtl8192cu

See if it's loaded (in dmesg).
Re: How to Compile Driver for RTL8191SU?
March 11, 2013 05:25PM
bodhi, thanks for the response.

Sorry, I mistyped. My USB WiFi is

Bus 001 Device 003: ID 0bda:8172 Realtek Semiconductor Corp. RTL8191SU 802.11n WLAN Adapter

and needs the r8712u
Re: How to Compile Driver for RTL8191SU?
March 12, 2013 01:06AM
lincomatic,

I've uploaded this module here: r8712u.ko. Download and copy it to your directory /lib/modules/3.x.x/ (if it was downloaded as r8712.ko.txt then remove the .txt extension).

And then run
modprobe r8712u

If it loads OK and the wifi is activated (iwconfig), then add this modprobe command to your /etc/rc.local so that it will load during kernel booting up.

-bodhi



Edited 1 time(s). Last edit at 03/12/2013 01:07AM by bodhi.
Re: How to Compile Driver for RTL8191SU?
March 12, 2013 12:02PM
It's working great now, thanks!
I had to put it in /lib/modules/3.x.x/kernel to make it work.

So this only works with 3.x.x kernels?
It works with your 3.2.28-kirkwood-tld kernel, but when I try to use it in my other pogoplug, which is running the original 2.6.32-5-kirkwood kernel, it fails

root@pogo:/lib/modules/2.6.32-5-kirkwood/kernel# modprobe r8712u
FATAL: Module r8712u not found.
root@pogo:/lib/modules/2.6.32-5-kirkwood/kernel# ls
crypto drivers fs lib net r8712u.ko sound
Re: How to Compile Driver for RTL8191SU?
March 12, 2013 12:58PM
I upgraded the one with the fatal error to your kernel, and it had the same error.
Running modprobe first fixed it.
Re: How to Compile Driver for RTL8191SU?
February 21, 2015 02:03PM
I've run into this same problem with the same wifi chipset.

Bus 001 Device 002: ID 0bda:8172 Realtek Semiconductor Corp. RTL8191SU 802.11n WLAN Adapter

I'm on kernel 3.17.0-kirkwood-tld-1 which seems to be missing headers so I can't make the driver.

If I put the r8712u.ko module in /lib/modules/3.17.0-kirkwood-tld-1/kernel it doesnt' solve the problem:

root@debian:/lib/modules/3.17.0-kirkwood-tld-1/kernel# modprobe r8712u
FATAL: Module r8712u not found.
root@debian:/lib/modules/3.17.0-kirkwood-tld-1/kernel# ls
. .. arch crypto drivers fs lib net r8712u.ko sound


Any suggestions? Do I need a new version of the module?
Re: How to Compile Driver for RTL8191SU?
February 21, 2015 03:53PM
whalphen Wrote:
-------------------------------------------------------
> I've run into this same problem with the same wifi
> chipset.
>
> Bus 001 Device 002: ID 0bda:8172 Realtek
> Semiconductor Corp. RTL8191SU 802.11n WLAN
> Adapter
>
> I'm on kernel 3.17.0-kirkwood-tld-1 which seems to
> be missing headers so I can't make the driver.
>
> If I put the r8712u.ko module in
> /lib/modules/3.17.0-kirkwood-tld-1/kernel it
> doesnt' solve the problem:
>
>
> root@debian:/lib/modules/3.17.0-kirkwood-tld-1/ker
> nel# modprobe r8712u
> FATAL: Module r8712u not found.
>
> root@debian:/lib/modules/3.17.0-kirkwood-tld-1/ker
> nel# ls
> . .. arch crypto drivers fs lib
> net r8712u.ko sound
>
>
> Any suggestions? Do I need a new version of the
> module?

Install the headers that came with the tarball.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: How to Compile Driver for RTL8191SU?
February 21, 2015 10:14PM
bodhi Wrote:
-------------------------------------------------------

>
> Install the headers that came with the tarball.

I had visited this forum for months until recently I finally figured out that the "linux" download was different than the "root-fs" download. What made me realize this was when 3.18.5 came out and there was no root-fs tarball for download, only the linux one. I should pay attention more :)
Re: How to Compile Driver for RTL8191SU?
February 21, 2015 11:32PM
LeggoMyEggo Wrote:
-------------------------------------------------------
> bodhi Wrote:
> --------------------------------------------------
> -----
>
> >
> > Install the headers that came with the tarball.
>
> I had visited this forum for months until recently
> I finally figured out that the "linux" download
> was different than the "root-fs" download. What
> made me realize this was when 3.18.5 came out and
> there was no root-fs tarball for download, only
> the linux one. I should pay attention more :)

Yup:) kernel release comes first. And then the updated rootfs comes later (most users dont need rootfs unless installing for the first time)

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: