UBIFS fails & crashes on SheevaPlug

Erno Kuusela erno at gulp.u--3.com
Sun Jul 26 11:35:36 EDT 2009

On Fri, Jul 24, 2009 at 05:38:27PM +0300, Artem Bityutskiy wrote:
> On 07/24/2009 04:12 PM, Erno Kuusela wrote:
>> So workaround would be to disable CONFIG_MTD_NAND_VERIFY_WRITE or to
>> follow the "ignore sub pages" entry from the faq...
>> Indeed the latter seems to work, if I give --vid-hdr-offset 2048 option
>> to the ubinize, ubiformat&  ubiattach commands. Thanks!
> It should work without this. Your flash driver reports that your flash
> supports 512-byte sub-pages. This means you may save your flash space
> and put both UBI headers to the first NAND page. See this explanation:
> http://www.linux-mtd.infradead.org/doc/ubi.html#L_overhead
> If you follow links from this little section, you should grasp the picture.
> So, disabling this option should help without the --vid-hdr-offset 2048
> stuff. If it does not, then you should fix your driver.

Yeah, but I'm trying to make do without building my own kernels if 

And yes, the ubiformat "bad eraseblocks" message was indeed
a misunderstanding from my part.

There was one more error (for benefit of anyone else hitting the same 
problem): mkfs.ubifs -e 129024 parameter from 
didn't work for me (got "validate_sb: LEB size mismatch: 129024 in 
superblock, 126976 real"). Fixing this to the number indicated in the 
error message (126976) fixed it. 

Looks like I have ubifs working now. :)

More information about the linux-mtd mailing list