From: Sanjeev Premi Date: Sun, 2 Feb 2014 03:17:58 +0800 (SGT) Subject: [U-Boot] [PATCH] omap3: Derive config for Beagleboard-XM sans NAND support In-Reply-To: <20140106193022.GQ420@bill-the-cat> References: <1388932327-15986-1-git-send-email-spremi@ymail.com> <20140106193022.GQ420@bill-the-cat> Message-ID: <1391282278.16411.YahooMailNeo@web190403.mail.sg3.yahoo.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de > On Tuesday, 7 January 2014 12:59 AM, Tom Rini wrote: > > On Sun, Jan 05, 2014 at 08:02:07PM +0530, Sanjeev Premi wrote: > >> Beagleboard XM doesn't have a NAND chip. >> Let the configuration reflect so. >> >> Signed-off-by: Sanjeev Premi >> Cc: Tom Rini > > True, but why?? And please note that: Because there is no NAND on certain BeagleXM, but saveenv would result in: OMAP3 beagleboard.org # saveenv Saving Environment to NAND... Erasing NAND... Attempt to erase non block-aligned data OMAP3 beagleboard.org # Can be a problem when someone is working on mixed revisions of beagle boards esp. on a remote setup. > >> +#ifdef CONFIG_BEAGLE_XM >> +#define CONFIG_ENV_IS_IN_MMC >> +#define CONFIG_SYS_MMC_ENV_DEV??? 0 >> +#else >> +#define CONFIG_ENV_IS_IN_NAND >> +#endif??? /* CONFIG_BEAGLE_XM */ > > Means that we'll be using part of the SD card for the stored environment > so a 'saveenv' will start breaking peoples SD cards if they didn't > re-partition them. Understood. But today everyone is using and can continue to use omap3_beagle_config. But someone explicitly using BeagleXM and expect saveenv to work on BeagleXM, manual change won't be required with each U-Boot release. ~sanjeev > > > -- > Tom >