ASUS USB-AC53 Nano rtl88x2bu Driver for CentOS 8

Issues related to hardware problems
Post Reply
Dark_Turtle
Posts: 3
Joined: 2020/04/02 14:05:58

ASUS USB-AC53 Nano rtl88x2bu Driver for CentOS 8

Post by Dark_Turtle » 2020/04/02 14:30:52

Hi All,

I've been trying to get my ASUS USB-AC53 Nano working in CentOS 8 with no luck. I am attempting to build and install the rtl88x2bu driver from the following repository: https://github.com/cilynx/rtl88x2bu. However, it fails when I try the command below.

Code: Select all

[centos@localhost rtl88x2bu]$ sudo dkms build -m rtl88x2bu -v ${VER}

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...
make -j4 KERNELRELEASE=4.18.0-147.5.1.el8_1.x86_64 KVER=4.18.0-147.5.1.el8_1.x86_64 src=/usr/src/rtl88x2bu-5.6.1......(bad exit status: 2)
Error! Bad return status for module build on kernel: 4.18.0-147.5.1.el8_1.x86_64 (x86_64)
Consult /var/lib/dkms/rtl88x2bu/5.6.1/build/make.log for more information.
I have also attached make.log for your reference.
make.log.zip
(1.78 KiB) Downloaded 60 times
Some suggestions I have tried are placing USER_EXTRA_CFLAGS=-Wno-error=incompatible-pointer-types in Makefile which does not work.

User avatar
TrevorH
Site Admin
Posts: 33218
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: ASUS USB-AC53 Nano rtl88x2bu Driver for CentOS 8

Post by TrevorH » 2020/04/02 15:59:45

What is the output from the lsusb.py command that refers to the adapter in question?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Dark_Turtle
Posts: 3
Joined: 2020/04/02 14:05:58

Re: ASUS USB-AC53 Nano rtl88x2bu Driver for CentOS 8

Post by Dark_Turtle » 2020/04/06 01:27:27

Here is the output from lsusb.py

Code: Select all

 3-2             0b05:184c 00  2.10  480MBit/s 500mA 1IF  (Realtek 802.11ac NIC 123456)
I believe the driver from the repository should be compatible with the wifi adapter as I've tried it under Ubuntu 18.04 and it works fine.

User avatar
TrevorH
Site Admin
Posts: 33218
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: ASUS USB-AC53 Nano rtl88x2bu Driver for CentOS 8

Post by TrevorH » 2020/04/06 09:35:21

Unfortunately that model is not supported by any kernel module in the CentOS 8 kernel. Nor does it appear that the ELRepo third party repo contains any kmod package supplying a driver.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Soruk
Posts: 2
Joined: 2012/04/27 15:47:30
Location: Basingstoke, UK

Re: ASUS USB-AC53 Nano rtl88x2bu Driver for CentOS 8

Post by Soruk » 2020/11/18 15:07:54

I've been having a quick look at this driver (having been conned by an Amazon listing saying a USB wifi dongle was Linux compatible), the sticking point has been the way upstream backports kernel changes, and made a few tweaks to version checks to allow it to build.

In my case my item is 0bda:b812.

Now, while I can get it to build without error, sadly it doesn't work.

Code: Select all

