
7 Jul
2011
7 Jul
'11
12:14 a.m.
On Wednesday, July 06, 2011 17:51:58 Andre Renaud wrote:
This allows intelligent booting of FIT (& the legacy style) images from SPI flash. Basically it means that you don't have to guess at the image length, so data reads are more optimal (& hopefully faster).
this looks like largely a copy & paste job from one of the many existing boot funcs. considering the only unique thing here is the spi flash read, seems like it'd make sense to add a new func to common/cmd_bootm.c like bootm_load_image(). it'd take a read callback as well as a pointer to data.
as it stands, this patch breaks configs that enable the spi flash command but disable the bootm command. -mike