-
-
Notifications
You must be signed in to change notification settings - Fork 3k
SC8280XP: Initial refactor from board to family config #9818
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
Open
HeyMeco
wants to merge
3
commits into
armbian:main
Choose a base branch
from
HeyMeco:radxa-dragon-q8b
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,58 @@ | ||
| # Qualcomm Snapdragon 8cx Gen 3 Adreno 690 Radxa Dragon Q8B | ||
| declare -g BOARD_NAME="Radxa Dragon Q8B" | ||
| declare -g BOARD_VENDOR="radxa" | ||
| declare -g BOARD_MAINTAINER="HeyMeco" | ||
| declare -g INTRODUCED="2026" | ||
| declare -g BOARDFAMILY="sc8280xp" | ||
| declare -g KERNEL_TARGET="vendor" | ||
|
|
||
| declare -g BOOT_FDT_FILE="qcom/sc8280xp-radxa-dragon-q8b.dtb" | ||
|
|
||
| function post_family_tweaks_bsp__radxa_dragon_q8b_bluetooth_addr() { | ||
| ### The bluetooth does not have a public MAC address set in DT, and BT won't start without one. | ||
| ### Use a systemd override to hook up setting a public-addr before starting bluetoothd | ||
| declare random_mac_address="" # would be much better to rnd mac on board-side though | ||
| random_mac_address=$(printf '02:%02X:%02X:%02X:%02X:%02X' $((RANDOM % 256)) $((RANDOM % 256)) $((RANDOM % 256)) $((RANDOM % 256)) $((RANDOM % 256))) | ||
| display_alert "Adding systemd override for bluetooth public address init" "${BOARD} :: bt mac ${random_mac_address}" "info" | ||
|
|
||
| add_file_from_stdin_to_bsp_destination "/etc/systemd/system/bluetooth.service.d/override.conf" <<- EOD | ||
| [Service] | ||
| ExecStartPre=/bin/bash -c 'sleep 5 && yes | btmgmt public-addr ${random_mac_address}' | ||
| EOD | ||
| } | ||
|
|
||
| ## | ||
| ## Download sc8280xp firmware from radxa-pkg/radxa-firmware into the BSP package | ||
| ## | ||
| function post_family_tweaks_bsp__radxa_dragon_q8b_download_firmware() { | ||
| display_alert "Downloading sc8280xp firmware" "${BOARD}: radxa-pkg/radxa-firmware" "info" | ||
| declare fw_base_url="https://raw.githubusercontent.com/radxa-pkg/radxa-firmware/main/radxa-firmware-sc8280xp/lib/firmware/qcom/sc8280xp" | ||
| declare fw_dest="${destination}/lib/firmware/qcom/sc8280xp" | ||
|
|
||
| run_host_command_logged mkdir -pv "${fw_dest}" "${fw_dest}/radxa/dragon-q8b" | ||
|
|
||
| for fw in qccdsp8280.mbn qcdxkmsuc8280.mbn qcslpi8280.mbn qcvss8280.mbn; do | ||
| run_host_command_logged wget -q --show-progress "${fw_base_url}/${fw}" -O "${fw_dest}/${fw}" | ||
| done | ||
|
|
||
| run_host_command_logged wget -q --show-progress \ | ||
| "${fw_base_url}/radxa/dragon-q8b/qcadsp8280.mbn" \ | ||
| -O "${fw_dest}/radxa/dragon-q8b/qcadsp8280.mbn" | ||
| } | ||
|
|
||
| ## Include board-specific firmware in the initrd | ||
| function post_family_tweaks_bsp__radxa_dragon_q8b_firmware_in_initrd() { | ||
| display_alert "Adding to bsp-cli" "${BOARD}: board firmware in initrd" "info" | ||
| declare file_added_to_bsp_destination | ||
| add_file_from_stdin_to_bsp_destination "/etc/initramfs-tools/hooks/q8b-firmware" <<- 'FIRMWARE_HOOK' | ||
| #!/bin/bash | ||
| [[ "$1" == "prereqs" ]] && exit 0 | ||
| . /usr/share/initramfs-tools/hook-functions | ||
| for f in /lib/firmware/qcom/sc8280xp/*.mbn \ | ||
| /lib/firmware/qcom/sc8280xp/radxa/dragon-q8b/* ; do | ||
| add_firmware "${f#/lib/firmware/}" | ||
| done | ||
| FIRMWARE_HOOK | ||
| run_host_command_logged chmod -v +x "${file_added_to_bsp_destination}" | ||
| } | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add KERNEL_TEST_TARGET for CI coverage.
Pipeline validation recommends adding
KERNEL_TEST_TARGETto specify which kernel branches should be tested for this board. Since this board usesKERNEL_TARGET="vendor", consider adding:📋 Proposed addition
declare -g BOARDFAMILY="sc8280xp" declare -g KERNEL_TARGET="vendor" +declare -g KERNEL_TEST_TARGET="vendor"🧰 Tools
🪛 GitHub Actions: Validate board configs / 0_Validate changed board configs.txt
[warning] 1-1: validate-board-config.py: KERNEL_TEST_TARGET: recommended, comma-separated list of branches to test (e.g. current,edge)
🪛 GitHub Actions: Validate board configs / Validate changed board configs
[warning] 1-1: KERNEL_TEST_TARGET: recommended, comma-separated list of branches to test (e.g. current,edge)
🪛 GitHub Check: Validate changed board configs
[warning] 1-1:
KERNEL_TEST_TARGET: recommended, comma-separated list of branches to test (e.g. current,edge)
🤖 Prompt for AI Agents