diff options
-rwxr-xr-x | tools/flash-all.sh | 26 | ||||
-rwxr-xr-x | tools/make-gpt-tables | bin | 17876 -> 0 bytes | |||
-rwxr-xr-x | tools/mkgpt.sh | 61 |
3 files changed, 0 insertions, 87 deletions
diff --git a/tools/flash-all.sh b/tools/flash-all.sh deleted file mode 100755 index 68b40b6..0000000 --- a/tools/flash-all.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/sh -prg=`basename $0` - -fastboot=`which fastboot` -FIRMWARE="linaro-gpt.bin fbi.bin loader.bin hw-blob.bin u-boot.bin u-boot-env.bin" - -if [ "$fastboot" = "" ]; then - echo "$prg: could not find \"fastboot\" binary in your PATH" 1>&2 - exit 1 -fi - -owner=`stat -c %U "$fastboot"` -if [ "$owner" != "root" ]; then - echo "$prg: $fastboot is not owned by root" 1>&2 - exit 1 -fi -if [ ! -u "$fastboot" ]; then - echo "$prg: $fastboot does not have the SUID bit set" 1>&2 - exit 1 -fi - -for f in $FIRMWARE; do - gpt=`echo "$f" | sed -e 's/^linaro-//' -e 's/\.bin$//'` - echo "$f -> $gpt" - "$fastboot" flash "$gpt" "$f" -done diff --git a/tools/make-gpt-tables b/tools/make-gpt-tables Binary files differdeleted file mode 100755 index c01c18d..0000000 --- a/tools/make-gpt-tables +++ /dev/null diff --git a/tools/mkgpt.sh b/tools/mkgpt.sh deleted file mode 100755 index efbe49e..0000000 --- a/tools/mkgpt.sh +++ /dev/null @@ -1,61 +0,0 @@ -#!/bin/sh -prg=`basename $0` - -LINARO_TABLE="gpt,0x000000000,0x000010000,0 - fbi,0x000020000,0x000020000,0 - custom-cert,0x000040000,0x000010000,0 - boot-parm,0x000050000,0x000010000,0 - loader,0x000060000,0x000020000,0 - u-boot,0x002200000,0x000100000,0 - hw-blob,0x002300000,0x000040000,0 - u-boot-env,0x002340000,0x000001000,0 - device-tree,0x002350000,0x000020000,0 - vc-firmware,0x003000000,0x000800000,0 - boot,0x003800000,0x001000000,0 - system,0x004800000,0x0a0000000,0 - kpanic,0x0a4800000,0x001700000,0 - recovery,0x0a5f00000,0x004000000,0 - misc,0x0a9f00000,0x001000000,0 - cache,0x0aaf00000,0x050000000,0 - userdata,0x0faf00000,0x2b0000000,0" - -ORIG_TABLE="gpt,0x000000000,0x000010000,0 - fbi,0x000020000,0x000020000,0 - custom-cert,0x000040000,0x000010000,0 - boot-parm,0x000050000,0x000010000,0 - loader,0x000060000,0x000020000,0 - sys-parm-ind,0x000080000,0x000080000,0 - sys-parm-dep,0x000100000,0x000010000,0 - parm-spml-ind,0x000110000,0x000010000,0 - parm-spml-dep,0x000150000,0x000010000,0 - umts-cal,0x0001d0000,0x000020000,0 - cp-boot,0x0001f0000,0x000008000,0 - cp-image,0x000200000,0x000d00000,0 - cp-pod,0x000f00000,0x000100000,0 - dsp-pram,0x001f20000,0x000080000,0 - dsp-dram,0x002000000,0x000200000,0 - u-boot,0x002200000,0x000100000,0 - dt-blob,0x002300000,0x000040000,0 - u-boot-env,0x002340000,0x000001000,0 - mobicore,0x002f80000,0x000080000,0 - vc-firmware,0x003000000,0x000800000,0 - boot,0x003800000,0x001000000,0 - system,0x004800000,0x020000000,0 - userdata,0x024800000,0x080000000,0 - kpanic,0x0a4800000,0x001700000,0 - recovery,0x0a5f00000,0x001000000,0 - misc,0x0a6f00000,0x001000000,0 - cache,0x0a7f00000,0x050000000,0" - -if [ "$1" = "-h" ]; then - echo "usage: $prg [-O]" 1>&2 - echo "Creates a Linaro GPT binary. If -O is given, it also creates" 1>&2 - echo "the \"original\" partition table used on the Capri AP board." 1>&2 - exit 1 -elif [ "$1" = "-O" ]; then - make-gpt-tables -v1 -b 0 -o orig-table.img -s 0x3b6000000 $ORIG_TABLE -else - echo "$prg: unknown argument" 1>&2 -fi - -make-gpt-tables -v1 -b 0 -o linaro-gpt.bin -s 0x3b6000000 $LINARO_TABLE |