Author Topic: meross AC600 usb wi-fi adaptor not working with newer Kernel (resolved)  (Read 1487 times)

0 Members and 1 Guest are viewing this topic.

Offline Tramlink

  • Hero Member
  • *****
  • Posts: 936
  • Karma: 12
  • Gender: Male
  • Is the mist clearing
    • View Profile
    • Awards
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.
« Last Edit: February 04, 2019, 11:13:28 am by Tramlink »

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 18119
  • Karma: 469
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: meross AC600 usb wi-fi adaptor not working with newer Kernel
« Reply #1 on: January 27, 2019, 12:26:33 pm »
Can you post the output from:
Code: [Select]
uname -a
and
Code: [Select]
dkms status
and
Code: [Select]
lsmod | grep rtl8812au
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline Tramlink

  • Hero Member
  • *****
  • Posts: 936
  • Karma: 12
  • Gender: Male
  • Is the mist clearing
    • View Profile
    • Awards
Re: meross AC600 usb wi-fi adaptor not working with newer Kernel
« Reply #2 on: January 27, 2019, 01:44:40 pm »
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 ~ $


Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 18119
  • Karma: 469
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: meross AC600 usb wi-fi adaptor not working with newer Kernel
« Reply #3 on: January 27, 2019, 06:47:57 pm »
What happens if you run:
Code: [Select]
sudo modprobe rtl8812au
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline Tramlink

  • Hero Member
  • *****
  • Posts: 936
  • Karma: 12
  • Gender: Male
  • Is the mist clearing
    • View Profile
    • Awards
Re: meross AC600 usb wi-fi adaptor not working with newer Kernel
« Reply #4 on: January 28, 2019, 09:00:02 am »
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 ~ $

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 18119
  • Karma: 469
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: meross AC600 usb wi-fi adaptor not working with newer Kernel
« Reply #5 on: January 28, 2019, 12:34:17 pm »
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline Tramlink

  • Hero Member
  • *****
  • Posts: 936
  • Karma: 12
  • Gender: Male
  • Is the mist clearing
    • View Profile
    • Awards
Re: meross AC600 usb wi-fi adaptor not working with newer Kernel
« Reply #6 on: January 28, 2019, 01:01:41 pm »
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 https://github.com/abperiasamy/rtl8812AU_8821AU_linux.git
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 $

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 18119
  • Karma: 469
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: meross AC600 usb wi-fi adaptor not working with newer Kernel
« Reply #7 on: January 28, 2019, 02:35:45 pm »
Can you post the contents of
Code: [Select]
xed /var/lib/dkms/rtl8812au/4.3.14/build/make.log
can you also run
Code: [Select]
sudo updatedb
then post the output from
Code: [Select]
locate rtl8812au.ko
« Last Edit: January 28, 2019, 02:37:41 pm by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline Tramlink

  • Hero Member
  • *****
  • Posts: 936
  • Karma: 12
  • Gender: Male
  • Is the mist clearing
    • View Profile
    • Awards
Re: meross AC600 usb wi-fi adaptor not working with newer Kernel
« Reply #8 on: January 28, 2019, 10:08:03 pm »
I have updated the information you requested.

Could any of the fixes at this site help. https://github.com/abperiasamy/rtl8812AU_8821AU_linux

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 ~ $
« Last Edit: January 30, 2019, 10:31:21 am by Tramlink »

Offline Tramlink

  • Hero Member
  • *****
  • Posts: 936
  • Karma: 12
  • Gender: Male
  • Is the mist clearing
    • View Profile
    • Awards
Re: meross AC600 usb wi-fi adaptor not working with newer Kernel
« Reply #9 on: February 02, 2019, 04:57:28 pm »
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.

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 18119
  • Karma: 469
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: meross AC600 usb wi-fi adaptor not working with newer Kernel
« Reply #10 on: February 02, 2019, 09:48:23 pm »
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
« Last Edit: February 02, 2019, 10:26:19 pm by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline Tramlink

  • Hero Member
  • *****
  • Posts: 936
  • Karma: 12
  • Gender: Male
  • Is the mist clearing
    • View Profile
    • Awards
Re: meross AC600 usb wi-fi adaptor not working with newer Kernel (resolved)
« Reply #11 on: February 04, 2019, 11:14:19 am »
It now seems to be working OK so marked as resolved.

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal