diff options
author | Andy Green <andy@openmoko.com> | 2009-02-20 13:33:26 +0000 |
---|---|---|
committer | Andy Green <agreen@octopus.localdomain> | 2009-02-20 13:33:26 +0000 |
commit | 3b3054030ecb6bf17a2f2cb5086ad080cc53aa55 (patch) | |
tree | 9ae58c9b4a0b9e4cff2db3f1ab55129d99c9ad8e /dfu-kern | |
parent | 67e4769603fab92ac1be9a9e86ad7ca8e89b9eae (diff) |
fix-dfu-kern.patch
Signed-off-by: Andy Green <andy@openmoko.com>
Diffstat (limited to 'dfu-kern')
-rwxr-xr-x | dfu-kern | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -5,10 +5,12 @@ if [ -z "$1" ] ; then exit 1 fi -../../dfu-util/src/dfu-util -a 3 -d 0x1d50:0x5119 -D uImage-$1.bin +NAME=`echo $1 | cut -d'-' -f1` + +../../dfu-util/src/dfu-util -a 3 -d 0x1d50:0x5119 -D $1/uImage-$NAME.bin if [ $? -eq 1 ] ; then -../../dfu-util/src/dfu-util -a 3 -d 0x1d50:0x5120 -D uImage-$1.bin -../../dfu-util/src/dfu-util -a 3 -d 0x1d50:0x5119 -D uImage-$1.bin +../../dfu-util/src/dfu-util -a 3 -d 0x1d50:0x5120 -D $1/uImage-$NAME.bin +../../dfu-util/src/dfu-util -a 3 -d 0x1d50:0x5119 -D $1/uImage-$NAME.bin fi |