Image builder: Difference between revisions

From OLPC
Jump to navigation Jump to search
(Give contact info.)
(Brief documentation for image-builder tool.)
Line 1: Line 1:
http://dev.laptop.org/git/users/cscott/image-builder
Source code is at: http://dev.laptop.org/git/users/cscott/image-builder


The image builder tool is very simple: it consists of a single python file named 'build.py', which you can download from http://dev.laptop.org/git?p=users/cscott/image-builder;a=blob_plain;f=build.py;hb=HEAD
The image builder tool has not yet been documented. Contact cscott at laptop dot org for more information.

Given an unpacked customization key in /media/custom (say), you invoke the image builder with:

$ build.py -v -o per703-6 /media/custom

This will create peru703-6.img and other files needed to install the image with copy-nand. For more information:

<pre>
$ build.py --help
Usage: build.py [options] [path-to-customization-key]

Options:
-h, --help show this help message and exit
-o FILE, --output=FILE
Name of custom image file to generate.
-v Display verbose progress information.
-q, --quiet Don't output anything if successful.
</pre>

You will need the following programs installed on your machine for build.py's use: tar, unzip, mkfs.jffs2, sumtool, crcimg. The mkfs.jffs2 and sumtool binaries are in the 'mtd-utils' package on Debian and Fedora; the crcimg tool is [[Customizing_NAND_images#Creating_CRC_file|described here]].

Contact cscott at laptop dot org for more information.

Revision as of 21:19, 25 July 2008

Source code is at: http://dev.laptop.org/git/users/cscott/image-builder

The image builder tool is very simple: it consists of a single python file named 'build.py', which you can download from http://dev.laptop.org/git?p=users/cscott/image-builder;a=blob_plain;f=build.py;hb=HEAD

Given an unpacked customization key in /media/custom (say), you invoke the image builder with:

$ build.py -v -o per703-6 /media/custom

This will create peru703-6.img and other files needed to install the image with copy-nand. For more information:

$ build.py --help
Usage: build.py [options] [path-to-customization-key]

Options:
  -h, --help            show this help message and exit
  -o FILE, --output=FILE
                        Name of custom image file to generate.
  -v                    Display verbose progress information.
  -q, --quiet           Don't output anything if successful.

You will need the following programs installed on your machine for build.py's use: tar, unzip, mkfs.jffs2, sumtool, crcimg. The mkfs.jffs2 and sumtool binaries are in the 'mtd-utils' package on Debian and Fedora; the crcimg tool is described here.

Contact cscott at laptop dot org for more information.