meross AC600 usb wi-fi adaptor not working with newer Kernel (resolved)

I am using peppermint 8 64bit

We previously installed this wifi adapter and it was working fine.

https://linuxforums.org.uk/index.php?topic=13232.msg108284#msg108284

I have not used the wifi for around 8 months but need to use it this coming week so plugged it in and the adapter was not seen by the system.

There have been 2 Kernel updates since it was installed and just to see I booted using the original Kernel and the adapter was working OK again.
How do I make it work with the new Kernel or do I need to remove the new kernels and if so how do I remove them or force the system to boot from the original.

As always any help would be appreciated.

Can you post the output from:

uname -a

and

dkms status

and

lsmod | grep rtl8812au

usertwo@usertwo-R59P-R60P-R61P ~ $ uname -a
Linux usertwo-R59P-R60P-R61P 4.15.0-43-generic #46~16.04.1-Ubuntu SMP Fri Dec 7 13:31:08 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
usertwo@usertwo-R59P-R60P-R61P ~ $ dkms status
rtl8812au, 4.3.14: added
usertwo@usertwo-R59P-R60P-R61P ~ $ lsmod | grep rtl8812au
usertwo@usertwo-R59P-R60P-R61P ~ $

What happens if you run:

sudo modprobe rtl8812au

usertwo@usertwo-R59P-R60P-R61P ~ $ sudo modprobe rtl8812au
[sudo] password for usertwo:
modprobe: FATAL: Module rtl8812au not found in directory /lib/modules/4.15.0-43-generic
usertwo@usertwo-R59P-R60P-R61P ~ $

Have you tried the instructions here again
https://linuxforums.org.uk/index.php?topic=13232.msg107941#msg107941

This is the result of trying to reinstall.

usertwo@usertwo-R59P-R60P-R61P ~ $ sudo apt-get install dkms git
[sudo] password for usertwo:
Reading package lists… Done
Building dependency tree
Reading state information… Done
dkms is already the newest version (2.2.0.3-2ubuntu11.5).
git is already the newest version (1:2.7.4-0ubuntu1.6).
The following packages were automatically installed and are no longer required:
linux-headers-4.10.0-38 linux-headers-4.10.0-38-generic
linux-image-4.10.0-38-generic linux-image-extra-4.10.0-38-generic
Use ‘sudo apt autoremove’ to remove them.
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
usertwo@usertwo-R59P-R60P-R61P ~ $ mkdir ~/RTL8812AU
mkdir: cannot create directory ‘/home/usertwo/RTL8812AU’: File exists
usertwo@usertwo-R59P-R60P-R61P ~ $ cd ~/RTL8812AU
usertwo@usertwo-R59P-R60P-R61P ~/RTL8812AU $ git clone GitHub - abperiasamy/rtl8812AU_8821AU_linux: rtl8812AU_8821AU linux kernel driver for AC1200 (801.11ac) Wireless Dual-Band USB Adapter
fatal: destination path ‘rtl8812AU_8821AU_linux’ already exists and is not an empty directory.
usertwo@usertwo-R59P-R60P-R61P ~/RTL8812AU $ cd ~/RTL8812AU/rtl8812AU_8821AU_linuxusertwo@usertwo-R59P-R60P-R61P ~/RTL8812AU/rtl8812AU_8821AU_linux $ sudo make -f Makefile.dkms install
make clean
make[1]: Entering directory ‘/home/usertwo/RTL8812AU/rtl8812AU_8821AU_linux’
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.15.0-43-generic/build M=/home/usertwo/RTL8812AU/rtl8812AU_8821AU_linux clean
make[2]: Entering directory ‘/usr/src/linux-headers-4.15.0-43-generic’
make[2]: Leaving directory ‘/usr/src/linux-headers-4.15.0-43-generic’
make[1]: Leaving directory ‘/home/usertwo/RTL8812AU/rtl8812AU_8821AU_linux’
mkdir -p ‘/usr/src/rtl8812au-4.3.14’
cp -r dkms.conf Kconfig Makefile.dkms Makefile platform core hal include os_dep ‘/usr/src/rtl8812au-4.3.14’
cp Makefile ‘/usr/src/rtl8812au-4.3.14/Makefile’
sed ‘s/#MODULE_VERSION#/4.3.14/’ dkms.conf > ‘/usr/src/rtl8812au-4.3.14/dkms.conf’
dkms add -m rtl8812au -v 4.3.14 2>/dev/null || true
dkms build -m rtl8812au -v 4.3.14

Kernel preparation unnecessary for this kernel. Skipping…

