I've had to move where the environment variables are stored in U-Boot because I'm using a different flash than on the evaluation board (P33) that has two flash chips with their CS tied together to give me a 32 bit x 64 Mb of flash memory. I had to adjust the following:
#define CFG_ENV_OFFSET 0x00030000 /* Must be sector aligned */
#define CFG_ENV_SIZE 0x00002000
#define CFG_ENV_SECT_SIZE 0x00010000
#define CFG_ENV_IS_IN_FLASH 1
#define CFG_ENV_IS_EMBEDDED 1
and that got rid of some errors I was seeing when saving to flash (offset was not on a sector boundary) and I had to modify the loader map to allow for the bigger offset. Now when I save my environment, though I can peek into memory and see the save worked, the board is never able to load these variables. I'm looking through the code but I can't find where U-Boot expects to find it's environment variables. As simple as this is this things seems to be way over complicated (of course it does service about 500 different boards so maybe it's unavoidable).
Can anyone tell where I can set U-Boot to grab it's environmental variables at a specific address? Any help would be appreciated