| Submitter | Tom Warren |
|---|---|
| Date | March 18, 2013, 11:25 p.m. |
| Message ID | <1363649136-23155-5-git-send-email-twarren@nvidia.com> |
| Download | mbox | patch |
| Permalink | /patch/228837/ |
| State | Accepted |
| Delegated to: | Tom Warren |
| Headers | show |
Comments
On 03/18/2013 05:25 PM, Tom Warren wrote: > Tested on my Dalmore E1611 board, eMMC and SD-Card work fine, can load > a kernel off of an SD card OK, card detect works, and the env is now > stored in eMMC (end of the 2nd 'boot' sector, same as Tegra20/30). > diff --git a/include/configs/dalmore.h b/include/configs/dalmore.h > +#define CONFIG_ENV_OFFSET (((4096 - 512) * 1024) - CONFIG_ENV_SIZE) Sorry, I don't know what I was thinking when I wrote that expression in response to the last time you posted this patch. I think it should be simply: #define CONFIG_ENV_OFFSET ((4096 * 1024) - CONFIG_ENV_SIZE) Feel free to fix this up when applying; no need to repost.
Patch
diff --git a/include/configs/dalmore.h b/include/configs/dalmore.h index c7deea5..3f4b70e 100644 --- a/include/configs/dalmore.h +++ b/include/configs/dalmore.h @@ -50,7 +50,17 @@ #define CONFIG_SYS_I2C_SPEED 100000 #define CONFIG_CMD_I2C -#define CONFIG_ENV_IS_NOWHERE +/* SD/MMC */ +#define CONFIG_MMC +#define CONFIG_GENERIC_MMC +#define CONFIG_TEGRA_MMC +#define CONFIG_CMD_MMC + +/* Environment in eMMC, at the end of 2nd "boot sector" */ +#define CONFIG_ENV_IS_IN_MMC +#define CONFIG_SYS_MMC_ENV_DEV 0 +#define CONFIG_SYS_MMC_ENV_PART 2 +#define CONFIG_ENV_OFFSET (((4096 - 512) * 1024) - CONFIG_ENV_SIZE) #define MACH_TYPE_DALMORE 4304 /* not yet in mach-types.h */