about summary refs log tree commit diff
path: root/mkimage.sh.in
diff options
context:
space:
mode:
authorJuan RP <xtraeme@gmail.com>2015-05-20 11:23:10 +0200
committerJuan RP <xtraeme@gmail.com>2015-05-20 11:23:10 +0200
commitd177ef47d6649eec42ff3106e9cbf78b95565f6d (patch)
treed5b078704ca35d4336e7ab5d0d622b4ae0e0ae39 /mkimage.sh.in
parentb231ef76f510586d7196856f78a2c53fc76564e7 (diff)
parentf3b9e9d2e42f307634402e5ae85bde76a378cd3b (diff)
downloadhrmpf-d177ef47d6649eec42ff3106e9cbf78b95565f6d.tar.gz
hrmpf-d177ef47d6649eec42ff3106e9cbf78b95565f6d.tar.xz
hrmpf-d177ef47d6649eec42ff3106e9cbf78b95565f6d.zip
Merge pull request #27 from pullmoll/master
installer.sh.in: really fix the md parsing
Diffstat (limited to 'mkimage.sh.in')
-rw-r--r--mkimage.sh.in14
1 files changed, 9 insertions, 5 deletions
diff --git a/mkimage.sh.in b/mkimage.sh.in
index a0359a7..379a378 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|usbarmory);;
+    bananapi|beaglebone|cubieboard2|cubietruck|odroid-u2|rpi|rpi2|usbarmory);;
     *) die "The $PLATFORM is not supported, exiting..."
 esac
 
@@ -175,16 +175,20 @@ fi
 echo "UUID=$ROOT_UUID / $ROOT_FSTYPE defaults 0 ${fspassno}" >> ${ROOTFSDIR}/etc/fstab
 echo "UUID=$BOOT_UUID /boot $BOOT_FSTYPE defaults${fstab_args} 0 2" >> ${ROOTFSDIR}/etc/fstab
 
-if [ "$PLATFORM" = "cubieboard2" -o "$PLATFORM" = "bananapi" ]; then
+case "$PLATFORM" in
+bananapi|cubieboard2|cubietruck)
     dd if=${ROOTFSDIR}/boot/u-boot-sunxi-with-spl.bin of=${LOOPDEV} bs=1024 seek=8 >/dev/null 2>&1
-elif [ "$PLATFORM" = "odroid-u2" ]; then
+    ;;
+odroid-u2)
     dd if=${ROOTFSDIR}/boot/E4412_S.bl1.HardKernel.bin of=${LOOPDEV} seek=1 >/dev/null 2>&1
     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
+    ;;
+usbarmory)
     dd if=${ROOTFSDIR}/boot/u-boot.imx of=${LOOPDEV} bs=512 seek=2 conv=fsync
-fi
+    ;;
+esac
 
 mountpoint -q ${ROOTFSDIR}/boot && umount ${ROOTFSDIR}/boot
 umount $ROOTFSDIR