From 01f3561fdee7b5547534e20d423fbbb1b490532c Mon Sep 17 00:00:00 2001 From: Vadim Bendebury Date: Tue, 15 Jul 2014 13:19:19 -0700 Subject: [PATCH] storm: allow to override CBFS_SIZE configuration setting The default CBFS size configuration setting is incorrect in case of Qualcomm SOC targets, as the coreboot blob is much smaller than the actual bootprom. Note that this size also must match the board fmap defined in the appropriate depthcharge board directory. BUG=chromium:394068 TEST=manual . previously failing to boot coreboot image does not fail to load depthcharge anymore. Change-Id: I1b178970b1deee05705490542e4a0c57500379dd Signed-off-by: Vadim Bendebury Reviewed-on: https://chromium-review.googlesource.com/208146 Reviewed-by: David Hendricks --- configs/config.storm | 1 + src/soc/qualcomm/Kconfig | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/configs/config.storm b/configs/config.storm index d1d3891f25..d744666a4c 100644 --- a/configs/config.storm +++ b/configs/config.storm @@ -5,3 +5,4 @@ CONFIG_COREBOOT_ROMSIZE_KB_4096=y CONFIG_COLLECT_TIMESTAMPS=y CONFIG_CONSOLE_CBMEM=y CONFIG_USE_BLOBS=y +CONFIG_CBFS_SIZE=0x002c0000 diff --git a/src/soc/qualcomm/Kconfig b/src/soc/qualcomm/Kconfig index b7a12d4f9c..918093b7d8 100644 --- a/src/soc/qualcomm/Kconfig +++ b/src/soc/qualcomm/Kconfig @@ -1 +1,9 @@ source src/soc/qualcomm/ipq806x/Kconfig + +config CBFS_SIZE + hex "Size of CBFS filesystem in ROM" + default ROM_SIZE + help + CBFS size needs to match the size of memory allocated to the + coreboot blob elsewhere in the system. Make sure this config option + is fine tuned in the board config file.