Tool to generate NAN_ECC_SOFT OOB data?
Hi list,
what is the preferred way to generate ECC data during manufacturing when using software ECC (NAND_ECC_SOFT)?
Reading "Can I program NAND via JTAG?" on
http://www.linux-mtd.infradead.org/faq/nand.html, I assume some JTAG tools are capable of generating ECC data during programming. However, I would prefer to generate the ECC data beforehand and use a "raw" programming mode (still skipping bad blocks). Ideally the OOB/ECC layout is defined only once for both the MTD NAND driver and a userspace tool to generate image files containing OOB data.
mtd-utils.git once contained such a tool called bin2nand which was removed with commit 94a20240 (ubi-utils: remove old ubi-utils) on 2010-09-28. Does anyone know a replacement tool?
@Frank: a long time ago (2008-02-18), you tried to move bin2nand to the top-level directory. Do you still use such a tool?
Best regards,
Daniel
Quoted 3 lines · Daniel Hobi
Hi list,
what is the preferred way to generate ECC data during manufacturing when using software ECC (
NAND_ECC_SOFT)?
I don't know if there is a preferred way, but one way would be to download a kernel image + file systems to RAM, boot it as an ordinary system, and
then use ordinary mtd tools on that system to flash the image. You then get the benefit of using the same mtd algorithms etc as will be used when the system is subsequently up and running.
/Ricard
Signature · 3 lines
Ricard Wolf Wanderlöf ricardw(at)axis.com Axis Communications AB, Lund, Sweden www.axis.com Phone +46 46 272 2016 Fax +46 46 13 61 30
Quoted 6 lines · Daniel Hobi
mtd-utils.git once contained such a tool called bin2nand which was removed with commit
94a20240(ubi-utils: remove old ubi-utils) on 2010-09-28. Does anyone know a replacement tool?@Frank: a long time ago (2008-02-18), you tried to move bin2nand to the top-level directory. Do you still use such a tool?
Daniel, the best you can do is to pick that utility, massage it, and submit a patch!
Signature · 2 lines
Best Regards, Artem Bityutskiy (Артём Битюцкий)