Choose style:

Author Topic: P10 5.0 kernel and rtl8812au-dkms failed.[SOLVED]  (Read 148 times)

0 Members and 1 Guest are viewing this topic.

Offline spence

  • Trusted User
  • Veteran
  • *****
  • Posts: 1883
  • Karma: 187
  • peppermint user since 2010
    • View Profile
  • Peppermint version(s): Peppermint 9 Respin
P10 5.0 kernel and rtl8812au-dkms failed.[SOLVED]
« on: August 04, 2019, 01:28:40 pm »
Hello all, I have a little keyboard jig I do with every kernel update.
Accept the new kernel update > 
Code: [Select]
sudo apt-get remove rtl8812au-dkms 
>
Code: [Select]
sudo apt-get install rtl8812au-dkms
> Normally then I would
Code: [Select]
sudo modprobe rtl8812au
but this time the reinstallation returned:
Code: [Select]
Error! Bad return status for module build on kernel: 5.0.0-23-generic (x86_64)
Consult /var/lib/dkms/rtl8812au/4.3.8.12175.20140902+dfsg/build/make.log for more information.

here's the last few entries from that log file:
Spoiler (click here to view / hide)
  CC [M]  /var/lib/dkms/rtl8812au/4.3.8.12175.20140902+dfsg/build/os_dep/osdep_service.o
In file included from /var/lib/dkms/rtl8812au/4.3.8.12175.20140902+dfsg/build/include/drv_types.h:35:0,
                 from /var/lib/dkms/rtl8812au/4.3.8.12175.20140902+dfsg/build/os_dep/osdep_service.c:24:
/var/lib/dkms/rtl8812au/4.3.8.12175.20140902+dfsg/build/include/wifi.h:989:0: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40
 
In file included from ./include/net/cfg80211.h:24:0,
                 from /var/lib/dkms/rtl8812au/4.3.8.12175.20140902+dfsg/build/include/osdep_service_linux.h:78,
                 from /var/lib/dkms/rtl8812au/4.3.8.12175.20140902+dfsg/build/include/osdep_service.h:41,
                 from /var/lib/dkms/rtl8812au/4.3.8.12175.20140902+dfsg/build/include/drv_types.h:32,
                 from /var/lib/dkms/rtl8812au/4.3.8.12175.20140902+dfsg/build/os_dep/osdep_service.c:24:
./include/linux/ieee80211.h:1444:0: note: this is the location of the previous definition
 #define IEEE80211_MAX_AMPDU_BUF  0x100
 
  CC [M]  /var/lib/dkms/rtl8812au/4.3.8.12175.20140902+dfsg/build/os_dep/linux/os_intfs.o
In file included from /var/lib/dkms/rtl8812au/4.3.8.12175.20140902+dfsg/build/include/drv_types.h:35:0,
                 from /var/lib/dkms/rtl8812au/4.3.8.12175.20140902+dfsg/build/os_dep/linux/os_intfs.c:22:
/var/lib/dkms/rtl8812au/4.3.8.12175.20140902+dfsg/build/include/wifi.h:989:0: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40
 
In file included from ./include/net/cfg80211.h:24:0,
                 from /var/lib/dkms/rtl8812au/4.3.8.12175.20140902+dfsg/build/include/osdep_service_linux.h:78,
                 from /var/lib/dkms/rtl8812au/4.3.8.12175.20140902+dfsg/build/include/osdep_service.h:41,
                 from /var/lib/dkms/rtl8812au/4.3.8.12175.20140902+dfsg/build/include/drv_types.h:32,
                 from /var/lib/dkms/rtl8812au/4.3.8.12175.20140902+dfsg/build/os_dep/linux/os_intfs.c:22:
./include/linux/ieee80211.h:1444:0: note: this is the location of the previous definition
 #define IEEE80211_MAX_AMPDU_BUF  0x100
 
/var/lib/dkms/rtl8812au/4.3.8.12175.20140902+dfsg/build/os_dep/linux/os_intfs.c:779:22: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
  .ndo_select_queue = rtw_select_queue,
                      ^~~~~~~~~~~~~~~~
