2014-08-08 16:09 GMT+04:00 Arnd Gronenberg <[email protected]>:

> Hello Dmitriy,
>
> thanks for the detailed reply!


You are welcome.

 It is still in development, here you can check latest branch
>> https://github.com/bbrezillon/linux-sunxi/commits/sunxi-nand-pre-v4-fixed
>>
> Which modules / options should I enable?


Standard MTD/NAND/UBI/UBIFS things and nand-sunxi driver.
Config options:

MTD
MTD_NAND
MTD_NAND_SUNXI
MTD_UBI
UBIFS_FS


> Where may I find the special kernel patch? Will it honour the existing bad
> blocks?


Comment
https://github.com/bbrezillon/linux-sunxi/blob/sunxi-nand-pre-v4-fixed/drivers/mtd/nand/nand_base.c#L3274
and next line with goto statement (sorry I dont have my IRC logs/kernels
around for proper diff).

You will still have your "real" bad blocks, but the ones marked by mistake
because of differences in OOB between mainline and sunxi-nand from 3.4 will
be no longer marked bad. Then you will be able to use MTD aware file
systems like UBI/UBIFS.

I know the list of bad blocks from initial load of sunxi-nand...
>

Current driver will scan NAND on each boot for badblocks anyway, so
knowledge from old sunxi-nand is useless and also old sunxi-nand had an
offset in numbering, so bad block numbers are not equal to ones in the
mainline driver, which counts them by MTD standards


> I assume that flash_erase is the stock version from mtd-utils (from
> http://www.linux-mtd.infradead.org/).


Yes, also use UBI/UBIFS tools from there.


> --
>
> Arnd Gronenberg, [email protected], DJ9PZ / AB2QP
>

Best Regards,
Dmitriy Beykun

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to