From 0ddde1dadd8e000111b93fd0b794c623f5b60bec Mon Sep 17 00:00:00 2001 From: Marc Andre Tanner Date: Sat, 6 Feb 2010 19:47:39 +0100 Subject: [PATCH] Add helper scripts for flashing kernel / bootloader Signed-off-by: Marc Andre Tanner --- flash-kernel.sh | 16 ++++++++++++++++ flash-qi.sh | 16 ++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100755 flash-kernel.sh create mode 100755 flash-qi.sh diff --git a/flash-kernel.sh b/flash-kernel.sh new file mode 100755 index 0000000..a7b3429 --- /dev/null +++ b/flash-kernel.sh @@ -0,0 +1,16 @@ +#!/bin/sh + +source ./config + +[ -z "$MACHINE" ] && MACHINE="GTA02" + +case "$MACHINE" in + GTA01) + DEV="0x1457:0x5119" + ;; + *) + DEV="0x1d50:0x5119" + ;; +esac + +dfu-util --device $DEV -a kernel -R -D uImage-$MACHINE.bin diff --git a/flash-qi.sh b/flash-qi.sh new file mode 100755 index 0000000..6e16ee2 --- /dev/null +++ b/flash-qi.sh @@ -0,0 +1,16 @@ +#!/bin/sh + +. ./config + +case "$MACHINE" in + GTA01) + CPU="s3c2410" + DEV="0x1457:0x5119" + ;; + *) + CPU="s3c2442" + DEV="0x1d50:0x5119" + ;; +esac + +dfu-util -a 1 -d $DEV -D qi-$CPU*.udfu -- 2.11.4.GIT