On Wed, 28 Aug 2002 09:48, Christian Gan wrote:
> Hello all,
> Charles, can we have another compile macro that disables YAFFS ECCs? I
> currently have an implementation that works, I can email it to you if you
> would like.
Yes please do. I'll look at what you have and figure out the most appropriate
way to include this.
>
> A further problem I have to think about now is the max number of allowable
> writes in the OOB. Some NANDs allow for three writes but there are some
> who's maxes are speced for two. Which means that in my case:
>
> 1 write to OOB by the MTD when writing a page (for HW ECC).
> 1 write to OOB by YAFFS for tags.
> 1 write to OOB by YAFFS to mark pages deleted.
> = 3 writes
>
> which of course would violate some NAND specs...
The tightest specs I have seen for currently shipping NAND allows 1 write
into the data area and two into the NAND area (Please let me know if you see
anything tighter). YAFFS can work with this. I had a quick scan of the nand
mtd and thought the main write only used one write op, but I may be mistaken.
Luc's high speed YAFFS-friendly mtd will undoubtedly use one write op for
this. Then, as you point out there is another write op for stomping a deleted
page.
I'm starting to design up YAFFS2 for the next generation NAND parts (starting
to ship). These have 2kbyte pages, 128kbyte blocks. Some of them might not
allow any rewrite. YAFFS2 will be designed to work with a chunk size of 1kB
or 2kB to work with existing parts too. YAFFS2 will use less RAM, but will
likely scan slower than YAFFS.
As the design solidifies I will post the design for comment.
>
> What I'm thinking:
> - write a MTD level function that does the page and OOB write at the same
> time.
> - somehow pass the ECC value up to the calling function from the MTD and
> have higher levels write the value into OOB.
> - any other ideas?
Send your stuff, I will see if we can factor it in nicely.
-- CHarles
---------------------------------------------------------------------------------------
This mailing list is hosted by Toby Churchill open software (
www.toby-churchill.org).
If mailing list membership is no longer wanted you can remove yourself from the list by
sending an email to
yaffs-request@toby-churchill.org with the text "unsubscribe"
(without the quotes) as the subject.