From: Tom Rini Date: Thu, 21 Feb 2019 18:22:04 -0500 Subject: [U-Boot] [PATCH 4/4] configs: ti_omap5_common: Add NAND environment settings In-Reply-To: <20190220100453.5262-5-faiz_abbas@ti.com> References: <20190220100453.5262-1-faiz_abbas@ti.com> <20190220100453.5262-5-faiz_abbas@ti.com> Message-ID: <20190221232204.GI12379@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, Feb 20, 2019 at 03:34:53PM +0530, Faiz Abbas wrote: > Now that NAND is supported on DRA71x include various NAND environment > settings > > Signed-off-by: Faiz Abbas [snip] > +#ifdef CONFIG_NAND > +#define NANDARGS \ > + "mtdids=" CONFIG_MTDIDS_DEFAULT "\0" \ > + "mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0" \ > + "nandargs=setenv bootargs console=${console} " \ > + "${optargs} " \ > + "root=${nandroot} " \ > + "rootfstype=${nandrootfstype}\0" \ > + "nandroot=ubi0:rootfs rw ubi.mtd=NAND.file-system,2048\0" \ > + "nandrootfstype=ubifs rootwait=1\0" \ > + "nandboot=echo Booting from nand ...; " \ > + "run nandargs; " \ > + "nand read ${fdtaddr} NAND.u-boot-spl-os; " \ > + "nand read ${loadaddr} NAND.kernel; " \ > + "bootz ${loadaddr} - ${fdtaddr}\0" > +#else > +#define NANDARGS "" > +#endif This kind of stuff needs to fit into include/environment/ti/ somehow, not added to, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: