Skip to content

Commit

Permalink
add bananapim6astra2.conf for sl1620 v1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
BPI-SINOVOIP committed Jan 4, 2025
1 parent 62e90e3 commit 4d3d485
Show file tree
Hide file tree
Showing 58 changed files with 511 additions and 0 deletions.
52 changes: 52 additions & 0 deletions config/boards/bananapim6astra2-cn.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Synaptics SL1620 SoC quad core A73(2.1Ghz) 4GB SoC eMMC USB3
BOARD_NAME="Banana Pi M6PRO SL1620 EVK"
BOARDFAMILY="sl1620v4"
VENDOR="Armbian-bpi-senarytech"
BOOTCONFIG="vs680_oemboot_c05_defconfig"
KERNEL_TARGET="legacy"
FULL_DESKTOP="yes"
BOOT_LOGO="desktop"
WIREGUARD="no"
#
USE_HOOK_FOR_PARTITION="yes"
rootpart=12
FIXED_IMAGE_SIZE=9137
IMAGE_PARTITION_TABLE="gpt"
#OFFSET="100"
#BOOT_FS_LABEL="BPI-BOOT"
ROOT_FS_LABEL="rootfs_a"
#BOOTSIZE="256"
SKIP_BOOTSPLASH="yes" # Skip boot splash patch, conflicts with CONFIG_VT=yes
#BOOTFS_TYPE="fat"
#
declare -g INSTALL_ARMBIAN_FIRMWARE=no
declare -g ARMBIAN_CONFIG_SOURCE="https://gitee.com/bananapi/config"

function post_family_tweaks__bananapim6_naming_audios() {
display_alert "$BOARD" "Renaming bananapim6 audios" "info"

mkdir -p $SDCARD/etc/udev/rules.d/
echo 'SUBSYSTEM=="sound", ENV{ID_PATH}=="platform-hdmi0-sound", ENV{SOUND_DESCRIPTION}="HDMI0 Audio"' > $SDCARD/etc/udev/rules.d/90-naming-audios.rules
echo 'SUBSYSTEM=="sound", ENV{ID_PATH}=="platform-hdmi1-sound", ENV{SOUND_DESCRIPTION}="HDMI1 Audio"' >> $SDCARD/etc/udev/rules.d/90-naming-audios.rules
echo 'SUBSYSTEM=="sound", ENV{ID_PATH}=="platform-hdmiin-sound", ENV{SOUND_DESCRIPTION}="HDMI-In Audio"' >> $SDCARD/etc/udev/rules.d/90-naming-audios.rules
echo 'SUBSYSTEM=="sound", ENV{ID_PATH}=="platform-dp0-sound", ENV{SOUND_DESCRIPTION}="DP0 Audio"' >> $SDCARD/etc/udev/rules.d/90-naming-audios.rules
echo 'SUBSYSTEM=="sound", ENV{ID_PATH}=="platform-es8316-sound", ENV{SOUND_DESCRIPTION}="ES8316 Audio"' >> $SDCARD/etc/udev/rules.d/90-naming-audios.rules

return 0
}

# Override family config for this board; let's avoid conditionals in family config.
function post_family_config__bananapim6_use_vendor_uboot() {
#BOOTSOURCE='https://github.com/BPI-SINOVOIP/pi-u-boot.git'
BOOTSOURCE='https://gitee.com/bananapi/pi-u-boot.git'
BOOTBRANCH='branch:v2019.10-vs680-hdmi-rx'
BOOTPATCHDIR="legacy"
}

function post_family_config__bananapim6_use_vendor_kernel() {
declare -g KERNEL_MAJOR_MINOR="5.4" # Major and minor versions of this kernel.
#KERNELSOURCE='https://github.com/BPI-SINOVOIP/pi-linux.git'
KERNELSOURCE='https://gitee.com/bananapi/pi-linux.git'
KERNELBRANCH='branch:pi-5.4-vs680-hdmi-rx'
KERNELPATCHDIR="legacy"
}
47 changes: 47 additions & 0 deletions config/boards/bananapim6astra2.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Synaptics SL1620 SoC quad core A73(2.1Ghz) 4GB SoC eMMC USB3
BOARD_NAME="Banana Pi M6PRO SL1620 EVK"
BOARDFAMILY="sl1620v4"
VENDOR="Armbian-bpi-senarytech"
BOOTCONFIG="vs680_oemboot_c05_defconfig"
KERNEL_TARGET="legacy"
FULL_DESKTOP="yes"
BOOT_LOGO="desktop"
WIREGUARD="no"
#
USE_HOOK_FOR_PARTITION="yes"
rootpart=12
FIXED_IMAGE_SIZE=9137
IMAGE_PARTITION_TABLE="gpt"
#OFFSET="100"
#BOOT_FS_LABEL="BPI-BOOT"
ROOT_FS_LABEL="rootfs_a"
#BOOTSIZE="256"
SKIP_BOOTSPLASH="yes" # Skip boot splash patch, conflicts with CONFIG_VT=yes
#BOOTFS_TYPE="fat"

function post_family_tweaks__bananapim6_naming_audios() {
display_alert "$BOARD" "Renaming bananapim6 audios" "info"

mkdir -p $SDCARD/etc/udev/rules.d/
echo 'SUBSYSTEM=="sound", ENV{ID_PATH}=="platform-hdmi0-sound", ENV{SOUND_DESCRIPTION}="HDMI0 Audio"' > $SDCARD/etc/udev/rules.d/90-naming-audios.rules
echo 'SUBSYSTEM=="sound", ENV{ID_PATH}=="platform-hdmi1-sound", ENV{SOUND_DESCRIPTION}="HDMI1 Audio"' >> $SDCARD/etc/udev/rules.d/90-naming-audios.rules
echo 'SUBSYSTEM=="sound", ENV{ID_PATH}=="platform-hdmiin-sound", ENV{SOUND_DESCRIPTION}="HDMI-In Audio"' >> $SDCARD/etc/udev/rules.d/90-naming-audios.rules
echo 'SUBSYSTEM=="sound", ENV{ID_PATH}=="platform-dp0-sound", ENV{SOUND_DESCRIPTION}="DP0 Audio"' >> $SDCARD/etc/udev/rules.d/90-naming-audios.rules
echo 'SUBSYSTEM=="sound", ENV{ID_PATH}=="platform-es8316-sound", ENV{SOUND_DESCRIPTION}="ES8316 Audio"' >> $SDCARD/etc/udev/rules.d/90-naming-audios.rules

return 0
}

# Override family config for this board; let's avoid conditionals in family config.
function post_family_config__bananapim6_use_vendor_uboot() {
BOOTSOURCE='https://github.com/BPI-SINOVOIP/pi-u-boot.git'
BOOTBRANCH='branch:v2019.10-vs680-hdmi-rx'
BOOTPATCHDIR="legacy"
}

function post_family_config__bananapim6_use_vendor_kernel() {
declare -g KERNEL_MAJOR_MINOR="5.4" # Major and minor versions of this kernel.
KERNELSOURCE='https://github.com/BPI-SINOVOIP/pi-linux.git'
KERNELBRANCH='branch:pi-5.4-vs680-hdmi-rx'
KERNELPATCHDIR="legacy"
}
Loading

0 comments on commit 4d3d485

Please sign in to comment.