/var/lib/dkms/rtl8812au/4.3.8.12175.20140902+dfsg/build/os_dep/linux/os_intfs.c:779:22: note: (near initialization for ‘rtw_netdev_ops.ndo_select_queue’)
cc1: some warnings being treated as errors
scripts/Makefile.build:284: recipe for target '/var/lib/dkms/rtl8812au/4.3.8.12175.20140902+dfsg/build/os_dep/linux/os_intfs.o' failed
make[2]: *** [/var/lib/dkms/rtl8812au/4.3.8.12175.20140902+dfsg/build/os_dep/linux/os_intfs.o] Error 1
Makefile:1606: recipe for target '_module_/var/lib/dkms/rtl8812au/4.3.8.12175.20140902+dfsg/build' failed
make[1]: *** [_module_/var/lib/dkms/rtl8812au/4.3.8.12175.20140902+dfsg/build] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.0.0-23-generic'
Makefile:1457: recipe for target 'modules' failed
make: *** [modules] Error 2
[close]

 :-\
« Last Edit: August 06, 2019, 03:11:25 pm by spence »
spence
PeppermintOS 10installed  on:
'16 Antec Aria rebuild
 '18 Asus VivoBook


Do not despair, grasshopper...
    with patience all will be revealed...
       Through pain, enlightenment will come.

Offline spence

  • Trusted User
  • Veteran
  • *****
  • Posts: 1883
  • Karma: 187
  • peppermint user since 2010
    • View Profile
  • Peppermint version(s): Peppermint 9 Respin
Re: P10 5.0 kernel and rtl8812au-dkms failed.
« Reply #1 on: August 04, 2019, 01:30:35 pm »
Here's the related inxi -Fz:

Spoiler (click here to view / hide)
spence@antec ~ $ inxi -Fz
System:    Host: antec Kernel: 5.0.0-23-generic x86_64 bits: 64 Desktop: N/A
           Distro: Peppermint Ten
Machine:   Device: desktop Mobo: ASRock model: H270M Pro4 serial: N/A
           UEFI: American Megatrends v: P2.50 date: 03/16/2018
CPU:       Quad core Intel Core i7-7700 (-MT-MCP-) cache: 8192 KB
           clock speeds: max: 4200 MHz 1: 1062 MHz 2: 3343 MHz 3: 3085 MHz
           4: 2949 MHz 5: 2707 MHz 6: 2978 MHz 7: 3207 MHz 8: 3199 MHz
Graphics:  Card: Intel HD Graphics 630
           Display Server: x11 (X.Org 1.20.4 )
           drivers: modesetting (unloaded: fbdev,vesa)
           Resolution: 1920x1080@60.00hz, 1920x1080@60.00hz
           OpenGL: renderer: Mesa DRI Intel HD Graphics 630 (Kaby Lake GT2)
           version: 4.5 Mesa 19.0.2
Audio:     Card Intel 200 Series PCH HD Audio driver: snd_hda_intel
           Sound: Advanced Linux Sound Architecture v: k5.0.0-23-generic
Network:   Card: Intel Ethernet Connection (2) I219-V driver: e1000e
           IF: enp0s31f6 state: up speed: 1000 Mbps duplex: full mac: <filter>
Drives:    HDD Total Size: 2391.5GB (1.8% used)
           ID-1: /dev/nvme0n1 model: Samsung_SSD_960_EVO_250GB size: 250.1GB
           ID-2: /dev/sda model: WDC_WD10EZEX size: 1000.2GB
           ID-3: /dev/sdb model: Hitachi_HTS54756 size: 640.1GB
           ID-4: /dev/sdc model: WDC_WD5000AACS size: 500.1GB
           ID-5: USB /dev/sde model: CBO_CardReader size: 1.0GB
