forked from armbian/build
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d318f0b
commit fa847e5
Showing
3 changed files
with
85 additions
and
1 deletion.
There are no files selected for viewing
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,45 @@ | ||
# Synaptics VS680 SoC quad core A73(2.1Ghz) 4GB SoC eMMC USB3 | ||
BOARD_NAME="Banana Pi M6" | ||
BOARDFAMILY="vs680" | ||
VENDOR="Armbian-bpi-senarytech" | ||
BOOTCONFIG="vs680_oemboot_c05_defconfig" | ||
KERNEL_TARGET="legacy" | ||
FULL_DESKTOP="yes" | ||
BOOT_LOGO="desktop" | ||
WIREGUARD="no" | ||
# | ||
OFFSET="100" | ||
BOOT_FS_LABEL="BPI-BOOT" | ||
ROOT_FS_LABEL="BPI-ROOT" | ||
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' | ||
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" | ||
} |
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