nicholsonr
Posts: 18
Joined: Wed Jan 13, 2016 11:39 am

Unable to compile Wi-Fi Driver

Sun Feb 07, 2016 10:21 am

Hi all,

Second thread here;
I am trying to "make" a Wi-Fi dongle driver so as to use it with the Pi rather than the slow 10/100 connection (this is a 5ghz wireless AC connection I'm going to use via the 480mb USB2 port).
I downloaded the linux stable driver from the manufacturers website however it says I need to compile it, and I can't make heads or tails of it.
I read somewhere that I need to link the "build" to a header file but I still can't figure that out. I've tried reading a few Kernel Building threads on the raspberry Pi page but to no avail.
This is the error I get when attempting the "make" command on the linux Wi-Fi driver I've downloaded.
Note: I had the Raspberry "wheezy" install on my SD card, I've since upgraded it to the latest jessie branch from the website (not the NOOBS version)

Code: Select all

make 
make ARCH=armv7l CROSS_COMPILE= -C /lib/modules/4.1.13-v7+/build M=/media/USBHDD1/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517  modules
make[1]: *** /lib/modules/4.1.13-v7+/build: No such file or directory.  Stop.
Makefile:1041: recipe for target 'modules' failed
make: *** [modules] Error 2
[email protected]:/media/USBHDD1/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517 $
Can anyone help please guys?

fruitoftheloom
Posts: 22080
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Unable to compile Wi-Fi Driver

Sun Feb 07, 2016 10:48 am

nicholsonr wrote:Hi all,

Second thread here;
I am trying to "make" a Wi-Fi dongle driver so as to use it with the Pi rather than the slow 10/100 connection (this is a 5ghz wireless AC connection I'm going to use via the 480mb USB2 port).
I downloaded the linux stable driver from the manufacturers website however it says I need to compile it, and I can't make heads or tails of it.
I read somewhere that I need to link the "build" to a header file but I still can't figure that out. I've tried reading a few Kernel Building threads on the raspberry Pi page but to no avail.
This is the error I get when attempting the "make" command on the linux Wi-Fi driver I've downloaded.
Note: I had the Raspberry "wheezy" install on my SD card, I've since upgraded it to the latest jessie branch from the website (not the NOOBS version)

Code: Select all

make 
make ARCH=armv7l CROSS_COMPILE= -C /lib/modules/4.1.13-v7+/build M=/media/USBHDD1/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517  modules
make[1]: *** /lib/modules/4.1.13-v7+/build: No such file or directory.  Stop.
Makefile:1041: recipe for target 'modules' failed
make: *** [modules] Error 2
[email protected]:/media/USBHDD1/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517 $
Can anyone help please guys?
There is a long post here about the RTL8812AU Chipset viewtopic.php?f=66&t=66499&hilit=rtl8812au
Retired disgracefully.....
......to an uncomplicated life !

Rather than negativity think outside the box !

nicholsonr
Posts: 18
Joined: Wed Jan 13, 2016 11:39 am

Re: Unable to compile Wi-Fi Driver

Sun Feb 07, 2016 11:13 am

Thankyou,
I'm reading through this now,
However my issue is, HOW do I set up compiling on my RasPi, it turns out the build/make modules aren't symbolicly linked and I have no idea how to do so.

Edit:
Reading the last page of your link has given me some insight on this, will read that and see what I can manage.
Apologies on this post

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

Re: Unable to compile Wi-Fi Driver

Sun Feb 07, 2016 11:58 am

nicholsonr wrote:Thankyou,
I'm reading through this now,
However my issue is, HOW do I set up compiling on my RasPi, it turns out the build/make modules aren't symbolicly linked and I have no idea how to do so.

Edit:
Reading the last page of your link has given me some insight on this, will read that and see what I can manage.
Apologies on this post
You need to create a link to your Linux source/headers file like this

Code: Select all

sudo ln -s /home/pi/src/linux /lib/modules/$(uname -r)/build
Change directory /home/pi/src/linux to the directory where your linux source/headers is.



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

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

nicholsonr
Posts: 18
Joined: Wed Jan 13, 2016 11:39 am

Re: Unable to compile Wi-Fi Driver

Mon Feb 08, 2016 2:15 am

Hi All,

New update, I've got further with my endeavours but still stuck (all over a Wi-Fi dongle ugh).
The driver given by TP-LINK for my WiFi dongle says - required Linux (kernel 2.6.18 ~ 3.19.3)
However from what I can tell (and I could be wrong) with uname -r (I think that's the right command)
I'm running 4.1.13-v7+

I managed to get the source/headers part sorted, eventually after much dicking around I ended up using rpi-source after downloading that package and that did the rest for me.
When compiling however it complains of "error: implicit declaration of function ‘create_proc_entry’"
I've since found out that create_proc_entry function is deprecated in versions above 3.19.3
Am I screwed or is there a way I can make this work :(
Any assistance is appreciated.
Also, I'm a complete linux noob, this info took me hours to figure out, so any advice is welcome

Edit:

Code: Select all

uname -a
Linux raspberrypi 4.1.13-v7+ #826 SMP PREEMPT Fri Nov 13 20:19:03 GMT 2015 armv7l GNU/Linux
2nd Edit:
Appears there is a more updated WiFi driver for what I'm trying, community-written on github, I shall try that and post back results, My apologies with all this.

3rd Edit:
Still stuck, further info/help would be appreciated

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

Re: Unable to compile Wi-Fi Driver

Mon Feb 08, 2016 9:32 am

The source I use which I can compile the driver for all kernel versions 3.18, 4.0, 4.1 and 4.4 is available here. https://dl.dropboxusercontent.com/u/802 ... ver.tar.gz

Otherwise you can download and install the drivers I've compiled using commands

Code: Select all

wget https://dl.dropboxusercontent.com/u/80256631/8812au-4.1.13-v7-826.tar.gz
tar xzf 8812au-4.1.13-v7-826.tar.gz
./install.sh
I have drivers available for download for raspbian kernels 3.18, 4.0, 4.1 and 4.4. I use a standard format for the driver names based on the kernel version and build. ie 8812au-kernel-build.tar.gz

In the download and install commands above just replace the kernel version and build number with the values from command uname -a if you want the driver for a different raspbian kernel version.


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

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

nicholsonr
Posts: 18
Joined: Wed Jan 13, 2016 11:39 am

Re: Unable to compile Wi-Fi Driver

Mon Feb 08, 2016 11:12 am

Hi MrEngman,

I actually found a post where you wrote the same thing on a different thread.
I've tried this and my Wi-Fi dongle doesn't appear to power up still.
Wondering if you had any suggestions?
Running 4.1.13-v7+ build 826 (as per your code comment).

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

Re: Unable to compile Wi-Fi Driver

Mon Feb 08, 2016 12:04 pm

Very confusing using multiple threads for your problem.

Look here viewtopic.php?p=901693#p901693


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

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

cannonfodder728
Posts: 6
Joined: Sun Feb 21, 2016 8:54 pm

Re: Unable to compile Wi-Fi Driver

Sun Feb 21, 2016 8:55 pm

Can someone compile 8192eu driver for
Linux raspberrypi 4.1.17-v7+ #838 SMP Tue Feb 9 13:15:09 GMT 2016 armv7l GNU/Linux

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

Re: Unable to compile Wi-Fi Driver

Mon Feb 22, 2016 2:44 pm

cannonfodder728 wrote:Can someone compile 8192eu driver for
Linux raspberrypi 4.1.17-v7+ #838 SMP Tue Feb 9 13:15:09 GMT 2016 armv7l GNU/Linux
Take a look here if you are using raspbian OS.



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

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

Return to “Beginners”