
On Fri, Jun 4, 2010 at 10:32 AM, Mark Fanara mark.fanara@gmail.com wrote:
Is it possible to create a script, convert it to an image, and then link that image into u-boot? The goal of which would be to have a script that could be executed without having to download it. I have searched the manual and the mailing list and the source code, but don't see an obvious way to do this.
As an alternative, I could convert the bytes in the image file to an initialized char array in a .c file. That .c file could then be compiled and linked with u-boot. I assume that at runtime I could use the source command with the address of the char array as an argument to run the script.
Suggestions?
If you're willing to change the build by introducing a new C file maybe using the CONFIG_EXTRA_ENV_SETTINGS define in your *_config.h works for you? Does it have to be a script that isn't in an environment variable?