Imaging for XO-1.5

From OLPC
Revision as of 03:15, 5 August 2010 by Quozl (talk | contribs) (Created page with 'XO-1.5 only. How to build your own operating system image file, by extracting an image from a laptop and using our tools to covnert to the format required by the firmware. == M…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

XO-1.5 only.

How to build your own operating system image file, by extracting an image from a laptop and using our tools to covnert to the format required by the firmware.

Method 1 - Internal microSD

cat /dev/mmcblk0 > fs.img

Method 2 - External SD

  • prepare the image on a removable SD, e.g. by installing a build to the removable SD and making changes, remove the files that Nandblaster_for_XO-1 identified as creating side effects, and then shutdown,
  • remove the SD card and insert into a running system, identify the block device from /proc/partitions,
  • capture the image
cat /dev/mmcblk1 > fs.img

Convert to ZD

  • build a .zd file of the image:
# yum install git make gcc zlib-devel libtomcrypt-devel
$ git clone git://dev.laptop.org/bios-crypto
$ cd bios-crypto/build
$ make zhashfs
$ ./zhashfs 0x20000 sha256 fs.img fs.zsp fs.zd
  • test install the image using fs-update.