diff options
author | Simon Glass <sjg@chromium.org> | 2014-06-12 07:24:53 -0600 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-06-19 11:19:02 -0400 |
commit | ce1400f6949bbfec01fe381a844b14844cb3be12 (patch) | |
tree | 4bba7f30fed605271e25492b687e7633eb15bbb0 /include | |
parent | 2b164f1cea69c7c583a26502d2a68d1c62eb0b5a (diff) | |
download | u-boot-imx-ce1400f6949bbfec01fe381a844b14844cb3be12.zip u-boot-imx-ce1400f6949bbfec01fe381a844b14844cb3be12.tar.gz u-boot-imx-ce1400f6949bbfec01fe381a844b14844cb3be12.tar.bz2 |
Enhance fit_check_sign to check all images
At present this tool only checks the configuration signing. Have it also
look at each of the images in the configuration and confirm that they
verify.
Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Heiko Schocher <hs@denx.de> (v1)
Diffstat (limited to 'include')
-rw-r--r-- | include/bootm.h | 2 | ||||
-rw-r--r-- | include/image.h | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/include/bootm.h b/include/bootm.h index 0a3ec56..4a308d8 100644 --- a/include/bootm.h +++ b/include/bootm.h @@ -41,6 +41,8 @@ void lynxkdi_boot(image_header_t *hdr); boot_os_fn *bootm_os_get_boot_func(int os); +int bootm_host_load_images(const void *fit, int cfg_noffset); + int boot_selected_os(int argc, char * const argv[], int state, bootm_headers_t *images, boot_os_fn *boot_fn); diff --git a/include/image.h b/include/image.h index ae767f0..ab93eb6 100644 --- a/include/image.h +++ b/include/image.h @@ -425,6 +425,7 @@ ulong genimg_get_image(ulong img_addr); int boot_get_ramdisk(int argc, char * const argv[], bootm_headers_t *images, uint8_t arch, ulong *rd_start, ulong *rd_end); +#endif /** * fit_image_load() - load an image from a FIT @@ -454,12 +455,14 @@ int boot_get_ramdisk(int argc, char * const argv[], bootm_headers_t *images, * @param load_op Decribes what to do with the load address * @param datap Returns address of loaded image * @param lenp Returns length of loaded image + * @return node offset of image, or -ve error code on error */ int fit_image_load(bootm_headers_t *images, ulong addr, const char **fit_unamep, const char **fit_uname_configp, int arch, int image_type, int bootstage_id, enum fit_load_op load_op, ulong *datap, ulong *lenp); +#ifndef USE_HOSTCC /** * fit_get_node_from_config() - Look up an image a FIT by type * @@ -604,8 +607,8 @@ int image_check_dcrc(const image_header_t *hdr); ulong getenv_bootm_low(void); phys_size_t getenv_bootm_size(void); phys_size_t getenv_bootm_mapsize(void); -void memmove_wd(void *to, void *from, size_t len, ulong chunksz); #endif +void memmove_wd(void *to, void *from, size_t len, ulong chunksz); static inline int image_check_magic(const image_header_t *hdr) { |