aboutsummaryrefslogtreecommitdiff
path: root/dfu-kern
diff options
context:
space:
mode:
authorAndy Green <andy@openmoko.com>2009-02-20 13:33:26 +0000
committerAndy Green <agreen@octopus.localdomain>2009-02-20 13:33:26 +0000
commit3b3054030ecb6bf17a2f2cb5086ad080cc53aa55 (patch)
tree9ae58c9b4a0b9e4cff2db3f1ab55129d99c9ad8e /dfu-kern
parent67e4769603fab92ac1be9a9e86ad7ca8e89b9eae (diff)
fix-dfu-kern.patch
Signed-off-by: Andy Green <andy@openmoko.com>
Diffstat (limited to 'dfu-kern')
-rwxr-xr-xdfu-kern8
1 files changed, 5 insertions, 3 deletions
diff --git a/dfu-kern b/dfu-kern
index 023d13b0941..8ba564ee607 100755
--- a/dfu-kern
+++ b/dfu-kern
@@ -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