Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

driver not working with kernel 4.19 lts #154

Open
SolZer opened this issue Oct 26, 2018 · 25 comments
Open

driver not working with kernel 4.19 lts #154

SolZer opened this issue Oct 26, 2018 · 25 comments

Comments

@SolZer
Copy link

SolZer commented Oct 26, 2018

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

@ekeyser
Copy link

ekeyser commented Oct 26, 2018

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.

@kimocoder
Copy link

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

@jasontm7
Copy link

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 :-)

@romulasry
Copy link

romulasry commented Dec 5, 2018

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

@fffaraz
Copy link

fffaraz commented Dec 21, 2018

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

@ralyodio
Copy link

ralyodio commented Jan 6, 2019

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

@mirix
Copy link

mirix commented Jan 8, 2019

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).

@mishaturnbull
Copy link

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.

@ralyodio
Copy link

ralyodio commented Jan 24, 2019 via email

@mirix
Copy link

mirix commented Jan 24, 2019

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.

@ralyodio
Copy link

ralyodio commented Jan 24, 2019 via email

@mishaturnbull
Copy link

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.

@ralyodio
Copy link

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.

@mirix
Copy link

mirix commented Jan 24, 2019

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
Copy link

mirix commented Feb 1, 2019

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
Copy link

mirix commented Feb 5, 2019

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).

@ralyodio
Copy link

ralyodio commented Feb 5, 2019

@mirix where can i read more about this?

@mirix
Copy link

mirix commented Feb 6, 2019

@ghost
Copy link

ghost commented Mar 24, 2019

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

@ralyodio
Copy link

ralyodio commented Mar 24, 2019 via email

@ghost
Copy link

ghost commented Mar 26, 2019 via email

@hoemon
Copy link

hoemon commented Jun 8, 2019

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

@NTOTL
Copy link

NTOTL commented Jul 16, 2019

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 notifications@github.com 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?

@knassar702
Copy link

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)

@donahue95
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests