2019-02-27 04:10:20

by David R. Bergstein

[permalink] [raw]
Subject: Realtek r8822be kernel module does not negotiate 802.11ac connection

This message is in regard to a bug I have open on bugs.launchpad.net,
1813372, linked below.  This issue, originally identified in an Ubuntu
kernel, has been duplicated in the most current mainline kernel,
5.0-rc8, and is in regard to problems attaining a wireless connection at
802.11ac speeds.

https://bugs.launchpad.net/bugs/1813372

At your earliest convenience, please see the bug report above, and
advise if a fix will be available for the r8822be kernel module.

Sincerely,

David R. Bergstein



Attachments:
signature.asc (659.00 B)
OpenPGP digital signature

2019-02-27 10:24:08

by Tony Chuang

[permalink] [raw]
Subject: RE: Realtek r8822be kernel module does not negotiate 802.11ac connection

> This message is in regard to a bug I have open on bugs.launchpad.net, 1813372,
> linked below.  This issue, originally identified in an Ubuntu kernel, has been
> duplicated in the most current mainline kernel, 5.0-rc8, and is in regard to
> problems attaining a wireless connection at 802.11ac speeds.
>
> https://bugs.launchpad.net/bugs/1813372
>
> At your earliest convenience, please see the bug report above, and advise if a fix
> will be available for the r8822be kernel module.
>
> Sincerely,
>
> David R. Bergstein
>

Hi,

If it's possible I will suggest that you can use the new driver "rtw88" being
reviewed now. rtw88 is better supported by Realtek and has significant
improvement in contrast to r8822be. And also it is aim to better support
802.11ac series ICs, so it may help resolve your problem about 802.11ac
connection speeds.
Thanks!

Yan-Hsuan

2019-03-01 02:32:14

by David R. Bergstein

[permalink] [raw]
Subject: Re: Realtek r8822be kernel module does not negotiate 802.11ac connection

Tony,

Thanks for your response.  Can you advise as to the availability of the
new rtw88 driver?  As it appears to be under development, I could not
locate a copy of the code for local compilation.

Sincerely,

David R. Bergstein

On 2/27/19 5:23 AM, Tony Chuang wrote:
>> This message is in regard to a bug I have open on bugs.launchpad.net, 1813372,
>> linked below.  This issue, originally identified in an Ubuntu kernel, has been
>> duplicated in the most current mainline kernel, 5.0-rc8, and is in regard to
>> problems attaining a wireless connection at 802.11ac speeds.
>>
>> https://bugs.launchpad.net/bugs/1813372
>>
>> At your earliest convenience, please see the bug report above, and advise if a fix
>> will be available for the r8822be kernel module.
>>
>> Sincerely,
>>
>> David R. Bergstein
>>
> Hi,
>
> If it's possible I will suggest that you can use the new driver "rtw88" being
> reviewed now. rtw88 is better supported by Realtek and has significant
> improvement in contrast to r8822be. And also it is aim to better support
> 802.11ac series ICs, so it may help resolve your problem about 802.11ac
> connection speeds.
> Thanks!
>
> Yan-Hsuan
>

2019-03-01 17:28:14

by Larry Finger

[permalink] [raw]
Subject: Re: Realtek r8822be kernel module does not negotiate 802.11ac connection

On 2/28/19 8:32 PM, David R. Bergstein wrote:
> Tony,
>
> Thanks for your response.  Can you advise as to the availability of the
> new rtw88 driver?  As it appears to be under development, I could not
> locate a copy of the code for local compilation.

David,

Use the command 'git clone http://github.com/lwfinger/rtlwifi_new.git -b rtw88'
to get a copy of the new driver for RTL8822BE and RTL8822CE in a stand-alone
form. All that is needed is 'cd rtlwifi_new && make && sudo make install'. This
version will build on kernels v4.4 and newer. As I have time, I will be
backporting to kernels at least as old as 4.0.

I would appreciate your comments and bug reports.

Larry



