Installing to NAND: Difference between revisions

From OLPC
Jump to navigation Jump to search
No edit summary
m (turned into headings)
Line 21: Line 21:
==Troubleshooting==
==Troubleshooting==


* <tt>flash_eraseall: /dev/mtd0: No such file or directory</tt>
=== <tt>flash_eraseall: /dev/mtd0: No such file or directory</tt> ===


This is seen when <tt>modprobe mtdchar</tt> wasn't performed.
This is seen when <tt>modprobe mtdchar</tt> wasn't performed.


* I see a hang after "<tt>NOTICE: Booting default</tt>"
=== I see a hang after "<tt>NOTICE: Booting default</tt>" ===


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


* <tt>JFFS2 warning: (1381) jffs2_sum_write sumnode: Not enough space for summary, padsize = -793</tt>
=== <tt>JFFS2 warning: (1381) jffs2_sum_write sumnode: Not enough space for summary, padsize = -793</tt> ===


This warning is harmless.
This warning is harmless.

Revision as of 01:40, 26 August 2006

Overview

This page describes how to write a filesystem to the board's internal NAND flash and boot from it using LinuxBIOS.

Requirements

You should have a working install of one of the OLPC Build images, build 78 or higher, and a copy of the corresponding jffs2.img for that build available. (For example, on another USB key.)

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
  nandwrite -p /dev/mtd0 /path/to/olpc-development-rpm-jffs2.img

We intend to provide a mechanism to let the jffs2 img be streamed to nandwrite over the network, for people with only one USB key; this isn't working currently, though.

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.