20251106给荣品RD-RK3588-MID开发板跑Rockchip的原厂Android13系统时适配AP6275P模块的BT【使用荣品的DTS】
20251106给荣品RD-RK3588-MID开发板跑Rockchip的原厂Android13系统时适配AP6275P模块的BT【使用荣品的DTS】
缘起:给荣品RD-RK3588-MID开发板跑Rockchip的原厂Android13系统。
但是WIFI/BT模块的AP6275P的WIFI/BT都不能打开!
一般认为是Rockchip的Android13的mk文件语法识别识别,编译内核的时候没有加载pcie_wifi.config。
结果默认配置成为AP6256了?
WIFI部分适配好了,但是BT蓝牙部分打不开!
将Rockchip的原厂Android13系统SDK和荣品的SDK进行比对,很容易/根据经验/艰难得知UART串口号错了。
EVB1默认是UART8,荣品改为UART9了!


1、
Y:\new_disk_4t\wyb\RD-RK3588\EVB7_RD-RK3588t\device\rockchip\rk3588\rk3588_t\bt_vendor.conf
Y:\new_disk_4t\wyb\RD-RK3588\orig_RD-rk3588_Android13\device\rockchip\rk3588\rk3588_t\bt_vendor.conf
# UART device port where Bluetooth controller is attached
UartPort = /dev/ttyS8
# Firmware patch file location
FwPatchFilePath = /vendor/etc/firmware/
修改为:
# UART device port where Bluetooth controller is attached
UartPort = /dev/ttyS9
# Firmware patch file location
FwPatchFilePath = /vendor/etc/firmware/




2、调试步骤:
直接使用busybox vi修改bt_vendor.conf中的UART串口号。
也是可以接受文件的。
删除out:rm out -rf。
./build.sh -Au
Microsoft Windows [版本 10.0.19045.6216]
(c) Microsoft Corporation。保留所有权利。
C:\Users\QQ>adb root
restarting adbd as root
C:\Users\QQ>adb remount
Using overlayfs for /system
Using overlayfs for /vendor
Using overlayfs for /odm
Using overlayfs for /system_dlkm
Using overlayfs for /system_ext
Using overlayfs for /vendor_dlkm
Using overlayfs for /odm_dlkm
Using overlayfs for /product
Now reboot your device for settings to take effect
remount succeeded
C:\Users\QQ>adb shell

