diederikdehaas / rtl8812AU

Realtek 8812AU USB WiFi driver
Other
475 stars 177 forks source link

CONFIG_RTL8821AU=y compilation fail #99

Open yshurik opened 6 years ago

yshurik commented 6 years ago

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 ?

smac89 commented 6 years ago

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

yshurik commented 6 years ago

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

smac89 commented 6 years ago

@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
yshurik commented 6 years ago

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)

smac89 commented 6 years ago

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

Zer0t3ch commented 5 years ago

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.