2015-09-30 16:31:21 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2017-10-06 17:30:18 +00:00
|
|
|
EMBEDDED_TARGET_ARCH="armv7"
|
2017-11-17 17:36:45 +00:00
|
|
|
EMBEDDED_TARGET="arm"
|
|
|
|
EMBEDDEDBUILD=1
|
2015-09-30 16:31:21 +00:00
|
|
|
EMBEDDEDPORTS="sysutils/u-boot-bananapi"
|
2018-07-22 12:02:07 +00:00
|
|
|
FAT_SIZE="50m -b 1m"
|
2015-09-30 16:31:21 +00:00
|
|
|
FAT_TYPE="16"
|
2017-11-17 17:36:45 +00:00
|
|
|
IMAGE_SIZE="3072M"
|
|
|
|
KERNEL="GENERIC"
|
2015-09-30 16:31:21 +00:00
|
|
|
MD_ARGS="-x 63 -y 255"
|
|
|
|
NODOC=1
|
2017-11-17 17:36:45 +00:00
|
|
|
PART_SCHEME="MBR"
|
2015-09-30 16:31:21 +00:00
|
|
|
export BOARDNAME="BANANAPI"
|
|
|
|
|
|
|
|
arm_install_uboot() {
|
|
|
|
UBOOT_DIR="/usr/local/share/u-boot/u-boot-bananapi"
|
2015-10-06 01:05:07 +00:00
|
|
|
UBOOT_FILES="u-boot-sunxi-with-spl.bin"
|
|
|
|
chroot ${CHROOTDIR} dd if=${UBOOT_DIR}/${UBOOT_FILES} \
|
2015-10-01 19:48:10 +00:00
|
|
|
of=/dev/${mddev} bs=1k seek=8 conv=sync
|
2015-09-30 16:31:21 +00:00
|
|
|
|
|
|
|
return 0
|
|
|
|
}
|