[PATCH v1] LFU-544: Kconfig.nxp: Fixed secure boot on LS-CH2 platforms

2023-06-22 Thread Kshitiz Varshney
pimg64 image pointer is dependent on ESBC_ADDR_64BIT config, which is getting disabled, due to dependency on ESBC_HDR_LS. ESBC_HDR_LS is required for LS-CH3 platforms. So, removing the dependency on ESBC_HDR_LS. Signed-off-by: Kshitiz Varshney --- arch/Kconfig.nxp | 2 +- 1 file changed, 1

[PATCH v2 3/3] Added configs required for dcp_rng driver

2022-12-22 Thread Kshitiz Varshney
This commit adds configs required for using dcp_rng driver in imx6ull defconfig files. Signed-off-by: Kshitiz Varshney Reviewed-by: Ye Li --- configs/mx6ull_14x14_evk_defconfig| 4 configs/mx6ull_14x14_evk_plugin_defconfig | 4 2 files changed, 8 insertions(+) diff --git

[PATCH v2 2/3] Added dcp_rng driver initialization code

2022-12-22 Thread Kshitiz Varshney
This commit initializes dcp_rng device driver inside arch_misc_init() function. Signed-off-by: Kshitiz Varshney Reviewed-by: Ye Li --- arch/arm/mach-imx/mx6/soc.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/mach-imx/mx6/soc.c b/arch/arm/mach-imx/mx6/soc.c index

[PATCH v2 1/3] Uboot RNG Driver using Data Co-processor

2022-12-22 Thread Kshitiz Varshney
This commit introduces Random number generator to uboot. It uses DCP driver for number generation. RNG driver can be invoked by using below command on uboot prompt:- rng Signed-off-by: Kshitiz Varshney Reviewed-by: Ye Li Reviewed-by: Simon Glass --- drivers/crypto/fsl/Kconfig

[PATCH v2 0/3] Data Co-processor RNG Driver

2022-12-22 Thread Kshitiz Varshney
Implemented Data Co-Processor random number generation driver. usage command: rng Kshitiz Varshney (3): Uboot RNG Driver using Data Co-processor Added dcp_rng driver initialization code Added configs required for dcp_rng driver arch/arm/mach-imx/mx6/soc.c | 10 ++ configs

RE: [PATCH v1] 1: Adding rngb entry in imx6ull device tree

2022-12-21 Thread Kshitiz Varshney
-Original Message- From: Peng Fan (OSS) Sent: Monday, September 12, 2022 1:01 PM To: Kshitiz Varshney ; u-boot@lists.denx.de; Horia Geanta ; Pankaj Gupta ; Varun Sethi ; Gaurav Jain ; Rahul Kumar Yadav ; Vabhav Sharma ; Sahil Malhotra ; Ye Li ; Heinrich Schuchardt Cc: Stefano

RE: [EXT] Re: [PATCH v1] 1: Adding rngb entry in imx6ull device tree

2022-12-21 Thread Kshitiz Varshney
-Original Message- From: Heinrich Schuchardt Sent: Friday, September 9, 2022 1:10 AM To: Kshitiz Varshney Cc: Stefano Babic ; Fabio Estevam ; Peng Fan ; Sughosh Ganu ; u-boot@lists.denx.de; Ye Li ; Gaurav Jain ; Rahul Kumar Yadav ; Vabhav Sharma ; Varun Sethi ; Sahil Malhotra

RE: [EXT] Re: [PATCH v1] 2: Uboot RNG Driver using Data Co-processor

2022-12-21 Thread Kshitiz Varshney
Please see the comment inline. Regards, Kshitiz -Original Message- From: Heinrich Schuchardt Sent: Friday, September 9, 2022 1:00 AM To: Kshitiz Varshney Cc: U-Boot Mailing List ; Horia Geanta ; Pankaj Gupta ; Varun Sethi ; Gaurav Jain ; Rahul Kumar Yadav ; Vabhav Sharma ; Sahil

RE: [EXT] Re: [PATCH v1] 3: Added dcp_rng driver device binding code

2022-12-21 Thread Kshitiz Varshney
Please find comment inline. Regards, Kshitiz -Original Message- From: Simon Glass Sent: Thursday, September 8, 2022 11:49 PM To: Kshitiz Varshney Cc: U-Boot Mailing List ; Horia Geanta ; Pankaj Gupta ; Varun Sethi ; Gaurav Jain ; Rahul Kumar Yadav ; Vabhav Sharma ; Sahil Malhotra

RE: [EXT] Re: [PATCH v1] 2: Uboot RNG Driver using Data Co-processor

