aboutsummaryrefslogtreecommitdiff
path: root/release/arm
diff options
context:
space:
mode:
authorGlen Barber <gjb@FreeBSD.org>2015-05-08 16:00:06 +0000
committerGlen Barber <gjb@FreeBSD.org>2015-05-08 16:00:06 +0000
commitf8254ea6866d4bab8f797807af9d3b7d3febbb27 (patch)
tree3d4ceead568037ea2ffa5529278c3e71b565673c /release/arm
parentd3c70a1f4434efa9389b4369aca628ca62dcae8a (diff)
downloadsrc-f8254ea6866d4bab8f797807af9d3b7d3febbb27.tar.gz
src-f8254ea6866d4bab8f797807af9d3b7d3febbb27.zip
Initial support for building the PANDABOARD image.
Sponsored by: The FreeBSD Foundation
Notes
Notes: svn path=/projects/release-arm-redux/; revision=282642
Diffstat (limited to 'release/arm')
-rw-r--r--release/arm/PANDABOARD.conf26
1 files changed, 26 insertions, 0 deletions
diff --git a/release/arm/PANDABOARD.conf b/release/arm/PANDABOARD.conf
index 439fd37156b9..0ea697eae548 100644
--- a/release/arm/PANDABOARD.conf
+++ b/release/arm/PANDABOARD.conf
@@ -9,3 +9,29 @@ EMBEDDED_TARGET_ARCH="armv6"
EMBEDDEDPORTS="sysutils/u-boot-pandaboard"
KERNEL="PANDABOARD"
NODOC=1
+WORLD_FLAGS="${WORLD_FLAGS} UBLDR_LOADADDR=0x88000000"
+IMAGE_SIZE="1G"
+PART_SCHEME="MBR"
+FAT_SIZE="2m"
+FAT_TYPE="12"
+MD_ARGS="-x 63 -y 255"
+
+arm_install_uboot() {
+ UBOOT_DIR="${CHROOTDIR}/usr/local/share/u-boot/u-boot-pandaboard"
+ FATMOUNT="${DESTDIR}/fat"
+ UFSMOUNT="${DESTDIR}/ufs"
+ chroot ${CHROOTDIR} mkdir -p "${FATMOUNT}" "${UFSMOUNT}"
+ chroot ${CHROOTDIR} mount_msdosfs /dev/${mddev}s1 ${FATMOUNT}
+ chroot ${CHROOTDIR} mount /dev/${mddev}s2a ${UFSMOUNT}
+ cp -p ${UBOOT_DIR}/MLO ${CHROOTDIR}/${FATMOUNT}/MLO
+ cp -p ${UBOOT_DIR}/u-boot.img ${CHROOTDIR}/${FATMOUNT}/u-boot.img
+ cp -p ${CHROOTDIR}/${UFSMOUNT}/boot/ubldr \
+ ${CHROOTDIR}/${FATMOUNT}/ubldr
+ sync
+ umount_loop ${CHROOTDIR}/${FATMOUNT}
+ umount_loop ${CHROOTDIR}/${UFSMOUNT}
+ rmdir ${CHROOTDIR}/${FATMOUNT}
+ rmdir ${CHROOTDIR}/${UFSMOUNT}
+
+ return 0
+}