2023-05-18 15:28:51

by Fabrizio del Tin

[permalink] [raw]
Subject: Realtek RTL8832CU compatibility

Hello,
I got a recent RTL8832CU
(https://es.aliexpress.com/item/1005005544770386.html?spm=a2g0o.productlist.main.1.78ff96c6qceFKn&algo_pvid=9ee2eb8d-9883-4709-90f5-0dc6d98c40da&algo_exp_id=9ee2eb8d-9883-4709-90f5-0dc6d98c40da-0&pdp_npi=3%40dis%21EUR%2161.26%2130.62%21%21%21%21%21%402145277316844042289821012d07b5%2112000033481930568%21sea%21IT%211918944861&curPageLogUid=OMcZ7AW58cDB).
It's a very affordable tri band usb wifi 6 card, which is sold as AXE3000.

I tested it on Arch Linux, kernel 6.3.2, to no avail.

Once inserted, it gives:
0bda:1a2b Realtek Semiconductor Corp. RTL8188GU 802.11n WLAN Adapter
(Driver CDROM Mode)

After an eject cdrom, it gives:
0bda:c832 Realtek Semiconductor Corp. 802.11ax WLAN Adapter

I wonder if there will be any plan to make a Linux driver for it. The
only tri band in kernel solution seems to be the Netgear A8000, which
is widely available, but very expensive. The ALFA AWUS036AXML cannot
be found in my country. And there is no other option.

Thank you,
Fabrizio Lanza


2023-05-18 16:10:51

by James

[permalink] [raw]
Subject: Re: Realtek RTL8832CU compatibility

Ask here: https://github.com/morrownr/USB-WiFi

May 18, 2023 11:05:50 Fabrizio del Tin <[email protected]>:

> Hello,
> I got a recent RTL8832CU
> (https://es.aliexpress.com/item/1005005544770386.html?spm=a2g0o.productlist.main.1.78ff96c6qceFKn&algo_pvid=9ee2eb8d-9883-4709-90f5-0dc6d98c40da&algo_exp_id=9ee2eb8d-9883-4709-90f5-0dc6d98c40da-0&pdp_npi=3%40dis%21EUR%2161.26%2130.62%21%21%21%21%21%402145277316844042289821012d07b5%2112000033481930568%21sea%21IT%211918944861&curPageLogUid=OMcZ7AW58cDB).
> It's a very affordable tri band usb wifi 6 card, which is sold as AXE3000.
>
> I tested it on Arch Linux, kernel 6.3.2, to no avail.
>
> Once inserted, it gives:
> 0bda:1a2b Realtek Semiconductor Corp. RTL8188GU 802.11n WLAN Adapter
> (Driver CDROM Mode)
>
> After an eject cdrom, it gives:
> 0bda:c832 Realtek Semiconductor Corp. 802.11ax WLAN Adapter
>
> I wonder if there will be any plan to make a Linux driver for it. The
> only tri band in kernel solution seems to be the Netgear A8000, which
> is widely available, but very expensive. The ALFA AWUS036AXML cannot
> be found in my country. And there is no other option.
>
> Thank you,
> Fabrizio Lanza

2023-05-22 15:38:07

by Larry Finger

[permalink] [raw]
Subject: Re: Realtek RTL8832CU compatibility

On 5/18/23 11:02, James wrote:
> Ask here: https://github.com/morrownr/USB-WiFi
>
> May 18, 2023 11:05:50 Fabrizio del Tin <[email protected]>:
>
>> Hello,
>> I got a recent RTL8832CU
>> (https://es.aliexpress.com/item/1005005544770386.html?spm=a2g0o.productlist.main.1.78ff96c6qceFKn&algo_pvid=9ee2eb8d-9883-4709-90f5-0dc6d98c40da&algo_exp_id=9ee2eb8d-9883-4709-90f5-0dc6d98c40da-0&pdp_npi=3%40dis%21EUR%2161.26%2130.62%21%21%21%21%21%402145277316844042289821012d07b5%2112000033481930568%21sea%21IT%211918944861&curPageLogUid=OMcZ7AW58cDB).
>> It's a very affordable tri band usb wifi 6 card, which is sold as AXE3000.
>>
>> I tested it on Arch Linux, kernel 6.3.2, to no avail.
>>
>> Once inserted, it gives:
>> 0bda:1a2b Realtek Semiconductor Corp. RTL8188GU 802.11n WLAN Adapter
>> (Driver CDROM Mode)
>>
>> After an eject cdrom, it gives:
>> 0bda:c832 Realtek Semiconductor Corp. 802.11ax WLAN Adapter
>>
>> I wonder if there will be any plan to make a Linux driver for it. The
>> only tri band in kernel solution seems to be the Netgear A8000, which
>> is widely available, but very expensive. The ALFA AWUS036AXML cannot
>> be found in my country. And there is no other option.

Fabrizio,

I have acquired one of the AX3000 or Realtek 8832CU devices. I installed it on a
Windows VM using the driver on the initial cdrom.

I have written to my contact at Realtek to see if I can get a copy of the Linux
driver. If I can, I will upload it to a GitHub repo.

I will let you know what happens.

Larry



2023-05-23 05:53:24

by Larry Finger

[permalink] [raw]
Subject: Re: Realtek RTL8832CU compatibility

On 5/22/23 10:35, Fabrizio del Tin wrote:
> Thank you Larry, that would be great.
>
> I was just advised to return the dongle, but I still keep it.

The RTW8832CU is a variant of the RTW8852CU. I received a copy of the driver
from Realtek and fixed it to build on kernels thru 6.4.0. The driver gives
reasopnable performance (350 Mpps up and down) when connected to the 5G band of
my ax1500 router. This router does not support the 6G band, thus I cannot say
whether it would work for that 3rd band.

To get a copy, do the following:

git clone https://github.com/lwfinger/rtw8852cu.git
cd rtw8852cu
make
sudo make install

I suggest that you install the modeswitch package for your distro. That will
automatically eject the CDROM device and enable the wifi interface.

I will be making improvements in the coming days, but I wanted you to have
access as soon as possible.

Larry


2023-05-23 07:21:37

by Fabrizio del Tin

[permalink] [raw]
Subject: Re: Realtek RTL8832CU compatibility

Hello Larry,
great news really!

Actually, the file common.mk is missing, so it fails.

#rm -f .symvers.8852cu
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/6.3.3-arch1-1/build
M=/usr/src/rtw8852cu modules
/usr/src/rtw8852cu/Makefile:654: /usr/src/rtw8852cu/common.mk: No such
file or directory
make[2]: *** No rule to make target '/usr/src/rtw8852cu/common.mk'. Stop.
make[1]: *** [Makefile:2025: /usr/src/rtw8852cu] Error 2
make: *** [Makefile:705: modules] Error 2

Fabrizio

On Tue, May 23, 2023 at 7:45 AM Larry Finger <[email protected]> wrote:
>
> On 5/22/23 10:35, Fabrizio del Tin wrote:
> > Thank you Larry, that would be great.
> >
> > I was just advised to return the dongle, but I still keep it.
>
> The RTW8832CU is a variant of the RTW8852CU. I received a copy of the driver
> from Realtek and fixed it to build on kernels thru 6.4.0. The driver gives
> reasopnable performance (350 Mpps up and down) when connected to the 5G band of
> my ax1500 router. This router does not support the 6G band, thus I cannot say
> whether it would work for that 3rd band.
>
> To get a copy, do the following:
>
> git clone https://github.com/lwfinger/rtw8852cu.git
> cd rtw8852cu
> make
> sudo make install
>
> I suggest that you install the modeswitch package for your distro. That will
> automatically eject the CDROM device and enable the wifi interface.
>
> I will be making improvements in the coming days, but I wanted you to have
> access as soon as possible.
>
> Larry
>

2023-05-23 07:32:58

by Fabrizio del Tin

[permalink] [raw]
Subject: Re: Realtek RTL8832CU compatibility

I got the common.mk file from here:
https://github.com/lwfinger/rtl8852au/blob/dwa-x1850/common.mk

It seemed to me it could be fit.

It compiled for a long while, then died:

CC [M] /usr/src/rtw8852cu/phl/hal_g6/phy/rf/halrf_8852c/halrf_kfree_8852c.o
CC [M] /usr/src/rtw8852cu/phl/hal_g6/phy/rf/halrf_8852c/halrf_psd_8852c.o
LD [M] /usr/src/rtw8852cu/8852cu.o
MODPOST /usr/src/rtw8852cu/Module.symvers
ERROR: modpost: "dump_radar_detect_status"
[/usr/src/rtw8852cu/8852cu.ko] undefined!
ERROR: modpost: "rtw_dfs_rd_hdl" [/usr/src/rtw8852cu/8852cu.ko] undefined!
ERROR: modpost: "rtw_chset_search_ch" [/usr/src/rtw8852cu/8852cu.ko] undefined!
ERROR: modpost: "dump_chinfos" [/usr/src/rtw8852cu/8852cu.ko] undefined!
ERROR: modpost: "rtw_rfctl_dfs_init" [/usr/src/rtw8852cu/8852cu.ko] undefined!
ERROR: modpost: "get_ch_type_from_str" [/usr/src/rtw8852cu/8852cu.ko] undefined!
ERROR: modpost: "rtw_5ghz_a_channels" [/usr/src/rtw8852cu/8852cu.ko] undefined!
ERROR: modpost: "rtw_ap_check_ecsa_allow"
[/usr/src/rtw8852cu/8852cu.ko] undefined!
ERROR: modpost: "rtw_chset_is_bchbw_non_ocp"
[/usr/src/rtw8852cu/8852cu.ko] undefined!
ERROR: modpost: "rtw_chset_search_bch" [/usr/src/rtw8852cu/8852cu.ko] undefined!
WARNING: modpost: suppressed 41 unresolved symbol warnings because
there were too many)
make[2]: *** [scripts/Makefile.modpost:136:
/usr/src/rtw8852cu/Module.symvers] Error 1
make[1]: *** [Makefile:1977: modpost] Error 2
make: *** [Makefile:705: modules] Error 2

Fabrizio

On Tue, May 23, 2023 at 9:16 AM Fabrizio del Tin
<[email protected]> wrote:
>
> Hello Larry,
> great news really!
>
> Actually, the file common.mk is missing, so it fails.
>
> #rm -f .symvers.8852cu
> make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/6.3.3-arch1-1/build
> M=/usr/src/rtw8852cu modules
> /usr/src/rtw8852cu/Makefile:654: /usr/src/rtw8852cu/common.mk: No such
> file or directory
> make[2]: *** No rule to make target '/usr/src/rtw8852cu/common.mk'. Stop.
> make[1]: *** [Makefile:2025: /usr/src/rtw8852cu] Error 2
> make: *** [Makefile:705: modules] Error 2
>
> Fabrizio
>
> On Tue, May 23, 2023 at 7:45 AM Larry Finger <[email protected]> wrote:
> >
> > On 5/22/23 10:35, Fabrizio del Tin wrote:
> > > Thank you Larry, that would be great.
> > >
> > > I was just advised to return the dongle, but I still keep it.
> >
> > The RTW8832CU is a variant of the RTW8852CU. I received a copy of the driver
> > from Realtek and fixed it to build on kernels thru 6.4.0. The driver gives
> > reasopnable performance (350 Mpps up and down) when connected to the 5G band of
> > my ax1500 router. This router does not support the 6G band, thus I cannot say
> > whether it would work for that 3rd band.
> >
> > To get a copy, do the following:
> >
> > git clone https://github.com/lwfinger/rtw8852cu.git
> > cd rtw8852cu
> > make
> > sudo make install
> >
> > I suggest that you install the modeswitch package for your distro. That will
> > automatically eject the CDROM device and enable the wifi interface.
> >
> > I will be making improvements in the coming days, but I wanted you to have
> > access as soon as possible.
> >
> > Larry
> >

2023-05-23 13:13:03

by Fabrizio del Tin

[permalink] [raw]
Subject: Re: Realtek RTL8832CU compatibility

I found that rtl8852cu should already be in linux-firmware:
https://www.mail-archive.com/[email protected]/msg490319.html

Maybe it is just matter of adding rtl8832cu as a variant.

Fabrizio

On Tue, May 23, 2023 at 9:28 AM Fabrizio del Tin
<[email protected]> wrote:
>
> I got the common.mk file from here:
> https://github.com/lwfinger/rtl8852au/blob/dwa-x1850/common.mk
>
> It seemed to me it could be fit.
>
> It compiled for a long while, then died:
>
> CC [M] /usr/src/rtw8852cu/phl/hal_g6/phy/rf/halrf_8852c/halrf_kfree_8852c.o
> CC [M] /usr/src/rtw8852cu/phl/hal_g6/phy/rf/halrf_8852c/halrf_psd_8852c.o
> LD [M] /usr/src/rtw8852cu/8852cu.o
> MODPOST /usr/src/rtw8852cu/Module.symvers
> ERROR: modpost: "dump_radar_detect_status"
> [/usr/src/rtw8852cu/8852cu.ko] undefined!
> ERROR: modpost: "rtw_dfs_rd_hdl" [/usr/src/rtw8852cu/8852cu.ko] undefined!
> ERROR: modpost: "rtw_chset_search_ch" [/usr/src/rtw8852cu/8852cu.ko] undefined!
> ERROR: modpost: "dump_chinfos" [/usr/src/rtw8852cu/8852cu.ko] undefined!
> ERROR: modpost: "rtw_rfctl_dfs_init" [/usr/src/rtw8852cu/8852cu.ko] undefined!
> ERROR: modpost: "get_ch_type_from_str" [/usr/src/rtw8852cu/8852cu.ko] undefined!
> ERROR: modpost: "rtw_5ghz_a_channels" [/usr/src/rtw8852cu/8852cu.ko] undefined!
> ERROR: modpost: "rtw_ap_check_ecsa_allow"
> [/usr/src/rtw8852cu/8852cu.ko] undefined!
> ERROR: modpost: "rtw_chset_is_bchbw_non_ocp"
> [/usr/src/rtw8852cu/8852cu.ko] undefined!
> ERROR: modpost: "rtw_chset_search_bch" [/usr/src/rtw8852cu/8852cu.ko] undefined!
> WARNING: modpost: suppressed 41 unresolved symbol warnings because
> there were too many)
> make[2]: *** [scripts/Makefile.modpost:136:
> /usr/src/rtw8852cu/Module.symvers] Error 1
> make[1]: *** [Makefile:1977: modpost] Error 2
> make: *** [Makefile:705: modules] Error 2
>
> Fabrizio
>
> On Tue, May 23, 2023 at 9:16 AM Fabrizio del Tin
> <[email protected]> wrote:
> >
> > Hello Larry,
> > great news really!
> >
> > Actually, the file common.mk is missing, so it fails.
> >
> > #rm -f .symvers.8852cu
> > make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/6.3.3-arch1-1/build
> > M=/usr/src/rtw8852cu modules
> > /usr/src/rtw8852cu/Makefile:654: /usr/src/rtw8852cu/common.mk: No such
> > file or directory
> > make[2]: *** No rule to make target '/usr/src/rtw8852cu/common.mk'. Stop.
> > make[1]: *** [Makefile:2025: /usr/src/rtw8852cu] Error 2
> > make: *** [Makefile:705: modules] Error 2
> >
> > Fabrizio
> >
> > On Tue, May 23, 2023 at 7:45 AM Larry Finger <[email protected]> wrote:
> > >
> > > On 5/22/23 10:35, Fabrizio del Tin wrote:
> > > > Thank you Larry, that would be great.
> > > >
> > > > I was just advised to return the dongle, but I still keep it.
> > >
> > > The RTW8832CU is a variant of the RTW8852CU. I received a copy of the driver
> > > from Realtek and fixed it to build on kernels thru 6.4.0. The driver gives
> > > reasopnable performance (350 Mpps up and down) when connected to the 5G band of
> > > my ax1500 router. This router does not support the 6G band, thus I cannot say
> > > whether it would work for that 3rd band.
> > >
> > > To get a copy, do the following:
> > >
> > > git clone https://github.com/lwfinger/rtw8852cu.git
> > > cd rtw8852cu
> > > make
> > > sudo make install
> > >
> > > I suggest that you install the modeswitch package for your distro. That will
> > > automatically eject the CDROM device and enable the wifi interface.
> > >
> > > I will be making improvements in the coming days, but I wanted you to have
> > > access as soon as possible.
> > >
> > > Larry
> > >

2023-05-23 16:36:57

by Larry Finger

[permalink] [raw]
Subject: Re: Realtek RTL8832CU compatibility

On 5/23/23 02:16, Fabrizio del Tin wrote:
> Hello Larry,
> great news really!
>
> Actually, the file common.mk is missing, so it fails.

I just pushed that file now.

Larry



2023-05-23 17:02:55

by Larry Finger

[permalink] [raw]
Subject: Re: Realtek RTL8832CU compatibility

On 5/23/23 08:11, Fabrizio del Tin wrote:
> I found that rtl8852cu should already be in linux-firmware:
> https://www.mail-archive.com/[email protected]/msg490319.html
>
> Maybe it is just matter of adding rtl8832cu as a variant.

Those missing globals were due to missing parts in the version of common.mk that
you used. That part will be OK now that I pushed the real version.

There is a major difference between firmware and a driver. The former runs in
the CPU on the chip while the latter runs on the host CPU. At the moment, there
are no drivers for any of the USB variants of the rtw89 chips.

Larry


2023-05-23 17:22:09

by Fabrizio del Tin

[permalink] [raw]
Subject: Re: Realtek RTL8832CU compatibility

I confirm it works. Kudos!!!

I also don't have a 6Ghz router, so I cannot test that at the moment.
Maybe I get one next month. I wonder if there is a command to see the
supported frequencies of the card.

Fabrizio

On Tue, May 23, 2023 at 6:51 PM Larry Finger <[email protected]> wrote:
>
> On 5/23/23 08:11, Fabrizio del Tin wrote:
> > I found that rtl8852cu should already be in linux-firmware:
> > https://www.mail-archive.com/[email protected]/msg490319.html
> >
> > Maybe it is just matter of adding rtl8832cu as a variant.
>
> Those missing globals were due to missing parts in the version of common.mk that
> you used. That part will be OK now that I pushed the real version.
>
> There is a major difference between firmware and a driver. The former runs in
> the CPU on the chip while the latter runs on the host CPU. At the moment, there
> are no drivers for any of the USB variants of the rtw89 chips.
>
> Larry
>

2023-05-23 17:37:19

by Larry Finger

[permalink] [raw]
Subject: Re: Realtek RTL8832CU compatibility

On 5/23/23 12:19, Fabrizio del Tin wrote:
> I confirm it works. Kudos!!!
>
> I also don't have a 6Ghz router, so I cannot test that at the moment.
> Maybe I get one next month. I wonder if there is a command to see the
> supported frequencies of the card.

Good to hear. The command 'iw list' will show the channels negotiated between
the AP and the NIC.

To make any discussions available to other users of this driver, please open new
issues at lwfinger/rtw8852cu on GitHub.com.

Larry