I'm attempting to run a simple u-boot script that will load a file from an SDcard into RAM before the Linux Kernel starts booting, and so far have had success with the 'load' command.
Unfortunately, I have to hardcode the filename into this u-boot script so I'd like to use a wildcard (such as *) to ignore the build date which is appended onto all of my filenames. I can't see any reference to wildcards within the U-Boot environment, so was wondering if anyone knew if this sort of things was possible?
I know that U-Boot is cut-down and not designed for this sort of thing, but we need this function to happen within a short time after release of reset and we cannot wait for Linux to boot.
I have attached the simple extract of my code below:
"if test -e mmc 0:1 <filename>.img; then " \
"load mmc 0:1 0x81000000 <filename>.img; echo Image loaded into DRAM; " \
"<RUN C PROGRAM HERE>;" \
"else echo No firmware image found; fi;"
Thanks for any help.