about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJuan RP <xtraeme@voidlinux.eu>2016-04-26 11:45:37 +0200
committerJuan RP <xtraeme@voidlinux.eu>2016-04-26 11:45:37 +0200
commitbe2251492f536bb5ae974c049c02ddb834bc0630 (patch)
tree78ad5e5debed8c86d00b646d91e6937a233a8d9c
parentffe9572e3fc5bd1947932b061c11a39f9ac4f59b (diff)
downloadhrmpf-be2251492f536bb5ae974c049c02ddb834bc0630.tar.gz
hrmpf-be2251492f536bb5ae974c049c02ddb834bc0630.tar.xz
hrmpf-be2251492f536bb5ae974c049c02ddb834bc0630.zip
mkimage: ci20 just needs a single partition and expects the kernel in /vmlinux.img.
-rw-r--r--mkimage.sh.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/mkimage.sh.in b/mkimage.sh.in
index 367c455..86bf45e 100644
--- a/mkimage.sh.in
+++ b/mkimage.sh.in
@@ -142,7 +142,7 @@ if [ "$BOOT_FSTYPE" = "vfat" ]; then
     _args="-I -F16"
 fi
 case "$PLATFORM" in
-cubieboard2|cubietruck)
+cubieboard2|cubietruck|ci20*)
     parted $FILENAME mkpart primary ext2 2048s ${ROOT_FSSIZE} 100%
     parted $FILENAME toggle 1 boot
     LOOPDEV=$(losetup --show --find --partscan $FILENAME)
@@ -201,6 +201,7 @@ usbarmory)
     dd if=${ROOTFSDIR}/boot/u-boot.imx of=${LOOPDEV} bs=512 seek=2 conv=fsync >/dev/null 2>&1
     ;;
 ci20)
+    ln -sf /boot/uImage ${ROOTFSDIR}/vmlinux.img
     dd if=${ROOTFSDIR}/boot/u-boot-spl.bin of=${LOOPDEV} obs=512 seek=1 >/dev/null 2>&1
     dd if=${ROOTFSDIR}/boot/u-boot.img of=${LOOPDEV} obs=1K seek=14 >/dev/null 2>&1
     ;;