rtl8812au icon indicating copy to clipboard operation
rtl8812au copied to clipboard

driver not working with kernel 4.19 lts

Open SolZer opened this issue 6 years ago • 25 comments

upgraded from 4.18 to 4.19, and wifi adapter is no longer recognized

SolZer avatar Oct 26 '18 14:10 SolZer

Hi Solzer, did you recompile the driver? When kernel upgrades occur the driver modules are not copied over to the new kernel. Usually a make; sudo make install (and then reboot or insmod) should correct this. Just checking.

ekeyser avatar Oct 26 '18 14:10 ekeyser

Kernel v4.19 will need a patch to her supported. Take a look in "gordboy" repo

kimocoder avatar Oct 26 '18 15:10 kimocoder

Hi ekeyser, I know this thread is getting a little old but I had the same issue when Fedora upgraded to 4.19 kernel. My particular issue was a duplicate #define error in ./include/wifi.h: Line 980: #define IEEE80211_MAX_AMPDU_BUF 0x40 which was also defined elsewhere as #define IEEE80211_MAX_AMPDU_BUF 0x100. So I commented out this #define in wifi.h and let it compile: /#define IEEE80211_MAX_AMPDU_BUF 0x40/ This worked for me. Can't guarantee it'll work for everyone but it's something to try if nothing else works and it's easy. I know there's probably a reason to make this particular buffer smaller but it maxes out my internet speed and works after reboots so I don't care :-)

jasontm7 avatar Nov 21 '18 20:11 jasontm7

If only someone would upstream the patches from: https://github.com/gordboy/rtl8812au

romulasry avatar Dec 05 '18 08:12 romulasry

I guess I have the same problem.

 CC [M]  /home/faraz/rtl8812au-master/os_dep/linux/os_intfs.o
/home/faraz/rtl8812au-master/os_dep/linux/os_intfs.c:1069:22: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
  .ndo_select_queue = rtw_select_queue,
                      ^~~~~~~~~~~~~~~~
/home/faraz/rtl8812au-master/os_dep/linux/os_intfs.c:1069:22: note: (near initialization for ‘rtw_netdev_ops.ndo_select_queue’)
cc1: some warnings being treated as errors
scripts/Makefile.build:303: recipe for target '/home/faraz/rtl8812au-master/os_dep/linux/os_intfs.o' failed
make[2]: *** [/home/faraz/rtl8812au-master/os_dep/linux/os_intfs.o] Error 1
Makefile:1517: recipe for target '_module_/home/faraz/rtl8812au-master' failed
make[1]: *** [_module_/home/faraz/rtl8812au-master] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.19.10-041910-generic'
Makefile:1064: recipe for target 'modules' failed
make: *** [modules] Error 2
gcc --version
gcc (Ubuntu 7.3.0-27ubuntu1~18.04) 7.3.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
uname -r -v -m
4.19.10-041910-generic #201812170433 SMP Mon Dec 17 09:35:34 UTC 2018 x86_64

fffaraz avatar Dec 21 '18 03:12 fffaraz

I'm having same problem with 4.20

$ make
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.20.0-042000-generic/build M=/home/ettinger/tmp/rtl8812au  modules
make[1]: Entering directory '/usr/src/linux-headers-4.20.0-042000-generic'
  CC [M]  /home/ettinger/tmp/rtl8812au/os_dep/linux/os_intfs.o
/home/ettinger/tmp/rtl8812au/os_dep/linux/os_intfs.c:1069:22: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
  .ndo_select_queue = rtw_select_queue,
                      ^~~~~~~~~~~~~~~~
/home/ettinger/tmp/rtl8812au/os_dep/linux/os_intfs.c:1069:22: note: (near initialization for ‘rtw_netdev_ops.ndo_select_queue’)
cc1: some warnings being treated as errors
scripts/Makefile.build:291: recipe for target '/home/ettinger/tmp/rtl8812au/os_dep/linux/os_intfs.o' failed
make[2]: *** [/home/ettinger/tmp/rtl8812au/os_dep/linux/os_intfs.o] Error 1
Makefile:1563: recipe for target '_module_/home/ettinger/tmp/rtl8812au' failed
make[1]: *** [_module_/home/ettinger/tmp/rtl8812au] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.20.0-042000-generic'
Makefile:1064: recipe for target 'modules' failed
make: *** [modules] Error 2

ralyodio avatar Jan 06 '19 18:01 ralyodio

Compare Makefile and os_dep/linux/os_intfs.c between gnab and gordboy versions.

In the Makefile there are a few extra flags that differ. My guess is that this is irrelevant but I changed them anyway so that both files match.

