Question on multiple images stored in a table...
Greetings.
I apologize if this has been discussed previously. The mailing list search function was painful for me. My question has to do with how the 'image_header_t' defined in 'include/image.h' is used. For my application, I want a list all of the images present in my system to be available at boot time such that I do not have do a 'imls' command to know where and what all of my images are my system. I would like to create an array of 'image_header_t' structures in flash that I would burn with my U-Boot image. During boot, I would read an I/O pin requesting that a certain image be booted independent of where it is located in flash memory. Has anyone done something similar to this? Thanks.
-Steve
Quoted 3 lines · In message <[email protected]> you wrote:
search function was painful for me. My question has to do with how the '
image_header_t' defined in 'include/image.h' is used. For my
It is only used to identify the images and verify their correctnes, etc.
Quoted 3 lines
application, I want a list all of the images present in my system to be available at boot time such that I do not have do a 'imls' command to know where and what all of my images are my system. I would like
Store the addresses of the images in some environment variables.
Quoted 1 line
to create an array of '
image_header_t' structures in flash that I
This makes no sense. The 'image_header_t' is part of the image itself, so why storing redundant information? You just need the image start address.
Quoted 3 lines
would burn with my U-Boot image. During boot, I would read an I/O pin requesting that a certain image be booted independent of where it is located in flash memory. Has anyone done something similar to this?
We do this all the time. Use environment variables and the scripting capabilities. Eventually enable the hush parser and use shell scripts. And RTFM.
Best regards,
Wolfgang Denk
Signature · 5 lines
Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Even historians fail to learn from history -- they repeat the same mistakes. -- John Gill, "Patterns of Force", stardate 2534.7