[U-Boot-Users] 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

In message E1EPjxw-0003h4-CL@real.realitydiluted.com 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.
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.
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.
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
participants (2)
-
sjhill@realitydiluted.com
-
Wolfgang Denk