Partition: ID-1: / size: 46G used: 42G (96%) fs: ext4 dev: /dev/nvme0n1p2
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 38.0C mobo: N/A
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 228 Uptime: 25 min Memory: 763.8/31870.1MB
           Client: Shell (bash) inxi: 2.3.56
[close]

spence
PeppermintOS 10installed  on:
'16 Antec Aria rebuild
 '18 Asus VivoBook


Do not despair, grasshopper...
    with patience all will be revealed...
       Through pain, enlightenment will come.

Offline VinDSL

  • Global Moderator
  • Hero
  • *****
  • Posts: 5181
  • Karma: 939
  • Peppermint Mod
    • View Profile
  • Peppermint version(s): Developmental Builds
Re: P10 5.0 kernel and rtl8812au-dkms failed.
« Reply #2 on: August 04, 2019, 01:41:13 pm »
Might try a newer ver: https://is.gd/hamNI4

n/m looks like you have the latest ver  :)

Looking at the first step (and shooting from the hip) I think I would use:

Code: [Select]
sudo apt purge rtl8812au-dkms
« Last Edit: August 04, 2019, 02:04:44 pm by VinDSL, Reason: Addendum »

Offline spence

  • Trusted User
  • Veteran
  • *****
  • Posts: 1883
  • Karma: 187
  • peppermint user since 2010
    • View Profile
  • Peppermint version(s): Peppermint 9 Respin
Re: P10 5.0 kernel and rtl8812au-dkms failed.
« Reply #3 on: August 04, 2019, 04:16:12 pm »
just noted the update for dkms @PCNetSpec did my little remove/reinstall jig and still came up with:

Code: [Select]
Loading new rtl8812au-4.3.8.12175.20140902+dfsg DKMS files...
Building for 5.0.0-23-generic
Building initial module for 5.0.0-23-generic
Error! Bad return status for module build on kernel: 5.0.0-23-generic (x86_64)
Consult /var/lib/dkms/rtl8812au/4.3.8.12175.20140902+dfsg/build/make.log for more information.
spence
PeppermintOS 10installed  on:
'16 Antec Aria rebuild
 '18 Asus VivoBook


Do not despair, grasshopper...
    with patience all will be revealed...
       Through pain, enlightenment will come.

Offline spence

  • Trusted User
  • Veteran
  • *****
  • Posts: 1883
  • Karma: 187
  • peppermint user since 2010
    • View Profile
  • Peppermint version(s): Peppermint 9 Respin
Re: P10 5.0 kernel and rtl8812au-dkms failed.
« Reply #4 on: August 04, 2019, 04:19:00 pm »

Looking at the first step (and shooting from the hip) I think I would use:

Code: [Select]
sudo apt purge rtl8812au-dkms

redid this unintstall/reinstall jig again with your suggestion @VinDSL... :

Code: [Select]
Loading new rtl8812au-4.3.8.12175.20140902+dfsg DKMS files...
Building for 5.0.0-23-generic
Building initial module for 5.0.0-23-generic
Error! Bad return status for module build on kernel: 5.0.0-23-generic (x86_64)
Consult /var/lib/dkms/rtl8812au/4.3.8.12175.20140902+dfsg/build/make.log for more information.
« Last Edit: August 04, 2019, 05:00:09 pm by spence »
spence
PeppermintOS 10installed  on:
'16 Antec Aria rebuild
 '18 Asus VivoBook


Do not despair, grasshopper...
    with patience all will be revealed...
       Through pain, enlightenment will come.

Offline spence

  • Trusted User
  • Veteran
  • *****
  • Posts: 1883
  • Karma: 187
  • peppermint user since 2010
    • View Profile
  • Peppermint version(s): Peppermint 9 Respin
Re: P10 5.0 kernel and rtl8812au-dkms failed.
« Reply #5 on: August 04, 2019, 05:07:51 pm »
decided to flip back to the previous 4.18.0-25-generic kernel to get wifi working @PCNetSpec & @VinDSL...  perhaps the reinstall threw up some maybe revealing bits?

 :-\

