about summary refs log tree commit diff
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2016-05-06 14:41:04 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2016-05-06 14:41:04 +0200
commitb2415b015d2146e80e255987a5eddb224aea1c3c (patch)
treeee6c10832e281389aa21066e612b3a6b737514ae
parentd1e633fc12db2fff07b8b64d9b0e6f9cd84b9b88 (diff)
downloadhrmpf-b2415b015d2146e80e255987a5eddb224aea1c3c.tar.gz
hrmpf-b2415b015d2146e80e255987a5eddb224aea1c3c.tar.xz
hrmpf-b2415b015d2146e80e255987a5eddb224aea1c3c.zip
mkimage.sh.in: add odroid-c2.
-rw-r--r--mkimage.sh.in9
1 files changed, 7 insertions, 2 deletions
diff --git a/mkimage.sh.in b/mkimage.sh.in
index 5729c9d..ed6b6e4 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|cubietruck|odroid-u2|rpi|rpi2|usbarmory|*-musl);;
+    bananapi|beaglebone|cubieboard2|cubietruck|odroid-c2|odroid-u2|rpi|rpi2|usbarmory|*-musl);;
     *) die "The $PLATFORM is not supported, exiting..."
 esac
 
@@ -141,7 +141,7 @@ if [ "$BOOT_FSTYPE" = "vfat" ]; then
     _args="-I -F16"
 fi
 case "$PLATFORM" in
-cubieboard2|cubietruck|ci20*)
+cubieboard2|cubietruck|ci20*|odroid-c2*)
     sfdisk ${FILENAME} <<_EOF
 label: dos
 2048,,L
@@ -194,6 +194,11 @@ 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
     ;;
+odroid-c2*)
+    dd if=${ROOTFSDIR}/boot/bl1.bin.hardkernel of=${LOOPDEV} bs=1 count=442 >/dev/null 2>&1
+    dd if=${ROOTFSDIR}/boot/bl1.bin.hardkernel of=${LOOPDEV} bs=512 skip=1 seek=1 >/dev/null 2>&1
+    dd if=${ROOTFSDIR}/boot/u-boot.bin of=${LOOPDEV} bs=512 seek=97 >/dev/null 2>&1
+    ;;
 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