Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
load environment variables from uEnv.txt at preboot #24
When using a uEnv.txt file, the environment variables are loaded too late to influence some of the behaviour of u-boot. In my case, I wanted to be able to set "bootdelay" using uEnv.txt rather than recompiling u-boot. This pull request fixes that.
I've tested this on a Digilent Zybo, and it also does not cause problems if there is no uEnv.txt file present.
Questions, comments and suggestions are welcome.
When I apply this patch everybody will see message about loading file from SD which ends up in questions why it is failing.
Also message on systems without MMC looks weird
Please check if there is better way how to do it but I can't apply this patch with the current implementation.
I fixed up the error showing up, but this problem is not entirely my doing. If you boot without an uEnv.txt with the vanilla xilinx master version, you will still get uEnv.txt errors:
This is fairly clear if you take a look at the surrounding code in
I'd be happy to fix this error message too, but I think that should probably come under a different pull request as it is really a different problem. What do you think?