Explorar o código

mkimage: ci20 just needs a single partition and expects the kernel in /vmlinux.img.

Juan RP %!s(int64=9) %!d(string=hai) anos
pai
achega
be2251492f
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      mkimage.sh.in

+ 2 - 1
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
     ;;