* Some problem in real application
@ 2009-01-12 8:57 Jacky Lam
2009-01-13 8:53 ` Artem Bityutskiy
0 siblings, 1 reply; 4+ messages in thread
From: Jacky Lam @ 2009-01-12 8:57 UTC (permalink / raw)
To: linux-mtd
Dear all,
I am new to UBI and want to apply it in a real production application.
However, I have a technical problem and hope anyone can give me some advice.
I use NFTL before. While in production, we use some self-made IO
programmer to program the NAND flash. We first write the data and ecc
(in spare area), and then read then back. After verify it with ECC, we
can tell whether the data is written correctly or not.
However, in UBI, it doesn't use spare area and embedded the ECC
information in main area. Will it be difficult to extract the ECC
information from the read back data in order to do verification? I am
worry about our self-made IO programmer is too slow for handling UBI.
(Or any other clever way to do that?)
If my question is not clear or even wrong, please point me out. Thanks
very much for help.
BR,
Jacky
Disclaimer: This email and attachments are confidential. If you are not the intended recipient, you must not pursue, use, disseminate, distribute or copy this message, whether in whole or in part. If you have received this message in error, please notify us immediately by email or telephone us at (852) 2832 8228 and delete this message from your system. We do not represent that this email may not be interfered with, may not contain computer viruses or other defects and may not be successfully replicated on other system.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Some problem in real application
2009-01-12 8:57 Some problem in real application Jacky Lam
@ 2009-01-13 8:53 ` Artem Bityutskiy
2009-01-13 14:46 ` Artem Bityutskiy
[not found] ` <496D3E5B.5040206@gmail.com>
0 siblings, 2 replies; 4+ messages in thread
From: Artem Bityutskiy @ 2009-01-13 8:53 UTC (permalink / raw)
To: Jacky Lam; +Cc: linux-mtd
Hi,
Theoretically, I cannot respond you because of the silly disclamer
you added to the end of your e-mail. However,
On Mon, 2009-01-12 at 16:57 +0800, Jacky Lam wrote:
> I use NFTL before. While in production, we use some self-made IO
> programmer to program the NAND flash. We first write the data and ecc
> (in spare area), and then read then back. After verify it with ECC, we
> can tell whether the data is written correctly or not.
Fine. Just do the same with UBI images.
> However, in UBI, it doesn't use spare area and embedded the ECC
> information in main area.
UBI itself does not use OOB. But the NAND driver or NAND controller
may use it to store ECC codes.
> Will it be difficult to extract the ECC
> information from the read back data in order to do verification?
The ECC verification is done in the driver level. UBI is above the
driver - it asks the driver to read and write NAND pages. And the
driver verifies/calculates ECC codes.
I'm going to update UBI documentation soon and write a little bit more
about what the UBI-aware flasher should do. I'll send you a link later.
--
Best regards,
Artem Bityutskiy (Битюцкий Артём)
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-01-14 12:34 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-12 8:57 Some problem in real application Jacky Lam
2009-01-13 8:53 ` Artem Bityutskiy
2009-01-13 14:46 ` Artem Bityutskiy
[not found] ` <496D3E5B.5040206@gmail.com>
2009-01-14 12:34 ` Artem Bityutskiy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox