UBI ECC errors on kernel 3.16.2

Angelo Dureghello angelo70 at gmail.com
Mon Oct 6 13:31:49 PDT 2014


Dear pekon,

On 06/10/2014 22:13, pekon wrote:
> I'm not sure how mtd-utils use the arguments but following combination 
> worked for me to mount a UBI image without sub-pages.
> (1) mkfs.ubifs  -m (min-io-size=2048)   [-s (subpage-size=2048)]
> (2) ubinize     -m (min-io-size=2048)
> (3) ubiformat   -O 2048  (indicates that offset of volume-ID header 
> from start of block)
>
Sure, this is the combination i use too, that doesn't work with 
sub-pages write.
Sems kernel anyway consider sub-page (512) as available.
>
>> 2) So how does it works this subpages-write support if the nand flash
>> does not
>> supports subpages write ?
>>
> You can disable sub-page write by adding following in your driver probe.
> +    chip->options |= NAND_NO_SUBPAGE_WRITE
>
Thanks, would be more elegant your patch.
Anyway, i was expecting that mtd probe, on nand detection, to 
akcnowledge that
the nand donesn't have subpages, so to set automatically no subpages.

https://bugzilla.kernel.org/show_bug.cgi?id=85481


Thanks again for the help,

Regards
Angelo




More information about the linux-mtd mailing list