10edb2e1dSEmmanuel Vadot#!/bin/sh 20edb2e1dSEmmanuel Vadot# 30edb2e1dSEmmanuel Vadot# 40edb2e1dSEmmanuel Vadot 50edb2e1dSEmmanuel VadotEMBEDDED_TARGET_ARCH="aarch64" 60edb2e1dSEmmanuel VadotEMBEDDED_TARGET="arm64" 70edb2e1dSEmmanuel VadotEMBEDDEDBUILD=1 80edb2e1dSEmmanuel VadotEMBEDDEDPORTS="sysutils/u-boot-rockpro64" 90edb2e1dSEmmanuel VadotFAT_SIZE="50m -b 16m" 100edb2e1dSEmmanuel VadotFAT_TYPE="16" 11*1dfcff29SGlen BarberIMAGE_SIZE="5120M" 120edb2e1dSEmmanuel VadotKERNEL="GENERIC" 130edb2e1dSEmmanuel VadotMD_ARGS="-x 63 -y 255" 140edb2e1dSEmmanuel VadotPART_SCHEME="GPT" 150edb2e1dSEmmanuel Vadotexport BOARDNAME="ROCKPRO64" 160edb2e1dSEmmanuel Vadot 170edb2e1dSEmmanuel Vadotarm_install_uboot() { 180edb2e1dSEmmanuel Vadot UBOOT_DIR="/usr/local/share/u-boot/u-boot-rockpro64" 190edb2e1dSEmmanuel Vadot UBOOT_FILE_1="idbloader.img" 200edb2e1dSEmmanuel Vadot UBOOT_FILE_2="u-boot.itb" 210edb2e1dSEmmanuel Vadot chroot ${CHROOTDIR} dd if=${UBOOT_DIR}/${UBOOT_FILE_1} \ 220edb2e1dSEmmanuel Vadot of=/dev/${mddev} bs=512 seek=64 conv=sync 230edb2e1dSEmmanuel Vadot chroot ${CHROOTDIR} dd if=${UBOOT_DIR}/${UBOOT_FILE_2} \ 240edb2e1dSEmmanuel Vadot of=/dev/${mddev} bs=512 seek=16384 conv=sync 250edb2e1dSEmmanuel Vadot return 0 260edb2e1dSEmmanuel Vadot} 27