[U-Boot-Users] environment not being used
Shamile Khan
shamile at edgewater.ca
Fri Jan 30 01:48:37 CET 2004
Hi,
I am using U-boot on our FPGA based board. Currently, its not possible
to execute instructions directly from flash on our board since our flash
device is configured as an 8-bit device and it is connected to a 32-bit
processor bus.
To get around this, we have a small program which is stored in FPGA
bitstream and runs in FPGA on-chip memory (called BRAM). This program
copies u-boot binary image from flash to sdram and jumps to it. This
allows U-boot to run. However the problem is that the environment
variables saved in flash are not being used even though U-boot has been
configured with the CFG_ENV_IS_IN_FLASH option turned on.
CFG_FLASH_BASE has been set to the flash base address of u-boot and when
I use saveenv the environment is saved at the proper offset
CFG_ENV_OFFSET. The only thing thats a bit different for my U-boot
configuration is that CFG_MONITOR_BASE is set to the sdram base address
where U-boot starts executing from instead of being set to
CFG_FLASH_BASE.
Any ideas why the environment variables in flash do not get used?
Thanks,
Shamile
More information about the U-Boot
mailing list