From mboxrd@z Thu Jan 1 00:00:00 1970 From: Derek Ou Date: Tue, 20 Jan 2009 14:26:23 -0700 Subject: [U-Boot] nand erase cleanmarker and jffs2 Message-ID: <4976417F.4010908@siconix.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear all, What is the use of "nand erase clean"? According to the source code, it erases the NAND block and also writes the jffs2 cleanmarker to OOB session. Is this necessary to write a jffs2 file system? I didn't run into any Linux file system problem when I erased a NAND partitaion without clean flag and wrote the jffs2 file system there. Currently, I only have a "jffs2_scan_inode_node() CRC failed on ..." message and I think it's not related to how I erased the partition. Am I right? By the way, the Linux tool seems to indicate that the size of cleanmarker should be 12 bytes. But it seems to be only 8 bytes from our board/u-boot. Which one is correct? Many thanks. Derek