From 8b238fad3fab90fc6e2da5422082157bff747d33 Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Tue, 28 Apr 2015 17:30:16 +0200 Subject: add platform support for USB armory --- mkimage.sh.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mkimage.sh.in') diff --git a/mkimage.sh.in b/mkimage.sh.in index 96199fa..a0359a7 100644 --- a/mkimage.sh.in +++ b/mkimage.sh.in @@ -113,7 +113,7 @@ fi # double check PLATFORM is supported... case "$PLATFORM" in - bananapi|beaglebone|cubieboard2|odroid-u2|rpi|rpi2);; + bananapi|beaglebone|cubieboard2|odroid-u2|rpi|rpi2|usbarmory);; *) die "The $PLATFORM is not supported, exiting..." esac @@ -182,6 +182,8 @@ elif [ "$PLATFORM" = "odroid-u2" ]; then dd if=${ROOTFSDIR}/boot/bl2.signed.bin of=${LOOPDEV} seek=31 >/dev/null 2>&1 dd if=${ROOTFSDIR}/boot/u-boot.bin of=${LOOPDEV} seek=63 >/dev/null 2>&1 dd if=${ROOTFSDIR}/boot/E4412_S.tzsw.signed.bin of=${LOOPDEV} seek=2111 >/dev/null 2>&1 +elif [ "$PLATFORM" = "usbarmory" ]; then + dd if=${ROOTFSDIR}/boot/u-boot.imx of=${LOOPDEV} bs=512 seek=2 conv=fsync fi mountpoint -q ${ROOTFSDIR}/boot && umount ${ROOTFSDIR}/boot -- cgit 1.4.1