-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rockchip-rk3588: it's vendor boogie panthor time (experimental) (#6459)
* main-config: fix: avoid errors when BRANCH contains a dash; convert to underscore * rockchip64_common: shellfmt, no changes * rockchip64_common: move SERIALCON defaulting logic to a (verbose) hook for flexibility * config: allow to build BRANCHes not listed in KERNEL_TARGET as long as the config is valid - useful for `collabora` and other experimental kernels, we don't want to have to add it to each individual board's KERNEL_TARGES one by one - but we don't want to allow typos in BRANCH to emit very strange unrelated errors * extensions: mesa-oibaf extension by @monkaBlyat - mainline mesa PPA for Ubuntu - does nothing on Debian * extensions: (v3) amazingfated-rk35xx, now `rk-multimedia-amazingfate` - panfork-free - simply skips if not on Jammy - deploys Chromium + Widevine if desktop * rockchip-rk3588: introduce `vendor-boogie-panthor` experimental BRANCH/kernel - original: https://github.com/hbiyik/linux-rockchip.git (branch `rk-6.1-rkr1-panthor-v6`) - I picked the commits on top of clean armbian/linux-rockchip `6.1-rkr1` as of 2024-04-01 - At https://github.com/rpardini/armbian-linux-rockchip-rk3588/tree/armbian-rk-6.1-rkr1-plus-boogie-panthor-v6 - Diff: armbian/linux-rockchip@rk-6.1-rkr1...rpardini:armbian-linux-rockchip-rk3588:armbian-rk-6.1-rkr1-plus-boogie-panthor-v6 - rockchip-rk3588: introduce `boogie-bsp` BRANCH - rockchip-rk3588: copy linux-rk35xx-vendor.config into linux-rk35xx-boogie-bsp.config - rockchip-rk3588: update linux-rk35xx-boogie-bsp.config, no changes - rockchip-rk3588: linux-rk35xx-boogie-bsp.config: `CONFIG_DRM_PANTHOR=m` - rockchip-rk3588: linux-rk35xx-boogie-bsp.config: convert to defconfig - rockchip-rk3588: rename to `BRANCH=vendor-boogie-panthor` for "clarity" (lol) - rockchip-rk3588: vendor-boogie-panthor: force SERIALCON, full firmware (for blob needed for panthor) & mesa-oibaf extension - rockchip-rk3588: vendor-boogie-panthor: enable amazingfated-rk35xx extension sans-panfork
- Loading branch information
Showing
9 changed files
with
2,610 additions
and
100 deletions.
There are no files selected for viewing
2,359 changes: 2,359 additions & 0 deletions
2,359
config/kernel/linux-rk35xx-vendor-boogie-panthor.config
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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 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 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 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,37 @@ | ||
# | ||
# SPDX-License-Identifier: GPL-2.0 | ||
# Copyright (c) 2024 Ricardo Pardini <[email protected]> | ||
# Copyright (c) 2024 Monka | ||
# This file is a part of the Armbian Build Framework https://github.com/armbian/build/ | ||
|
||
# This add's oibaf PPAs to the the image, and installs all needed packages. | ||
# It only works with mainline mesa enabled kernels, eg, not legacy/vendor ones, usually. | ||
|
||
function extension_prepare_config__oibaf() { | ||
display_alert "Preparing oibaf extension" "${EXTENSION}" "info" | ||
|
||
if [[ "${DISTRIBUTION}" != "Ubuntu" ]]; then | ||
display_alert "oibaf" "${EXTENSION} extension only works with Ubuntu (currently '${DISTRIBUTION}'), skipping" "warn" | ||
return 0 | ||
fi | ||
|
||
# Add to the image suffix. | ||
EXTRA_IMAGE_SUFFIXES+=("-oibaf") # global array | ||
} | ||
|
||
function post_install_kernel_debs__oibaf() { | ||
if [[ "${DISTRIBUTION}" != "Ubuntu" ]]; then | ||
display_alert "oibaf" "${EXTENSION} extension only works with Ubuntu, skipping" "debug" | ||
return 0 | ||
fi | ||
|
||
display_alert "Adding oibaf PPAs" "${EXTENSION}" "info" | ||
do_with_retries 3 chroot_sdcard add-apt-repository ppa:oibaf/graphics-drivers --yes --no-update | ||
display_alert "Updating sources list, after oibaf PPAs" "${EXTENSION}" "info" | ||
do_with_retries 3 chroot_sdcard_apt_get_update | ||
display_alert "Installing oibaf packages" "${EXTENSION}" "info" | ||
do_with_retries 3 chroot_sdcard_apt_get_install glmark2-wayland glmark2-es2 glmark2-es2-wayland mesa-utils | ||
display_alert "Upgrading oibaf packages" "${EXTENSION}" "info" | ||
do_with_retries 3 chroot_sdcard_apt_get upgrade | ||
display_alert "Installed oibaf packages" "${EXTENSION}" "info" | ||
} |
This file contains 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,57 @@ | ||
# | ||
# SPDX-License-Identifier: GPL-2.0 | ||
# Copyright (c) 2023 Ricardo Pardini <[email protected]> | ||
# This file is a part of the Armbian Build Framework https://github.com/armbian/build/ | ||
# | ||
|
||
# This add's amazingfate's PPAs to the the image, and installs all needed packages. | ||
# It only works on LINUXFAMILY="rk3588-legacy" and RELEASE=jammy and BRANCH=legacy/vendor | ||
# if on a desktop, installs more useful packages, and tries to coerce lightdm to use gtk-greeter and a Wayland session. | ||
function extension_prepare_config__amazingfate_rk35xx_multimedia() { | ||
display_alert "Preparing amazingfate's PPAs for rk35xx multimedia" "${EXTENSION}" "info" | ||
EXTRA_IMAGE_SUFFIXES+=("-amazingfated") # Add to the image suffix. # global array | ||
|
||
[[ "${BUILDING_IMAGE}" != "yes" ]] && return 0 | ||
|
||
if [[ "${RELEASE}" != "jammy" ]]; then | ||
display_alert "skipping..." "${EXTENSION} not for ${RELEASE}, only jammy, skipping" "warn" | ||
return 0 | ||
fi | ||
|
||
if [[ "${LINUXFAMILY}" != "rockchip-rk3588" && "${LINUXFAMILY}" != "rk35xx" ]]; then | ||
exit_with_error "${EXTENSION} only works on LINUXFAMILY=rockchip-rk3588/rk35xx, currently on '${LINUXFAMILY}'" | ||
fi | ||
|
||
if [[ "${BRANCH}" != "legacy" && "${BRANCH}" != "vendor" && "${BRANCH}" != "vendor-boogie-panthor" ]]; then | ||
exit_with_error "${EXTENSION} only works on BRANCH=legacy/vendor/vendor-boogie-panthor, currently on '${BRANCH}'" | ||
fi | ||
} | ||
|
||
function post_install_kernel_debs__amazingfated_rk35xx_multimedia() { | ||
if [[ "${RELEASE}" != "jammy" ]]; then | ||
display_alert "skipping..." "${EXTENSION} not for ${RELEASE}, only jammy, skipping" "info" | ||
return 0 | ||
fi | ||
|
||
display_alert "Adding rockchip-multimedia by Amazingfate PPAs" "${EXTENSION}" "info" | ||
|
||
do_with_retries 3 chroot_sdcard add-apt-repository ppa:liujianfeng1994/rockchip-multimedia --yes --no-update | ||
|
||
display_alert "Updating sources list, after rockchip-multimedia by Amazingfate PPAs" "${EXTENSION}" "info" | ||
do_with_retries 3 chroot_sdcard_apt_get_update | ||
|
||
declare -a pkgs=(rockchip-multimedia-config) | ||
if [[ "${BUILD_DESKTOP}" == "yes" ]]; then | ||
pkgs+=(chromium-browser libwidevinecdm) | ||
fi | ||
|
||
display_alert "Installing rockchip-multimedia by Amazingfate packages" "${EXTENSION} :: ${pkgs[*]}" "info" | ||
do_with_retries 3 chroot_sdcard_apt_get_install "${pkgs[@]}" | ||
|
||
display_alert "Upgrading rockchip-multimedia by Amazingfate packages" "${EXTENSION}" "info" | ||
do_with_retries 3 chroot_sdcard_apt_get upgrade | ||
|
||
display_alert "Installed rockchip-multimedia by Amazingfate packages" "${EXTENSION}" "info" | ||
|
||
return 0 | ||
} |
This file contains 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 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
Oops, something went wrong.