u-boot-brain/arch/arm/mach-imx
Breno Matheus Lima 5b20d141f2 imx: Kconfig: Reduce default CONFIG_CSF_SIZE
The default CSF_SIZE defined in Kconfig is too high and SPL cannot
fit into the OCRAM in certain cases.

The CSF cannot achieve 0x2000 length when using RSA 4K key which is
the largest key size supported by HABv4.

According to AN12056 "Encrypted Boot on HABv4 and CAAM Enabled Devices"
it's recommended to pad CSF binary to 0x2000 and append DEK blob to
deploy encrypted boot images.

As the maximum DEK blob size is 0x58 we can reduce CSF_SIZE to 0x2060
which should cover both CSF and DEK blob length.

Update default_image.c and image.c to align with this change and avoid
a U-Boot proper authentication failure in HAB closed devices:

Authenticate image from DDR location 0x877fffc0...
bad magic magic=0x32 length=0x6131 version=0x38
bad length magic=0x32 length=0x6131 version=0x38
bad version magic=0x32 length=0x6131 version=0x38
spl: ERROR:  image authentication fail

Fixes: 96d27fb218 (Revert "habv4: tools: Avoid hardcoded CSF size for SPL targets")

Reported-by: Jagan Teki <jagan@amarulasolutions.com>
Signed-off-by: Breno Lima <breno.lima@nxp.com>
2019-10-08 16:36:36 +02:00
..
imx8 imx8: cpu: fix mac fuse word for i.MX8QM 2019-10-08 16:35:59 +02:00
imx8m imx: i.MX8MQ: clear ocotp error bit 2019-04-25 19:16:24 +02:00
mx2 ARM: imx: Fix typo in select option for ZMX25 2019-04-25 19:16:24 +02:00
mx3 Kconfig: Sort bool, default, select and imply options 2018-07-30 07:18:48 -04:00
mx5 CONFIG_SPL_SYS_[DI]CACHE_OFF: add 2019-05-18 08:15:35 -04:00
mx6 DM: SPI: Convert display5 to use SPI with DM/DTS (but no in SPL) 2019-10-08 16:35:59 +02:00
mx7 env: Move env_set() to env.h 2019-08-11 16:43:41 -04:00
mx7ulp i.MX7ULP: Change clock rate calculation for NIC1 BUS and EXT 2019-10-08 16:35:16 +02:00
mxs board/aries: Remove 2018-07-02 15:52:50 -04:00
cache.c CONFIG_SPL_SYS_[DI]CACHE_OFF: add 2019-05-18 08:15:35 -04:00
cmd_bmode.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
cmd_dek.c env: Drop environment.h header file where not needed 2019-08-11 16:43:41 -04:00
cmd_hdmidet.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
cmd_nandbcb.c i.MX6: nand: add nandbcb command for imx 2019-07-19 14:51:25 +02:00
cpu.c imx: add i.MX6ULZ cpu type 2019-10-08 16:33:45 +02:00
ddrmc-vf610-calibration.c ddr: vybrid: Provide code to perform on-boot calibration 2019-02-15 12:16:50 +01:00
ddrmc-vf610-calibration.h ddr: vybrid: Provide code to perform on-boot calibration 2019-02-15 12:16:50 +01:00
ddrmc-vf610.c ddr: vybrid: Add calibration code to memory controler's (DDRMC) setup code 2019-02-15 12:16:50 +01:00
hab.c configs: Rename CONFIG_IMAGE_FORMAT_LEGACY to CONFIG_LEGACY_IMAGE_FORMAT 2019-07-11 14:11:18 -04:00
i2c-mxv7.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
imx_bootaux.c imx: rename mx8m,MX8M to imx8m,IMX8M 2019-01-01 14:12:18 +01:00
init.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
iomux-v3.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
Kconfig imx: Kconfig: Reduce default CONFIG_CSF_SIZE 2019-10-08 16:36:36 +02:00
lowlevel.S imx: add lowlevel init for ARM64 2019-04-25 19:16:24 +02:00
mac.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
Makefile imx: add container target 2019-10-08 16:35:58 +02:00
misc.c imx: Fix potential lmb memory overwritten by stack 2019-01-28 20:35:47 +01:00
mkimage_fit_atf.sh imx: mkimage_fit_atf: introduce BL33_BASE_ADDR 2019-01-28 20:35:47 +01:00
mmc_env.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
rdc-sema.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
sata.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
sip.c imx: sip: add call_imx_sip_ret2 2019-04-25 09:03:15 +02:00
speed.c Convert to use fsl_esdhc_imx for i.MX platforms 2019-06-23 14:18:34 +08:00
spl_sd.cfg SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
spl.c imx: Introduce CONFIG_SPL_FORCE_MMC_BOOT to force MMC boot on falcon mode 2019-10-08 16:36:36 +02:00
syscounter.c Merged imx8 architecture, fix build for imx8 + warnings 2018-10-25 10:16:21 -04:00
timer.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
video.c env: Move env_get() to env.h 2019-08-11 16:43:41 -04:00