Skip to contentSkip to conversation

OOB questions

DISCUSSION Jason Liu 1 participant 1 message Oct 8, 2008 1 message not in the archive Memory technology devices (MTD)

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Jason Liu

author
#1 lore raw

2008/10/8 Curt Scott <[email protected]>:

Quoted 7 lines

Hi Jason,

Thank you for your answers they are very helpful. I now understand that the system I am working with is comparable to an MLC NAND system. I have a couple more questions.

Q1.) From what I can find looking around, my only option is to incorporate a NAND MLC patch (support for NOP=1), Is this my only option? Example (http://patchwork.ozlabs.org/patch/623/)

Jffs2 will only use oob to store the cleanmarker.You can search for a patch with "jffs2 not use oob patch"

Quoted 7 lines

Q2.) I did try and report through add_mtd_device() that mtd->oobsize=0 and mtd->oobavail=0. After I did that, I found that the JFFS2/MTD system was calling the write/writev functions with less than a page size. Example:
- write: addr=0, size=44
- write: addr=44, size=32

Is this expected behavior?

This is correct since jffs2 has one page cache machanism.

Quoted 2 lines

Q3.) I have heard that it is possible to disable the OOB functionality. Is this true? If so, is there a way to make it work for the MLC NAND model?

Jffs2 does not support MLC nand flash if not apply some patch. I have found two patches so far. I once use the patch with not use oob. With this patch, jffs2 will not use oob to store cleanmarker.

Quoted 54 lines

Thank you for your help,
Curt

----- Original Message ----
From: Jason Liu <[email protected]>
To: Curt Scott <[email protected]>
Cc: [email protected]
Sent: Monday, October 6, 2008 9:04:33 PM
Subject: Re: OOB questions

2008/10/7 Curt Scott <[email protected]>:

Quoted 8 lines

Hi,

I am writing a MTD NAND (2K page) driver module for Linux 2.6.23. My NAND hardware controller performs all the ECC control under-the-hood. Although is has OOB bytes available there are some limitaitions...

L1.) Page data and OOB data must be written at the same time.

Not only your NFC but also some others require to written page data and oob data
at the same time espically for large page size nand flash since it use oob to store the ECC data.

Quoted 2 lines

L2.) OOB data is limited to 16 bytes / page (of a 2k page).

It should be ok for jffs2 filesystem.

Quoted 4 lines

I have some questions about the OOB requirements for MTD/JFFS2 combo.

Q1.) Does MTD/JFFS2 require the ability to read/write OOB bytes?
Or can the system be set up operate with no OOB available?

jffs2 can work without oob.

Quoted 2 lines

Q2.) Is it a requirement for OOB and non-OOB writes to happen independently?

May provide the interface to MTD layer. For MLC Nand flash, it's impossible to write data and oob indepently since NOP is 1.
The file system should take care not to write it without erase it for MLC.

Quoted 7 lines

thank you for you help,
Curt

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/