summaryrefslogtreecommitdiffstats
path: root/include/fsl_validate.h
diff options
context:
space:
mode:
authorAneesh Bansal <aneesh.bansal@freescale.com>2015-12-08 14:14:15 +0530
committerYork Sun <york.sun@nxp.com>2016-01-25 08:24:16 -0800
commitb055a0fd867b11e40944b3414026d37ea00e0840 (patch)
treecb0f6e9a68c69aad67f0175387267d158e5f69db /include/fsl_validate.h
parent6629261ddd9d78c3cd8193b05c00a2a9bdc74796 (diff)
downloadtalos-obmc-uboot-b055a0fd867b11e40944b3414026d37ea00e0840.tar.gz
talos-obmc-uboot-b055a0fd867b11e40944b3414026d37ea00e0840.zip
SECURE BOOT: support for validation of dynamic image
Some images to be validated are relocated to a dynamic address at run time. So, these addresses cannot be known befor hand while signing the images and creating the header offline. So, support is required to pass the image address to the validate function as an argument. If an address is provided to the function, the address field in Header is not read and is treated as a reserved field. Signed-off-by: Saksham Jain <saksham@freescale.com> Signed-off-by: Aneesh Bansal <aneesh.bansal@freescale.com> Acked-by: Ruchika Gupta <ruchika.gupta@nxp.com> Reviewed-by: York Sun <york.sun@nxp.com>
Diffstat (limited to 'include/fsl_validate.h')
-rw-r--r--include/fsl_validate.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/fsl_validate.h b/include/fsl_validate.h
index bda802f1ec..ad14867eac 100644
--- a/include/fsl_validate.h
+++ b/include/fsl_validate.h
@@ -193,10 +193,13 @@ struct fsl_secboot_img_priv {
*/
struct fsl_secboot_sg_table sgtbl[MAX_SG_ENTRIES]; /* SG table */
- ulong ehdrloc; /* ESBC client location */
+ uintptr_t ehdrloc; /* ESBC Header location */
+ uintptr_t img_addr; /* ESBC Image Location */
+ uint32_t img_size; /* ESBC Image Size */
};
-int fsl_secboot_validate(ulong haddr, char *arg_hash_str);
+int fsl_secboot_validate(uintptr_t haddr, char *arg_hash_str,
+ uintptr_t img_loc);
int fsl_secboot_blob_encap(cmd_tbl_t *cmdtp, int flag, int argc,
char * const argv[]);
int fsl_secboot_blob_decap(cmd_tbl_t *cmdtp, int flag, int argc,
OpenPOWER on IntegriCloud