[U-Boot-Users] Reading environment in IXDP425

Hello
I have an IXDP425 working with U-boot. Saving environment with saveenv works fine (I tried md command to verify it was saved). After reset, the board does not read the environment from flash and keeps using the default environment.
Does anyone have an idea what might go wrong?
I have CFG_ENV_IS_IN_FLASH I do not have CFG_ENV_ADDR_REDUND defined.

Ori Idan wrote:
Hello
I have an IXDP425 working with U-boot. Saving environment with saveenv works fine (I tried md command to verify it was saved). After reset, the board does not read the environment from flash and keeps using the default environment.
Does anyone have an idea what might go wrong?
I have CFG_ENV_IS_IN_FLASH I do not have CFG_ENV_ADDR_REDUND defined.
Check whether your environment variable is assigned by any other code. I've faced the same problem with 'ethact' variable, which is set at runtime from net/eth.c

This is not the case, I tried changing a variable using setenv, verified it was changed, the did saveenv and verified it was saved. I then reseted the board and checked the environment

It seems that saveenv is working. I checked it using md and verified all variables are saved. When resetting the board, it hanged up during eth_initialize so it seems it did read the flash environment but probably read something wrong.
Does anyone have any idea?

That's the strange thing when displaying the memory area using md before reset the values seem to be Ok. After reset, the board hangs up when initializing the network.
participants (2)
-
Ori Idan
-
Sellathu