aboutsummaryrefslogtreecommitdiff
path: root/dfu-kern
blob: 023d13b094128021f5818ded7a39c3f17b1c817d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash

if [ -z "$1" ] ; then
	echo "Usage: $0 <DEVICE>    eg, $0 GTA02"
	exit 1
fi

../../dfu-util/src/dfu-util -a 3 -d 0x1d50:0x5119 -D uImage-$1.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
fi