43e289df5a
This reduce the per-board arm_install_uboot to just install u-boot. While here remove the installation of rpi.dtb and rpi2.dtb as we load them from the UFS partition via ubldr. Reviewed by: gjb, imp (older version) MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D16239
27 lines
513 B
Bash
27 lines
513 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
EMBEDDED_TARGET_ARCH="armv7"
|
|
EMBEDDED_TARGET="arm"
|
|
EMBEDDEDBUILD=1
|
|
EMBEDDEDPORTS="sysutils/u-boot-bananapi"
|
|
FAT_SIZE="50m -b 1m"
|
|
FAT_TYPE="16"
|
|
IMAGE_SIZE="3072M"
|
|
KERNEL="GENERIC"
|
|
MD_ARGS="-x 63 -y 255"
|
|
NODOC=1
|
|
PART_SCHEME="MBR"
|
|
export BOARDNAME="BANANAPI"
|
|
|
|
arm_install_uboot() {
|
|
UBOOT_DIR="/usr/local/share/u-boot/u-boot-bananapi"
|
|
UBOOT_FILES="u-boot-sunxi-with-spl.bin"
|
|
chroot ${CHROOTDIR} dd if=${UBOOT_DIR}/${UBOOT_FILES} \
|
|
of=/dev/${mddev} bs=1k seek=8 conv=sync
|
|
|
|
return 0
|
|
}
|