aboutsummaryrefslogtreecommitdiff
path: root/release/arm
diff options
context:
space:
mode:
authorGlen Barber <gjb@FreeBSD.org>2015-05-06 19:58:12 +0000
committerGlen Barber <gjb@FreeBSD.org>2015-05-06 19:58:12 +0000
commit4ad8b75d537c206da46429897a5ff4ddc3b94ec3 (patch)
tree8e599e27a31653a80feea79822f6e77ce1c456be /release/arm
parent9056dae945680bce10b3cf844caf83cb51254a0a (diff)
downloadsrc-4ad8b75d537c206da46429897a5ff4ddc3b94ec3.tar.gz
src-4ad8b75d537c206da46429897a5ff4ddc3b94ec3.zip
Add tools/arm.subr to contain common subroutines used for
building arm images. This is similar to tools/vmimage.subr used for building virtual machine disk images. By default, only arm_create_disk() and arm_install_base() contain real functionality here, and arm_install_uboot() must be overridden in the arm/KERNEL.conf file. In release.sh, make create_arm_armv6_build_release() do something now. In arm/BEAGLEBONE.conf, set IMAGE_SIZE, PART_SCHEME, FAT_SIZE, FAT_TYPE, and MD_ARGS, as well as make arm_install_uboot() functional. Parts of this were taken from disecting a previous BEAGLEBONE image, and other parts obtained from Crochet sources. Sponsored by: The FreeBSD Foundation
Notes
Notes: svn path=/projects/release-arm-redux/; revision=282566
Diffstat (limited to 'release/arm')
-rw-r--r--release/arm/BEAGLEBONE.conf21
1 files changed, 21 insertions, 0 deletions
diff --git a/release/arm/BEAGLEBONE.conf b/release/arm/BEAGLEBONE.conf
index 19b88cb12f59..70dadc0fa7b6 100644
--- a/release/arm/BEAGLEBONE.conf
+++ b/release/arm/BEAGLEBONE.conf
@@ -8,3 +8,24 @@ EMBEDDED_TARGET="arm"
EMBEDDED_TARGET_ARCH="armv6"
EMBEDDEDPORTS="sysutils/u-boot-beaglebone"
KERNEL="BEAGLEBONE"
+IMAGE_SIZE="1G"
+PART_SCHEME="MBR"
+FAT_SIZE="2m"
+FAT_TYPE="12"
+MD_ARGS="-x 63 -y 255"
+
+arm_install_uboot() {
+ UBOOT_DIR="/usr/local/share/u-boot/u-boot-beaglebone"
+ FDT_DIR="${WORLDIR}/sys/boot/fdt/dts/arm"
+ mount_msdosfs /dev/${mddev}s1 ${DESTDIR}
+ cp -p ${UBOOT_DIR}/MLO ${DESTDIR}/MLO
+ cp -p ${UBOOT_DIR}/u-boot.img ${DESTDIR}/bb-uboot.img
+ cp -p ${FDT_DIR}/beaglebone.dts ${DESTDIR}/bbone.dts
+ cp -p ${FDT_DIR}/beaglebone.dts ${DESTDIR}/bbone.dtb
+ cp -p ${FDT_DIR}/beaglebone-black.dts ${DESTDIR}/bboneblk.dts
+ cp -p ${FDT_DIR}/beaglebone-black.dts ${DESTDIR}/bboneblk.dtb
+ touch ${DESTDIR}/bb-uEnv.txt
+ umount_loop ${DESTDIR}
+
+ return 0
+}