| 
 | 
 
 本帖最后由 kmchyxu 于 2025-3-13 17:15 编辑  
 
盒子是E900V22D,S905L3,蓝牙芯片RTL8761BTV 
刷了Armbian_24.5.0_amlogic_s905l3_jammy_6.1.63_haos_14.2,完全找不到蓝牙,具体体现是uart_A没有打开: 
ls /dev/tty* 只找到/dev/ttyAML0 
 
网络上搜索解决办法,简单来说 
1,修改dtb,开启串口,加入蓝牙 
2,替换/lib/firmware/rtl_bt/rtl8761b_config.bin 
3. 在/lib/systemd/system/bluetooth.service的[Service]部分加一行: 
ExecStopPost=/usr/bin/env gpioset 0 82=0 
 
 
照着操作,现在卡在第2步,后边不知道该怎么办了,特向大家求助。目前状态: 
 
相关修改:采用修改版的meson-gxl-s905l2-x7-5g.dtb刷机,相关信息及修改: 
…… 
        uart_A = "/soc/bus@c1100000/serial@84c0"; 
…… 
        aliases { 
                mmc0 = "/soc/apb@d0000000/mmc@70000"; 
                mmc1 = "/soc/apb@d0000000/mmc@72000"; 
                mmc2 = "/soc/apb@d0000000/mmc@74000"; 
                serial0 = "/soc/bus@c8100000/serial@4c0"; 
                ethernet0 = "/soc/ethernet@c9410000"; 
                serial1 = "/soc/bus@c1100000/serial@84c0"; 
        }; 
 
…… 
                        serial@84c0 { 
                                compatible = "amlogic,meson-gx-uart"; 
                                reg = <0x00 0x84c0 0x00 0x18>; 
                                interrupts = <0x00 0x1a 0x01>; 
                                status = "okay"; 
                                fifo-size = <0x80>; 
                                clocks = <0x13 0x03 0x1a 0x13>; 
                                clock-names = "xtal\0pclk\0baud"; 
                                pinctrl-0 = <0x14 0x15>; 
                                uart-has-rtscts; 
                                pinctrl-names = "default"; 
                                phandle = <0x51>; 
                                 
                                bluetooth { 
                                        compatible = "realtek,rtl8723bs-bt"; 
                                };                                 
                        }; 
关键修改: 
                                status = "okay";                                 
                                bluetooth { 
                                        compatible = "realtek,rtl8723bs-bt"; 
                                }; 
 
 
重启后有蓝牙了,但是处于down状态: 
root@homeassistant:/bin # hciconfig -a 
hci0:   Type: Primary  Bus: UART 
        BD Address: 00:00:00:00:00:00  ACL MTU: 0:0  SCO MTU: 0:0 
        DOWN  
        RX bytes:128 acl:0 sco:0 events:2 errors:0 
        TX bytes:114 acl:0 sco:0 commands:3 errors:0 
        Features: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 
        Packet type: DM1 DH1 HV1  
        Link policy:  
        Link mode: PERIPHERAL ACCEPT  
 
 
无法up起来: 
root@homeassistant:/bin # hciconfig hci0 up 
Can't init device hci0: Invalid argument (22) 
 
 
查看hci信息: 
root@homeassistant:/bin # dmesg|grep hci 
[    1.326789] sdhci: Secure Digital Host Controller Interface driver 
[    1.331673] sdhci: Copyright(c) Pierre Ossman 
[    1.342506] sdhci-pltfm: SDHCI platform and OF driver helper 
[    2.062990] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller 
[    2.067007] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1 
[    2.074667] xhci-hcd xhci-hcd.0.auto: USB3 root hub has no ports 
[    2.080499] xhci-hcd xhci-hcd.0.auto: hcc params 0x0228f664 hci version 0x100 quirks 0x0000008002010010 
[    2.089855] xhci-hcd xhci-hcd.0.auto: irq 31, io mem 0xc9000000 
[    6.806068] Bluetooth: hci0: RTL: examining hci_ver=06 hci_rev=000a lmp_ver=06 lmp_subver=8761 
[    7.017228] Bluetooth: hci0: RTL: examining hci_ver=06 hci_rev=000a lmp_ver=06 lmp_subver=8761 
[    7.020298] Bluetooth: hci0: RTL: unknown IC info, lmp subver 8761, hci rev 000a, hci ver 0006 
[    7.020314] Bluetooth: hci0: RTL: no config loaded 
 
 
可能是config不对。haos已经有rtl8761b的config 
root@homeassistant:/lib/firmware/rtl_bt # ls /lib/firmware/rtl_bt/rtl8761b_config.bin 
/lib/firmware/rtl_bt/rtl8761b_config.bin 
 
 
但是这里是只读的,网上找的config文件没法放进来 
root@homeassistant:/lib/firmware/rtl_bt # mkdir test 
mkdir: can't create directory 'test': Read-only file system 
 
 
 
蓝牙似乎成功了1/3,但是因为haos无法修改文件,后边不知道该怎么办了,特向大家求助 
 
 
 |   
 
 
 
 |