2019-03-01 22:26:13

by David R. Bergstein

[permalink] [raw]
Subject: Re: Realtek r8822be kernel module does not negotiate 802.11ac connection

Larry,

Thanks for the response and detailed instructions, which allowed me to
build and install the rtw88 kernel module.  I cannot however seem to get
my system to actually use the module.  Just to recap this is an HP Omen
laptop with secure boot disabled.  Upon boot-up both the new rtw88 and
old r8822be modules are loaded.  If I unload the r8822be module the wifi
network connection gets terminated, even if I unload/reload the rtw88
module.

Is there something else I should be doing prior to invoking rtw88, e.g.,
blacklisting the old module?

Sincerely,

David R. Bergstein

On 3/1/19 12:28 PM, Larry Finger wrote:
> On 2/28/19 8:32 PM, David R. Bergstein wrote:
>> Tony,
>>
>> Thanks for your response.  Can you advise as to the availability of the
>> new rtw88 driver?  As it appears to be under development, I could not
>> locate a copy of the code for local compilation.
>
> David,
>
> Use the command 'git clone http://github.com/lwfinger/rtlwifi_new.git
> -b rtw88' to get a copy of the new driver for RTL8822BE and RTL8822CE
> in a stand-alone form. All that is needed is 'cd rtlwifi_new && make
> && sudo make install'. This version will build on kernels v4.4 and
> newer. As I have time, I will be backporting to kernels at least as
> old as 4.0.
>
> I would appreciate your comments and bug reports.
>
> Larry
>
>


2019-03-02 01:46:46

by Larry Finger

[permalink] [raw]
Subject: Re: Realtek r8822be kernel module does not negotiate 802.11ac connection

On 3/1/19 4:26 PM, David R. Bergstein wrote:
> Larry,
>
> Thanks for the response and detailed instructions, which allowed me to
> build and install the rtw88 kernel module.  I cannot however seem to get
> my system to actually use the module.  Just to recap this is an HP Omen
> laptop with secure boot disabled.  Upon boot-up both the new rtw88 and
> old r8822be modules are loaded.  If I unload the r8822be module the wifi
> network connection gets terminated, even if I unload/reload the rtw88
> module.
>
> Is there something else I should be doing prior to invoking rtw88, e.g.,
> blacklisting the old module?

Yes, r8822be must be blacklisted. Use the lsmod command to see what modules are
actually loaded. You load/unload rtw88 using the rtwpci module.

Larry


2019-03-02 02:55:20

by David R. Bergstein

[permalink] [raw]
Subject: Re: Realtek r8822be kernel module does not negotiate 802.11ac connection

Larry,

Following up to your last reply, I blacklisted the r8822be module,
rebooted and was unable to bring up the wireless interface via rtw88. 
Below are some errors recorded in my system log:

 
[  267.509818] rtw_pci 0000:3d:00.0: Direct firmware load for
rtw88/rtw8822b_fw.bin failed with error -2
[  267.509821] rtw_pci 0000:3d:00.0: failed to request firmware
[  267.511068] rtw_pci 0000:3d:00.0: mac power on failed
[  267.511072] rtw_pci 0000:3d:00.0: failed to power on mac
[  267.511073] rtw_pci 0000:3d:00.0: failed to setup chip efuse info
[  267.511075] rtw_pci 0000:3d:00.0: failed to setup chip information
[  267.512817] rtw_pci: probe of 0000:3d:00.0 failed with error -114

As directed, I used the rtwpci module to perform load/unload the rtw88
module before I saw the errors above.  Do I still need to install firmware?

Sincerely,

David R. Bergstein

