: Acceleration threshold configuration: lis302dl-configure-threshold-on-bitbang.patch
[linux-2.6/openmoko-kernel/knife-kernel.git] / makerecovery
blobe158638c77cabd8ddc6952747a80855f965338e1
1 #!/bin/sh
3 # make 6MB recovery image from two moredrivers type kernels
4 # placed at start and at +4MBytes
6 if [ -z "$1" ] ; then
7 echo "Usage: $0 uImage-moredrivers-..."
8 exit 1
9 fi
10 cat $1 > recovery-$1
11 SIZE=`ls -l $1 | tr -s ' ' ' ' | cut -d' ' -f5`
12 SPACE=$(( 4 * 1024 * 1024 - $SIZE ))
13 dd if=/dev/zero of=_spacer bs=1 count=$SPACE
14 cat _spacer >> recovery-$1
15 rm -f _spacer
16 cat $1 >> recovery-$1