UBI attach and mounting problem after rebooting

Artem Bityutskiy dedekind at infradead.org
Thu Feb 19 11:10:18 EST 2009


Hi,

On Thu, 2009-02-19 at 09:58 -0500, Subramani Venkatesh wrote:
> UBI error: ubi_io_read: error -74 while reading 64 bytes from PEB
> 798:0, read 64 bytes
> UBI error: ubi_io_read: error -74 while reading 64 bytes from PEB
> 799:0, read 64 bytes
> UBI error: ubi_read_volume_table: the layout volume was not found
> UBI error: ubi_init: cannot attach mtd4
> UBI error: ubi_init: UBI error: cannot initialize UBI, error -22

-71 is -EBADMSG which means that ECC error occurred. IOW, your NAND
driver reports that it cannot read 64 bytes from eraseblock 798,
offset 0, and UBI has nothing else to do but stopping.

You should look closer at what your driver do. I think it might be
not handling sub-pages correctly. You may experiment and force UBI
not to use sub-pages, and if it helps, you have your problem a little
bit narrowed down.

I've just created a FAQ entry which tells how to force UBI
not to use sub-pages:
http://www.linux-mtd.infradead.org/faq/ubi.html#L_force_no_subpage

Also, you may try to attach an empty flash and play with it. If it
works fine, this may be something to do with how you flash your
initial images. Indeed, the program you use for flashing may screw
up ECCs somehow.

HTH.

-- 
Best regards,
Artem Bityutskiy (Битюцкий Артём)




More information about the linux-mtd mailing list