[U-Boot] [PATCH] LS1021atwr: Enable bootscript for secure boot

2015-05-12 Thread Gaurav Rana
Enable bootscript support in secure boot for establishing chain of trust on LS1021atwr. Signed-off-by: Gaurav Rana --- include/configs/ls1021atwr.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/ls1021atwr.h b/include/configs/ls1021atwr.h index 729205f..f637b59 100644 --- a

[U-Boot] [PATCH][v2] iMX: Fix compilation error when enabling SECURE_BOOT

2015-04-06 Thread Gaurav Rana
Move the compilation of file fsl_validate.c in MACRO CONFIG_CMD_ESBC_VALIDATE. This file should be compiled only when the above MACRO is defined This caused a break in compilation of iMX platforms when compiling for SECURE_BOOT Signed-off-by: Gaurav Rana --- Changes in V2: Corrected the commit

[U-Boot] [PATCH] FIX : IMX - command for validateion of images.

2015-04-06 Thread Gaurav Rana
efile:1112: recipe for target 'board/freescale/common' failed make[1]: *** [board/freescale/common] Error 2 make[1]: *** Waiting for unfinished jobs.... Signed-off-by: Gaurav Rana --- board/freescale/common/Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --g

[U-Boot] [PATCH] T104xD4: Add Secure boot support for T104xD4RDB platforms.

2015-03-26 Thread Gaurav Rana
defconfig files are added and SFP version for these platforms is updated. Signed-off-by: Gaurav Rana --- arch/powerpc/include/asm/config_mpc85xx.h | 1 + arch/powerpc/include/asm/fsl_secure_boot.h | 2 ++ board/freescale/t104xrdb/MAINTAINERS | 2 ++ configs

[U-Boot] [PATCH] Add bootscript support to esbc_validate.

2015-03-10 Thread Gaurav Rana
ot source command used in default secure boot command will run the bootscript. 4. Command esbc_halt added to ensure either bootm executes after validation of images or core should just spin. Signed-off-by: Ruchika Gupta Signed-off-by: Gaurav Rana --- arch/arm/include/asm/fsl_secure_boot.h

[U-Boot] [PATCH][v2] rsa : Compile Modular Exponentiation files based on CONFIG_RSA_SOFTWARE_EXP

2015-02-26 Thread Gaurav Rana
Remove dependency of rsa_mod_exp from CONFIG_FIT_SIGNATURE. As rsa modular exponentiation is an independent module and can be invoked independently. Signed-off-by: Gaurav Rana Reviewed-by: Simon Glass CC: Simon Glass --- Changes in v2: add elaborated commit message. drivers/crypto

[U-Boot] [PATCH 4/4][v3] SECURE_BOOT : enable esbc_validate command for powerpc and arm platforms.

2015-02-26 Thread Gaurav Rana
esbc_validate command uses various IP Blocks: Security Monitor, CAAM block and SFP registers. Hence the respective CONFIG's are enabled. Apart from these CONFIG_SHA_PROG_HW_ACCEL and CONFIG_RSA are also enabled. Signed-off-by: Gaurav Rana --- Changes in v3: No change. Change in other patch

[U-Boot] [PATCH 3/4][v3] SECURE BOOT: Add command for validation of images

2015-02-26 Thread Gaurav Rana
-by: Ruchika Gupta Signed-off-by: Gaurav Rana --- Changes in v3: No change. Change in other patches of the patch set. Changes in v2: Copyright is changed in all the files in the patch. board/freescale/common/cmd_esbc_validate.c | 34 ++ board/freescale/common/fsl_validate.c | 840

[U-Boot] [PATCH 1/4][v3] fsl_sfp : Move ccsr_sfp_regs definition to common include

2015-02-26 Thread Gaurav Rana
: Gaurav Rana --- Changes in v3: Modify copyright in include/fsl_sfp.h. Changes in v2: No change. Change in other patches of the patch set. arch/powerpc/include/asm/config_mpc85xx.h | 1 + arch/powerpc/include/asm/immap_85xx.h | 16 +- include/fsl_sfp.h | 85

[U-Boot] [PATCH 2/4][v3] fsl_sec_mon: Add driver for Security Monitor block of Freescale

2015-02-26 Thread Gaurav Rana
ECURE BOOT. Signed-off-by: Ruchika Gupta Signed-off-by: Gaurav Rana --- Changes in v3: Modify copyright in include/fsl_sec_mon.h and drivers/misc/fsl_sec_mon.c. Changes in v2: Commit message is changed. drivers/misc/Kconfig | 8 +++ drivers/misc/Makefile | 1 + drivers

