armbian-build/config/sources/families/meson-sm1.conf
Ricardo Pardini 78a320b1fd
edge: ODROID N2/N2+ mainline U-boot; keep odroid-2015 u-boot for legacy and current
- Armbian already had all the FIP-magic needed, just use it.
- Introduce USE_ODROID_UBOOT with a list of branches that use Odroid's 2015 u-boot
  - this is mostly in preparation for non-Odroid G12B/meson64 boards (Khadas VIM3...)
  - In case $BRANCH is listed in USE_ODROID_UBOOT:
    - use BOOTCONFIG_ODROID and BOOTSCRIPT_ODROID from board.conf
    - build 2015 u-boot just like before
- Small hack into boot-meson64.cmd to handle u-boot vs kernel: n2_plus vs n2-plus DTB/FDT naming mismatch
 - overrides the default $fdtfile based on $variant
 - armbianEnv still has final say if $fdtfile is set there (it isn't for n2/n2plus)
- Extra:
 - remove unused n2-mainline bootscript (maybe from a previous try?)
 - comments about FIP trees being identical across N2/N2Plus and C4/HC4 families so no future time wastage
 - only set CPUMIN/CPUMAX/GOVERNOR in meson64_common.inc if not already set by the board.conf
 - Add some ${bootargs} debugging to mainline/default boot-meson64.cmd

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>
2021-07-07 19:55:58 +02:00

27 lines
651 B
Plaintext

source "${BASH_SOURCE%/*}/include/meson64_common.inc"
ASOUND_STATE="asound.state.meson64"
CPUMIN=667000
CPUMAX=2100000
GOVERNOR=ondemand
[[ ${BRANCH} == legacy ]] && SERIALCON=ttyS0
family_tweaks()
{
:
}
uboot_custom_postprocess()
{
# FIP trees for C4 and HC4 are identical as of 30/06/2021
if [[ $BOARD == odroid-c4 ]]; then
uboot_g12_postprocess $SRC/cache/sources/amlogic-boot-fip/odroid-c4 g12a
fi
if [[ $BOARD == odroid-hc4 ]]; then
uboot_g12_postprocess $SRC/cache/sources/amlogic-boot-fip/odroid-hc4 g12a
fi
if [[ $BOARD == khadas-vim3l ]]; then
uboot_g12_postprocess $SRC/cache/sources/amlogic-boot-fip/khadas-vim3l g12a
fi
}