Installing to NAND

From OLPC
Revision as of 16:56, 25 August 2006 by Cjb (talk | contribs) (new page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Overview

This page describes how to write a disk image to the board's internal NAND flash and boot from it.

Requirements

You should have a working install of one of the OLPC Build images, build 78 or higher, and have network connectivity to your board.

Procedure

After the board has booted, hit ctrl+alt+F1 to get to a login prompt, and login as root. Then:

  modprobe mtdchar
  flash_eraseall -j /dev/mtd0
  wget -O - http://olpc.download.redhat.com/olpc/streams/development/latest/images-rpm/olpc-development-rpm-jffs2.img |nandwrite -p /dev/mtd0 -

It is normal to see bad block errors during both the flash_eraseall and nandwrite steps. When the nandwrite has finished you can reboot, and LinuxBIOS will boot from the NAND flash. A delay of around 80 seconds on boot is normal; the filesystem we wrote to the NAND was compressed, and is uncompressed on boot.

Troubleshooting

  • flash_eraseall: /dev/mtd0: No such file or directory

This is seen when modprobe mtdchar wasn't performed.

  • I see a hang after "NOTICE: Booting default"

This is normal, and should last for around 80 seconds. The filesystem on the NAND flash is being uncompressed.

  • JFFS2 warning: (1381) jffs2_sum_write sumnode: Not enough space for summary, padsize = -793

This warning is harmless.