X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=target%2Flinux%2Fmvebu%2Fimage%2Fgen_mvebu_sdcard_img.sh;h=63acc79f40f7803bbf7f479f6c37a77833fcba0b;hb=e10ea566cc8fcf51ef0bceff05db374fae8f7e12;hp=86499eea57c7491326b181d1e80fd625499aa77c;hpb=652a13e920af843908b150a7927272ab1a09b3ce;p=openwrt%2Fopenwrt.git diff --git a/target/linux/mvebu/image/gen_mvebu_sdcard_img.sh b/target/linux/mvebu/image/gen_mvebu_sdcard_img.sh index 86499eea57..63acc79f40 100755 --- a/target/linux/mvebu/image/gen_mvebu_sdcard_img.sh +++ b/target/linux/mvebu/image/gen_mvebu_sdcard_img.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash # # Copyright (C) 2016 Josua Mayer -# +# # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 @@ -40,7 +40,7 @@ dd if=/dev/zero of="$OUTFILE" bs=512 count=1 >/dev/null printf "Done\n" while [ "$#" -ge 3 ]; do - ptgen_args="$ptgen_args -p $(($2 / 2 + 256)) -S 0x$1" + ptgen_args="$ptgen_args -t $1 -p $(($2 / 2 + 256))" parts="$parts$3 " shift; shift; shift done @@ -50,7 +50,7 @@ sect=63 # create real partition table using fdisk printf "Creating partition table: " -set `ptgen -o "$OUTFILE" -h $head -s $sect -l 1024 $ptgen_args` +set `ptgen -o "$OUTFILE" -h $head -s $sect -l 1024 -S 0x$SIGNATURE $ptgen_args` printf "Done\n" # install bootloader