On 3/1/19 8:46 PM, Larry Finger wrote:
> On 3/1/19 4:26 PM, David R. Bergstein wrote:
>> Larry,
>>
>> Thanks for the response and detailed instructions, which allowed me to
>> build and install the rtw88 kernel module.  I cannot however seem to get
>> my system to actually use the module.  Just to recap this is an HP Omen
>> laptop with secure boot disabled.  Upon boot-up both the new rtw88 and
>> old r8822be modules are loaded.  If I unload the r8822be module the wifi
>> network connection gets terminated, even if I unload/reload the rtw88
>> module.
>>
>> Is there something else I should be doing prior to invoking rtw88, e.g.,
>> blacklisting the old module?
>
> Yes, r8822be must be blacklisted. Use the lsmod command to see what
> modules are actually loaded. You load/unload rtw88 using the rtwpci
> module.
>
> Larry
>

2019-03-02 03:16:30

by David R. Bergstein

[permalink] [raw]
Subject: Re: Realtek r8822be kernel module does not negotiate 802.11ac connection

Larry,

Please disregard my last message.  The firmware is now installed and the
rtw88 module is working with my wireless router.  The next hurdle
appears to be setting the speed to 802.11ac as it is currently
connecting as an 802.11n client.

Sincerely,

David R. Bergstein

On 3/1/19 9:55 PM, David R. Bergstein wrote:
> Larry,
>
> Following up to your last reply, I blacklisted the r8822be module,
> rebooted and was unable to bring up the wireless interface via rtw88. 
> Below are some errors recorded in my system log:
>
>  
> [  267.509818] rtw_pci 0000:3d:00.0: Direct firmware load for
> rtw88/rtw8822b_fw.bin failed with error -2
> [  267.509821] rtw_pci 0000:3d:00.0: failed to request firmware
> [  267.511068] rtw_pci 0000:3d:00.0: mac power on failed
> [  267.511072] rtw_pci 0000:3d:00.0: failed to power on mac
> [  267.511073] rtw_pci 0000:3d:00.0: failed to setup chip efuse info
> [  267.511075] rtw_pci 0000:3d:00.0: failed to setup chip information
> [  267.512817] rtw_pci: probe of 0000:3d:00.0 failed with error -114
>
> As directed, I used the rtwpci module to perform load/unload the rtw88
> module before I saw the errors above.  Do I still need to install firmware?
>
> Sincerely,
>
> David R. Bergstein
>
> On 3/1/19 8:46 PM, Larry Finger wrote:
>> On 3/1/19 4:26 PM, David R. Bergstein wrote:
>>> Larry,
>>>
>>> Thanks for the response and detailed instructions, which allowed me to
>>> build and install the rtw88 kernel module.  I cannot however seem to get
>>> my system to actually use the module.  Just to recap this is an HP Omen
>>> laptop with secure boot disabled.  Upon boot-up both the new rtw88 and
>>> old r8822be modules are loaded.  If I unload the r8822be module the wifi
>>> network connection gets terminated, even if I unload/reload the rtw88
>>> module.
>>>
>>> Is there something else I should be doing prior to invoking rtw88, e.g.,
>>> blacklisting the old module?
>> Yes, r8822be must be blacklisted. Use the lsmod command to see what
>> modules are actually loaded. You load/unload rtw88 using the rtwpci
>> module.
>>
>> Larry
>>

2019-03-02 03:52:49

by David R. Bergstein

[permalink] [raw]
Subject: Re: Realtek r8822be kernel module does not negotiate 802.11ac connection

Larry,

Sorry about all these extra replies.  Shortly after I sent my last
message my access point started recognizing the connection as 802.11ac
with PHY Rate / Modulation Rate of 866.6 Mbps.  What is somewhat
misleading is the information reported by iwconfig (see bit rate below).

$ iwconfig wlo1
wlo1      IEEE 802.11  ESSID:"XXXXXXXXXX-5G" 
          Mode:Managed  Frequency:5.22 GHz  Access Point:
xx:xx:xx:xx:xx:xx  
          Bit Rate=6.5 Mb/s   Tx-Power=23 dBm  
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Power Management:on
          Link Quality=70/70  Signal level=-40 dBm 
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:11   Missed beacon:0

Sincerely,

David R. Bergstein