Building module:
cleaning build area…
make KERNELRELEASE=4.15.0-43-generic KVER=4.15.0-43-generic…(bad exit status: 2)
Error! Bad return status for module build on kernel: 4.15.0-43-generic (x86_64)
Consult /var/lib/dkms/rtl8812au/4.3.14/build/make.log for more information.
Makefile.dkms:18: recipe for target ‘build’ failed
make: *** [build] Error 10
usertwo@usertwo-R59P-R60P-R61P ~/RTL8812AU/rtl8812AU_8821AU_linux $ sudo modprobe rtl8812au
modprobe: FATAL: Module rtl8812au not found in directory /lib/modules/4.15.0-43-generic
usertwo@usertwo-R59P-R60P-R61P ~/RTL8812AU/rtl8812AU_8821AU_linux $

Can you post the contents of

xed /var/lib/dkms/rtl8812au/4.3.14/build/make.log

can you also run

sudo updatedb

then post the output from

locate rtl8812au.ko

I have updated the information you requested.

Could any of the fixes at this site help. GitHub - abperiasamy/rtl8812AU_8821AU_linux: rtl8812AU_8821AU linux kernel driver for AC1200 (801.11ac) Wireless Dual-Band USB Adapter

DKMS make.log for rtl8812au-4.3.14 for kernel 4.15.0-43-generic (x86_64)
Mit Jan 30 10:57:27 CET 2019
make[1]: Entering directory ‘/var/lib/dkms/rtl8812au/4.3.14/build’
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.15.0-43-generic/build M=/var/lib/dkms/rtl8812au/4.3.14/build modules
make[2]: Entering directory ‘/usr/src/linux-headers-4.15.0-43-generic’
CC [M] /var/lib/dkms/rtl8812au/4.3.14/build/core/rtw_cmd.o
In file included from /var/lib/dkms/rtl8812au/4.3.14/build/include/osdep_service.h:41:0,
from /var/lib/dkms/rtl8812au/4.3.14/build/include/drv_types.h:32,
from /var/lib/dkms/rtl8812au/4.3.14/build/core/rtw_cmd.c:22:
/var/lib/dkms/rtl8812au/4.3.14/build/include/osdep_service_linux.h: In function ‘_init_timer’:
/var/lib/dkms/rtl8812au/4.3.14/build/include/osdep_service_linux.h:274:8: error: ‘_timer {aka struct timer_list}’ has no member named ‘data’
ptimer->data = (unsigned long)cntx;
^
/var/lib/dkms/rtl8812au/4.3.14/build/include/osdep_service_linux.h:275:2: error: implicit declaration of function ‘init_timer’ [-Werror=implicit-function-declaration]
init_timer(ptimer);
^
cc1: all warnings being treated as errors
scripts/Makefile.build:332: recipe for target ‘/var/lib/dkms/rtl8812au/4.3.14/build/core/rtw_cmd.o’ failed
make[3]: *** [/var/lib/dkms/rtl8812au/4.3.14/build/core/rtw_cmd.o] Error 1
Makefile:1551: recipe for target ‘module/var/lib/dkms/rtl8812au/4.3.14/build’ failed
make[2]: *** [module/var/lib/dkms/rtl8812au/4.3.14/build] Error 2
make[2]: Leaving directory ‘/usr/src/linux-headers-4.15.0-43-generic’
Makefile:1584: recipe for target ‘modules’ failed
make[1]: *** [modules] Error 2
make[1]: Leaving directory ‘/var/lib/dkms/rtl8812au/4.3.14/build’

usertwo@usertwo-R59P-R60P-R61P ~ $ sudo updatedb
[sudo] password for usertwo:
usertwo@usertwo-R59P-R60P-R61P ~ $ locate rtl8812au.ko
usertwo@usertwo-R59P-R60P-R61P ~ $

Hi Mark

I have resolved this by doing a clean install of Peppermint 8 64bit.

Now working OK but how do I prevent the Kernel being updated?

Thanks so far for your suggestions.

Well I’m not exactly sure what your problem is…

I just followed these instructions
https://linuxforums.org.uk/index.php?topic=13232.msg107941#msg107941

In Peppermint 9 64bit (with both the 4.15.0-43 and 4.15.0-45 kernel) and the driver built correctly both times.

Maybe they fixed the driver (there was a commit 19 days ago) and you still had the old source code, or maybe it’s a Peppermint EIGHT problem (though it shouldn’t be if they’re using the same kernel).

Gimme until tomorrow and I’ll try the same thing on PM8

It now seems to be working OK so marked as resolved.