From d4cf4a3fc288b183ce66c2480a4cdcd769b925bc Mon Sep 17 00:00:00 2001 From: Krishna Chaitanya Date: Fri, 25 Jul 2014 16:10:51 +0530 Subject: [PATCH] sw_apps:zynq_fsbl: Fallback support for AES encryption with Efuse Fallback support for AES encryption with Efuse - Enhancement Disabling the cache for fallback cases after authentication failure Signed-off-by: Krishna Chaitanya Acked-by: Nirmala Pelluri --- lib/sw_apps/zynq_fsbl/src/fsbl.h | 5 ++++- lib/sw_apps/zynq_fsbl/src/image_mover.c | 4 ++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/sw_apps/zynq_fsbl/src/fsbl.h b/lib/sw_apps/zynq_fsbl/src/fsbl.h index e8e462ce..4902e229 100644 --- a/lib/sw_apps/zynq_fsbl/src/fsbl.h +++ b/lib/sw_apps/zynq_fsbl/src/fsbl.h @@ -202,10 +202,13 @@ * 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 +* 10.00a kc 07/15/14 804595 Zynq FSBL - Issues with * fallback image offset handling using MD5 * Resolution: Updated the checksum offset to add with * image base address +* 782309 Fallback support for AES +* encryption with E-Fuse - Enhancement +* Resolution: Same as 773866 * * * diff --git a/lib/sw_apps/zynq_fsbl/src/image_mover.c b/lib/sw_apps/zynq_fsbl/src/image_mover.c index 16263fad..cef40332 100644 --- a/lib/sw_apps/zynq_fsbl/src/image_mover.c +++ b/lib/sw_apps/zynq_fsbl/src/image_mover.c @@ -71,6 +71,8 @@ * 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 +* Fix for PR#782309 Fallback support for AES +* encryption with E-Fuse - Enhancement * * * @@ -490,6 +492,8 @@ u32 LoadBootImage(void) Status = AuthenticatePartition((u8*)PartitionStartAddr, (PartitionTotalSize << WORD_LENGTH_SHIFT)); if (Status != XST_SUCCESS) { + Xil_DCacheFlush(); + Xil_DCacheDisable(); fsbl_printf(DEBUG_GENERAL,"AUTHENTICATION_FAIL\r\n"); OutputStatus(AUTHENTICATION_FAIL); FsblFallback();