On 3/1/19 10:16 PM, David R. Bergstein wrote:
> Larry,
>
> Please disregard my last message.  The firmware is now installed and the
> rtw88 module is working with my wireless router.  The next hurdle
> appears to be setting the speed to 802.11ac as it is currently
> connecting as an 802.11n client.
>
> Sincerely,
>
> David R. Bergstein
>
> On 3/1/19 9:55 PM, David R. Bergstein wrote:
>> Larry,
>>
>> Following up to your last reply, I blacklisted the r8822be module,
>> rebooted and was unable to bring up the wireless interface via rtw88. 
>> Below are some errors recorded in my system log:
>>
>>  
>> [  267.509818] rtw_pci 0000:3d:00.0: Direct firmware load for
>> rtw88/rtw8822b_fw.bin failed with error -2
>> [  267.509821] rtw_pci 0000:3d:00.0: failed to request firmware
>> [  267.511068] rtw_pci 0000:3d:00.0: mac power on failed
>> [  267.511072] rtw_pci 0000:3d:00.0: failed to power on mac
>> [  267.511073] rtw_pci 0000:3d:00.0: failed to setup chip efuse info
>> [  267.511075] rtw_pci 0000:3d:00.0: failed to setup chip information
>> [  267.512817] rtw_pci: probe of 0000:3d:00.0 failed with error -114
>>
>> As directed, I used the rtwpci module to perform load/unload the rtw88
>> module before I saw the errors above.  Do I still need to install firmware?
>>
>> Sincerely,
>>
>> David R. Bergstein
>>
>> On 3/1/19 8:46 PM, Larry Finger wrote:
>>> On 3/1/19 4:26 PM, David R. Bergstein wrote:
>>>> Larry,
>>>>
>>>> Thanks for the response and detailed instructions, which allowed me to
>>>> build and install the rtw88 kernel module.  I cannot however seem to get
>>>> my system to actually use the module.  Just to recap this is an HP Omen
>>>> laptop with secure boot disabled.  Upon boot-up both the new rtw88 and
>>>> old r8822be modules are loaded.  If I unload the r8822be module the wifi
>>>> network connection gets terminated, even if I unload/reload the rtw88
>>>> module.
>>>>
>>>> Is there something else I should be doing prior to invoking rtw88, e.g.,
>>>> blacklisting the old module?
>>> Yes, r8822be must be blacklisted. Use the lsmod command to see what
>>> modules are actually loaded. You load/unload rtw88 using the rtwpci
>>> module.
>>>
>>> Larry
>>>


2019-03-02 10:03:59

by Arend Van Spriel

[permalink] [raw]
Subject: Re: Realtek r8822be kernel module does not negotiate 802.11ac connection

Op 2 maart 2019 04:52:46 schreef "David R. Bergstein"
<[email protected]>:

> Larry,
>
> Sorry about all these extra replies.  Shortly after I sent my last
> message my access point started recognizing the connection as 802.11ac
> with PHY Rate / Modulation Rate of 866.6 Mbps.  What is somewhat
> misleading is the information reported by iwconfig (see bit rate below).

My bet would be that it is nitrate at which beacon or probe response is
received. Regardless I would suggest using iw in this day and age.

Regards,
Arend