130|rk3588_t:/ # ll
total 88
drwxr-xr-x 2 root root 4096 2025-11-06 01:39 acct
drwxr-xr-x 27 root root 560 2021-01-01 12:00 apex
lrw-r--r-- 1 root root 11 2025-11-06 01:39 bin -> /system/bin
lrw-r--r-- 1 root root 50 2025-11-06 01:39 bugreports -> /data/user_de/0/com.android.shell/files/bugreports
drwxrwx--- 6 system cache 4096 2021-01-01 12:00 cache
drwxr-xr-x 3 root root 0 1970-01-01 00:00 config
lrw-r--r-- 1 root root 17 2025-11-06 01:39 d -> /sys/kernel/debug
drwxrwx--x 50 system system 4096 2025-11-06 01:39 data
drwx------ 8 root system 160 2021-01-01 12:00 data_mirror
drwxr-xr-x 2 root root 4096 2025-11-06 01:39 debug_ramdisk
drwxr-xr-x 26 root root 3500 2025-11-06 01:39 dev
lrw-r--r-- 1 root root 11 2025-11-06 01:39 etc -> /system/etc
lrwxr-x--- 1 root shell 16 2025-11-06 01:39 init -> /system/bin/init
-rwxr-x--- 1 root shell 463 2025-11-06 01:39 init.environ.rc
drwxr-xr-x 11 root root 260 2021-01-01 12:00 linkerconfig
drwx------ 2 root root 16384 2025-11-06 01:39 lost+found
drwxr-xr-x 13 root root 4096 2021-01-01 12:00 metadata
drwxr-xr-x 16 root system 340 2021-01-01 12:00 mnt
drwxr-xr-x 5 root root 4096 2025-11-06 01:39 odm
drwxr-xr-x 4 root root 4096 2025-11-06 01:39 odm_dlkm
drwxr-xr-x 2 root root 4096 2025-11-06 01:39 oem
drwxr-xr-x 2 root root 4096 2025-11-06 01:39 postinstall
dr-xr-xr-x 409 root root 0 2021-01-01 12:00 proc
drwxr-xr-x 9 root root 4096 2025-11-06 01:39 product
lrw-r--r-- 1 root root 21 2025-11-06 01:39 sdcard -> /storage/self/primary
drwxr-xr-x 2 root root 4096 2025-11-06 01:39 second_stage_resources
drwx--x--- 4 shell everybody 80 2021-01-01 12:00 storage
dr-xr-xr-x 15 root root 0 2021-01-01 12:00 sys
drwxr-xr-x 13 root root 4096 2025-11-06 01:39 system
drwxr-xr-x 4 root root 4096 2025-11-06 01:39 system_dlkm
drwxr-xr-x 9 root root 4096 2025-11-06 01:39 system_ext
drwxr-xr-x 10 root root 4096 2025-11-06 01:39 vendor
drwxr-xr-x 5 root root 4096 2025-11-06 01:39 vendor_dlkm
rk3588_t:/ # cd ven
vendor/ vendor_dlkm/
rk3588_t:/ # cd vendor
rk3588_t:/vendor # ll
total 60
drwxr-xr-x 3 root shell 4096 2025-11-06 01:39 app
drwxr-x--x 3 root shell 4096 2025-11-06 01:39 bin
-rw------- 1 root root 5266 2025-11-06 01:39 build.prop
drwxr-xr-x 13 root shell 4096 2025-11-06 01:39 etc
drwxr-xr-x 2 root shell 4096 2025-11-06 01:39 firmware
drwxr-xr-x 8 root shell 8192 2025-11-06 01:39 lib
drwxr-xr-x 7 root shell 8192 2025-11-06 01:39 lib64
drwx------ 2 root root 16384 2025-11-06 01:39 lost+found
lrw-r--r-- 1 root root 4 2025-11-06 01:39 odm -> /odm
drwxr-xr-x 2 root shell 4096 2025-11-06 01:39 overlay
rk3588_t:/vendor # find . -name bt_vendor.conf
./etc/bluetooth/bt_vendor.conf
rk3588_t:/vendor # cd etc/blu
bluetooth/ bluetooth_audio_policy_configuration_7_0.xml
rk3588_t:/vendor # cd etc/bluetooth/bt_vendor.conf
/system/bin/sh: cd: /vendor/etc/bluetooth/bt_vendor.conf: Not a directory
2|rk3588_t:/vendor # cat etc/blu
bluetooth/ bluetooth_audio_policy_configuration_7_0.xml
2|rk3588_t:/vendor # cat etc/bluetooth/bt_vendor.conf
# UART device port where Bluetooth controller is attached
UartPort = /dev/ttyS8
# Firmware patch file location
FwPatchFilePath = /vendor/etc/firmware/
rk3588_t:/vendor #
rk3588_t:/vendor # cd etc/blu
bluetooth/ bluetooth_audio_policy_configuration_7_0.xml
rk3588_t:/vendor # cd etc/bluetooth/
rk3588_t:/vendor/etc/bluetooth #
rk3588_t:/vendor/etc/bluetooth # ll
total 8
-rw-r--r-- 1 root root 152 2025-11-06 01:39 bt_vendor.conf
-rw-r--r-- 1 root root 744 2025-11-06 01:39 rtkbt.conf
rk3588_t:/vendor/etc/bluetooth #
rk3588_t:/vendor/etc/bluetooth #
C:\Users\QQ>adb shell
rk3588_t:/ #
rk3588_t:/ # cd ve
vendor/ vendor_dlkm/
rk3588_t:/ # cd vendor/etc/blu
bluetooth/ bluetooth_audio_policy_configuration_7_0.xml
rk3588_t:/ # cd vendor/etc/bluetooth
rk3588_t:/vendor/etc/bluetooth # ll
total 8
-rw-r--r-- 1 root root 152 2025-11-06 01:39 bt_vendor.conf
-rw-r--r-- 1 root root 744 2025-11-06 01:39 rtkbt.conf
rk3588_t:/vendor/etc/bluetooth #
rk3588_t:/vendor/etc/bluetooth # chmod 777 bt_vendor.conf
rk3588_t:/vendor/etc/bluetooth # busybox vi bt_vendor.conf ^C
130|rk3588_t:/vendor/etc/bluetooth # ll
total 4
-rwxrwxrwx 1 root root 152 2025-11-06 01:39 bt_vendor.conf
-rw-r--r-- 1 root root 744 2025-11-06 01:39 rtkbt.conf
rk3588_t:/vendor/etc/bluetooth #
rk3588_t:/vendor/etc/bluetooth #
rk3588_t:/vendor/etc/bluetooth # busybox bt_vendor.conf
bt_vendor.conf: applet not found
1|rk3588_t:/vendor/etc/bluetooth # busybox vi bt_vendor.conf
rk3588_t:/vendor/etc/bluetooth # cat bt_vendor.conf
# UART device port where Bluetooth controller is attached
UartPort = /dev/ttyS9
# Firmware patch file location
FwPatchFilePath = /vendor/etc/firmware/
rk3588_t:/vendor/etc/bluetooth # sync
rk3588_t:/vendor/etc/bluetooth # sync
rk3588_t:/vendor/etc/bluetooth #



