2015-05-08 15:23: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-05-08 15:23:21 +00:00
|
|
|
EMBEDDEDPORTS="sysutils/u-boot-wandboard"
|
2015-05-08 16:37:57 +00:00
|
|
|
FAT_SIZE="50m -b 16384"
|
|
|
|
FAT_TYPE="16"
|
2017-11-17 17:36:45 +00:00
|
|
|
IMAGE_SIZE="3072M"
|
2018-07-31 18:52:43 +00:00
|
|
|
KERNEL="GENERIC"
|
2015-05-08 15:23:21 +00:00
|
|
|
MD_ARGS="-x 63 -y 255"
|
|
|
|
NODOC=1
|
2017-11-17 17:36:45 +00:00
|
|
|
PART_SCHEME="MBR"
|
2015-05-29 02:16:40 +00:00
|
|
|
export BOARDNAME="WANDBOARD"
|
2015-05-08 15:23:21 +00:00
|
|
|
|
|
|
|
arm_install_uboot() {
|
2015-05-09 21:08:12 +00:00
|
|
|
UBOOT_DIR="/usr/local/share/u-boot/u-boot-wandboard"
|
2015-05-08 15:23:21 +00:00
|
|
|
UBOOT_FILES="u-boot.imx"
|
2015-05-09 21:08:12 +00:00
|
|
|
chroot ${CHROOTDIR} dd if=${UBOOT_DIR}/${UBOOT_FILES} \
|
2017-04-07 16:55:13 +00:00
|
|
|
of=/dev/${mddev} bs=512 seek=2 conv=sync
|
2018-07-31 19:10:50 +00:00
|
|
|
|
2015-05-08 15:23:21 +00:00
|
|
|
return 0
|
|
|
|
}
|