astsam / rtl8812au

RTL8812AU/21AU and RTL8814AU driver with monitor mode and frame injection
350 stars 947 forks source link

Cant Compile on linux 11_11_2017 #76

Open xevilmaxx opened 6 years ago

xevilmaxx commented 6 years ago

Cant compile main branch, and also other branches have similar errors. My wifi device: Edup ac1621 (chip: rtl8814au)

` make

make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.14.0-1-MANJARO/build M=/home/max/Downloads/rtl8812au-master modules make[1]: Entering directory '/usr/lib/modules/4.14.0-1-MANJARO/build' CC [M] /home/max/Downloads/rtl8812au-master/core/rtw_cmd.o In file included from /home/max/Downloads/rtl8812au-master/include/drv_types.h:32:0, from /home/max/Downloads/rtl8812au-master/core/rtw_cmd.c:22: /home/max/Downloads/rtl8812au-master/include/osdep_service.h: In function ‘thread_enter’: /home/max/Downloads/rtl8812au-master/include/osdep_service.h:343:2: error: implicit declaration of function ‘allow_signal’; did you mean ‘do_signal’? [-Werror=implicit-function-declaration] allow_signal(SIGTERM); ^~~~ do_signal /home/max/Downloads/rtl8812au-master/include/osdep_service.h: In function ‘flush_signals_thread’: /home/max/Downloads/rtl8812au-master/include/osdep_service.h:353:6: error: implicit declaration of function ‘signal_pending’; did you mean ‘timer_pending’? [-Werror=implicit-function-declaration] if (signal_pending (current)) ^~~~~~ timer_pending /home/max/Downloads/rtl8812au-master/include/osdep_service.h:355:3: error: implicit declaration of function ‘flush_signals’; did you mean ‘do_signal’? [-Werror=implicit-function-declaration] flush_signals(current); ^~~~~ do_signal cc1: some warnings being treated as errors make[2]: [scripts/Makefile.build:314: /home/max/Downloads/rtl8812au-master/core/rtw_cmd.o] Error 1 make[1]: [Makefile:1502: module/home/max/Downloads/rtl8812au-master] Error 2 make[1]: Leaving directory '/usr/lib/modules/4.14.0-1-MANJARO/build' make: *** [Makefile:1264: modules] Error 2 `

any solution? I tried other git drivers, and they compiles but dont work properly. They detects network but cant connect.

Also official driver on cd have exactly same issue.

Also make RTL8814=1 has same output.

juwilie commented 6 years ago

Check out my pull request, where I fixed kernel dependencies. Works well with 4.13, and I think would work with your kernel.

kimocoder commented 6 years ago

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

xevilmaxx commented 6 years ago

Sorry, but its still seems to not work. Before i had real system, but now i opted for windows just becouse of wifi driver :(

I created an manjaro VM, updated, and installed kernel you said it would work with: 4.13.12-1 But also with default kernel cant compile.

Here is my device, its relatively new on market i think. https://wikidevi.com/wiki/EDUP_EP-AC1621

2017-11-15 12:35 GMT+01:00 Christian B. notifications@github.com:

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

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/astsam/rtl8812au/issues/76#issuecomment-344566765, or mute the thread https://github.com/notifications/unsubscribe-auth/AQ1XYqzLBzmHDmuT5b6nNaLA58MP7Q8Tks5s2syPgaJpZM4Qaj3t .

kimocoder commented 6 years ago

Well, the "0bda:8813" have to be added into "os_dep/linux/usb__intf.c" og it's missing (the adapter is new)

kimocoder commented 6 years ago

The aircrack-ng repo got support for kernel v4.14 (_vfs_read functions) not only v4.13 and below, since I see your on v4.14. Made a patch for you to have it supported.

git clone https://github.com/aircrack-ng/rtl8812au -b v5.1.5 cd rtl8812au wget https://github.com/evilphish/rtl8812au/pull/8/commits/3e70835ef0febe9005b38368a09253aeed1360ad.patch patch -p1 < *.patch make RTL8814=1 && make install RTL8814=1

xevilmaxx commented 6 years ago

Really thanks to taking into consideration my case. Anyway, i tried all steps listed by you in previous mail, and it stucks again on make RTL8814=1

I think i will need to wait some months or years to get work properly that device, as i tried all github drivers. Some of them i was able to compile, and maybe 2 or 1 of them even worked, but not good enough as drivers on windows.

I also tried to use ndriwrapper, to install windows drivers, and tried to install different versions, but no way.

For now, until first virus i'm comfortable on windows, at least if windows is not a virus that i'talking about :)

2017-11-15 15:57 GMT+01:00 Christian B. notifications@github.com:

Made a patch for you to have it supported.

git clone https://github.com/aircrack-ng/rtl8812au -b v5.1.5 cd rtl8812au wget https://github.com/evilphish/rtl8812au/pull/8/commits/ 3e70835ef0febe9005b38368a09253aeed1360ad.patch patch -p1 < 3e70835 https://github.com/astsam/rtl8812au/commit/3e70835ef0febe9005b38368a09253aeed1360ad .patch make RTL8814=1 && make install RTL8814=1

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/astsam/rtl8812au/issues/76#issuecomment-344617694, or mute the thread https://github.com/notifications/unsubscribe-auth/AQ1XYq-KDbS0bcHn4nuLNpB3kG9gE9Itks5s2vvfgaJpZM4Qaj3t .

kimocoder commented 6 years ago

They work great here :)

xevilmaxx commented 6 years ago

Strange, but today i tried to redo all steps with latest cernel, and they worked. Installation is successful, BUT driver itself dont work, it doesnt connects to wifi network. Here i retailed some output of my wifi manager. You can search for .

wifi_out.txt

Personally i dont know what happens, but something goes wrong.