[U-Boot-Users] [PATCH] Update to stand alone program feature
Jeff Mann
MannJ at embeddedplanet.com
Thu May 10 17:40:08 CEST 2007
> What would be Really Cool[tm]
My idea was simply this (better with an example)
STAND ALONE PROGRAM
...
#include exports.h
...
char *argv[4] = { "nand", "device", "1", NULL }
/* select NAND device 1 */
if (!(xf_func_inc(XF_do_nand))){ /* make sure that this u-boot has nand
support */
if(do_nand (0, 0, 3,argv))
puts("nand device 1 selected");
}
Else {
puts("Nand not supported");
}
This was a better solution than simply letting the dummy function catch
it.
-JM
More information about the U-Boot
mailing list