From 1b9aa61b5da5db5347d09f8482fd6c946131d385 Mon Sep 17 00:00:00 2001 From: Krishna Chaitanya Date: Tue, 15 Jul 2014 12:48:04 +0530 Subject: [PATCH] sw_apps:zynq_fsbl: MD5 related changes in FSBL Checksum Offset value for calculation for MD5 checksum is modified to take the relative address from the image start address instead of exact offset specified in partition header. Signed-off-by: Krishna Chaitanya Acked-by: Nirmala Pelluri --- lib/sw_apps/zynq_fsbl/src/fsbl.h | 4 ++++ lib/sw_apps/zynq_fsbl/src/image_mover.c | 3 +++ 2 files changed, 7 insertions(+) diff --git a/lib/sw_apps/zynq_fsbl/src/fsbl.h b/lib/sw_apps/zynq_fsbl/src/fsbl.h index 9e2adc70..e8e462ce 100644 --- a/lib/sw_apps/zynq_fsbl/src/fsbl.h +++ b/lib/sw_apps/zynq_fsbl/src/fsbl.h @@ -202,6 +202,10 @@ * 791245 - Use of xilrsa in fsbl * Resolution: Rsa library is removed from fsbl source * and xilrsa is used from BSP +* 10.00a kc 07/15/14 Fix for CR#804595 Zynq FSBL - Issues with +* fallback image offset handling using MD5 +* Resolution: Updated the checksum offset to add with +* image base address * * * diff --git a/lib/sw_apps/zynq_fsbl/src/image_mover.c b/lib/sw_apps/zynq_fsbl/src/image_mover.c index d67bb0ea..16263fad 100644 --- a/lib/sw_apps/zynq_fsbl/src/image_mover.c +++ b/lib/sw_apps/zynq_fsbl/src/image_mover.c @@ -69,6 +69,8 @@ * only if partition owner was not set to u-boot * 9.00a kc 04/16/14 Fix for CR#785778 FSBL takes 8 seconds to * authenticate (RSA) a bitstream on zc706 +* 10.00a kc 07/15/14 Fix for CR#804595 Zynq FSBL - Issues with +* fallback image offset handling using MD5 * * * @@ -468,6 +470,7 @@ u32 LoadBootImage(void) */ Status = ValidateParition(PartitionStartAddr, (PartitionTotalSize << WORD_LENGTH_SHIFT), + ImageStartAddress + (PartitionChecksumOffset << WORD_LENGTH_SHIFT)); if (Status != XST_SUCCESS) { fsbl_printf(DEBUG_GENERAL,"PARTITION_CHECKSUM_FAIL\r\n");