armbian-build/config/sources/families/meson-sm1.conf
Igor Pečovnik 6c26c35344
Add initial support for Odroid N2+ (#2130)
* Add initial support for Odroid N2+
* Update C4 config and test booting
* Updates to C4, N2, N2+
- merge C4 and N2 legacy under meson64, same u-boot
- upgrade legacy kernel to meed DTB from mainline
- merge N2 and N2+, add a hack to display + in motd when N2+ is detected
- shortly spin N2 fan at startup
- merged N2 mainline and legacy boot script
- add upstream patches
* One of the regulators were breaking booting of Odroid N2
Co-authored-by: Werner <EvilOlaf@users.noreply.github.com>
2020-08-08 17:20:00 +02:00

48 lines
949 B
Plaintext

source "${BASH_SOURCE%/*}/include/meson64_common.inc"
ASOUND_STATE="asound.state.meson64"
CPUMIN=667000
CPUMAX=2016000
GOVERNOR=ondemand
if [[ $BRANCH == legacy ]]; then
OVERLAY_PREFIX='meson/odroidc4'
BOOTCONFIG="odroidc4_defconfig"
BOOTSCRIPT="boot-odroid-c4.ini:boot.ini"
UBOOT_TARGET_MAP=';;sd_fuse/u-boot.bin'
SERIALCON=ttyS0
UBOOT_USE_GCC='< 4.9'
UBOOT_TOOLCHAIN2="arm-none-eabi-:< 5.0"
UBOOT_COMPILER="aarch64-none-elf-"
BOOTSOURCE='https://github.com/hardkernel/u-boot.git'
BOOTBRANCH='branch:odroidg12-v2015.01'
BOOTPATCHDIR='u-boot-odroid'
BOOTDIR='u-boot-odroid'
# unstable EXT4 support
BOOTSIZE="200"
BOOTFS_TYPE="fat"
write_uboot_platform()
{
dd if=$1/u-boot.bin of=$2 bs=512 seek=1 conv=fsync > /dev/null 2>&1
}
fi
family_tweaks()
{
:
}
uboot_custom_postprocess()
{
if [[ $BOARD == odroidc4 && $BRANCH != legacy ]]; then
uboot_g12_postprocess $SRC/cache/sources/amlogic-boot-fip/odroid-c4 g12a
fi
}