[U-Boot] mx28: Saving env vars on MMC

Fabio Estevam festevam at gmail.com
Fri Nov 25 03:05:48 CET 2011


Hi,

I am trying to save environment variables on a SD card of a MX28EVK board.

'save' command reports no errors, but if I reboot the board then the
board no longer boots.

In order to recover the boot, I need to reformat the SD card and
reflash the u-boot.sd image.

I am trying the following configuration taken from FSL U-boot:

/*
 * MMC Driver
 */
#define CONFIG_ENV_IS_IN_MMC
#define CONFIG_ENV_OFFSET	0x400
#define CONFIG_ENV_SIZE		0x20000 - 0x400
#define CONFIG_SYS_MMC_ENV_DEV 0
#ifdef	CONFIG_CMD_MMC
#define	CONFIG_MMC
#define	CONFIG_GENERIC_MMC
#define	CONFIG_MXS_MMC
#endif

Not sure on the CONFIG_ENV_OFFSET and CONFIG_ENV_SIZE values.

Has anyone tried saving env vars on MX28? Any suggestions?

Thanks,

Fabio Estevam


More information about the U-Boot mailing list