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 possible. 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 http://www.plugcomputer.org/plugwiki/index.php/Enabling_UBIFS#Make_ubi_image_out_of_the_ubifs 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. :) -- To UNSUBSCRIBE, email to debian-arm-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org