Image builder

From OLPC
Revision as of 21:19, 25 July 2008 by CScott (talk | contribs) (Brief documentation for image-builder tool.)
Jump to navigation Jump to search

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.