r2538 - in developers/werner: . snap

werner at sita.openmoko.org werner at sita.openmoko.org
Fri Jul 27 17:29:24 CEST 2007


Author: werner
Date: 2007-07-27 17:29:18 +0200 (Fri, 27 Jul 2007)
New Revision: 2538

Added:
   developers/werner/snap/
   developers/werner/snap/README
   developers/werner/snap/config.template
   developers/werner/snap/mksnap
Log:
Simple snapshot generator, with usage instructions for the
snapshots.



Added: developers/werner/snap/README
===================================================================
--- developers/werner/snap/README	2007-07-27 11:35:53 UTC (rev 2537)
+++ developers/werner/snap/README	2007-07-27 15:29:18 UTC (rev 2538)
@@ -0,0 +1,46 @@
+Werner's unofficial snapshots
+=============================
+
+Note: I generate these snapshots from time to time on my workstation.
+I'm not regularly involved in fixing the OE build process, or similar,
+so please don't look for support here.
+
+
+Running the snapshot generator
+------------------------------
+
+The script is pretty self-documenting :-)
+
+
+Updating kernel and rootfs
+--------------------------
+
+Go over to the devirginator:
+
+% cd ../../trunk/src/host/devirginator
+
+Pick a directory TIME (200*) from
+http://buildhost-old.openmoko.org/~werner/snap/TIME/
+
+% wget http://buildhost-old.openmoko.org/~werner/snap/TIME/config-TIME
+% ./setup.sh -c config-TIME
+
+Connect the Neo to the host (via USB). It should power up. Now, quickly
+
+% ./devirginate -2
+
+
+Installing everything from scratch
+----------------------------------
+
+You need a debug board. Connect it to the Neo and to USB. Connect the
+Neo to USB as well.
+
+Follow the instructions above, except the "devirginate". Instead, do
+
+% cp tmp/openocd-allids.cfg openocd.cfg
+% ./openocd &
+
+Now power the Neo on, and run
+
+% ./devirginate

Added: developers/werner/snap/config.template
===================================================================
--- developers/werner/snap/config.template	2007-07-27 11:35:53 UTC (rev 2537)
+++ developers/werner/snap/config.template	2007-07-27 15:29:18 UTC (rev 2538)
@@ -0,0 +1,22 @@
+#
+# MACHINE-GENERATED. DO NOT EDIT !
+#
+# config - Devirginator configuration file
+#
+# This is a shell script sourced by "setup.sh".
+#
+
+OPENOCD_HOST=localhost
+PLATFORM=gta01
+BOARD=bv4
+
+stuff=http://buildhost-old.openmoko.org/~werner/snap/UNIQUE
+
+LOWLEVEL=$stuff/lowlevel_foo-$PLATFORM$BOARD-*.bin
+UBOOT=$stuff/u-boot-$PLATFORM$BOARD-*.bin
+UIMAGE=$stuff/uImage-*.bin
+ROOTFS=$stuff/openmoko-devel-image-*.rootfs.jffs2
+
+DFU_UTIL=$stuff/dfu-util
+OPENOCD=$stuff/openocd
+OPENOCD_CFG=http://people.openmoko.org/werner/openocd-allids.cfg

Added: developers/werner/snap/mksnap
===================================================================
--- developers/werner/snap/mksnap	2007-07-27 11:35:53 UTC (rev 2537)
+++ developers/werner/snap/mksnap	2007-07-27 15:29:18 UTC (rev 2538)
@@ -0,0 +1,32 @@
+#!/bin/sh -e
+
+DIR=/home/moko/snap
+TMP=$DIR/tmp
+HOST=werner at buildhost-old.openmoko.org
+UNIQUE=`date -u +'%F_%T'`
+UPLOAD=public_html/snap/upload
+REL=public_html/snap/$UNIQUE
+BASE="`pwd`"
+
+if [ -d $TMP ]; then
+    cd $TMP
+    make update-makefile
+else
+    mkdir -p $TMP && cd $TMP
+    wget http://www.rwhitby.net/files/openmoko/Makefile
+fi
+
+PATH=/bin:/usr/bin:$PATH
+make update
+make setup
+rm -f $TMP/build/tmp/deploy/images/*
+rm -f $TMP/build/tmp/stamps/*/*.do_deploy
+#rm $TMP/build/tmp/deploy/stamps/*/openmoko-devel-image-*do_install
+make openmoko-devel-image
+ssh $HOST "rm -rf $UPLOAD && mkdir -p $UPLOAD"
+#rm -f build/tmp/deploy/images/*gta01v*
+rm -f build/tmp/deploy/images/{zImage*,*.ext2.*,*.tar.*}
+scp build/tmp/deploy/images/* $HOST:$UPLOAD
+sed s/UNIQUE/$UNIQUE/g <$BASE/config.template |
+  ssh $HOST "cat >$UPLOAD/config-$UNIQUE"
+ssh $HOST "mv $UPLOAD $REL"


Property changes on: developers/werner/snap/mksnap
___________________________________________________________________
Name: svn:executable
   + *





More information about the commitlog mailing list