public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* Tool to generate NAN_ECC_SOFT OOB data?
@ 2011-03-08 14:41 Daniel Hobi
  2011-03-08 14:54 ` Ricard Wanderlof
  2011-03-09  8:06 ` Artem Bityutskiy
  0 siblings, 2 replies; 3+ messages in thread
From: Daniel Hobi @ 2011-03-08 14:41 UTC (permalink / raw)
  To: linux-mtd; +Cc: Frank Haverkamp

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Tool to generate NAN_ECC_SOFT OOB data?
  2011-03-08 14:41 Tool to generate NAN_ECC_SOFT OOB data? Daniel Hobi
@ 2011-03-08 14:54 ` Ricard Wanderlof
  2011-03-09  8:06 ` Artem Bityutskiy
  1 sibling, 0 replies; 3+ messages in thread
From: Ricard Wanderlof @ 2011-03-08 14:54 UTC (permalink / raw)
  To: Daniel Hobi; +Cc: Frank Haverkamp, linux-mtd@lists.infradead.org


On Tue, 8 Mar 2011, Daniel Hobi wrote:

> 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
-- 
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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Tool to generate NAN_ECC_SOFT OOB data?
  2011-03-08 14:41 Tool to generate NAN_ECC_SOFT OOB data? Daniel Hobi
  2011-03-08 14:54 ` Ricard Wanderlof
@ 2011-03-09  8:06 ` Artem Bityutskiy
  1 sibling, 0 replies; 3+ messages in thread
From: Artem Bityutskiy @ 2011-03-09  8:06 UTC (permalink / raw)
  To: Daniel Hobi; +Cc: Frank Haverkamp, linux-mtd

On Tue, 2011-03-08 at 15:41 +0100, Daniel Hobi wrote:
> 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!

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-03-09  8:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-08 14:41 Tool to generate NAN_ECC_SOFT OOB data? Daniel Hobi
2011-03-08 14:54 ` Ricard Wanderlof
2011-03-09  8:06 ` Artem Bityutskiy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox