#UBOOT="$6"
-FULLSIZE="$(($BOOTFSSIZE+$ROOTFSSIZE+1))"
+FULLSIZE="$(($BOOTFSSIZE+$ROOTFSSIZE+2))"
echo "Full size is: ${FULLSIZE}M"
-ROOTFSOFFSET="$(($BOOTFSSIZE*1048576 / 512 + 2048))"
+ROOTFSOFFSET="$(($BOOTFSSIZE*1048576 / 512 + 2048))" #8187
+#ROOTFSOFFSET="$(($BOOTFSSIZE*1048576 / 512 + 4096))"
+
+
echo "Rootfs offset is: $ROOTFSOFFSET"
dd if=/dev/zero of=$OUTPUT bs=1M count=$FULLSIZE
-sgdisk --clear \
+#sgdisk --clear \
+/u/owrt2/sink-201810/staging_dir/host/bin/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