public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* jffs2 eraseblock size, and actual flash device eraseblock size
@ 2007-07-03  6:47 Chuck Meade
  2007-07-11 18:55 ` Chuck Meade
  0 siblings, 1 reply; 3+ messages in thread
From: Chuck Meade @ 2007-07-03  6:47 UTC (permalink / raw)
  To: linux-mtd, Chuck Meade (mindspring)

Hello,

I am generating a jffs2 image for a target that can have one of two
different flash devices installed.  One of these flash devices has
an eraseblock size of 0x20000 bytes, and one has an eraseblock size of
0x10000 bytes.  The storage size of the flash devices is the same.
It would be nice to be able to use the same jffs2 image on both target
flash variants.

I have read what I could find related to this, including the FAQ, such
as here:  http://www.linux-mtd.infradead.org/doc/jffs2.html
which states "creating an image with smaller eraseblock size than the
actual hardware is harmless -- it just gives annoying messages".

I would like to get your expert opinions on what would be the _best_
approach here.  The possible approaches are to create an image with the
eraseblock set to 0x10000, or to 0x20000.  The 0x10000 size would be
smaller than the actual flash eraseblock size on the flash device with
actual eraseblock size=0x20000.  And the opposite problem occurs if you
create an image with eraseblock 0x20000 -- it is larger than the actual
erase block size when using the flash device with eraseblock size 0x10000.

What are the pros and cons here, with respect to efficiency?  Would
both of the above choices even work?

Thanks,
Chuck

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

* Re: jffs2 eraseblock size, and actual flash device eraseblock size
  2007-07-03  6:47 jffs2 eraseblock size, and actual flash device eraseblock size Chuck Meade
@ 2007-07-11 18:55 ` Chuck Meade
  2007-07-11 20:08   ` Jörn Engel
  0 siblings, 1 reply; 3+ messages in thread
From: Chuck Meade @ 2007-07-11 18:55 UTC (permalink / raw)
  To: linux-mtd, Chuck Meade (mindspring)

> I am generating a jffs2 image for a target that can have one of two
> different flash devices installed.  One of these flash devices has
> an eraseblock size of 0x20000 bytes, and one has an eraseblock size of
> 0x10000 bytes.  The storage size of the flash devices is the same.
> It would be nice to be able to use the same jffs2 image on both target
> flash variants.
> 
> I have read what I could find related to this, including the FAQ, such
> as here:  http://www.linux-mtd.infradead.org/doc/jffs2.html
> which states "creating an image with smaller eraseblock size than the
> actual hardware is harmless -- it just gives annoying messages".
> 
> I would like to get your expert opinions on what would be the _best_
> approach here.  The possible approaches are to create an image with the
> eraseblock set to 0x10000, or to 0x20000.  The 0x10000 size would be
> smaller than the actual flash eraseblock size on the flash device with
> actual eraseblock size=0x20000.  And the opposite problem occurs if you
> create an image with eraseblock 0x20000 -- it is larger than the actual
> erase block size when using the flash device with eraseblock size 0x10000.
> 
> What are the pros and cons here, with respect to efficiency?  Would
> both of the above choices even work?

Any ideas at all on this?  I am looking for input on the following:
1. If it is a workable solution to have the same jffs2 image being used
   on devices of two different erase block sizes.
2. If so, which is the preferrable method, to generate the jffs2 image
   specifying the smaller or the larger of the two erase block sizes,
   and why?

Thanks for any info you can provide regarding this,
Chuck

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

* Re: jffs2 eraseblock size, and actual flash device eraseblock size
  2007-07-11 18:55 ` Chuck Meade
@ 2007-07-11 20:08   ` Jörn Engel
  0 siblings, 0 replies; 3+ messages in thread
From: Jörn Engel @ 2007-07-11 20:08 UTC (permalink / raw)
  To: Chuck Meade; +Cc: linux-mtd

On Wed, 11 July 2007 14:55:31 -0400, Chuck Meade wrote:
> 
> Any ideas at all on this?  I am looking for input on the following:
> 1. If it is a workable solution to have the same jffs2 image being used
>    on devices of two different erase block sizes.

Unlikely.

> 2. If so, which is the preferrable method, to generate the jffs2 image
>    specifying the smaller or the larger of the two erase block sizes,
>    and why?

If you choose the larger size you will have data loss.  The smaller size
may or may not work.  I leave the required analysis to you.  I'd bet
small coins against you, large notes if you have summary enabled on your
image.

Jörn

-- 
When people work hard for you for a pat on the back, you've got
to give them that pat.
-- Robert Heinlein

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

end of thread, other threads:[~2007-07-11 20:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-03  6:47 jffs2 eraseblock size, and actual flash device eraseblock size Chuck Meade
2007-07-11 18:55 ` Chuck Meade
2007-07-11 20:08   ` Jörn Engel

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