riscv64: update SDcard image builder
authorZoltan HERPAI <wigyori@uid0.hu>
Mon, 15 Oct 2018 14:12:29 +0000 (16:12 +0200)
committerZoltan HERPAI <wigyori@uid0.hu>
Mon, 15 Oct 2018 14:12:29 +0000 (16:12 +0200)
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
target/linux/riscv64/image/gen_riscv64_sdcard_img.sh [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index f637cda..374d78e
@@ -8,7 +8,8 @@
 
 set -ex
 [ $# -eq 5 ] || {
-    echo "SYNTAX: $0 <file> <bbl image> <rootfs image> <bbl size> <rootfs size> <u-boot image>"
+    echo "SYNTAX: $0 <file> <bbl image> <rootfs image> <bbl size> <rootfs size>"
+    # <u-boot image>"
     exit 1
 }
 
@@ -20,6 +21,7 @@ BOOTFS="$2"
 ROOTFS="$3"
 BOOTFSSIZE="$4"
 ROOTFSSIZE="$5"
+
 #UBOOT="$6"
 
 FULLSIZE="$(($BOOTFSSIZE+$ROOTFSSIZE+1))"
@@ -32,8 +34,7 @@ dd if=/dev/zero of=$OUTPUT bs=1M count=$FULLSIZE
 
 sgdisk --clear \
     --new=1:2048:${BOOTFSSIZE}M  --change-name=1:bootloader --typecode=1:${BBL_UUID} \
-    --new=2:${ROOTFSOFFSET}:     --change-name=2:root       --typecode=2:${LINUX_UUID} \
-    $OUTPUT
+    --new=2:${ROOTFSOFFSET}:     --change-name=2:root       --typecode=2:${LINUX_UUID} $OUTPUT
 
 dd bs=512 if="$BOOTFS" of="$OUTPUT" seek=2048 conv=notrunc
 dd bs=512 if="$ROOTFS" of="$OUTPUT" seek="$ROOTFSOFFSET" conv=notrunc