Bug/Problem with rtl_bt/rtl8822cs_config.bin

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I’m working with the RTL8822CS WiFi/BT mezzanine for BananaPi M2S/M5 boards.

SDIO WiFi works fine. The BT side fails to load firmware:

[    7.413297] Bluetooth: hci0: RTL: examining hci_ver=0a hci_rev=000c lmp_ver=0a lmp_subver=8822
[    7.416873] Bluetooth: hci0: RTL: rom_version status=0 version=3
[    7.416892] Bluetooth: hci0: RTL: loading rtl_bt/rtl8822cs_fw.bin
[    7.418200] Bluetooth: hci0: RTL: loading rtl_bt/rtl8822cs_config.bin
[    7.453778] Bluetooth: hci0: RTL: cfg_sz 33, total sz 36529
[    9.469947] Bluetooth: hci0: command 0xfc20 tx timeout
[   17.629661] Bluetooth: hci0: RTL: download fw command failed (-110)

The same is also observed on an Amlogic Android box with 08 silicon:

[    3.950116] Bluetooth: hci0: RTL: examining hci_ver=08 hci_rev=000c lmp_ver=08 lmp_subver=8822
[    3.963304] Bluetooth: hci0: RTL: rom_version status=0 version=3
[    3.969522] Bluetooth: hci0: RTL: loading rtl_bt/rtl8822cs_fw.bin
[    3.969556] Bluetooth: hci0: RTL: loading rtl_bt/rtl8822cs_config.bin
[    4.026336] Bluetooth: hci0: RTL: cfg_sz 33, total sz 36529
[    6.086301] Bluetooth: hci0: command 0xfc20 tx timeout
[   14.566290] Bluetooth: hci0: RTL: download fw command failed (-110)

The device is working in Armbian who bundle an older firmware:

[    7.319820] Bluetooth: hci0: RTL: examining hci_ver=0a hci_rev=000c lmp_ver=0a lmp_subver=8822
[    7.323114] Bluetooth: hci0: RTL: rom_version status=0 version=3
[    7.323150] Bluetooth: hci0: RTL: loading rtl_bt/rtl8822cs_fw.bin
[    7.325103] Bluetooth: hci0: RTL: loading rtl_bt/rtl8822cs_config.bin
[    7.348972] Bluetooth: hci0: RTL: cfg_sz 73, total sz 40777
[    7.699139] Bluetooth: hci0: RTL: fw version 0x05a91a4a

However it’s not a regression in firmware. Further testing pinpointed the
rtl8822cs_config.bin file. I can use the latest firmware (FFB8_ABD6) with
the config file bundled with Armbian:

[    7.504405] Bluetooth: hci0: RTL: examining hci_ver=0a hci_rev=000c lmp_ver=0a lmp_subver=8822
[    7.507827] Bluetooth: hci0: RTL: rom_version status=0 version=3
[    7.507850] Bluetooth: hci0: RTL: loading rtl_bt/rtl8822cs_fw.bin
[    7.509158] Bluetooth: hci0: RTL: loading rtl_bt/rtl8822cs_config.bin
[    7.529486] Bluetooth: hci0: RTL: cfg_sz 73, total sz 36569
[    7.850914] Bluetooth: hci0: RTL: fw version 0xffb8abd6

I can also use the oldest upstream firmware with the Armbian config:

[    7.315358] Bluetooth: hci0: RTL: examining hci_ver=0a hci_rev=000c lmp_ver=0a lmp_subver=8822
[    7.318754] Bluetooth: hci0: RTL: rom_version status=0 version=3
[    7.318772] Bluetooth: hci0: RTL: loading rtl_bt/rtl8822cs_fw.bin
[    7.319680] Bluetooth: hci0: RTL: loading rtl_bt/rtl8822cs_config.bin
[    7.341340] Bluetooth: hci0: RTL: cfg_sz 73, total sz 30817
[    7.612533] Bluetooth: hci0: RTL: fw version 0x05990d54

The config file Armbian are using [0] is sourced from an Amlogic (Android) BSP
repo shared to manufacturer Jethome (Vyacheslav on CC). There is no obvious
version info. There are newer (more recently committed) config files available
in updates to the Amlogic repo (alongside older 0599_0D54 firmware) and all work
with any upstream firmware file.

I’m happy to apply test patches to get more output and I can provide remote
access to the board or arrange hardware to be shipped if that helps at all.

Hopefully RTL folks can spot whether this is a driver issue or something not
present in the upstream config?

Christian

[0] https://github.com/armbian/firmware/blob/master/rtl_bt/rtl8822cs_config.bin





[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux