-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Introduce RK3562 family and KICKPI K3B #10142
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
retro98boy
wants to merge
1
commit into
armbian:main
Choose a base branch
from
retro98boy:kickpi-k3b
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,44 @@ | ||
| # Rockchip RK3562 DDR3 eMMC GBE SWT6621S WLAN/BT | ||
| BOARD_NAME="KICKPI K3B" | ||
| BOARD_VENDOR="kickpi" | ||
| BOARDFAMILY="rk35xx" | ||
| BOARD_MAINTAINER="retro98boy" | ||
| INTRODUCED="2026" | ||
| BOOTCONFIG="kickpi-k3b-rk3562_defconfig" | ||
| KERNEL_TARGET="vendor" | ||
| KERNEL_TEST_TARGET="vendor" | ||
| FULL_DESKTOP="yes" | ||
| BOOT_LOGO="desktop" | ||
| BOOT_FDT_FILE="rockchip/rk3562-kickpi-k3b.dtb" | ||
| BOOT_SCENARIO="spl-blobs" | ||
| BOOT_SOC="rk3562" | ||
| IMAGE_PARTITION_TABLE="gpt" | ||
| enable_extension "seekwave-swt6621s-dkms" | ||
| SWT6621S_TYPE="SDIO" | ||
| PACKAGE_LIST_BOARD="alsa-ucm-conf" | ||
|
|
||
| function post_family_config__kickpi-k3b() { | ||
| declare -g OVERLAY_PREFIX="rk3562-kickpi-k3b" | ||
| # Default DSI panel overlay. | ||
| declare -g DEFAULT_OVERLAYS="sq101p-x4ei451-84h501" | ||
| } | ||
|
|
||
| function post_family_tweaks_bsp__kickpi-k3b() { | ||
| display_alert "${BOARD}" "Installing ALSA UCM configuration files" "info" | ||
|
|
||
| install -Dm644 "${SRC}/packages/bsp/kickpi-k3b/kickpi-k3b-HiFi.conf" \ | ||
| "${destination}/usr/share/alsa/ucm2/Rockchip/kickpi-k3b/kickpi-k3b-HiFi.conf" | ||
| install -Dm644 "${SRC}/packages/bsp/kickpi-k3b/kickpi-k3b.conf" \ | ||
| "${destination}/usr/share/alsa/ucm2/Rockchip/kickpi-k3b/kickpi-k3b.conf" | ||
|
|
||
| mkdir -p "${destination}/usr/share/alsa/ucm2/conf.d/kickpi-k3b" | ||
| ln -sfv ../../Rockchip/kickpi-k3b/kickpi-k3b.conf \ | ||
| "${destination}/usr/share/alsa/ucm2/conf.d/kickpi-k3b/kickpi-k3b.conf" | ||
| } | ||
|
|
||
| function post_family_tweaks__kickpi-k3b() { | ||
| echo -e "panel_simple\njadard_touch" > "${SDCARD}/etc/modules-load.d/panel.conf" | ||
| # The JD9366 touch driver must be probed after the display driver. | ||
| # Otherwise, I2C communication will fail. | ||
| echo "softdep jadard_touch pre: panel_simple" > "${SDCARD}/etc/modprobe.d/jadard_touch-dependencies.conf" | ||
| } |
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
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
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,94 @@ | ||
| # SPDX-License-Identifier: GPL-2.0 | ||
| # | ||
| # SeekWave SWT6621S DKMS driver | ||
| # | ||
| # For SWT6621S_TYPE=SDIO, this extension downloads a pinned commit from: | ||
| # retro98boy/seekwave-swt6621s.git | ||
| # | ||
| # For SWT6621S_TYPE=USB, it currently skips with an informational message. | ||
|
|
||
| # Branch: kickpi-k3b-sdio-uart, Commit date: Jul 16, 2026 | ||
| readonly SEEKWAVE_SWT6621S_COMMIT="b1b15016119cb21965fc64dd374e42f46f011bb4" | ||
|
|
||
| function extension_finish_config__install_seekwave_swt6621s_dkms() { | ||
| if [[ "${SWT6621S_TYPE}" == "USB" ]]; then | ||
| display_alert "SWT6621S_TYPE=USB is not supported yet" "skipping seekwave-swt6621s dkms" "info" | ||
| return 0 | ||
| fi | ||
|
|
||
| if [[ "${SWT6621S_TYPE}" != "SDIO" ]]; then | ||
| display_alert "Unknown SWT6621S_TYPE='${SWT6621S_TYPE}'" "skipping seekwave-swt6621s dkms" "warn" | ||
| return 0 | ||
| fi | ||
|
|
||
| if [[ "${KERNEL_HAS_WORKING_HEADERS}" != "yes" ]]; then | ||
| display_alert "Kernel version has no working headers package" "skipping seekwave-swt6621s dkms for kernel v${KERNEL_MAJOR_MINOR}" "warn" | ||
| return 0 | ||
| fi | ||
|
|
||
| declare -g INSTALL_HEADERS="yes" | ||
| display_alert "Forcing INSTALL_HEADERS=yes; for use with seekwave-swt6621s dkms" "${EXTENSION}" "debug" | ||
|
|
||
| local seekwave_cache_dir="${SRC}/cache/seekwave-swt6621s-dkms" | ||
| local seekwave_tarball_url="${GITHUB_SOURCE}/retro98boy/seekwave-swt6621s/archive/${SEEKWAVE_SWT6621S_COMMIT}.tar.gz" | ||
|
|
||
| display_alert "Downloading SeekWave SWT6621S SDIO source" "${seekwave_tarball_url}" "info" | ||
| run_host_command_logged mkdir -p "${seekwave_cache_dir}" | ||
| run_host_command_logged curl -fsSL --progress-bar "${seekwave_tarball_url}" -o "${seekwave_cache_dir}/source.tar.gz" | ||
| } | ||
|
|
||
| function post_install_kernel_debs__install_seekwave_swt6621s_dkms_package() { | ||
| if [[ "${SWT6621S_TYPE}" == "USB" ]]; then | ||
| return 0 | ||
| fi | ||
|
|
||
| if [[ "${SWT6621S_TYPE}" != "SDIO" ]]; then | ||
| return 0 | ||
| fi | ||
|
|
||
| if [[ "${INSTALL_HEADERS}" != "yes" || "${KERNEL_HAS_WORKING_HEADERS}" != "yes" ]]; then | ||
| return 0 | ||
| fi | ||
|
|
||
| display_alert "Installing SeekWave SWT6621S DKMS driver" "${EXTENSION}" "info" | ||
|
|
||
| use_clean_environment="yes" chroot_sdcard_apt_get_install "dkms" | ||
|
|
||
| local seekwave_cache_dir="${SRC}/cache/seekwave-swt6621s-dkms" | ||
| cp "${seekwave_cache_dir}/source.tar.gz" "${SDCARD}/tmp/seekwave-swt6621s.tar.gz" | ||
|
|
||
| use_clean_environment="yes" chroot_sdcard "mkdir -p /usr/src/seekwave-swt6621s-1.0.0" | ||
| use_clean_environment="yes" chroot_sdcard "tar -xzf /tmp/seekwave-swt6621s.tar.gz -C /tmp/" | ||
| use_clean_environment="yes" chroot_sdcard "cp -a /tmp/seekwave-swt6621s-${SEEKWAVE_SWT6621S_COMMIT}/. /usr/src/seekwave-swt6621s-1.0.0/" | ||
| use_clean_environment="yes" chroot_sdcard "rm -rf /tmp/seekwave-swt6621s.tar.gz /tmp/seekwave-swt6621s-${SEEKWAVE_SWT6621S_COMMIT}" | ||
|
|
||
| declare -ag if_error_find_files_sdcard=("/var/lib/dkms/seekwave-swt6621s*/*/build/*.log") | ||
| display_alert "Building SeekWave SWT6621S kernel modules via DKMS" "${EXTENSION}" "info" | ||
|
|
||
| if [[ -z "${IMAGE_INSTALLED_KERNEL_VERSION}" ]]; then | ||
| display_alert "Cannot determine target kernel version" "SeekWave SWT6621S DKMS build skipped" "warn" | ||
| return 0 | ||
| fi | ||
| local target_kver="${IMAGE_INSTALLED_KERNEL_VERSION}-${BRANCH}-${LINUXFAMILY}" | ||
| display_alert "Target kernel version for DKMS" "${target_kver}" "debug" | ||
|
|
||
| use_clean_environment="yes" chroot_sdcard "dkms add -m seekwave-swt6621s -v 1.0.0" | ||
| use_clean_environment="yes" chroot_sdcard "dkms build -m seekwave-swt6621s -v 1.0.0 -k ${target_kver}" | ||
| use_clean_environment="yes" chroot_sdcard "dkms install -m seekwave-swt6621s -v 1.0.0 -k ${target_kver}" | ||
|
|
||
| cat > "${SDCARD}/etc/modules-load.d/swt6621s-sdio-uart.conf" <<- 'EOF' | ||
| skw_sdio_lite | ||
| swt6621s_wifi | ||
| skwbt | ||
| EOF | ||
|
|
||
| cat > "${SDCARD}/etc/modprobe.d/swt6621s-sdio-uart.conf" <<- 'EOF' | ||
| options skw_sdio_lite firmware_dir=seekwave | ||
| options swt6621s_wifi firmware_dir=seekwave | ||
| options skwbt firmware_dir=seekwave | ||
| softdep swt6621s_wifi pre: skw_sdio_lite | ||
| softdep skwbt pre: swt6621s_wifi | ||
| EOF | ||
|
|
||
| display_alert "SeekWave SWT6621S DKMS driver installed" "${EXTENSION}" "info" | ||
| } | ||
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,42 @@ | ||
| SectionVerb { | ||
| Value { | ||
| TQ "HiFi" | ||
| } | ||
| } | ||
|
|
||
| SectionDevice."Speaker" { | ||
| Comment "Speaker" | ||
|
|
||
| ConflictingDevice [ | ||
| "Headphones" | ||
| ] | ||
|
|
||
| Value { | ||
| PlaybackPriority 100 | ||
| PlaybackPCM "hw:${CardId},0" | ||
| PlaybackMixerElem "DAC" | ||
| } | ||
|
|
||
| EnableSequence [ | ||
| cset "name='Playback Path' 'SPK'" | ||
| ] | ||
| } | ||
|
|
||
| SectionDevice."Headphones" { | ||
| Comment "Headphones" | ||
|
|
||
| ConflictingDevice [ | ||
| "Speaker" | ||
| ] | ||
|
|
||
| Value { | ||
| PlaybackPriority 200 | ||
| PlaybackPCM "hw:${CardId},0" | ||
| PlaybackMixerElem "DAC" | ||
| JackControl "Headphone Jack" | ||
| } | ||
|
|
||
| EnableSequence [ | ||
| cset "name='Playback Path' 'HP'" | ||
| ] | ||
| } |
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,13 @@ | ||
| Syntax 4 | ||
|
|
||
| Comment "KICKPI K3B Sound" | ||
|
|
||
| SectionUseCase."HiFi" { | ||
| File "/Rockchip/kickpi-k3b/kickpi-k3b-HiFi.conf" | ||
| Comment "Play HiFi quality music" | ||
| } | ||
|
|
||
| BootSequence [ | ||
| cset "name='DAC Playback Volume' 252" | ||
| cset "name='Playback Path' 'HP'" | ||
| ] |
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.