2017-11-03 19:08:59 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
EMBEDDED_TARGET_ARCH="aarch64"
|
2017-11-17 17:34:52 +00:00
|
|
|
EMBEDDED_TARGET="arm64"
|
|
|
|
EMBEDDEDBUILD=1
|
2017-11-03 19:08:59 +00:00
|
|
|
EMBEDDEDPORTS="sysutils/u-boot-pine64"
|
|
|
|
FAT_SIZE="54m -b 1m"
|
|
|
|
FAT_TYPE="16"
|
2017-11-17 17:34:52 +00:00
|
|
|
IMAGE_SIZE="2560M"
|
|
|
|
KERNEL="GENERIC"
|
2018-02-16 16:22:54 +00:00
|
|
|
MD_ARGS="-x 63 -y 255"
|
2017-11-03 19:08:59 +00:00
|
|
|
NODOC=1
|
2017-11-17 17:34:52 +00:00
|
|
|
PART_SCHEME="MBR"
|
2018-11-29 22:36:36 +00:00
|
|
|
FDT_OVERLAYS="sun50i-a64-sid,sun50i-a64-ths,sun50i-a64-timer,sun50i-a64-opp"
|
2017-11-03 19:08:59 +00:00
|
|
|
export BOARDNAME="PINE64"
|
|
|
|
|
|
|
|
arm_install_uboot() {
|
|
|
|
UBOOT_DIR="/usr/local/share/u-boot/u-boot-pine64"
|
2017-11-03 19:32:10 +00:00
|
|
|
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
|
2017-11-03 19:08:59 +00:00
|
|
|
|
|
|
|
return 0
|
|
|
|
}
|