(lack of) bluetooth support for M1
|
Original topic Author:Chris4arm,If you repost, please indicate the source:《 (lack of) bluetooth support for M1 》
|
Original topic Author:Chris4arm,If you repost, please indicate the source:《 (lack of) bluetooth support for M1 》
The reason is that the recovery mode of rk is deeply bound to the debug serial port. If the debug serial port is closed, the recovery will start abnormally, which will make it impossible to boot.Firefly has also tried to modify the recovery of rk, but because the binding is too deep, it also affects subsequent code iterations. So it is good for customers to switch and modify kernel/ when compiling firmware.
The following is the modification and compilation method:
1. First compile recovery.img
Modify kernel/ , close UART2 and open debug serial port
vim kernel/arch/arm64/boot/dts/rockchip/rk3328-roc-pc.dts
./build.sh recovery
Generate SDK/rockdev/recovery.img
--- a/arch/arm64/boot/dts/rockchip/rk3328-roc-pc.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3328-roc-pc.dts
@@ -2,7 +2,7 @@
#include "rk3328-roc-pc.dtsi"
&fiq_debugger {
- status = "disabled";
+ status = "okay";
};
&wireless_bluetooth {
@@ -11,5 +11,5 @@
&uart2 {
dma-names = "tx", "rx";
- status = "okay";
+ status = "disabled";
};
2. Remove the previous kernel/modification, compile uboot and kernel
cd kernel/
git co arch/arm64/boot/dts/rockchip/rk3328-roc-pc.dts
cd ../
./build.sh uboot kernel
3. Package the firmware
./mkfirmware.sh
./build.sh updateimg
Thanks Firefly for your answer.
I'm not sure we need serial debug port. On the last image I've tested (5.19.0-rc3-media) one see there is a problem with the rtl8723ds firmware loading, more specifically with rtl_bt/rtl8723ds_config.bin in which no uart config entry is found by btrtl (RTL: no UART config entry found).
All details at http://ix.io/44Ka (at dmesg 17.5xxxxx).
rtl_bt/rtl8723ds_config.bin is only 10 bytes long. Bad/wrong file ?
Chris
Chris
Hi Chris, sorry for the late reply. The bt-attach.sh script will run when the firefly ubuntu system is turned on. You can refer to it. You also need to open the Bluetooth serial port.
bt-attach.sh
2022-8-26 10:33 Uplaod
Click on the file name to download attach
Download Credits: Credit -11.61 KB, Down times: 5, Download Credits: Credit -1
In the last 5.x Ubuntu M1 image I know of (posted by @lonewolf31, see https://bbs.stationpc.com/thread-270-1-1.html), I see no /usr/bin/rtk_hciattach or /usr/bin/bt_fwname called by this script
Chris