#
usage() {
- echo "$0 <outfile> [<bootloader> <type_partitionN> <sectors_partitionN> <img_partitionN>]?"
+ echo "$0 <outfile> [<bootloader> <type_partitionN> <size_partitionN> <img_partitionN>]?"
}
# always require first 2 or 3 arguments
printf "Done\n"
while [ "$#" -ge 3 ]; do
- ptgen_args="$ptgen_args -t $1 -p $(($2 / 2 + 256))"
+ ptgen_args="$ptgen_args -t $1 -p $(($2 * 1024 + 256))"
parts="$parts$3 "
shift; shift; shift
done