Spoiler (click here to view / hide)
spence@antec ~ $ sudo apt-get install rtl8812au-dkms
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  rtl8812au-dkms
0 upgraded, 1 newly installed, 0 to remove and 19 not upgraded.
Need to get 0 B/1,116 kB of archives.
After this operation, 8,906 kB of additional disk space will be used.
Selecting previously unselected package rtl8812au-dkms.
(Reading database ... 353187 files and directories currently installed.)
Preparing to unpack .../rtl8812au-dkms_4.3.8.12175.20140902+dfsg-0ubuntu8_all.deb ...
Unpacking rtl8812au-dkms (4.3.8.12175.20140902+dfsg-0ubuntu8) ...
Setting up rtl8812au-dkms (4.3.8.12175.20140902+dfsg-0ubuntu8) ...
Loading new rtl8812au-4.3.8.12175.20140902+dfsg DKMS files...
Building for 4.18.0-25-generic 5.0.0-23-generic
Building initial module for
Secure Boot not enabled on this system.
Done.

8812au:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.18.0-25-generic/updates/dkms/

depmod...

DKMS: install completed.
Building initial module for 5.0.0-23-generic
Secure Boot not enabled on this system.
Done.

8812au:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.0.0-23-generic/updates/dkms/

depmod...

DKMS: install completed.
[close]
spence
PeppermintOS 10installed  on:
'16 Antec Aria rebuild
 '18 Asus VivoBook


Do not despair, grasshopper...
    with patience all will be revealed...
       Through pain, enlightenment will come.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25288
  • Karma: 2793
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: P10 5.0 kernel and rtl8812au-dkms failed.
« Reply #6 on: August 05, 2019, 02:42:37 pm »
Well that seems to have built the module for BOTH kernels successfully.

Have you tried booting into the 5.0 kernel again and checked if wireless works ?

If not, post the output from:
Code: [Select]
sudo lshw -C network
and
Code: [Select]
rfkill list
and
Code: [Select]
iwlist scan
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline spence

  • Trusted User
  • Veteran
  • *****
  • Posts: 1883
  • Karma: 187
  • peppermint user since 2010
    • View Profile
  • Peppermint version(s): Peppermint 9 Respin
Re: P10 5.0 kernel and rtl8812au-dkms failed.
« Reply #7 on: August 05, 2019, 09:29:40 pm »
Well that seems to have built the module for BOTH kernels successfully.

Have you tried booting into the 5.0 kernel again and checked if wireless works ?

Booted into 5.0 kernel, wifi dongle doesn't connect... 

Code: [Select]
sudo lshw -C network
  *-network                 
       description: Ethernet interface
       product: Ethernet Connection (2) I219-V
       vendor: Intel Corporation
       physical id: 1f.6
       bus info: pci@0000:00:1f.6
       logical name: enp0s31f6
       version: 00
       serial: 70:85:c2:29:10:c2
       size: 1Gbit/s
       capacity: 1Gbit/s
       width: 32 bits
       clock: 33MHz
       capabilities: pm msi bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=e1000e driverversion=3.2.6-k duplex=full firmware=0.2-4 ip=192.168.1.4 latency=0 link=yes multicast=yes port=twisted pair speed=1Gbit/s
       resources: irq:124 memory:df100000-df11ffff

and
Code: [Select]
rfkill list
returns nothing

and
Code: [Select]
iwlist scan
enp0s31f6  Interface doesn't support scanning.

lo        Interface doesn't support scanning.

spence
PeppermintOS 10installed  on:
'16 Antec Aria rebuild
 '18 Asus VivoBook


Do not despair, grasshopper...
    with patience all will be revealed...
       Through pain, enlightenment will come.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25288
  • Karma: 2793
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: P10 5.0 kernel and rtl8812au-dkms failed.
« Reply #8 on: August 05, 2019, 09:58:42 pm »
What happens if you (in the 5.0 kernel)  run:
Code: [Select]
sudo modprobe rtl8812au
?
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline spence

  • Trusted User
  • Veteran
  • *****
  • Posts: 1883
  • Karma: 187
  • peppermint user since 2010
    • View Profile
  • Peppermint version(s): Peppermint 9 Respin
