Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

S905X2盒子刷入成功,网卡和WIFI均可用,探讨HDMI和蓝牙驱动问题 #2296

Closed
AlanLeeIsGood opened this issue May 4, 2024 · 0 comments

Comments

@AlanLeeIsGood
Copy link

AlanLeeIsGood commented May 4, 2024

Device Information | 设备信息

  • SOC: S905X2
  • Model SEI501D

Armbian Version | 系统版本

  • Kernel Version: [6.1.84-spring-plowing]
  • Release: [ Armbian OS 24.5.0 Noble]

Describe the bug | 问题描述
All issues will only remain open for one week to prioritize resolving them.
After that period, they will be closed but can still continue to be discussed in the thread.
报告新盒子,原机安卓系统型号显示SEI501D,配置两颗512MDDR3,SEC的8GEMMC,无线模块是RTL8822BS还有两个空内存颗粒焊盘
看外形和SEI500系列盒子外形相同
https://www.androidtv-guide.com/?s=sei500
与[Breezeline (Atlantic Broadband) – Stream TV]SEI500ABB 外观相同,一个USB3.0一个USB2.0 5V DC5.5*2.5规格电源供电
SEI500ABB盒子2G+8G的配置
手上这款盒子内存是1G+8G,内存砍半

有两个问题请教

  1. HDMI无输出的问题

折腾过程中,使用[Armbian_24.5.0_amlogic_s905x2_noble_6.6.28_server_2024.04.25.img.gz]镜像写入TF卡启动后
HDMI一直保持黑屏,loga界面不显示,安卓系统下不显示
使用的dtb是其中默认的s905x2_u212_2g.dtb

后续在安卓系统调低分辨率后偶然恢复,再次调节至4K分辨率后可用

再次使用armbian启动后,再次完全黑屏,
这次即使在安卓中调节分辨率HDMI也无法使用,而且AV接口也没有输出

使用过的Armbian包
Armbian_24.5.0_amlogic_s905x2_noble_6.6.28_server_2024.04.25.img.gz
Armbian_24.5.0_amlogic_s905l3b_noble_6.1.84_server_2024.04.08.img

远程连接到安卓可以看到,安卓盒子实际上是识别了显示器的分辨率的,自动设置为4Kx2K
更换低分辨率显示器1440x900同样能识别不显示,声音也无输出,同一根线连接其他设备都能正常使用

ophub大大是否了解其中原理和可能的解决方案

这里附上sei500abb的安卓dtb
dtb.zip

2.RTL8822BS蓝牙驱动的问题

由于rtl8822bs的蓝牙在linux主线内核中没有驱动
github上搜索到了解决方案
https://github.com/ChalesYu/rtl8822bs-aml
这里的bluetooth文件夹
https://github.com/ChalesYu/rtl8822bs-aml/tree/master/bluetooth
提供编译驱动源码和魔改版的hciattach方案
但是在Linux 6.1.84-spring-plowing
make过程中,始终报错gcc: error: missing argument to ‘-mstack-protector-guard-offset=’
root@armbian:~/bluetooth# make make -C /lib/modules/6.1.84-spring-plowing/build M=/root/bluetooth modules make[1]: Entering directory '/usr/src/linux-headers-6.1.84-spring-plowing' warning: the compiler differs from the one used to build the kernel The kernel was built by: aarch64-none-elf-gcc (Arm GNU Toolchain 13.2.rel1 (Build arm-13.7)) 13.2.1 20231009 You are using: gcc (Ubuntu 13.2.0-23ubuntu3) 13.2.0 CC [M] /root/bluetooth/BT_GPIO.o gcc: error: missing argument to ‘-mstack-protector-guard-offset=’ make[2]: *** [scripts/Makefile.build:250: /root/bluetooth/BT_GPIO.o] Error 1 make[1]: *** [Makefile:2010: /root/bluetooth] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-6.1.84-spring-plowing' make: *** [Makefile:17: bt_en] Error 2
google之后还是没有搞清楚是gcc版本还是内核版本兼容性的问题
还请大大指点

找到了大佬之前回复的issue
正在解压更换gcc版本,尝试编译蓝牙驱动模块
#1043
根据issues 1043中下载并更改gcc版本后,问题依旧

root@armbian:~/bluetooth# make -e 'CC=/root/arm-gnu-toolchain-13.2.Rel1-aarch64-aarch64-none-elf/bin/aarch64-none-elf-gcc'
make -C /lib/modules/6.1.84-spring-plowing/build M=/root/bluetooth modules
make[1]: Entering directory '/usr/src/linux-headers-6.1.84-spring-plowing'
make[2]: Entering directory '/usr/src/linux-headers-6.1.84-spring-plowing'
  CC [M]  /root/bluetooth/BT_GPIO.o
aarch64-none-elf-gcc: error: missing argument to '-mstack-protector-guard-offset='
make[2]: *** [scripts/Makefile.build:250: /root/bluetooth/BT_GPIO.o] Error 1
make[2]: Leaving directory '/usr/src/linux-headers-6.1.84-spring-plowing'
make[1]: *** [Makefile:2010: /root/bluetooth] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.1.84-spring-plowing'
make: *** [Makefile:17: bt_en] Error 2

-mstack-protector-guard-offset= 大佬可以帮忙看下这个参数怎么设置和使用吗

@ophub ophub closed this as completed Jun 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants