From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Mon, 25 Nov 2013 09:03:36 -0300 From: Ezequiel Garcia To: Arnaud Ebalard Subject: Re: [PATCH v5 00/14] Armada 370/XP NAND support Message-ID: <20131125120335.GD2408@localhost> References: <1384464339-6817-1-git-send-email-ezequiel.garcia@free-electrons.com> <87d2lp28pd.fsf@natisbad.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <87d2lp28pd.fsf@natisbad.org> Cc: Lior Amsalem , Thomas Petazzoni , linux-mtd@lists.infradead.org, Gregory Clement , Brian Norris , linux-arm-kernel@lists.infradead.org List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Hi Arnaud, On Sun, Nov 24, 2013 at 03:08:46PM +0100, Arnaud Ebalard wrote: > > As ReadyNAS 102, 104 and 2120 all depend on your driver, I decided to > give v4 a change on a 102. As a side note, all those device have the > same NAND chip, i.e. a 128 MB hynix H27U1G8F2BTR. Additionally, this is > also the chip found on ReadyNAS Duo v2, which is perfectly handled by > orion-nand driver. > > With your 31 patches in my quilt set against current linus tree (w/ > 2 to 4 of 31 disabled as they are already in Linus tree), I modified > my .dts in the following way: > > nand@d0000 { > status = "okay"; > num-cs = <1>; > marvell,nand-keep-config; > marvell,nand-enable-arbiter; > nand-on-flash-bbt; > Great! Thanks for giving NAND a chance :-) Could you try using the devicetree snippet below? nand@d0000 { /* HACK: Use legacy compatible to handle smaller pages */ compatible = "marvell,pxa3xx-nand"; status = "okay"; num-cs = <1>; marvell,nand-keep-config; marvell,nand-enable-arbiter; nand-on-flash-bbt; /* partitions */ }; Please check if your device is detected and try to do some reading first. If that works, you can try to mount the filesystem, or write a new kernel. If the above works, I'll prepare a proper patch. Thanks! -- Ezequiel GarcĂ­a, Free Electrons Embedded Linux, Kernel and Android Engineering http://free-electrons.com