> $ iwconfig wlo1
> wlo1      IEEE 802.11  ESSID:"XXXXXXXXXX-5G" 
>           Mode:Managed  Frequency:5.22 GHz  Access Point:
> xx:xx:xx:xx:xx:xx  
>           Bit Rate=6.5 Mb/s   Tx-Power=23 dBm  
>           Retry short limit:7   RTS thr:off   Fragment thr:off
>           Power Management:on
>           Link Quality=70/70  Signal level=-40 dBm 
>           Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
>           Tx excessive retries:0  Invalid misc:11   Missed beacon:0
>
> Sincerely,
>
> David R. Bergstein
>
> On 3/1/19 10:16 PM, David R. Bergstein wrote:
>> Larry,
>>
>> Please disregard my last message.  The firmware is now installed and the
>> rtw88 module is working with my wireless router.  The next hurdle
>> appears to be setting the speed to 802.11ac as it is currently
>> connecting as an 802.11n client.
>>
>> Sincerely,
>>
>> David R. Bergstein
>>
>> On 3/1/19 9:55 PM, David R. Bergstein wrote:
>>> Larry,
>>>
>>> Following up to your last reply, I blacklisted the r8822be module,
>>> rebooted and was unable to bring up the wireless interface via rtw88. 
>>> Below are some errors recorded in my system log:
>>>
>>>  
>>> [  267.509818] rtw_pci 0000:3d:00.0: Direct firmware load for
>>> rtw88/rtw8822b_fw.bin failed with error -2
>>> [  267.509821] rtw_pci 0000:3d:00.0: failed to request firmware
>>> [  267.511068] rtw_pci 0000:3d:00.0: mac power on failed
>>> [  267.511072] rtw_pci 0000:3d:00.0: failed to power on mac
>>> [  267.511073] rtw_pci 0000:3d:00.0: failed to setup chip efuse info
>>> [  267.511075] rtw_pci 0000:3d:00.0: failed to setup chip information
>>> [  267.512817] rtw_pci: probe of 0000:3d:00.0 failed with error -114
>>>
>>> As directed, I used the rtwpci module to perform load/unload the rtw88
>>> module before I saw the errors above.  Do I still need to install firmware?
>>>
>>> Sincerely,
>>>
>>> David R. Bergstein
>>>
>>> On 3/1/19 8:46 PM, Larry Finger wrote:
>>>> On 3/1/19 4:26 PM, David R. Bergstein wrote:
>>>>> Larry,
>>>>>
>>>>> Thanks for the response and detailed instructions, which allowed me to
>>>>> build and install the rtw88 kernel module.  I cannot however seem to get
>>>>> my system to actually use the module.  Just to recap this is an HP Omen
>>>>> laptop with secure boot disabled.  Upon boot-up both the new rtw88 and
>>>>> old r8822be modules are loaded.  If I unload the r8822be module the wifi
>>>>> network connection gets terminated, even if I unload/reload the rtw88
>>>>> module.
>>>>>
>>>>> Is there something else I should be doing prior to invoking rtw88, e.g.,
>>>>> blacklisting the old module?
>>>> Yes, r8822be must be blacklisted. Use the lsmod command to see what
>>>> modules are actually loaded. You load/unload rtw88 using the rtwpci
>>>> module.
>>>>
>>>> Larry
>>>>
>

Verzonden met AquaMail voor Android
https://www.mobisystems.com/aqua-mail



2019-03-02 17:59:22

by Larry Finger

[permalink] [raw]
Subject: Re: Realtek r8822be kernel module does not negotiate 802.11ac connection

On 3/1/19 9:52 PM, David R. Bergstein wrote:
> Larry,
>
> Sorry about all these extra replies.  Shortly after I sent my last
> message my access point started recognizing the connection as 802.11ac
> with PHY Rate / Modulation Rate of 866.6 Mbps.  What is somewhat
> misleading is the information reported by iwconfig (see bit rate below).
>
> $ iwconfig wlo1
> wlo1      IEEE 802.11  ESSID:"XXXXXXXXXX-5G"
>           Mode:Managed  Frequency:5.22 GHz  Access Point:
> xx:xx:xx:xx:xx:xx
>           Bit Rate=6.5 Mb/s   Tx-Power=23 dBm
>           Retry short limit:7   RTS thr:off   Fragment thr:off
>           Power Management:on
>           Link Quality=70/70  Signal level=-40 dBm
>           Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
>           Tx excessive retries:0  Invalid misc:11   Missed beacon:0

The utility iwconfig is obsolete and not exactly up to date with the latest in
wireless. I am not an expert on iw, but I think you want 'iw dev wlo1 link'.

I am wondering about the missing firmware stage. Had you not done the 'sudo make
install' step, or did that step fail to install the firmware?

