Re: rtlwifi-new v0.6 and dkms failures

From: David R. Bergstein
Date: Tue Apr 16 2019 - 17:19:21 EST


Larry,

As it tuns out, I was able to create a new dkms.conf file which works on
my system. Below is copy of the content from that file:

PACKAGE_NAME="rtlwifi-new"
PACKAGE_VERSION=0.6
MAKE="make -C $kernel_source_dir
M=$dkms_tree/$PACKAGE_NAME/$PACKAGE_VERSION/build"
CLEAN="make -C $kernel_source_dir clean"
BUILT_MODULE_NAME[0]="rtw88"
BUILT_MODULE_NAME[1]="rtwpci"
DEST_MODULE_LOCATION[0]="/updates"
DEST_MODULE_LOCATION[1]="/updates"
REMAKE_INITRD=no
AUTOINSTALL=yes

This also had the benefit of module signing by the version of dkms in
Ubuntu 19.04, so I am now also back on secure boot.

No action on your part is requested at this time. Feel free to use the
new dkms.conf content if it is useful to you.

Regards,

David R. Bergstein

On 4/14/19 5:39 PM, David R. Bergstein wrote:
> Larry,
>
> Thanks for your prior assistance with the rtw88 module. Since manually
> compiling and installing works correctly, I have been working to
> register the software in dkms, but am running into some difficulties.Â
> Below are some snippets from a terminal session to illustrate the issue:
>
> udo dkms install rtlwifi-new/0.6
>
> Creating symlink /var/lib/dkms/rtlwifi-new/0.6/source ->
> ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ /usr/src/rtlwifi-new-0.6
>
> DKMS: add completed.
>
> Kernel preparation unnecessary for this kernel. Skipping...
>
> Building module:
> cleaning build area....(bad exit status: 2)
> make -j12 KERNELRELEASE=5.0.0-11-lowlatency -C
> /lib/modules/5.0.0-11-lowlatency/build
> M=/var/lib/dkms/rtlwifi-new/0.6/build....
> ERROR (dkms apport): binary package for rtlwifi-new: 0.6 not found
> Error! Build of rtl_pci.ko failed for: 5.0.0-11-lowlatency (x86_64)
> Consult the make.log in the build directory
> /var/lib/dkms/rtlwifi-new/0.6/build/ for more information.
>
> Below is the make.log contents referenced above:
>
> DKMS make.log for rtlwifi-new-0.6 for kernel 5.0.0-11-lowlatency (x86_64)
> Sun 14 Apr 2019 05:25:37 PM EDT
> make: Entering directory '/usr/src/linux-headers-5.0.0-11-lowlatency'
> Â CC [M]Â /var/lib/dkms/rtlwifi-new/0.6/build/main.o
> Â CC [M]Â /var/lib/dkms/rtlwifi-new/0.6/build/mac80211.o
> Â CC [M]Â /var/lib/dkms/rtlwifi-new/0.6/build/util.o
> Â CC [M]Â /var/lib/dkms/rtlwifi-new/0.6/build/debug.o
> Â CC [M]Â /var/lib/dkms/rtlwifi-new/0.6/build/tx.o
> Â CC [M]Â /var/lib/dkms/rtlwifi-new/0.6/build/rx.o
> Â CC [M]Â /var/lib/dkms/rtlwifi-new/0.6/build/mac.o
> Â CC [M]Â /var/lib/dkms/rtlwifi-new/0.6/build/phy.o
> Â CC [M]Â /var/lib/dkms/rtlwifi-new/0.6/build/efuse.o
> Â CC [M]Â /var/lib/dkms/rtlwifi-new/0.6/build/fw.o
> Â CC [M]Â /var/lib/dkms/rtlwifi-new/0.6/build/ps.o
> Â CC [M]Â /var/lib/dkms/rtlwifi-new/0.6/build/sec.o
> Â CC [M]Â /var/lib/dkms/rtlwifi-new/0.6/build/regd.o
> Â CC [M]Â /var/lib/dkms/rtlwifi-new/0.6/build/rtw8822b.o
> Â CC [M]Â /var/lib/dkms/rtlwifi-new/0.6/build/rtw8822b_table.o
> Â CC [M]Â /var/lib/dkms/rtlwifi-new/0.6/build/rtw8822c.o
> Â CC [M]Â /var/lib/dkms/rtlwifi-new/0.6/build/rtw8822c_table.o
> Â CC [M]Â /var/lib/dkms/rtlwifi-new/0.6/build/pci.o
> Â LD [M]Â /var/lib/dkms/rtlwifi-new/0.6/build/rtwpci.o
> Â LD [M]Â /var/lib/dkms/rtlwifi-new/0.6/build/rtw88.o
> Â Building modules, stage 2.
> Â MODPOST 2 modules
> Â CCÂÂÂÂÂ /var/lib/dkms/rtlwifi-new/0.6/build/rtw88.mod.o
> Â CCÂÂÂÂÂ /var/lib/dkms/rtlwifi-new/0.6/build/rtwpci.mod.o
> Â LD [M]Â /var/lib/dkms/rtlwifi-new/0.6/build/rtw88.ko
> Â LD [M]Â /var/lib/dkms/rtlwifi-new/0.6/build/rtwpci.ko
> make: Leaving directory '/usr/src/linux-headers-5.0.0-11-lowlatency'
>
> As you can see, the make log does not show any errors, which is baffling
> to me. Any insight you have on resolving this issue would be appreciated.
>
> Sincerely,
>
> David R. Bergstein
>
>