public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* mkfs.jffs2 min erase block size: 4 vs 8 KiB
@ 2011-06-22  5:02 Mike Frysinger
  2011-06-22  8:30 ` Guillaume LECERF
  2011-06-24 12:07 ` Artem Bityutskiy
  0 siblings, 2 replies; 7+ messages in thread
From: Mike Frysinger @ 2011-06-22  5:02 UTC (permalink / raw)
  To: linux-mtd

the current mkfs.jffs2 util has in its --eraseblock handling:
/* If it's less than 8KiB, they're not allowed */
if (erase_block_size < 0x2000) {
    fprintf(stderr, "Erase size 0x%x too small. Increasing to 8KiB minimum\n",
        erase_block_size);
    erase_block_size = 0x2000;
}

but i cant seem to find documentation on where this comes from.  it's
not uncommon to have SPI flashes with 4KiB erase sectors, and removing
this sanity check and allowing 4 KiB seems to produce an image that
works OK.

am i missing something ?  or should i send a patch to drop this check ?
-mike

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-06-24 19:29 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-22  5:02 mkfs.jffs2 min erase block size: 4 vs 8 KiB Mike Frysinger
2011-06-22  8:30 ` Guillaume LECERF
2011-06-24 12:07 ` Artem Bityutskiy
2011-06-24 17:10   ` Mike Frysinger
2011-06-24 19:20     ` Artem Bityutskiy
2011-06-24 19:23       ` Mike Frysinger
2011-06-24 19:29         ` Artem Bityutskiy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox