Apr 22, 2008

NAND Flash ~ empty flash 問題

Openmoko - 惱人的 Empty flash 問題

# sumtool -e 0x20000 --no-cleanmarkers --littleendian -i output/rootfs.jffs2 -o output/newrootfs.jffs2

sumtool

Usage: sumtool [OPTIONS] -i inputfile -o outputfile

Convert the input JFFS2 image to a summarized JFFS2 image
Summary makes mounting faster - if summary support enabled in your kernel

Options:
  -e, --eraseblock=SIZE     Use erase block size SIZE (default: 64KiB) (usually 16KiB on NAND)


  -c, --cleanmarker=SIZE    Size of cleanmarker (default 12).              (usually 16 bytes on NAND, and will be set to this value if left at the default 12). Will be stored in OOB after each physical page composing a physical eraseblock.

  -n, --no-cleanmarkers     Don't add a cleanmarker to every eraseblock
  -o, --output=FILE         Output to FILE
  -i, --input=FILE          Input from FILE
  -b, --bigendian           Image is big endian
  -l  --littleendian        Image is little endian
  -h, --help                Display this help text
  -v, --verbose             Verbose operation
  -V, --version             Display version information
  -p, --pad                 Pad the OUTPUT with 0xFF to the end of the final eraseblock

0 comments:

Post a Comment