RE: [U-Boot-Users] Excluding Env Variable section from the u-boot.bin

I have a configuration in 2 of "my" boards where the environment variable's area lays in a different sector from u-boot code, also so that it is possible to upgrade u-boot while keeping the environment:
In mpc8xx board I have:
/* * Environment in flash. It will be on the flash's 3rd 64KB block, fully * using it. U-boot will use the 1st two 64KB blocks, as specified by * CFG_MONITOR_LEN above. */ #define CFG_ENV_IS_IN_FLASH 1 #define CFG_ENV_OFFSET 0x20000 /* Offset of Environment Sector */ #define CFG_ENV_SIZE 0x10000 /* Total Size of Environment Sector */
In a mpc85xx board I have:
/* * Environment */ #define CFG_ENV_IS_IN_FLASH 1 #define CFG_ENV_SECT_SIZE 0x40000 /* 256K (one sector) for env */ /* env in its own flash sector, right before u-boot */ #define CFG_ENV_SIZE CFG_ENV_SECT_SIZE #define CFG_ENV_ADDR 0xffe00000
I didn't need to change anything else. There are some preprocessor macros in the environment code that will handle most of the job.
Cheers
-----Original Message----- From: u-boot-users-admin@lists.sourceforge.net [mailto:u-boot-users-admin@lists.sourceforge.net] On Behalf Of Albert David Sent: quinta-feira, 12 de Janeiro de 2006 11:27 To: u-boot-users@lists.sourceforge.net Subject: [U-Boot-Users] Excluding Env Variable section from the u-boot.bin
Dears, For my ppc405EP based custom board I would like to make few changes to the u-boot memory map, so that every time I update the u-boot, environment variables in the flash remain untouched.
(...)

In message 0248B0F35AF7B8418CA72E88AC00BF1F5BB51B@lisi053a.siemens.pt you wrote:
I have a configuration in 2 of "my" boards where the environment variable's area lays in a different sector from u-boot code, also so that it is possible to upgrade u-boot while keeping the environment:
It is *always* possible to update the U-Boot image and keep the old environment settings. Typically all you need for embedded environment is a simple "saveenv" command.
Best regards,
Wolfgang Denk
participants (2)
-
Nuno João (Ext_NBS)
-
Wolfgang Denk