In os_dep/linux/os_intfs.c search for rtw_select_queue. There are three occurrences. The last two are identical at the time of this writing. The first is within a series of if statements. The gordboy version has an extra one for kernel 4.19.

Replace the gnab chunk with the gordboy version and you are done: it compiles and works.

Tested with liquorix 4.19 on Bodhi 5 (Ubuntu 18.04).

mirix avatar Jan 08 '19 08:01 mirix

Same problem now --

Kali Linux, uname -a -> Linux [redacted] 4.19.0-kali1-amd64 #1 SMP Debian 4.19.13-1kali1 (2019-01-03) x86_64 GNU/Linux

Exact same error as @chovy when trying to make the driver. It may be worth noting that the guide I followed suggested an apt install linux-headers-generic before even cloning this repo, and on Kali, I cannot find that package.

mishaturnbull avatar Jan 24 '19 03:01 mishaturnbull

There’s an app called uuuk or something like that. It allows you to easily install newer kernels. That worked for me.

Anthony

On Jan 23, 2019, at 7:54 PM, Misha Turnbull [email protected] wrote:

Same problem now --

Kali Linux, uname -a -> Linux [redacted] 4.19.0-kali1-amd64 #1 SMP Debian 4.19.13-1kali1 (2019-01-03) x86_64 GNU/Linux

Exact same error as @chovy when trying to make the driver. It may be worth noting that the guide I followed suggested an apt install linux-headers-generic before even cloning this repo, and on Kali, I cannot find that package.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

ralyodio avatar Jan 24 '19 04:01 ralyodio

Yesterday I did a system upgrade and Liquorix 4.20 was installed. The module was build automatically via DKMS. This means that the simple hack described above works for versions 4.19 and 4.20.

mirix avatar Jan 24 '19 15:01 mirix

The fix went live in 4.19+ so you don't need to do any hacks.

On Thu, Jan 24, 2019 at 7:11 AM mirix [email protected] wrote:

Yesterday I did a system upgrade and Liquorix 4.20 was installed. The module was build automatically via DKMS. This means that the simple hack described above works for versions 4.19 and 4.20.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/gnab/rtl8812au/issues/154#issuecomment-457231518, or mute the thread https://github.com/notifications/unsubscribe-auth/AABq9TmASSTsByvIYxiRNg-7q2Z20TFlks5vGc0RgaJpZM4X8YUg .

-- Anthony Ettinger http://anthony.ettinger.name [email protected] +1 (831) 406-1123

ralyodio avatar Jan 24 '19 16:01 ralyodio

I've had no luck installing via DKMS or the gordboy repo, but what I was able to do was use the CD drive that came with the dongle to install the Bluetooth driver, and the WiFi driver via https://github.com/lwfinger/8723bu. If anyone's interested I can post the code from the CD drive.

mishaturnbull avatar Jan 24 '19 19:01 mishaturnbull

I'm sorry I misled you. I thought this was about sound drivers for my laptop, not the wifi card. I don't know how to get it to work.

ralyodio avatar Jan 24 '19 21:01 ralyodio

Misha, the gordboy code doesn't work for me either. What works is hacking a couple of files from this repo as explained above.

mirix avatar Jan 24 '19 22:01 mirix

No need to touch the Makefile. Just replace os_dep/linux/os_intfs.c with the attached file (change extension from .txt to .c) and your are good to go.

os_intfs.txt

mirix avatar Feb 01 '19 15:02 mirix

Hi guys, the aircrack-ng/rtl8812au drivers work for me. I have tested driver v5.3.4 against kernel 4.19.19. It works out of the box (DKMS method), the repo seems to be actively maintained, it wraps all the commands in convenient install/uninstall scripts, it is supposed to work with kernels 4.20 and 5.0, and it contains more recent versions of the drivers (not the most recent, though).

mirix avatar Feb 05 '19 09:02 mirix

@mirix where can i read more about this?

ralyodio avatar Feb 05 '19 20:02 ralyodio

@chovy

https://github.com/aircrack-ng/rtl8812au

mirix avatar Feb 06 '19 04:02 mirix

upgraded from 4.18 to 4.19, and wifi adapter is no longer recognized

I have made a fix so it works with 4.19.* and also 5.0.* here: https://github.com/AstroDrabb/rtl8812au

ghost avatar Mar 24 '19 21:03 ghost

Can you give me foil proof instructions for installing the driver in Ubuntu?

Anthony

On Mar 24, 2019, at 2:15 PM, Jim [email protected] wrote:

upgraded from 4.18 to 4.19, and wifi adapter is no longer recognized

I have made a fix so it works with 4.19.* and also 5.0.* here: https://github.com/AstroDrabb/rtl8812au

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

