
Is it possible to modify environment variables from a standalone application in u-boot?
I've written a standalone app that reads and prints a 48-bit ethernet MAC address from a Dallas/Maxim DS2502-E48 chip on a custom board. I would like the app to directly modify the "ethaddr" environment variable, rather than relying on the user to retype the printed MAC address into a setenv command.
I looked at the standalone section of the readme, and at the exports.h file, but I didn't see any explicit hooks to read or write environment variables. I saw the secion on accessing u-boot environment variables in Linux, but that does seem to be applicable. Are environment variables somehow accessible through the "global_data" pointer declared in exports.h?
I'm using u-boot 1.1.4.
Ed Jubenville