linux-mtd.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* What if the UBI flasher can't skip all-FF pages?
@ 2011-01-10 22:47 J Barlow
  2011-01-11  9:35 ` Artem Bityutskiy
  2011-01-18  8:56 ` Artem Bityutskiy
  0 siblings, 2 replies; 6+ messages in thread
From: J Barlow @ 2011-01-10 22:47 UTC (permalink / raw)
  To: linux-mtd

Hi everyone,

I am developing an embedded system with a NAND flash.  We're intending to 
program all of the NAND flashes in a factory programmer.  I've read "how the UBI 
flash should work" and I suspect that the UBI flasher doesn't work that way.  
Specifically, I'm pretty sure it doesn't know how to skip pages containing only 
FFs.  Unfortunately, the flasher's software is proprietary, not to mention only 
available in Chinese.  It might well work as expected, but testing this would 
also be difficult and expensive since the flasher is in a factory in China. 

I believe that UBIFS is doing the right thing.  I blame the flasher, but I don't 
think I can do anything about it.

I'd prefer to use UBIFS as a writable root file system, if possible.  But maybe 
this won't work in my situation.

Is there any reasonable way to let UBIFS know all pages have been programmed 
initially?  For example, maybe I could deliberate replace all-FF pages with all-
00 pages in the flashed image.  Or will that just cause UBI/UBIFS to find 
corrupt empty space and fail?  Or perhaps someone could direct me how to make a 
patch that would help with UBIFS/UBI/ubinize with this specific situation.  It 
does seem like other people have run into problems with poorly written flashers 
problem, and in some cases like mine changing the flasher is not an option.

Also, if I use a read-only UBIFS in a dynamic UBI volume, will UBIFS ever 
attempt to double-program an all-FF page?  I would imagine if I used a read-only 
UBIFS in a static UBI volume I won't have trouble -- except that I also need to 
update the firmware.  Is it possible to ubiupdatevol a static UBI volume, or do 
I need something more aggressive to modify a static UBI volume?


Thanks.
J Barlow

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

end of thread, other threads:[~2011-01-18  8:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-10 22:47 What if the UBI flasher can't skip all-FF pages? J Barlow
2011-01-11  9:35 ` Artem Bityutskiy
2011-01-13 22:23   ` J Barlow
2011-01-14  5:45     ` Jon Povey
2011-01-18  8:56       ` Artem Bityutskiy
2011-01-18  8:56 ` Artem Bityutskiy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).