ralyodio avatar Mar 24 '19 23:03 ralyodio

It has been a long time since I used Ubuntu, however the steps to try are:

git clone https://github.com/AstroDrabb/rtl8812au sudo mkdir -p /usr/src # might already exist sudo cp -r rtl8812au /usr/src

sudo dkms add -m rtl8812au -v 4.2.2 --all sudo dkms build -m rtl8812au -v 4.2.2 -k $(uname -r) sudo dkms install -m rtl8812au -v 4.2.2 -k $(uname -r)

the driver should now be installed. Network Manager should give you a notice. If not, reboot and go in to Network Manager and look for you USB adapter and configure it.

Let me know if you need any more help.

Jim

On Sun, Mar 24, 2019 at 7:33 PM Anthony Ettinger [email protected] wrote:

Can you give me foil proof instructions for installing the driver in Ubuntu?

Anthony

On Mar 24, 2019, at 2:15 PM, Jim [email protected] wrote:

upgraded from 4.18 to 4.19, and wifi adapter is no longer recognized

I have made a fix so it works with 4.19.* and also 5.0.* here: https://github.com/AstroDrabb/rtl8812au

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/gnab/rtl8812au/issues/154#issuecomment-476012940, or mute the thread https://github.com/notifications/unsubscribe-auth/AJQEHzkiAWHpGuyjhKEmzrgzxowiUQn4ks5vaAtBgaJpZM4X8YUg .

ghost avatar Mar 26 '19 04:03 ghost

step by step instructions for manjaro is also very much appreciated.. I can't seem to make this work :(

hoemon avatar Jun 08 '19 17:06 hoemon

It has been a long time since I used Ubuntu, however the steps to try are: git clone https://github.com/AstroDrabb/rtl8812au sudo mkdir -p /usr/src # might already exist sudo cp -r rtl8812au /usr/src sudo dkms add -m rtl8812au -v 4.2.2 --all sudo dkms build -m rtl8812au -v 4.2.2 -k $(uname -r) sudo dkms install -m rtl8812au -v 4.2.2 -k $(uname -r) the driver should now be installed. Network Manager should give you a notice. If not, reboot and go in to Network Manager and look for you USB adapter and configure it. Let me know if you need any more help. Jim On Sun, Mar 24, 2019 at 7:33 PM Anthony Ettinger [email protected] wrote: Can you give me foil proof instructions for installing the driver in Ubuntu? - Anthony > On Mar 24, 2019, at 2:15 PM, Jim @.*> wrote: > > upgraded from 4.18 to 4.19, and wifi adapter is no longer recognized > > I have made a fix so it works with 4.19. and also 5.0. here: > https://github.com/AstroDrabb/rtl8812au > > — > You are receiving this because you were mentioned. > Reply to this email directly, view it on GitHub, or mute the thread. — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#154 (comment)>, or mute the thread https://github.com/notifications/unsubscribe-auth/AJQEHzkiAWHpGuyjhKEmzrgzxowiUQn4ks5vaAtBgaJpZM4X8YUg . I am running on Kernel 5.0 and the install failed at the last step:

8812au: Running module version sanity check. /usr/sbin/dkms: line 784: find_module: command not found modinfo: ERROR: missing module or filename.

  • Original module
  • Installation
    • Installing to /lib/modules/5.0.0-21-generic/updates/dkms/ Can someone help?

NTOTL avatar Jul 16 '19 04:07 NTOTL

help me please i cant install realtek 8188

The Error

cc1: some warnings being treated as errors
make[4]: *** [/usr/src/linux-headers-4.19.0-kali4-common/scripts/Makefile.build:309: /root/linux/RTL8188EUS_linux_v4.1.4_6773.20130222/driver/rtl8188EUS_linux_v4.1.4_6773.20130222/core/rtw_cmd.o] Error 1
make[3]: *** [/usr/src/linux-headers-4.19.0-kali4-common/Makefile:1535: _module_/root/linux/RTL8188EUS_linux_v4.1.4_6773.20130222/driver/rtl8188EUS_linux_v4.1.4_6773.20130222] Error 2
make[2]: *** [Makefile:146: sub-make] Error 2
make[1]: *** [Makefile:8: all] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.19.0-kali4-686-pae'
make: *** [Makefile:678: modules] Error 2
##################################################
Compile make driver error: 2
Please check error Mesg
##################################################


My OS : Kali Linux 2019 (32)

MindPatch avatar Oct 02 '19 15:10 MindPatch

RTL8188EUS is not in the 8812AU family. You need a driver made for your chipset. If you google for ' github RTL8188EUS ' you will bring up several repos for 8188EUS drivers.

donahue95 avatar Oct 02 '19 17:10 donahue95