orangepi5-ultra: enable Bluetooth on edge kernel via hci_bcm#9697
orangepi5-ultra: enable Bluetooth on edge kernel via hci_bcm#9697pdapandapda wants to merge 2 commits intoarmbian:mainfrom
Conversation
Here is the same patch with commit 76fc84a,because Orangepi 5 Ultra share the same AP6611s module with Orangepi 5 Max. Tested on the Ultra board, bluetooth just works with kernel 7.0.0
…th-on-edge-kernel-via-hci_bcm orangepi5-ultra: enable Bluetooth on edge kernel via hci_bcm
📝 WalkthroughWalkthroughModified Bluetooth configuration for Orange Pi 5 Ultra to conditionally handle firmware symlinks based on kernel branch, with edge branch variant creating a dedicated firmware symlink rather than enabling the standard Bluetooth service. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
config/boards/orangepi5-ultra.csc (1)
60-66: Use/lib/firmware/updates/brcm/instead to avoid conflicts with the Armbian firmware package.The Linux firmware loader searches
/lib/firmware/updates/with higher precedence than/lib/firmware/, and/lib/firmware/brcm/is owned by thearmbian-firmwarepackage. Dropping the symlink directly into/lib/firmware/brcm/risks it being overwritten on package upgrades.Keep the symlink target relative since
SYN43711A0.hcdis not explicitly provisioned in this build system. An absolute path (/lib/firmware/brcm/SYN43711A0.hcd) would create a broken symlink if the firmware file isn't present elsewhere on the rootfs.♻️ Suggested change
- mkdir -p "$SDCARD/lib/firmware/brcm" - ln -sf SYN43711A0.hcd "$SDCARD/lib/firmware/brcm/BCM.xunlong,orangepi-5-ultra.hcd" + mkdir -p "$SDCARD/lib/firmware/updates/brcm" + ln -sf ../SYN43711A0.hcd "$SDCARD/lib/firmware/updates/brcm/BCM.xunlong,orangepi-5-ultra.hcd"Also verify that the
SYN43711A0.hcdfirmware file is actually provisioned during the build, as it does not appear to be present inpackages/bsp/.Based on learning: pyavitz PR 8455 — use
/lib/firmware/updates/to avoid conflicts with armbian-firmware.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@config/boards/orangepi5-ultra.csc` around lines 60 - 66, In function post_family_tweaks__orangepi5ultra_bt_firmware_symlink(), stop creating the symlink under /lib/firmware/brcm and instead create the directory /lib/firmware/updates/brcm and place a relative symlink there (e.g. ln -sf SYN43711A0.hcd "$SDCARD/lib/firmware/updates/brcm/BCM.xunlong,orangepi-5-ultra.hcd"); ensure mkdir -p "$SDCARD/lib/firmware/updates/brcm" is used and the link target remains the bare relative filename SYN43711A0.hcd (not an absolute path); also verify that SYN43711A0.hcd is actually provisioned by the build (packages/bsp or equivalent) so the relative link will point to an available firmware file.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In `@config/boards/orangepi5-ultra.csc`:
- Around line 60-66: In function
post_family_tweaks__orangepi5ultra_bt_firmware_symlink(), stop creating the
symlink under /lib/firmware/brcm and instead create the directory
/lib/firmware/updates/brcm and place a relative symlink there (e.g. ln -sf
SYN43711A0.hcd
"$SDCARD/lib/firmware/updates/brcm/BCM.xunlong,orangepi-5-ultra.hcd"); ensure
mkdir -p "$SDCARD/lib/firmware/updates/brcm" is used and the link target remains
the bare relative filename SYN43711A0.hcd (not an absolute path); also verify
that SYN43711A0.hcd is actually provisioned by the build (packages/bsp or
equivalent) so the relative link will point to an available firmware file.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 435fb74b-2738-42dc-81e8-198a1ca5628f
📒 Files selected for processing (1)
config/boards/orangepi5-ultra.csc
Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
GitHub issue reference:
Jira reference number [AR-9999]
Documentation summary for feature / change
Please delete this section if entry to main documentation is not needed.
If documentation entry is predicted, please provide key elements for further implementation into main documentation and set label to "Needs Documentation". You are welcome to open a PR to documentation or you can leave following information for technical writer:
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Please also note any relevant details for your test configuration.
Checklist:
Please delete options that are not relevant.
Summary by CodeRabbit
Release Notes