r1185 - trunk/src/host/devirginator
werner at sita.openmoko.org
werner at sita.openmoko.org
Thu Mar 1 16:32:36 CET 2007
Author: werner
Date: 2007-03-01 16:32:24 +0100 (Thu, 01 Mar 2007)
New Revision: 1185
Modified:
trunk/src/host/devirginator/Makefile
trunk/src/host/devirginator/README
trunk/src/host/devirginator/config.example
trunk/src/host/devirginator/crc32.pl
Log:
Makefile: updated "devirginate" dependencies.
README: added run-time requisites for setup and installation.
README: added partial description of setup.
config.example: removed variable "MODULES" (for kernel modules).
crc32.pl: fixed 64 bit compatibility
Modified: trunk/src/host/devirginator/Makefile
===================================================================
--- trunk/src/host/devirginator/Makefile 2007-03-01 15:27:00 UTC (rev 1184)
+++ trunk/src/host/devirginator/Makefile 2007-03-01 15:32:24 UTC (rev 1185)
@@ -20,7 +20,9 @@
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
-devirginate: config setup.sh smiley.gz
+devirginate: config environment.in openocd.in u-boot.in \
+ setup.sh smiley.gz \
+ crc32.pl envedit.pl openocdcmd.pl scriptify.pl
mkdir -p tmp
./setup.sh
Modified: trunk/src/host/devirginator/README
===================================================================
--- trunk/src/host/devirginator/README 2007-03-01 15:27:00 UTC (rev 1184)
+++ trunk/src/host/devirginator/README 2007-03-01 15:32:24 UTC (rev 1185)
@@ -47,7 +47,34 @@
For build instructions, see developers/werner/notes/openocd
+ If you're using the version of OpenOCD built by the OpenMoko
+ distribution (SVN revision 1180 or later), the patch is already
+ applied.
+Furthermore, "devirginate" requires telnet.
+
+"setup.sh" can be run from a different machine sharing the same file
+system hierarchy. It requires Netpbm, transfig, wget, and Perl.
+
+
+Setup
+=====
+
+The devirginator first needs to be set up. This includes
+
+- downloading binaries for u-boot, kernel, etc.
+- generating/converting various files used during the setup process
+
+At the moment, the setup must be done in the directory containing all
+files belonging to the devirginator. The files generated during setup
+are stored in the directory tmp/. The files in tmp/ are also used
+during devirgination.
+
+First, copy config.example to "config" and make the necessary changes.
+Almost all settings have reasonable defaults, but you will have to
+set SNAPSHOT to the date code of the snapshot you desire.
+
+
Files
=====
Modified: trunk/src/host/devirginator/config.example
===================================================================
--- trunk/src/host/devirginator/config.example 2007-03-01 15:27:00 UTC (rev 1184)
+++ trunk/src/host/devirginator/config.example 2007-03-01 15:32:24 UTC (rev 1185)
@@ -78,10 +78,6 @@
# Example:
# UIMAGE=$OMDIR/build/tmp/deploy/images/uImage-2.6-200702241944-fic-gta01-20070224194345.bin
-# MODULES: the kernel modules, as gzip'ed tar file.
-# Example:
-# MODULES=$OMDIR/build/tmp/deploy/images/modules-2.6-200702241944-fic-gta01.tgz
-
# ROOTFS: the root file system, in jffs2 format.
# Example:
# ROOTFS=$OMDIR/build/tmp/deploy/images/openmoko-devel-image-fic-gta01-20070212015815.rootfs.jffs2
Modified: trunk/src/host/devirginator/crc32.pl
===================================================================
--- trunk/src/host/devirginator/crc32.pl 2007-03-01 15:27:00 UTC (rev 1184)
+++ trunk/src/host/devirginator/crc32.pl 2007-03-01 15:32:24 UTC (rev 1185)
@@ -29,11 +29,12 @@
sub crc32
{
local ($s) = @_;
- local ($poly, $crc) = (0xedb88320, ~0);
+ local ($poly, $crc) = (0xedb88320, 0xffffffff);
local ($i, $j);
for ($i = 0; $i != length $s; $i++) {
for ($j = 0; $j != 8; $j++) {
+ $crc &= 0xffffffff;
if (($crc ^ (unpack("C", substr($s, $i, 1)) >> $j)) & 1) {
$crc = ($crc >> 1) ^ $poly;
}
@@ -42,5 +43,5 @@
}
}
}
- return ~$crc;
+ return $crc ^ 0xffffffff;
}
More information about the commitlog
mailing list