Reputation: 518
Is there any option to load the environment variables in u-boot SPL? I have a device (Arria10 SoC) in which a part of the FPGA firmware is loaded in u-boot SPL by using the Firmware Loader API. This allows the usage of the environment variables storage_interface and fw_dev_part to define the storage.
I was able to set the variables in u-boot and store them to the MMC device. u-boot also reads the variables correct. But in SPL the environment variables aren't initialized.
Is it possible to load it in SPL and use the values from MMC?
Thanks for any hint!
Upvotes: 2
Views: 1471
Reputation: 2483
The environment is initialized by calling env_init(). Other boards call this function in the board or architecture specific spl.c file in either of the following functions:
Just grep for 'env_init(' to find the code locations.
You will have to implement one of the functions.
Upvotes: 1