aboutsummaryrefslogtreecommitdiff
path: root/release/arm/WANDBOARD.conf
diff options
context:
space:
mode:
authorGlen Barber <gjb@FreeBSD.org>2015-05-08 18:55:09 +0000
committerGlen Barber <gjb@FreeBSD.org>2015-05-08 18:55:09 +0000
commitc083dc0321e53f9892df1116d4e7c808795a2fd1 (patch)
tree717711db0ff68b4515ecf71fc196ce062535a190 /release/arm/WANDBOARD.conf
parent4194ca40a5a1a4f3616c144e7b74bd5bd88573db (diff)
downloadsrc-c083dc0321e53f9892df1116d4e7c808795a2fd1.tar.gz
src-c083dc0321e53f9892df1116d4e7c808795a2fd1.zip
Use the IMX6 kernel configuration for the WANDBOARD build,
since it supports all of these board variants. While here, remove the WANDBOARD-{QUAD,SOLO,DUAL} kernel configuration files. Discussed with: ian Sponsored by: The FreeBSD Foundation
Notes
Notes: svn path=/projects/release-arm-redux/; revision=282656
Diffstat (limited to 'release/arm/WANDBOARD.conf')
-rw-r--r--release/arm/WANDBOARD.conf42
1 files changed, 42 insertions, 0 deletions
diff --git a/release/arm/WANDBOARD.conf b/release/arm/WANDBOARD.conf
new file mode 100644
index 000000000000..63614d7cf083
--- /dev/null
+++ b/release/arm/WANDBOARD.conf
@@ -0,0 +1,42 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+
+EMBEDDEDBUILD=1
+EMBEDDED_TARGET="arm"
+EMBEDDED_TARGET_ARCH="armv6"
+EMBEDDEDPORTS="sysutils/u-boot-wandboard"
+KERNEL="IMX6"
+WORLD_FLAGS="${WORLD_FLAGS} UBLDR_LOADADDR=0x11000000"
+IMAGE_SIZE="1G"
+PART_SCHEME="MBR"
+FAT_SIZE="50m -b 16384"
+FAT_TYPE="16"
+MD_ARGS="-x 63 -y 255"
+NODOC=1
+
+arm_install_uboot() {
+ UBOOT_DIR="${CHROOTDIR}/usr/local/share/u-boot/u-boot-wandboard"
+ UBOOT_FILES="u-boot.imx"
+ FATMOUNT="${DESTDIR##${KERNEL}}/fat"
+ UFSMOUNT="${DESTDIR##${KERNEL}}/ufs"
+ chroot ${CHROOTDIR} dd if=${UBOOT_DIR##${CHROOTDIR}}/${UBOOT_FILES} \
+ of=/dev/${mddev} bs=512 seek=2
+ chroot ${CHROOTDIR} mkdir -p "${FATMOUNT}" "${UFSMOUNT}"
+ chroot ${CHROOTDIR} mount_msdosfs /dev/${mddev}s1 ${FATMOUNT}
+ chroot ${CHROOTDIR} mount /dev/${mddev}s2a ${UFSMOUNT}
+ cp -p ${CHROOTDIR}/${UFSMOUNT}/boot/ubldr \
+ ${CHROOTDIR}/${FATMOUNT}/ubldr
+ chroot ${CHROOTDIR} echo \
+ 'setenv fdt_file wandboard-quad.dtb; fatload mmc 0:1 11000000 ubldr; bootelf 11000000;' \
+ > ${FATMOUNT}/boot.txt
+ touch ${CHROOTDIR}/${UFSMOUNT}/firstboot
+ sync
+ umount_loop ${CHROOTDIR}/${FATMOUNT}
+ umount_loop ${CHROOTDIR}/${UFSMOUNT}
+ rmdir ${CHROOTDIR}/${FATMOUNT}
+ rmdir ${CHROOTDIR}/${UFSMOUNT}
+
+ return 0
+}