From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from rv-out-0708.google.com ([209.85.198.251]) by bombadil.infradead.org with esmtp (Exim 4.68 #1 (Red Hat Linux)) id 1K8NmT-0002Xw-T1 for linux-mtd@lists.infradead.org; Mon, 16 Jun 2008 23:06:34 +0000 Received: by rv-out-0708.google.com with SMTP id b17so6859769rvf.42 for ; Mon, 16 Jun 2008 16:06:33 -0700 (PDT) Message-ID: <4856F1F7.4040003@mistralsolutions.com> Date: Mon, 16 Jun 2008 16:06:31 -0700 From: Suresh Rajashekara MIME-Version: 1.0 To: linux-mtd@lists.infradead.org Subject: JFFS2 Cleanmarker Issue Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: Suresh Rajashekara List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Hi Everyone, Few necessary details before I explain my issue. Hardware I use: OMAP5912 based board Linux: 2.6.16-rc3 Let me know if you guys need more details. The issue: I use the JFFS2 file system on the oneNAND flash. Every time I boot the board I see the following on the serial console (I have CONFIG_JFFS2_FS_DEBUG=2) jffs2_check_nand_cleanmarker(): Cleanmarker node not detected in block at 00000000 OOB at 00000000 was ff ff 00 19 03 03 ff ff ff ff ff 56 fe ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff jffs_check_nand_cleanmarker returned 1 jffs2_check_oob_empty returned 1 JFFS2: Erase block at 0x00000000 is not formatted. It will be erased jffs2_check_nand_cleanmarker(): Cleanmarker node not detected in block at 00020000 OOB at 00020000 was ff ff 00 19 03 03 ff ff ff ff ff 56 fe ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff jffs_check_nand_cleanmarker returned 1 jffs2_check_oob_empty returned 1 blah.. . blah... . . Getting this on the first boot, is I guess expected. But this messages repeats every time we reboot the board. I did some debugging and found that the JFFS2 driver is marking these blocks and writes the clean markers. Since these prints were appearing on every boot, I read the oob area which the jffs2 driver wrote to mark the cleanmarkers. I found the data to be shifted. I tried Googling and also went through the GIT log messages to find if this was a known issue, but could not find any. Is this a known issue in 2.6.16-rc3. The developers who did the initial design have chosen to format the partition using the nftl_format command. I read on the MTD howto that it should not be used. I tried replacing that with "flash_eraseall -j" and created the jffs2 file system using the command mkfs.jffs2 (I tried with the correct page size and other stuff by looking in to the datasheet) and wrote the jffs2 file system using the nand_write command, but none helped. Could someone please point me in the right direction? Thanks in advance, Best Regards, Suresh