[U-Boot] [PATCH 4/4] SECURE_BOOT : enable esbc_validate command for powerpc and arm platforms.

2015-02-25 Thread Gaurav Rana
esbc_validate command uses various IP Blocks: Security Monitor, CAAM block and SFP registers. Hence the respective CONFIG's are enabled. Apart from these CONFIG_SHA_PROG_HW_ACCEL and CONFIG_RSA are also enabled. Signed-off-by: Gaurav Rana --- Changes in v2: Merge patches of enablemen

[U-Boot] [PATCH 3/4] SECURE BOOT: Add command for validation of images

2015-02-25 Thread Gaurav Rana
-by: Ruchika Gupta Signed-off-by: Gaurav Rana --- Changes in v2: Copyright is changed in all the files in the patch. board/freescale/common/cmd_esbc_validate.c | 34 ++ board/freescale/common/fsl_validate.c | 840 + doc/README.esbc_validate

[U-Boot] [PATCH 2/4] fsl_sec_mon: Add driver for Security Monitor block of Freescale

2015-02-25 Thread Gaurav Rana
ECURE BOOT. Signed-off-by: Ruchika Gupta Signed-off-by: Gaurav Rana --- Changes in v2: Commit message is changed. drivers/misc/Kconfig | 8 +++ drivers/misc/Makefile | 1 + drivers/misc/fsl_sec_mon.c | 146 + include/fsl_sec_mon.h

[U-Boot] [PATCH 1/4][v2] fsl_sfp : Move ccsr_sfp_regs definition to common include

2015-02-25 Thread Gaurav Rana
: Gaurav Rana --- Changes in v2: No change. Chnage in other patches of the patch set. arch/powerpc/include/asm/config_mpc85xx.h | 1 + arch/powerpc/include/asm/immap_85xx.h | 16 +- include/fsl_sfp.h | 85 +++ 3 files changed, 87 insertions

[U-Boot] [PATCH][v3] crypto/fsl: Make function names consistent for blob encapsulation/decapsulation.

2015-02-24 Thread Gaurav Rana
ation and decapsulation of larger images. 3. Modified the description of km paramter in the command usage for better readability. Signed-off-by: Gaurav Rana Reviewed-by: Ruchika Gupta --- Changes in v3: Fixed blob_help_text[] array declaration. Changes in v2: Modify blob_help_text[] array c

[U-Boot] [PATCH] rsa : Compile Modular Exponentiation files based on CONFIG_RSA_SOFTWARE_EXP

2015-02-20 Thread Gaurav Rana
Signed-off-by: Gaurav Rana CC: Simon Glass --- drivers/crypto/rsa_mod_exp/Makefile | 3 ++- lib/rsa/Makefile| 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/rsa_mod_exp/Makefile b/drivers/crypto/rsa_mod_exp/Makefile index 915b751

[U-Boot] [PATCH][v2] crypto/fsl: Make function names consistent for blob encapsulation/decapsulation.

2015-02-20 Thread Gaurav Rana
ation and decapsulation of larger images. 3. Modified the description of km paramter in the command usage for better readability. Signed-off-by: Gaurav Rana Reviewed-by: Ruchika Gupta --- Changes in v2: Modify blob_help_text[] array. common/cmd_blob.c | 18 ++ dr

[U-Boot] [PATCH][v6] crypto/fsl - Add progressive hashing support using hardware acceleration.

2015-02-19 Thread Gaurav Rana
Currently only normal hashing is supported using hardware acceleration. Added support for progressive hashing using hardware. Signed-off-by: Ruchika Gupta Signed-off-by: Gaurav Rana CC: Simon Glass --- Changes in v6: Modify description for CONFIG_SHA256, CONFIG_SHA256, CONFIG_SHA_PROG_HW_ACCEL

[U-Boot] [PATCH][v5] crypto/fsl - Add progressive hashing support using hardware acceleration.

2015-02-12 Thread Gaurav Rana
Currently only normal hashing is supported using hardware acceleration. Added support for progressive hashing using hardware. Signed-off-by: Ruchika Gupta Signed-off-by: Gaurav Rana CC: Simon Glass --- Changes in v5: Modify description for CONFIG_SHA256, CONFIG_SHA256. Changes in v4: Add

[U-Boot] [PATCH] crypto/fsl: Make function names consistent for blob encapsulation/decapsulation.

