rtl8812AU icon indicating copy to clipboard operation
rtl8812AU copied to clipboard

CONFIG_RTL8821AU=y compilation fail

Open yshurik opened this issue 6 years ago • 6 comments

Looks like missing files:

In file included from /home/alex/rtl8812AU/include/hal_data.h:25:0,
                 from /home/alex/rtl8812AU/core/rtw_cmd.c:23:
/home/alex/rtl8812AU/include/../hal/phydm/phydm_precomp.h:249:10: fatal error: rtl8821a/halhwimg8821a_mac.h: No such file or directory
 #include "rtl8821a/halhwimg8821a_mac.h"

Can these be added to repository to compile CONFIG_RTL8821AU ?

yshurik avatar Apr 27 '18 08:04 yshurik

I have experienced this as well...what can we do in this case?

smac89 avatar May 06 '18 03:05 smac89

@smac89 I found https://github.com/abperiasamy/rtl8812AU_8821AU_linux which did the work for my Netgear AC600, guess it has files which can be merged in this repository.

yshurik avatar May 06 '18 09:05 yshurik

@yshurik I found that too, but how did you get it to install rtl8821au? It keeps trying to install 8812au, but I have no need for that as my kernel already has a newer version:

➜ dkms status
rtl8812au, 5.1.5, 4.13.0-38-generic, x86_64: installed
rtl8812au, 5.1.5, 4.13.0-39-generic, x86_64: built
rtlwifi-new, 0.10: added
virtualbox, 5.1.34, 4.13.0-38-generic, x86_64: installed
virtualbox, 5.1.34, 4.13.0-39-generic, x86_64: installed

smac89 avatar May 07 '18 14:05 smac89

That one installed rtl8812au, all ok for AC600 at least:

...
  CC [M]  /home/alex/rtl8812AU_8821AU_linux/core/rtw_bt_mp.o
  LD [M]  /home/alex/rtl8812AU_8821AU_linux/rtl8812au.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /home/alex/rtl8812AU_8821AU_linux/rtl8812au.mod.o
  LD [M]  /home/alex/rtl8812AU_8821AU_linux/rtl8812au.ko
make[1]: Leaving directory '/usr/src/linux-4.15.1-gentoo'

update: I didnt spot about 8812/8821, but that one worked for Netgear AC600 (which reported by lsusb as Realtek RTL8811AU)

yshurik avatar May 07 '18 17:05 yshurik

I was able to fix the drivers that came with my adapter and it successfully compiled for rtl8821au. The files are here

smac89 avatar May 08 '18 16:05 smac89

I was able to copy over some files from another repo to attempt getting SOME compilation to work, (was getting "missing file" errors) but it still gets stuck, now with different errors.

http://susepaste.org/13590334

~~I can upload a patch/diff if y'all would like.~~

Here's a patch. Note, I only added files from the abperiasamy/rtl8812AU_8821AU_linux repo, none of which I modified.

Zer0t3ch avatar Nov 07 '18 17:11 Zer0t3ch