# # SPDX-License-Identifier: GPL-2.0 # # Copyright (c) 2013-2023 Igor Pecovnik, igor@armbian.com # # This file is a part of the Armbian Build Framework # https://github.com/armbian/build/ # BOOTSOURCE='https://github.com/nxp-imx/uboot-imx.git' BOOTDIR='u-boot-sabre' BOOTCONFIG="mx7dsabresd_defconfig" #BOOTSCRIPT='boot-imx7d.cmd:boot.cmd' BOOTENV_FILE='imx7d.txt' ARCH=armhf UBOOT_TARGET_MAP=";;u-boot-dtb.imx" case $BRANCH in legacy) KERNELSOURCE='https://github.com/nxp-imx/linux-imx.git' declare -g KERNEL_MAJOR_MINOR="4.14" # Major and minor versions of this kernel. KERNELBRANCH='branch:imx_4.14.98_2.0.0_ga' KERNELDIR='linux-imx7' BOOTBRANCH='branch:imx_v2018.03_4.14.98_2.0.0_ga' BOOTPATCHDIR="legacy" ;; current) KERNELSOURCE='https://github.com/nxp-imx/linux-imx.git' declare -g KERNEL_MAJOR_MINOR="5.4" # Major and minor versions of this kernel. KERNELBRANCH='branch:imx_5.4.70_2.3.0' KERNELDIR='linux-imx7-current' BOOTBRANCH='branch:imx_v2020.04_5.4.70_2.3.0' BOOTPATCHDIR="v2020.04" ;; esac CPUMIN=396000 CPUMAX=996000 GOVERNOR=interactive SERIALCON=ttymxc0 write_uboot_platform() { dd if=$1/u-boot-dtb.imx of=$2 bs=1K seek=1 status=noxfer conv=fsync > /dev/null 2>&1 }