Hi,
On 12/19/22 16:53, Larry Finger wrote:
On 12/19/22 07:30, Ingo Saitz wrote:
I saw the 8821cu chipset being merged for linus' next kernel release and
decided to give it a try. I have been running 8821cu from
https://github.com/morrownr/8821cu-20210118 ; succeffully, so I know my
hardware works.
The driver as merged in commit 07cef03b8d44dee7488de3d1585387e603c78676
to git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
can't find any firmware for the driver, and the card does not work. At
boot it repeatedly logged failures to my kernel.log:
2022-12-16T19:20:21.563669+01:00 pinguin kernel: [ 7.823614] rtw_8821cu 2-11:1.0: Firmware version 24.11.0, H2C version 12
That means that firmware 24.11.0 was loaded, which is the latest in
linux-firmware as of this writing.
2022-12-16T19:20:21.563670+01:00 pinguin kernel: [ 7.906497] usbcore: registered new interface driver rtw_8821cu
2022-12-16T19:20:21.563670+01:00 pinguin kernel: [ 7.930657] rtw_8821cu 2-11:1.0 wlx1cbfcefeb2a3: renamed from wlan0
2022-12-16T19:20:59.576907+01:00 pinguin kernel: [ 631.847796] rtw_8821cu 2-11:1.0: failed to download firmware
2022-12-16T19:20:59.576910+01:00 pinguin kernel: [ 631.849195] rtw_8821cu 2-11:1.0: leave idle state failed
2022-12-16T19:20:59.580239+01:00 pinguin kernel: [ 631.851635] rtw_8821cu 2-11:1.0: failed to leave ips state
2022-12-16T19:20:59.580241+01:00 pinguin kernel: [ 631.851636] rtw_8821cu 2-11:1.0: failed to leave idle state
2022-12-16T19:21:08.563579+01:00 pinguin kernel: [ 640.833372] rtw_8821cu 2-11:1.0: error beacon valid
2022-12-16T19:21:08.563590+01:00 pinguin kernel: [ 640.833480] rtw_8821cu 2-11:1.0: failed to download rsvd page
2022-12-16T19:21:08.563591+01:00 pinguin kernel: [ 640.833640] rtw_8821cu 2-11:1.0: failed to download firmware
2022-12-16T19:21:08.563591+01:00 pinguin kernel: [ 640.835040] rtw_8821cu 2-11:1.0: leave idle state failed
2022-12-16T19:21:08.566911+01:00 pinguin kernel: [ 640.837510] rtw_8821cu 2-11:1.0: failed to leave ips state
2022-12-16T19:21:08.566915+01:00 pinguin kernel: [ 640.837513] rtw_8821cu 2-11:1.0: failed to leave idle state
2022-12-16T19:21:17.550263+01:00 pinguin kernel: [ 649.820641] rtw_8821cu 2-11:1.0: error beacon valid
2022-12-16T19:21:17.550288+01:00 pinguin kernel: [ 649.820759] rtw_8821cu 2-11:1.0: failed to download rsvd page
I have noticed the same messages on an 8821cu based adapter. There is
something wrong with the driver as opposed to missing firmware.
Alex
There is no mention of what firmware would be needed in the source code
itself, yet the repositoryhttps://github.com/ulli-kroll/rtl8821cu
includes a file firmware/rtl8821cufw.bin.
The firmware that is needed is the same as for the PCIe nersion, namely
/lib/firmware/rtw88/rtw8821c_fw.bin. Your distro should have that
firmware in package firmware-realtek, or in linux-firmware-realtek. If
they do not, you can get it by 'git clone
git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git.
The firware will be in directory rtw88.
Larry