[  136.925652] usb 1-4: new high-speed USB device number 3 using ehci-pci
[  137.058031] usb 1-4: New USB device found, idVendor=0bda, idProduct=b812, bcdDevice= 2.10
[  137.058042] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  137.058048] usb 1-4: Product: 802.11ac NIC
[  137.058053] usb 1-4: Manufacturer: Realtek
[  137.058057] usb 1-4: SerialNumber: 123456
[  137.748013] WARNING: CPU: 1 PID: 25 at net/wireless/core.c:867 wiphy_register+0x68a/0x940 [cfg80211]
[  137.748018] Modules linked in: 88x2bu(OE) cfg80211 xt_CHECKSUM ipt_MASQUERADE xt_conntrack ipt_REJECT nft_counter nf_nat_tftp nft_objref nf_conntrack_tftp tun bridge stp llc nft_fib_inet nft_fib_ipv4 nft_fib_ipv6 nft_fib nft_reject_inet nf_reject_ipv4 nf_reject_ipv6 nft_reject nft_ct nf_tables_set nft_chain_nat_ipv6 nf_conntrack_ipv6 nf_defrag_ipv6 nf_nat_ipv6 nft_chain_route_ipv6 nft_chain_nat_ipv4 nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack libcrc32c nft_chain_route_ipv4 ip6_tables nft_compat ip_set nf_tables nfnetlink sunrpc ccp kvm snd_hda_codec_realtek hp_wmi sparse_keymap rfkill snd_hda_codec_generic wmi_bmof ppdev snd_hda_codec_hdmi ledtrig_audio snd_hda_intel snd_intel_dspcfg snd_hda_codec snd_hda_core irqbypass snd_hwdep snd_seq snd_seq_device snd_pcm joydev pcspkr k10temp snd_timer sp5100_tco i2c_piix4 snd soundcore wmi parport_pc parport acpi_cpufreq ip_tables ext4 mbcache jbd2 radeon sd_mod sg i2c_algo_bit drm_kms_helper syscopyarea sysfillrect sysimgblt
[  137.748086]  fb_sys_fops ttm drm ahci tg3 libahci serio_raw libata dm_mirror dm_region_hash dm_log dm_mod fuse
[  137.748103] CPU: 1 PID: 25 Comm: kworker/1:1 Tainted: G        W  OE    --------- -  - 4.18.0-193.28.1.el8_2.x86_64 #1
[  137.748105] Hardware name: Hewlett-Packard HP t610 PLUS WW Thin Client/17E2, BIOS K30 v01.07 07/27/2012
[  137.748113] Workqueue: usb_hub_wq hub_event
[  137.748150] RIP: 0010:wiphy_register+0x68a/0x940 [cfg80211]
[  137.748154] Code: 78 20 00 74 25 83 ea 01 48 8d 14 52 48 c1 e2 04 48 01 c2 48 83 78 10 00 74 1c 48 39 c2 74 5a 48 83 c0 30 48 83 78 20 00 75 e9 <0f> 0b b8 ea ff ff ff e9 8a fa ff ff 48 83 78 18 00 75 dd 0f 0b b8
[  137.748156] RSP: 0018:ffffb64a003fb890 EFLAGS: 00010246
[  137.748159] RAX: ffffffffc0d95de0 RBX: ffff9ce4582544a0 RCX: 0000000000000000
[  137.748161] RDX: 0000000000000002 RSI: ffff9ce459bd6858 RDI: 0000000000000001
[  137.748163] RBP: ffffb64a003fb918 R08: 0000000000000004 R09: 0000000000000003
[  137.748165] R10: ffff9ce458257000 R11: ffff9ce45ab7a98c R12: ffffb64a00a5c520
[  137.748166] R13: 0000000000000000 R14: ffffb64a00a5c47b R15: ffffffffc0dd9e65
[  137.748169] FS:  0000000000000000(0000) GS:ffff9ce45c700000(0000) knlGS:0000000000000000
[  137.748171] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  137.748173] CR2: 000055773f1be608 CR3: 000000005ac34000 CR4: 00000000000006e0
[  137.748175] Call Trace:
[  137.748218]  ? handle_channel_custom.isra.24+0x3e/0x150 [cfg80211]
[  137.748351]  ? rtw_chbw_to_freq_range+0x40/0x96 [88x2bu]
[  137.748426]  ? rtw_is_dfs_ch+0x34/0x70 [88x2bu]
[  137.748510]  ? rtw_regd_apply_flags+0xc9/0xda [88x2bu]
[  137.748595]  rtw_wiphy_register+0x1e/0x20 [88x2bu]
[  137.748680]  rtw_cfg80211_ndev_res_register+0x11/0x17 [88x2bu]
[  137.748762]  rtw_os_ndev_register+0x103/0x176 [88x2bu]
[  137.748846]  rtw_os_ndevs_register+0x9e/0xce [88x2bu]
[  137.748929]  rtw_os_ndevs_init+0x24/0x3a [88x2bu]
[  137.749011]  rtw_drv_init+0x5c/0xa2 [88x2bu]
[  137.749018]  usb_probe_interface+0xe4/0x2f0
[  137.749025]  driver_probe_device+0x12d/0x460
[  137.749030]  ? __driver_attach_async_helper+0x90/0x90
[  137.749033]  bus_for_each_drv+0x79/0xc0
[  137.749038]  __device_attach+0xdc/0x160
[  137.749042]  bus_probe_device+0x9d/0xb0
[  137.749047]  device_add+0x3f1/0x640
[  137.749052]  usb_set_configuration+0x593/0x880
[  137.749059]  generic_probe+0x48/0x70
[  137.749063]  driver_probe_device+0x12d/0x460
[  137.749067]  ? __driver_attach_async_helper+0x90/0x90
[  137.749071]  bus_for_each_drv+0x79/0xc0
[  137.749075]  __device_attach+0xdc/0x160
[  137.749078]  bus_probe_device+0x9d/0xb0
[  137.749082]  device_add+0x3f1/0x640
[  137.749087]  usb_new_device+0x277/0x490
[  137.749091]  hub_port_connect+0x70b/0xa50
[  137.749096]  port_event+0x464/0x6e0
[  137.749101]  hub_event+0x143/0x3b0
[  137.749106]  process_one_work+0x1a7/0x3b0
[  137.749111]  worker_thread+0x30/0x390
[  137.749114]  ? create_worker+0x1a0/0x1a0
[  137.749119]  kthread+0x112/0x130
[  137.749122]  ? kthread_flush_work_fn+0x10/0x10
[  137.749127]  ret_from_fork+0x22/0x40
[  137.749133] ---[ end trace b464e2d8fd21993c ]---
[  137.749324] WARNING: CPU: 1 PID: 25 at /usr/src/rtl88x2bu-5.6.1/os_dep/linux/os_intfs.c:1704 rtw_os_ndev_register+0x64/0x176 [88x2bu]
[  137.749328] Modules linked in: 88x2bu(OE) cfg80211 xt_CHECKSUM ipt_MASQUERADE xt_conntrack ipt_REJECT nft_counter nf_nat_tftp nft_objref nf_conntrack_tftp tun bridge stp llc nft_fib_inet nft_fib_ipv4 nft_fib_ipv6 nft_fib nft_reject_inet nf_reject_ipv4 nf_reject_ipv6 nft_reject nft_ct nf_tables_set nft_chain_nat_ipv6 nf_conntrack_ipv6 nf_defrag_ipv6 nf_nat_ipv6 nft_chain_route_ipv6 nft_chain_nat_ipv4 nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack libcrc32c nft_chain_route_ipv4 ip6_tables nft_compat ip_set nf_tables nfnetlink sunrpc ccp kvm snd_hda_codec_realtek hp_wmi sparse_keymap rfkill snd_hda_codec_generic wmi_bmof ppdev snd_hda_codec_hdmi ledtrig_audio snd_hda_intel snd_intel_dspcfg snd_hda_codec snd_hda_core irqbypass snd_hwdep snd_seq snd_seq_device snd_pcm joydev pcspkr k10temp snd_timer sp5100_tco i2c_piix4 snd soundcore wmi parport_pc parport acpi_cpufreq ip_tables ext4 mbcache jbd2 radeon sd_mod sg i2c_algo_bit drm_kms_helper syscopyarea sysfillrect sysimgblt
[  137.749387]  fb_sys_fops ttm drm ahci tg3 libahci serio_raw libata dm_mirror dm_region_hash dm_log dm_mod fuse
[  137.749402] CPU: 1 PID: 25 Comm: kworker/1:1 Tainted: G        W  OE    --------- -  - 4.18.0-193.28.1.el8_2.x86_64 #1
[  137.749404] Hardware name: Hewlett-Packard HP t610 PLUS WW Thin Client/17E2, BIOS K30 v01.07 07/27/2012
[  137.749410] Workqueue: usb_hub_wq hub_event
[  137.749495] RIP: 0010:rtw_os_ndev_register+0x64/0x176 [88x2bu]
[  137.749499] Code: 8d a7 20 35 00 00 b9 20 00 00 00 48 c7 c2 b8 3d cf c0 4c 89 e6 48 89 ef e8 2a a5 42 c7 48 89 df e8 a2 47 01 00 83 f8 01 74 1a <0f> 0b 4c 89 e7 e8 63 95 42 c7 b8 00 00 00 00 5b 5d 41 5c 41 5d 41
[  137.749501] RSP: 0018:ffffb64a003fb940 EFLAGS: 00010297
[  137.749504] RAX: 0000000000000000 RBX: ffffb64a00a59000 RCX: 0000000000000000
[  137.749506] RDX: 0000000000000002 RSI: ffff9ce459bd6858 RDI: 0000000000000001
[  137.749507] RBP: ffff9ce458250000 R08: 0000000000000004 R09: 0000000000000003
[  137.749509] R10: ffff9ce458257000 R11: ffff9ce45ab7a98c R12: ffffb64a00a5c520
[  137.749511] R13: 0000000000000000 R14: ffffb64a00a5c47b R15: ffffffffc0dd9e65
[  137.749513] FS:  0000000000000000(0000) GS:ffff9ce45c700000(0000) knlGS:0000000000000000
[  137.749515] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  137.749517] CR2: 000055773f1be608 CR3: 000000005ac34000 CR4: 00000000000006e0
[  137.749519] Call Trace:
[  137.749607]  rtw_os_ndevs_register+0x9e/0xce [88x2bu]
[  137.749692]  rtw_os_ndevs_init+0x24/0x3a [88x2bu]
[  137.749774]  rtw_drv_init+0x5c/0xa2 [88x2bu]
[  137.749780]  usb_probe_interface+0xe4/0x2f0
[  137.749786]  driver_probe_device+0x12d/0x460
[  137.749791]  ? __driver_attach_async_helper+0x90/0x90
[  137.749795]  bus_for_each_drv+0x79/0xc0
[  137.749799]  __device_attach+0xdc/0x160
[  137.749803]  bus_probe_device+0x9d/0xb0
[  137.749808]  device_add+0x3f1/0x640
[  137.749813]  usb_set_configuration+0x593/0x880
[  137.749819]  generic_probe+0x48/0x70
[  137.749823]  driver_probe_device+0x12d/0x460
[  137.749827]  ? __driver_attach_async_helper+0x90/0x90
[  137.749831]  bus_for_each_drv+0x79/0xc0
[  137.749835]  __device_attach+0xdc/0x160
[  137.749839]  bus_probe_device+0x9d/0xb0
[  137.749842]  device_add+0x3f1/0x640
[  137.749847]  usb_new_device+0x277/0x490
[  137.749851]  hub_port_connect+0x70b/0xa50
[  137.749855]  port_event+0x464/0x6e0
[  137.749860]  hub_event+0x143/0x3b0
[  137.749865]  process_one_work+0x1a7/0x3b0
[  137.749869]  worker_thread+0x30/0x390
[  137.749873]  ? create_worker+0x1a0/0x1a0
[  137.749876]  kthread+0x112/0x130
[  137.749880]  ? kthread_flush_work_fn+0x10/0x10
[  137.749885]  ret_from_fork+0x22/0x40
[  137.749889] ---[ end trace b464e2d8fd21993d ]---
[  137.760599] WARNING: CPU: 1 PID: 25 at /usr/src/rtl88x2bu-5.6.1/os_dep/linux/os_intfs.c:3174 rtw_os_ndevs_register+0xa6/0xce [88x2bu]
[  137.760604] Modules linked in: 88x2bu(OE) cfg80211 xt_CHECKSUM ipt_MASQUERADE xt_conntrack ipt_REJECT nft_counter nf_nat_tftp nft_objref nf_conntrack_tftp tun bridge stp llc nft_fib_inet nft_fib_ipv4 nft_fib_ipv6 nft_fib nft_reject_inet nf_reject_ipv4 nf_reject_ipv6 nft_reject nft_ct nf_tables_set nft_chain_nat_ipv6 nf_conntrack_ipv6 nf_defrag_ipv6 nf_nat_ipv6 nft_chain_route_ipv6 nft_chain_nat_ipv4 nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack libcrc32c nft_chain_route_ipv4 ip6_tables nft_compat ip_set nf_tables nfnetlink sunrpc ccp kvm snd_hda_codec_realtek hp_wmi sparse_keymap rfkill snd_hda_codec_generic wmi_bmof ppdev snd_hda_codec_hdmi ledtrig_audio snd_hda_intel snd_intel_dspcfg snd_hda_codec snd_hda_core irqbypass snd_hwdep snd_seq snd_seq_device snd_pcm joydev pcspkr k10temp snd_timer sp5100_tco i2c_piix4 snd soundcore wmi parport_pc parport acpi_cpufreq ip_tables ext4 mbcache jbd2 radeon sd_mod sg i2c_algo_bit drm_kms_helper syscopyarea sysfillrect sysimgblt
[  137.760670]  fb_sys_fops ttm drm ahci tg3 libahci serio_raw libata dm_mirror dm_region_hash dm_log dm_mod fuse
[  137.760686] CPU: 1 PID: 25 Comm: kworker/1:1 Tainted: G        W  OE    --------- -  - 4.18.0-193.28.1.el8_2.x86_64 #1
[  137.760688] Hardware name: Hewlett-Packard HP t610 PLUS WW Thin Client/17E2, BIOS K30 v01.07 07/27/2012
[  137.760696] Workqueue: usb_hub_wq hub_event
[  137.760780] RIP: 0010:rtw_os_ndevs_register+0xa6/0xce [88x2bu]
[  137.760784] Code: 87 ec 48 00 00 49 8d b5 7b 34 00 00 84 c0 74 0d 49 8d b5 8b 34 00 00 3c 01 49 0f 45 f7 e8 83 f3 ff ff 41 89 c4 83 f8 01 74 b2 <0f> 0b 85 db 75 15 48 63 db 48 8b bc dd 50 01 00 00 48 85 ff 74 05
[  137.760786] RSP: 0018:ffffb64a003fb978 EFLAGS: 00010297
[  137.760789] RAX: 0000000000000000 RBX: 0000000000000000 RCX: dead000000000200
[  137.760791] RDX: ffff9ce458250060 RSI: ffffb64a00a5c5b8 RDI: 0000000000000000
[  137.760793] RBP: ffff9ce458257000 R08: ffff9ce420bd80b0 R09: 0000000000000001
[  137.760794] R10: 0000000000000000 R11: 000000000000320b R12: 0000000000000000
[  137.760796] R13: ffffb64a00a59000 R14: 0000000000000001 R15: ffffffffc0dd9e65
[  137.760799] FS:  0000000000000000(0000) GS:ffff9ce45c700000(0000) knlGS:0000000000000000
[  137.760801] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  137.760802] CR2: 00007fc527c8e000 CR3: 000000005a89e000 CR4: 00000000000006e0
[  137.760805] Call Trace:
[  137.760897]  rtw_os_ndevs_init+0x24/0x3a [88x2bu]
[  137.760982]  rtw_drv_init+0x5c/0xa2 [88x2bu]
[  137.760987]  usb_probe_interface+0xe4/0x2f0
[  137.760994]  driver_probe_device+0x12d/0x460
[  137.760999]  ? __driver_attach_async_helper+0x90/0x90
[  137.761002]  bus_for_each_drv+0x79/0xc0
[  137.761007]  __device_attach+0xdc/0x160
[  137.761011]  bus_probe_device+0x9d/0xb0
[  137.761015]  device_add+0x3f1/0x640
[  137.761020]  usb_set_configuration+0x593/0x880
[  137.761027]  generic_probe+0x48/0x70
[  137.761031]  driver_probe_device+0x12d/0x460
[  137.761035]  ? __driver_attach_async_helper+0x90/0x90
[  137.761038]  bus_for_each_drv+0x79/0xc0
[  137.761042]  __device_attach+0xdc/0x160
[  137.761046]  bus_probe_device+0x9d/0xb0
[  137.761049]  device_add+0x3f1/0x640
[  137.761053]  usb_new_device+0x277/0x490
[  137.761058]  hub_port_connect+0x70b/0xa50
[  137.761063]  port_event+0x464/0x6e0
[  137.761067]  hub_event+0x143/0x3b0
[  137.761072]  process_one_work+0x1a7/0x3b0
[  137.761076]  worker_thread+0x30/0x390
[  137.761080]  ? create_worker+0x1a0/0x1a0
[  137.761084]  kthread+0x112/0x130
[  137.761088]  ? kthread_flush_work_fn+0x10/0x10
[  137.761093]  ret_from_fork+0x22/0x40
[  137.761099] ---[ end trace b464e2d8fd21993e ]---
[  137.875648] usb 1-4: reset high-speed USB device number 3 using ehci-pci

Dark_Turtle
Posts: 3
Joined: 2020/04/02 14:05:58

Re: ASUS USB-AC53 Nano rtl88x2bu Driver for CentOS 8

Post by Dark_Turtle » 2020/11/19 00:41:03

Thanks for the update. You got further than I did.

Any idea why it doesn’t work?

Post Reply