add platform support for USB armory

This commit is contained in:
Enno Boland
2015-04-28 17:30:16 +02:00
parent bc5f40d51f
commit 8b238fad3f
4 changed files with 7 additions and 4 deletions

View File

@@ -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