请选择 进入手机版 | 继续访问电脑版

『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
查看: 150|回复: 2

E900V22D的蓝牙问题

[复制链接]

1

主题

2

帖子

38

积分

新手上路

Rank: 1

积分
38
金钱
36
HASS币
0
发表于 5 天前 | 显示全部楼层 |阅读模式
本帖最后由 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无法修改文件,后边不知道该怎么办了,特向大家求助


meson-gxl-s905l2-x7-5g.zip

9.66 KB, 下载次数: 0

修改后的dtb文件

回复

使用道具 举报

0

主题

45

帖子

170

积分

注册会员

Rank: 2

积分
170
金钱
125
HASS币
0
发表于 昨天 06:15 | 显示全部楼层
看禁闻http://bitly.net/nrrrr 点击访问
回复

使用道具 举报

1

主题

189

帖子

657

积分

高级会员

Rank: 4

积分
657
金钱
468
HASS币
0
发表于 7 小时前 | 显示全部楼层
armbian应该是这样配置蓝牙吧
                                bluetooth {
                                        compatible = "realtek,rtl8723bs-bt";
                                         status = "okay";   
                                };

haos的rootfs是不可写的。所以你写不了
不要改rootfs
直接替换dtb即可
把岸边测试好的dtb(改个不重复的名字。免得升级固件的时候,改回去)
拷贝到haos的/mnt/boot/dtbs目录下
然后修改uEnv.txt文件把fdt=后面改成你的蓝牙模块即可

个人觉得,不要刻意用盒子的蓝牙,如可能找个兼容性好的蓝牙usb模块也行,也就是10元的事

现在新盒子上的各种国产wifi/bt模组都没有开源驱动(只有android驱动)。
以后很长时间主机里的wifi/bt都没法驱动
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2025-3-17 22:21 , Processed in 0.193606 second(s), 27 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表