Re: P10 5.0 kernel and rtl8812au-dkms failed.
« Reply #9 on: August 06, 2019, 03:03:43 pm »
What I have always used previously:

Code: [Select]
spence@antec ~ $ sudo modprobe 8812au
[sudo] password for spence:
modprobe: ERROR: could not insert '8812au': Exec format error

 :-\

and now:

Code: [Select]
spence@antec ~ $ sudo modprobe rtl8812au
modprobe: FATAL: Module rtl8812au not found in directory /lib/modules/5.0.0-23-generic


Code: [Select]
spence@antec ~ $ inxi -Fz
System:    Host: antec Kernel: 5.0.0-23-generic x86_64 bits: 64 Desktop: N/A
           Distro: Peppermint Ten
Machine:   Device: desktop Mobo: ASRock model: H270M Pro4 serial: N/A
           UEFI: American Megatrends v: P2.50 date: 03/16/2018
CPU:       Quad core Intel Core i7-7700 (-MT-MCP-) cache: 8192 KB
           clock speeds: max: 4200 MHz 1: 800 MHz 2: 800 MHz 3: 800 MHz 4: 800 MHz
           5: 800 MHz 6: 800 MHz 7: 800 MHz 8: 800 MHz
Graphics:  Card: Intel HD Graphics 630
           Display Server: x11 (X.Org 1.20.4 )
           drivers: fbdev (unloaded: modesetting,vesa)
           Resolution: 1920x1080@77.00hz
           OpenGL: renderer: llvmpipe (LLVM 8.0, 256 bits) version: 3.3 Mesa 19.0.2
Audio:     Card Intel 200 Series PCH HD Audio driver: snd_hda_intel
           Sound: Advanced Linux Sound Architecture v: k5.0.0-23-generic
Network:   Card: Intel Ethernet Connection (2) I219-V driver: e1000e
           IF: enp0s31f6 state: up speed: 1000 Mbps duplex: full mac: <filter>
Drives:    HDD Total Size: 2391.5GB (1.8% used)
           ID-1: /dev/nvme0n1 model: Samsung_SSD_960_EVO_250GB size: 250.1GB
           ID-2: /dev/sda model: WDC_WD10EZEX size: 1000.2GB
           ID-3: /dev/sdb model: Hitachi_HTS54756 size: 640.1GB
           ID-4: /dev/sdc model: WDC_WD5000AACS size: 500.1GB
           ID-5: USB /dev/sde model: CBO_CardReader size: 1.0GB
Partition: ID-1: / size: 46G used: 41G (96%) fs: ext4 dev: /dev/nvme0n1p2
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 39.0C mobo: N/A
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 228 Uptime: 3 min Memory: 705.8/31870.1MB
           Client: Shell (bash) inxi: 2.3.56
« Last Edit: August 06, 2019, 03:05:52 pm by spence »
spence
PeppermintOS 10installed  on:
'16 Antec Aria rebuild
 '18 Asus VivoBook


Do not despair, grasshopper...
    with patience all will be revealed...
       Through pain, enlightenment will come.

Offline spence

  • Trusted User
  • Veteran
  • *****
  • Posts: 1883
  • Karma: 187
  • peppermint user since 2010
    • View Profile
  • Peppermint version(s): Peppermint 9 Respin
Re: P10 5.0 kernel and rtl8812au-dkms failed.[SOLVED]
« Reply #10 on: August 06, 2019, 03:13:10 pm »
Whatever update you rolled and sent out earlier arrived and all is now well with the 5.0 kernel and rtl8812au wifi dongle @PCNetSpec !!!

 8)
spence
PeppermintOS 10installed  on:
'16 Antec Aria rebuild
 '18 Asus VivoBook


Do not despair, grasshopper...
    with patience all will be revealed...
       Through pain, enlightenment will come.