local-build-scripts.patch
authorwarmcat <andy@warmcat.com>
Wed, 19 Nov 2008 17:09:28 +0000 (17:09 +0000)
committerAndy Green <agreen@pads.home.warmcat.com>
Wed, 19 Nov 2008 17:09:28 +0000 (17:09 +0000)
Add a couple of handy scripts to crossmake and send over dfu

From: warmcat <andy@warmcat.com>

build [new file with mode: 0755]
dfu-kern [new file with mode: 0755]

diff --git a/build b/build
new file mode 100755 (executable)
index 0000000..7e61ea2
--- /dev/null
+++ b/build
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+set -x
+
+export CROSS_COMPILE=../../cross/bin/arm-angstrom-linux-gnueabi-
+make ARCH=arm silentoldconfig
+if make -j5 ARCH=arm; then
+       ${CROSS_COMPILE}objcopy -O binary -R .note -R .comment -S arch/arm/boot/compressed/vmlinux linux.bin
+       mkimage -A arm -O linux -T kernel -C none -a 30008000 -e 30008000 -n "OpenMoko Kernel Image Neo1973(GTA02)" -d linux.bin uImage.bin
+       exit 0
+else
+       exit 1
+fi
+
diff --git a/dfu-kern b/dfu-kern
new file mode 100755 (executable)
index 0000000..990abdd
--- /dev/null
+++ b/dfu-kern
@@ -0,0 +1,9 @@
+#!/bin/bash
+../../dfu-util/src/dfu-util -a 3 -d 0x1457:0x5119 -D uImage.bin
+if [ $? -eq 1 ] ; then
+../../dfu-util/src/dfu-util -a 3 -d 0x1457:0x5120 -D uImage.bin
+../../dfu-util/src/dfu-util -a 3 -d 0x1457:0x5119 -D uImage.bin
+
+fi
+
+