From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mercuryimc.plus.com ([80.229.200.144] helo=centos1.newflow.co.uk) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UAifw-00074K-VH for linux-mtd@lists.infradead.org; Wed, 27 Feb 2013 15:12:10 +0000 Message-ID: <512E2241.9040705@mimc.co.uk> Date: Wed, 27 Feb 2013 15:12:01 +0000 From: Mark Jackson MIME-Version: 1.0 To: Stephen Rothwell Subject: Re: linux-next: JFFS2 corruption References: <512CD9BA.3080300@mimc.co.uk> <20130227101824.6e18ba21fb99070594420f29@canb.auug.org.au> In-Reply-To: <20130227101824.6e18ba21fb99070594420f29@canb.auug.org.au> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: David Woodhouse , linux-next@vger.kernel.org, linux-mtd@lists.infradead.org, lkml , Al Viro List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On 26/02/13 23:18, Stephen Rothwell wrote: > Hi Mark, > > On Tue, 26 Feb 2013 15:50:18 +0000 Mark Jackson wrote: >> >> Just tested the current next-20130226 on a custom AM335X board, and if I mount >> our JFFS2 image as read/write, the next reboot shows the image as being corrupt. >> >> If I reprogram the jffs2 image into NAND and only mount the volume as read-only, >> no corruption occurs and the system remains intact. >> >> I have also tested:- >> >> (a) reprogram ubifs image into nand >> (b) boot the volume as read-only (corrupt -> no) >> (c) remount the volume as read/write >> (d) rebooting the volume as read-only (corrupt -> yes) > > Thanks for all the testing. Sam questions as in my other email. Okay, just tested 3v8 plus:- https://patchwork.kernel.org/patch/1931251/ https://patchwork.kernel.org/patch/1931221/ https://patchwork.kernel.org/patch/1931201/ and changed drivers/mtd/nand/elm.c, line 388 "ti,am33xx-elm" to "ti,am3352-elm" This produces an identical corruption. I have also tested next-20130225 and next-20130227, and both cause the same corruption. Regards Mark J.