From: Scott Wood Date: Fri, 13 Dec 2013 21:21:51 -0600 Subject: [U-Boot] [PATCH v2 2/2] powerpc/c29xpcie: 8k page size NAND boot support base on TPL/SPL In-Reply-To: <8cbfa2585cd04b348c5883a628e3a33c@DM2PR03MB317.namprd03.prod.outlook.com> References: <1385957560-25365-1-git-send-email-Po.Liu@freescale.com> <1386224340-30968-1-git-send-email-Po.Liu@freescale.com> <1386224340-30968-2-git-send-email-Po.Liu@freescale.com> <1386379293.7375.226.camel@snotra.buserror.net> <1386966351.10013.305.camel@snotra.buserror.net> <8cbfa2585cd04b348c5883a628e3a33c@DM2PR03MB317.namprd03.prod.outlook.com> Message-ID: <1386991311.10013.335.camel@snotra.buserror.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Fri, 2013-12-13 at 21:09 -0600, Liu Po-B43644 wrote: > > -----Original Message----- > > From: Wood Scott-B07421 > > Sent: Saturday, December 14, 2013 4:26 AM > > To: Liu Po-B43644 > > Cc: u-boot at lists.denx.de; Sun York-R58495; Kushwaha Prabhakar-B32579 > > Subject: Re: [PATCH v2 2/2] powerpc/c29xpcie: 8k page size NAND boot > > support base on TPL/SPL > > > > On Wed, 2013-12-11 at 00:16 -0600, Liu Po-B43644 wrote: > > > > > SET_TLB_ENTRY(1, CONFIG_SYS_NAND_BASE, > > CONFIG_SYS_NAND_BASE_PHYS, > > > > > - MAS3_SW|MAS3_SR, MAS2_I|MAS2_G, > > > > > + MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G, > > > > > 0, 5, BOOKE_PAGESZ_64K, 1), > > > > > > > > No. > > > Without MAS3_SX, the board can't run in booting from NAND. > > > > Explain why you're executing from this TLB entry. This should be for > > accessing the NAND as I/O after you've relocated away from the boot > > buffer. There should be a different mapping for the boot buffer early on. > > None of the other NAND boot targets have needed this. Perhaps this is > > related to the other TLB entry that you said you could work without. > This is because for SPL, the > #define CONFIG_SPL_TEXT_BASE 0xff800000 > #define CONFIG_SYS_NAND_BASE 0xff800000 > Code space overlap the nand io space. OK, I guess we move the NAND buffer before relocating out of it. And for some reason I missed that existing targets do the same thing. Never mind... -Scott