WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 527c131

Browse files
committed
Move gxlimg to board level and some clean
1 parent 66f6d7e commit 527c131

File tree

3 files changed

+21
-15
lines changed

3 files changed

+21
-15
lines changed

config/boards/bestv-r3300-l.csc

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@ SERIALCON="ttyAML0"
1010
BOOT_LOGO="desktop"
1111
BOOT_FDT_FILE="amlogic/meson-gxl-s905x-bestv-r3300-l.dtb"
1212
PACKAGE_LIST_BOARD="alsa-ucm-conf" # Contain ALSA UCM top-level configuration file
13-
1413
BOOTBRANCH_BOARD="tag:v2025.04"
15-
BOOTPATCHDIR="v2025.04" # This has a patch that adds support for BesTV R3300-L.
14+
BOOTPATCHDIR="v2025.04"
15+
16+
enable_extension "gxlimg"
17+
enable_extension "amlogic-fip-blobs"
1618

1719
function post_family_config__use_repacked_fip() {
1820
declare -g UBOOT_TARGET_MAP="u-boot.bin"
@@ -24,22 +26,24 @@ function post_family_config__use_repacked_fip() {
2426
}
2527

2628
function post_uboot_custom_postprocess__repack_vendor_fip_with_mainline_uboot() {
27-
gxlimg_repack_fip_with_new_uboot "${SRC}/cache/sources/amlogic-fip-blobs/bestv-r3300-l/bootloader.PARTITION" gxl
29+
gxlimg_repack_fip_with_new_uboot \
30+
"${SRC}/cache/sources/amlogic-fip-blobs/bestv-r3300-l/bootloader.PARTITION" \
31+
gxl
2832
}
2933

3034
function post_family_tweaks_bsp__bestv-r3300-l() {
3135
display_alert "${BOARD}" "Installing ALSA UCM configuration files" "info"
3236

33-
# Use ALSA UCM via GUI: Install a desktop environment such as GNOME, PipeWire, and WirePlumber.
34-
3537
# Use ALSA UCM via CLI:
3638
# alsactl init && alsaucm set _verb "HiFi" set _enadev "HDMI"
3739
# or
3840
# alsactl init && alsaucm set _verb "HiFi" set _enadev "Lineout"
3941
# playback: aplay -D plughw:S905XP212,0 /usr/share/sounds/alsa/Front_Center.wav
4042

41-
install -Dm644 "${SRC}/packages/bsp/S905X-P212/S905X-P212-HiFi.conf" "${destination}/usr/share/alsa/ucm2/Amlogic/gx-sound-card/S905X-P212-HiFi.conf"
42-
install -Dm644 "${SRC}/packages/bsp/S905X-P212/S905X-P212.conf" "${destination}/usr/share/alsa/ucm2/Amlogic/gx-sound-card/S905X-P212.conf"
43+
install -Dm644 "${SRC}/packages/bsp/S905X-P212/S905X-P212-HiFi.conf" \
44+
"${destination}/usr/share/alsa/ucm2/Amlogic/gx-sound-card/S905X-P212-HiFi.conf"
45+
install -Dm644 "${SRC}/packages/bsp/S905X-P212/S905X-P212.conf" \
46+
"${destination}/usr/share/alsa/ucm2/Amlogic/gx-sound-card/S905X-P212.conf"
4347

4448
if [ ! -d "${destination}/usr/share/alsa/ucm2/conf.d/gx-sound-card" ]; then
4549
mkdir -p "${destination}/usr/share/alsa/ucm2/conf.d/gx-sound-card"

config/boards/cainiao-cniot-core.csc

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,12 @@ SERIALCON="ttyAML0"
1111
BOOT_LOGO="desktop"
1212
BOOT_FDT_FILE="amlogic/meson-g12b-a311d-cainiao-cniot-core.dtb"
1313
PACKAGE_LIST_BOARD="alsa-ucm-conf" # Contain ALSA UCM top-level configuration file
14-
1514
BOOTBRANCH_BOARD="tag:v2025.04"
1615
BOOTPATCHDIR="v2025.04"
1716

17+
enable_extension "gxlimg"
18+
enable_extension "amlogic-fip-blobs"
19+
1820
function post_family_config__use_repacked_fip() {
1921
declare -g UBOOT_TARGET_MAP="u-boot.bin"
2022
unset write_uboot_platform
@@ -25,20 +27,22 @@ function post_family_config__use_repacked_fip() {
2527
}
2628

2729
function post_uboot_custom_postprocess__repack_vendor_fip_with_mainline_uboot() {
28-
gxlimg_repack_fip_with_new_uboot "${SRC}/cache/sources/amlogic-fip-blobs/cainiao-cniot-core/DDR.USB" g12b
30+
gxlimg_repack_fip_with_new_uboot \
31+
"${SRC}/cache/sources/amlogic-fip-blobs/cainiao-cniot-core/DDR.USB" \
32+
g12b
2933
}
3034

3135
function post_family_tweaks_bsp__cainiao-cniot-core() {
3236
display_alert "${BOARD}" "Installing ALSA UCM configuration files" "info"
3337

34-
# Use ALSA UCM via GUI: Install a desktop environment such as GNOME, PipeWire, and WirePlumber.
35-
3638
# Use ALSA UCM via CLI: alsactl init && alsaucm set _verb "HiFi" set _enadev "HDMI" set _enadev "Speaker"
3739
# playback via HDMI: aplay -D plughw:cainiaocniotcor,0 /usr/share/sounds/alsa/Front_Center.wav
3840
# playback via internal speaker: aplay -D plughw:cainiaocniotcor,1 /usr/share/sounds/alsa/Front_Center.wav
3941

40-
install -Dm644 "${SRC}/packages/bsp/cainiao-cniot-core/cainiao-cniot-core-HiFi.conf" "${destination}/usr/share/alsa/ucm2/Amlogic/axg-sound-card/cainiao-cniot-core-HiFi.conf"
41-
install -Dm644 "${SRC}/packages/bsp/cainiao-cniot-core/cainiao-cniot-core.conf" "${destination}/usr/share/alsa/ucm2/Amlogic/axg-sound-card/cainiao-cniot-core.conf"
42+
install -Dm644 "${SRC}/packages/bsp/cainiao-cniot-core/cainiao-cniot-core-HiFi.conf" \
43+
"${destination}/usr/share/alsa/ucm2/Amlogic/axg-sound-card/cainiao-cniot-core-HiFi.conf"
44+
install -Dm644 "${SRC}/packages/bsp/cainiao-cniot-core/cainiao-cniot-core.conf" \
45+
"${destination}/usr/share/alsa/ucm2/Amlogic/axg-sound-card/cainiao-cniot-core.conf"
4246

4347
if [ ! -d "${destination}/usr/share/alsa/ucm2/conf.d/axg-sound-card" ]; then
4448
mkdir -p "${destination}/usr/share/alsa/ucm2/conf.d/axg-sound-card"

config/sources/families/include/meson64_common.inc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
# This file is a part of the Armbian Build Framework
77
# https://github.com/armbian/build/
88
#
9-
enable_extension "gxlimg"
10-
enable_extension "amlogic-fip-blobs"
119
UBOOT_TARGET_MAP="${UBOOT_TARGET_MAP:-u-boot-dtb.img;;u-boot.bin.sd.bin:u-boot.bin u-boot-dtb.img}"
1210
BOOTSCRIPT="boot-meson64.cmd:boot.cmd"
1311
BOOTENV_FILE='meson.txt'

0 commit comments

Comments
 (0)