Larry


2019-03-02 18:09:17

by David R. Bergstein

[permalink] [raw]
Subject: Re: Realtek r8822be kernel module does not negotiate 802.11ac connection

Larry,

I tried using iw but it gives the same reading for bit rate.  In regard
to the firmware, it was not installed via "make install" so I did it
manually.

Sincerely,

David R. Bergstein

On 3/2/19 12:58 PM, Larry Finger wrote:
>> Larry,
>>
>> Sorry about all these extra replies.  Shortly after I sent my last
>> message my access point started recognizing the connection as 802.11ac
>> with PHY Rate / Modulation Rate of 866.6 Mbps.  What is somewhat
>> misleading is the information reported by iwconfig (see bit rate below).
>>
>> $ iwconfig wlo1
>> wlo1      IEEE 802.11  ESSID:"XXXXXXXXXX-5G"
>>            Mode:Managed  Frequency:5.22 GHz  Access Point:
>> xx:xx:xx:xx:xx:xx
>>            Bit Rate=6.5 Mb/s   Tx-Power=23 dBm
>>            Retry short limit:7   RTS thr:off   Fragment thr:off
>>            Power Management:on
>>            Link Quality=70/70  Signal level=-40 dBm
>>            Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
>>            Tx excessive retries:0  Invalid misc:11   Missed beacon:0
>
> The utility iwconfig is obsolete and not exactly up to date with the
> latest in wireless. I am not an expert on iw, but I think you want 'iw
> dev wlo1 link'.
>
> I am wondering about the missing firmware stage. Had you not done the
> 'sudo make install' step, or did that step fail to install the firmware?
>
> Larry
>

2019-03-02 18:39:18

by Larry Finger

[permalink] [raw]
Subject: Re: Realtek r8822be kernel module does not negotiate 802.11ac connection

On 3/2/19 12:09 PM, David R. Bergstein wrote:
> Larry,
>
> I tried using iw but it gives the same reading for bit rate.  In regard
> to the firmware, it was not installed via "make install" so I did it
> manually.

David,

There was a typo in the Makefile. 'make install' now installs the firmware
correctly.

Larry



2019-03-04 02:34:38

by Tony Chuang

[permalink] [raw]
Subject: RE: Realtek r8822be kernel module does not negotiate 802.11ac connection



> -----Original Message-----
> From: Arend Van Spriel [mailto:[email protected]]
>
> > Larry,
> >
> > Sorry about all these extra replies.  Shortly after I sent my last
> > message my access point started recognizing the connection as 802.11ac
> > with PHY Rate / Modulation Rate of 866.6 Mbps.  What is somewhat
> > misleading is the information reported by iwconfig (see bit rate below).
>
> My bet would be that it is nitrate at which beacon or probe response is
> received. Regardless I would suggest using iw in this day and age.
>
> Regards,
> Arend
>
> > $ iwconfig wlo1
> > wlo1      IEEE 802.11  ESSID:"XXXXXXXXXX-5G"
> >           Mode:Managed  Frequency:5.22 GHz  Access Point:
> > xx:xx:xx:xx:xx:xx
> >           Bit Rate=6.5 Mb/s   Tx-Power=23 dBm
> >           Retry short limit:7   RTS thr:off   Fragment thr:off
> >           Power Management:on
> >           Link Quality=70/70  Signal level=-40 dBm
> >           Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
> >           Tx excessive retries:0  Invalid misc:11   Missed beacon:0
> >
> > Sincerely,
> >
> > David R. Bergstein
>

It's because the initial version does not collect tx_rate report from the firmware.
So it just print out the initial value. Will be added in the next series. Thanks!

Yan-Hsuan

2019-04-14 21:39:29

by David R. Bergstein

[permalink] [raw]
Subject: rtlwifi-new v0.6 and dkms failures

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



2019-04-16 21:19:24

by David R. Bergstein

[permalink] [raw]
Subject: Re: rtlwifi-new v0.6 and dkms failures

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
>
>