15a88ea32SEmmanuel Vadot#!/bin/sh 25a88ea32SEmmanuel Vadot# 35a88ea32SEmmanuel Vadot# 45a88ea32SEmmanuel Vadot 55a88ea32SEmmanuel VadotEMBEDDED_TARGET_ARCH="aarch64" 65a88ea32SEmmanuel VadotEMBEDDED_TARGET="arm64" 75a88ea32SEmmanuel VadotEMBEDDEDBUILD=1 890b924a1SEmmanuel VadotEMBEDDEDPORTS="sysutils/u-boot-pine64-lts" 95a88ea32SEmmanuel VadotFAT_SIZE="54m -b 1m" 105a88ea32SEmmanuel VadotFAT_TYPE="16" 11*1dfcff29SGlen BarberIMAGE_SIZE="5120M" 125a88ea32SEmmanuel VadotKERNEL="GENERIC" 135a88ea32SEmmanuel VadotMD_ARGS="-x 63 -y 255" 1444bef672SEmmanuel VadotPART_SCHEME="GPT" 15735041a6SEmmanuel VadotFDT_OVERLAYS="sun50i-a64-timer" 165a88ea32SEmmanuel Vadotexport BOARDNAME="PINE64-LTS" 175a88ea32SEmmanuel Vadot 185a88ea32SEmmanuel Vadotarm_install_uboot() { 1990b924a1SEmmanuel Vadot UBOOT_DIR="/usr/local/share/u-boot/u-boot-pine64-lts" 205a88ea32SEmmanuel Vadot UBOOT_FILES="u-boot-sunxi-with-spl.bin" 215a88ea32SEmmanuel Vadot chroot ${CHROOTDIR} dd if=${UBOOT_DIR}/${UBOOT_FILES} \ 2244bef672SEmmanuel Vadot of=/dev/${mddev} bs=128k seek=1 conv=sync 235a88ea32SEmmanuel Vadot 245a88ea32SEmmanuel Vadot return 0 255a88ea32SEmmanuel Vadot} 26