summaryrefslogtreecommitdiff
path: root/packages/simpad-utilities/genboot/simpad-make-flashimg
diff options
context:
space:
mode:
authorDenys Dmytriyenko <denis@denix.org>2009-03-17 14:32:59 -0400
committerDenys Dmytriyenko <denis@denix.org>2009-03-17 14:32:59 -0400
commit709c4d66e0b107ca606941b988bad717c0b45d9b (patch)
tree37ee08b1eb308f3b2b6426d5793545c38396b838 /packages/simpad-utilities/genboot/simpad-make-flashimg
parentfa6cd5a3b993f16c27de4ff82b42684516d433ba (diff)
rename packages/ to recipes/ per earlier agreement
See links below for more details: http://thread.gmane.org/gmane.comp.handhelds.openembedded/21326 http://thread.gmane.org/gmane.comp.handhelds.openembedded/21816 Signed-off-by: Denys Dmytriyenko <denis@denix.org> Acked-by: Mike Westerhof <mwester@dls.net> Acked-by: Philip Balister <philip@balister.org> Acked-by: Khem Raj <raj.khem@gmail.com> Acked-by: Marcin Juszkiewicz <hrw@openembedded.org> Acked-by: Koen Kooi <koen@openembedded.org> Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Diffstat (limited to 'packages/simpad-utilities/genboot/simpad-make-flashimg')
-rwxr-xr-xpackages/simpad-utilities/genboot/simpad-make-flashimg89
1 files changed, 0 insertions, 89 deletions
diff --git a/packages/simpad-utilities/genboot/simpad-make-flashimg b/packages/simpad-utilities/genboot/simpad-make-flashimg
deleted file mode 100755
index e29de3f94f..0000000000
--- a/packages/simpad-utilities/genboot/simpad-make-flashimg
+++ /dev/null
@@ -1,89 +0,0 @@
-#!/bin/sh
-# Script to build a full (kernel+initrd) flash rom bootimage
-# (C) 2003-2004 Michael 'Mickey' Lauer <mickey@Vanille.de>
-# Use serload to flash the image on your SIMpad
-
-#
-# vars
-#
-GENBOOT=genboot
-PAD=pad
-KERNEL=$2
-INITRD=$3
-
-doComplete()
-{
- kernel=$(basename $KERNEL)
- initrd=$INITRD
- outfile=/tmp/tmpfile
- padfile=/tmp/tmpfile2
- flashfile=$kernel.initrd.flashfile
-
- cp -f $KERNEL $padfile
- $PAD 1048556 $padfile
- cat $padfile $initrd >$outfile
- set X`ls -l $outfile`
- filelen=$5
-
- loader_start="0xc0208000"
- loader_entry="0xc0208000"
-
- echo "File: $flashfile Exec: $loader_entry $filelen "
- $GENBOOT -d3 $loader_entry 1 $loader_start $filelen >/tmp/bheader
- cat /tmp/bheader $outfile >$flashfile
- rm $outfile
- rm $padfile
- exit 0
-}
-
-doKernel()
-{
- kernel=$(basename $KERNEL)
- outfile=/tmp/tmpfile
- flashfile=$kernel.flashfile
-
- cat $KERNEL >$outfile
- set X`ls -l $outfile`
- filelen=$5
-
- loader_start="0xc0208000"
- loader_entry="0xc0208000"
-
- echo "File: $flashfile Exec: $loader_entry $filelen "
- $GENBOOT -d3 $loader_entry 1 $loader_start $filelen >/tmp/bheader
- cat /tmp/bheader $outfile >$flashfile
- rm $outfile
- exit 0
-}
-
-doKernelInPlace()
-{
- kernel=$(basename $KERNEL)
- outfile=/tmp/tmpfile
- flashfile=$kernel.flashfile
-
- cat $KERNEL >$outfile
- set X`ls -l $outfile`
- filelen=$5
-
- loader_start="0xc0080000"
- loader_entry="0xc0080000"
-
- echo "File: $flashfile Exec: $loader_entry $filelen "
- $GENBOOT $loader_entry 1 $loader_start $filelen >/tmp/bheader
- cat /tmp/bheader $outfile >$flashfile.inplace
- rm $outfile
- exit 0
-}
-
-if [ $# -lt 2 ]
- then echo "Usage: ./simpad-make-flashimg [kernel|complete|inplace] <kernel> [rootfs.jffs2]" && exit -1
-fi
-
-case "$1" in
-kernel) doKernel;;
-complete) doComplete;;
-inplace) doKernelInPlace;;
-*) echo "Usage: ./simpad-make-flashimg [kernel|complete|inplace] <kernel> [rootfs.jffs2]"; exit;;
-esac
-