Commit 165d631b authored by Andreas Kemnade's avatar Andreas Kemnade

letux: add a script to start uboot via dfu

Signed-off-by: default avatarAndreas Kemnade <andreas@kemnade.info>
parent 26d2dad8
#!/bin/bash
UBOOT=u-boot.img
if [ $# -ge 1 ]; then
if [ "$1" = --help ]; then
echo Usage: $0 [u-boot.img]
exit 0
fi
UBOOT="$1"
fi
set -e
echo Power on you gta04 with aux button pressed
pusb -f spl
# wait for dfu to appear
sleep 1
dfu-util -a uboot -D "$UBOOT"
sleep 0.5
dfu-util -a uboot -e
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment