9

I'm trying to install the RTL8812au drivers for a wireless usb adapter. My error is very similar to another question.

Missing build file when building for rtl8812au driver

However, the solution does not work for my version kernel version 4.4.50-v7 (found by running uname -a)

I configure the Makefile to ARM_RPI=y and I386_PC=n and run make then I get the following error.

make[1]: *** /lib/modules/4.4.50-v7+/build: No such file or directory. Stop. Makefile:1052: recipe for target 'modules' failed

8

Literally the very next thing I tried worked. I spent the last 5 hours working on this so I'll go ahead and share what I did to fix.

First, I sourced my drivers from the following github repo.

sudo git clone https://github.com/gnab/rtl8812au.git

cd rtl8812au

modified the Makefile

sudo nano Makefile

CONFIG_PLATFORM_I386_PC = n

CONFIG_PLATFORM_ARM_RPI = y

Ctrl + X, Enter to exit and save

then ran

sudo chmod +x install.sh

This next step was critical for getting the make to work on my machine. Before running make or install.sh I had to install raspberrypi kernel headers and build essential

sudo apt-get install raspberrypi-kernel-headers build-essential

then instead of manually running make I decided to use the automated install file.

sudo ./install.sh <--- This is where the error occurred before. Now that you installed the RaspberryPi Kernel Headers it works.

Finally, I shutdown the device. Plugged in my Realtek Wifi Adapter and booted it and it connected with my preset wifi settings.

0

"In normal circumstances there is NEVER a need to run rpi-update as it always gets you to the leading edge firmware and kernel and because that may be a testing version it could leave your RPi unbootable". https://www.raspberrypi.org/forums/viewtopic.php?p=916911#p916911 Even the rpi-update documentation now warns "Even on Raspbian you should only use this with a good reason. This gets you the latest bleeding edge kernel/firmware."

The best and easiest way to handle this problem is as following (This is similar to the question posted here[How do I install the drivers for a WiFi dongle with the RealTek 8812AU chipset on Raspbian?)

  1. sudo wget http://www.fars-robotics.net/install-wifi -O /usr/bin/install-wifi
    • Downloads the installation file
  2. sudo chmod +x /usr/bin/install-wifi
    • makes it executable
  3. Installation process
    • sudo install-wifi -c rpi-update
      - check for driver if rpi-update is run.
    • sudo rpi-update
      - if a driver is available you can run rpi-update to update firmware.
    • sudo install-wifi -u rpi-update
      - then update the driver for the new kernel installed by rpi-update.
    • sudo reboot
      - now reboot to update the kernel with the new wifi driver.
  • 3
    Please stop posting identical (first, second, this one is third) answers to multiple questions. Instead please answer once and mark the other questions as duplicates. – techraf Nov 12 '17 at 12:07
  • Welcome to Raspberry Pi! Please take the tour and visit the helpcenter to see how things work here. As techraf has pointed out: please refrain from posting identical answers. If the same answer addresses different question those questions should instead be marked as duplicates. – Ghanima Nov 12 '17 at 12:43

protected by Ghanima Jun 30 '18 at 18:34

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.