1 From bd559c9f37baa73f7220b8158909ce6d7264d4d3 Mon Sep 17 00:00:00 2001
2 From: warmcat <andy@warmcat.com>
3 Date: Fri, 25 Jul 2008 23:05:59 +0100
4 Subject: [PATCH] local-build-scripts.patch
6 Add a couple of handy scripts to crossmake and send over dfu
8 From: warmcat <andy@warmcat.com>
10 build | 14 ++++++++++++++
11 dfu-kern | 9 +++++++++
12 2 files changed, 23 insertions(+), 0 deletions(-)
13 create mode 100755 build
14 create mode 100755 dfu-kern
16 diff --git a/build b/build
18 index 0000000..7e61ea2
26 +export CROSS_COMPILE=../../cross/bin/arm-angstrom-linux-gnueabi-
27 +make ARCH=arm silentoldconfig
28 +if make -j5 ARCH=arm; then
29 + ${CROSS_COMPILE}objcopy -O binary -R .note -R .comment -S arch/arm/boot/compressed/vmlinux linux.bin
30 + mkimage -A arm -O linux -T kernel -C none -a 30008000 -e 30008000 -n "OpenMoko Kernel Image Neo1973(GTA02)" -d linux.bin uImage.bin
36 diff --git a/dfu-kern b/dfu-kern
38 index 0000000..990abdd
43 +../../dfu-util/src/dfu-util -a 3 -d 0x1457:0x5119 -D uImage.bin
44 +if [ $? -eq 1 ] ; then
45 +../../dfu-util/src/dfu-util -a 3 -d 0x1457:0x5120 -D uImage.bin
46 +../../dfu-util/src/dfu-util -a 3 -d 0x1457:0x5119 -D uImage.bin