2022-12-21 Thread Kshitiz Varshney
Regards, Kshitiz -Original Message- From: Simon Glass Sent: Thursday, September 8, 2022 11:49 PM To: Kshitiz Varshney Cc: U-Boot Mailing List ; Horia Geanta ; Pankaj Gupta ; Varun Sethi ; Gaurav Jain ; Rahul Kumar Yadav ; Vabhav Sharma ; Sahil Malhotra ; Ye Li ; Heinrich

[PATCH v1] 4: Added configs required for dcp_rng driver

2022-09-08 Thread Kshitiz Varshney
From: Kshitiz This commit adds configs required for using dcp_rng driver in imx6ull defconfig files. Signed-off-by: Kshitiz Varshney Reviewed-by: Ye Li --- configs/mx6ull_14x14_evk_defconfig| 4 configs/mx6ull_14x14_evk_emmc_defconfig | 4 configs

[PATCH v1] 2: Uboot RNG Driver using Data Co-processor

2022-09-08 Thread Kshitiz Varshney
From: Kshitiz This commit introduces Random number generator to uboot. It uses DCP driver for number generation. RNG driver can be invoked by using below command on uboot prompt:- rng Signed-off-by: Kshitiz Varshney Reviewed-by: Ye Li --- drivers/crypto/fsl/Kconfig | 10

[PATCH v1] 3: Added dcp_rng driver device binding code

2022-09-08 Thread Kshitiz Varshney
From: Kshitiz This commit manually binds dcp_rng device driver and initalizes it inside arch_misc_init() function. Signed-off-by: Kshitiz Varshney Reviewed-by: Ye Li --- arch/arm/mach-imx/mx6/soc.c | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm/mach-imx/mx6

[PATCH v1] 1: Adding rngb entry in imx6ull device tree

2022-09-08 Thread Kshitiz Varshney
From: Kshitiz Added entry for rngb in imx6ull device tree which is required for Random number generation in u-boot. Signed-off-by: Kshitiz Varshney Reviewed-by: Ye Li --- arch/arm/dts/imx6ull.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/dts/imx6ull.dtsi b/arch/arm

[PATCH] LS1043ARDB, LS1046ARDB, LS1088ARDB: Enable SPL_OF_CONTROL in SECURE Boot defconfig

2022-04-07 Thread Kshitiz Varshney
If enable SPL_DM without SPL_OF_CONTROL, build errors "undefined reference to fdt_get_resource", is coming in function `caam_jr_probe'. Added SPL_OF_CONTROL to remove the error. Signed-off-by: Kshitiz Varshney --- configs/ls1043ardb_nand_SECURE_BOOT_defconfig| 1

[PATCH] board: fsl_validate: Fix Double free Issue

2021-09-19 Thread Kshitiz Varshney
Remove Double free issue from calc_img_key_hash() and calc_esbchdr_esbc_hash() function. Verified the secure boot changes using lx2162aqds board. Signed-off-by: Kshitiz Varshney --- board/freescale/common/fsl_validate.c | 28 ++- drivers/crypto/fsl/fsl_hash.c

[PATCH] board: fsl_validate: Double free Issue Solved

2021-09-07 Thread Kshitiz Varshney
Removed Double free issue from calc_img_key_hash() and calc_esbchdr_esbc_hash() function. Verified the secure boot changes using lx2162aqds board. Signed-off-by: Kshitiz Varshney --- board/freescale/common/fsl_validate.c | 28 ++- drivers/crypto/fsl/fsl_hash.c

[PATCH] board: fsl_validate: Fix resource leak issue

2021-08-01 Thread Kshitiz Varshney
Free dynamically allocated memory before every return statement in calc_img_key_hash() and calc_esbchdr_esbc_hash() function. Verified the secure boot changes using ls1046afrwy board. Signed-off-by: Kshitiz Varshney --- board/freescale/common/fsl_validate.c | 36 --- 1

[PATCH] board: fsl_validate: Fix resource leak issue

2021-07-23 Thread Kshitiz Varshney
Free dynamically allocated memory before every return statement in calc_esbchdr_esbc_hash() function. Verified the secure boot changes using ls1046afrwy board. Signed-off-by: Kshitiz Varshney --- board/freescale/common/fsl_validate.c | 25 ++--- 1 file changed, 18 insertions

[PATCH] board: fsl_validate: Fix resource leak issue

2021-07-23 Thread Kshitiz Varshney
Free dynamically allocated memory before every return statement in calc_img_key_hash() function. Verified the secure boot changes using ls1046afrwy board. Signed-off-by: Kshitiz Varshney --- board/freescale/common/fsl_validate.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions