public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] mx28: Saving env vars on MMC
@ 2011-11-25  2:05 Fabio Estevam
  2011-11-25  7:12 ` Stefano Babic
  0 siblings, 1 reply; 9+ messages in thread
From: Fabio Estevam @ 2011-11-25  2:05 UTC (permalink / raw)
  To: u-boot

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2011-11-26 21:33 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-25  2:05 [U-Boot] mx28: Saving env vars on MMC Fabio Estevam
2011-11-25  7:12 ` Stefano Babic
2011-11-25  8:13   ` Marek Vasut
2011-11-25 13:20     ` Fabio Estevam
2011-11-25 13:42       ` Marek Vasut
2011-11-25 14:30       ` Marek Vasut
2011-11-25 15:06         ` Fabio Estevam
2011-11-25 15:13           ` Marek Vasut
2011-11-26 21:33             ` Fabio Estevam

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox