From: Christian Hewitt <christianshewitt@gmail.com>
To: Hilda Wu <hildawu@realtek.com>, Josh Boyer <jwboyer@kernel.org>,
Linux Firmware <linux-firmware@kernel.org>,
Bluez mailing list <linux-bluetooth@vger.kernel.org>
Cc: Martin Blumenstingl <martin.blumenstingl@googlemail.com>,
Vyacheslav <adeep@lexina.in>
Subject: Bug/Problem with rtl_bt/rtl8822cs_config.bin
Date: Tue, 21 Feb 2023 11:13:28 +0400 [thread overview]
Message-ID: <3B9D4DB2-D2CD-44FE-817A-F6EA8A0AD734@gmail.com> (raw)
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
next reply other threads:[~2023-02-21 7:13 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-21 7:13 Christian Hewitt [this message]
2023-02-21 21:22 ` Bug/Problem with rtl_bt/rtl8822cs_config.bin Martin Blumenstingl
2023-02-23 3:24 ` Max Chou
2023-02-23 7:51 ` Christian Hewitt
2023-02-23 14:05 ` Vyacheslav
2023-02-23 21:00 ` Martin Blumenstingl
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3B9D4DB2-D2CD-44FE-817A-F6EA8A0AD734@gmail.com \
--to=christianshewitt@gmail.com \
--cc=adeep@lexina.in \
--cc=hildawu@realtek.com \
--cc=jwboyer@kernel.org \
--cc=linux-bluetooth@vger.kernel.org \
--cc=linux-firmware@kernel.org \
--cc=martin.blumenstingl@googlemail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox