Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions config/boards/orangepi5-ultra.csc
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,23 @@ function post_family_tweaks_bsp__orangepi5ultra_bluetooth() {
}

function post_family_tweaks__orangepi5ultra_enable_bluetooth_service() {
# On the edge kernel, the mainline hci_bcm SerDev driver handles BT natively
# via the DT bluetooth node. The user-space patchram service would conflict
# with SerDev (both try to claim /dev/ttyS7), so we skip enabling it.
[[ "$BRANCH" == "edge" ]] && return 0

display_alert "$BOARD" "Enabling ap6611s-bluetooth.service" "info"
chroot_sdcard systemctl enable ap6611s-bluetooth.service
return 0
}

# On the edge kernel, hci_bcm constructs the firmware filename from the board
# compatible string (BCM.<board>.hcd), not from the chip name. Create a symlink
# so the driver finds the SYN43711A0 patchram firmware.
function post_family_tweaks__orangepi5ultra_bt_firmware_symlink() {
[[ "$BRANCH" != "edge" ]] && return 0
display_alert "$BOARD" "Creating BT firmware symlink for edge kernel" "info"
mkdir -p "$SDCARD/lib/firmware/brcm"
ln -sf SYN43711A0.hcd "$SDCARD/lib/firmware/brcm/BCM.xunlong,orangepi-5-ultra.hcd"
return 0
}