2015-02-12 Thread Gaurav Rana
allow encapsulation and decapsulation of larger images. 3. Modified the description of km parameter in the command usage for better readability. Signed-off-by: Gaurav Rana Reviewed-by: Ruchika Gupta --- common/cmd_blob.c | 18 ++ drivers/crypto/fsl/fsl_blob.c | 4 ++-- 2 files ch

[U-Boot] [PATCH][v4] crypto/fsl - Add progressive hashing support using hardware acceleration.

2015-02-12 Thread Gaurav Rana
Currently only normal hashing is supported using hardware acceleration. Added support for progressive hashing using hardware. Signed-off-by: Ruchika Gupta Signed-off-by: Gaurav Rana CC: Simon Glass --- Changes in v4: Add CONFIG_SHA256, CONFIG_SHA256, CONFIG_SHA_PROG_HW_ACCEL

[U-Boot] [PATCH][v3] crypto/fsl - Add progressive hashing support using hardware acceleration.

2015-02-06 Thread Gaurav Rana
Currently only normal hashing is supported using hardware acceleration. Added support for progressinve hashing using h/w. Signed-off-by: Ruchika Gupta Signed-off-by: Gaurav Rana CC: Simon Glass --- Changes in v3: Remove duplication of code and create function gen_hash_type. Modify MAX_SG to

[U-Boot] [PATCH][v2] crypto/fsl - Add progressive hashing support using hardware acceleration.

2015-02-05 Thread Gaurav Rana
Currently only normal hashing is supported using hardware acceleration. Added support for progressinve hashing using h/w. Signed-off-by: Ruchika Gupta Signed-off-by: Gaurav Rana CC: Simon Glass --- Changes in v2: Merge to common functions for SHA1 and SHA256. Incorporate comments. README

[U-Boot] [PATCH] crypto/fsl - Add progressive hashing support using hardware acceleration.

2015-01-28 Thread Gaurav Rana
Currently only normal hashing is supported using hardware acceleration. Added support for progressinve hashing using h/w. Signed-off-by: Ruchika Gupta Signed-off-by: Gaurav Rana CC: Simon Glass --- This patch is dependent on following series of 10 patches. https://patchwork.ozlabs.org/patch

[U-Boot] [PATCH] powerpc: SECURE BOOT- Add secure boot target for T1042RDB

2014-12-15 Thread Gaurav Rana
Secure boot target is added for T1042RDB platform. Signed-off-by: Gaurav Rana --- board/freescale/t104xrdb/MAINTAINERS | 1 + configs/T1042RDB_SECURE_BOOT_defconfig | 4 2 files changed, 5 insertions(+) create mode 100644 configs/T1042RDB_SECURE_BOOT_defconfig diff --git a/board

[U-Boot] [PATCH][v2] crypto/fsl: Fix RNG instantiation failure.

2014-12-03 Thread Gaurav Rana
Corrected the order of arguments in memset in run_descriptor function. Wrong order of argumnets led to improper initialization of members of struct type result. This resulted in RNG instantiation error. Signed-off-by: Gaurav Rana --- Changes from v1: Corrected typo in Subject message drivers

[U-Boot] [PATCH] crypto/fsl: Fix RNG instatntiation failure.

2014-12-03 Thread Gaurav Rana
Corrected the order of arguments in memset in run_descriptor function. Wrong order of argumnets led to improper initialization of members of struct type result. This resulted in RNG instantiation error. Signed-off-by: Gaurav Rana --- drivers/crypto/fsl/jr.c | 2 +- 1 file changed, 1 insertion

[U-Boot] [PATCH][v2] powerpc/mpc85xx: SECURE BOOT- Add secure boot target for P5040DS

2014-12-03 Thread Gaurav Rana
Secure boot target is added for P5040DS platform. Signed-off-by: Gaurav Rana --- board/freescale/corenet_ds/MAINTAINERS | 1 + configs/P5040DS_SECURE_BOOT_defconfig | 4 2 files changed, 5 insertions(+) create mode 100644 configs/P5040DS_SECURE_BOOT_defconfig diff --git a/board

[U-Boot] [PATCH] powerpc/mpc85xx: SECURE BOOT- Add secure boot target for P5040DS

2014-12-01 Thread Gaurav Rana
From: Gaurav Kumar Rana Secure boot target is added for P5040DS platform. Signed-off-by: Gaurav Kumar Rana --- configs/P5040DS_SECURE_BOOT_defconfig | 4 1 file changed, 4 insertions(+) create mode 100644 configs/P5040DS_SECURE_BOOT_defconfig diff --git a/configs/P5040DS_SECURE_BOOT_def