summaryrefslogtreecommitdiffstats
path: root/layout.h
diff options
context:
space:
mode:
authorPatrick Rudolph <patrick.rudolph@9elements.com>2019-07-03 17:58:24 +0200
committerNico Huber <nico.h@gmx.de>2019-07-04 18:48:31 +0000
commit2d7ab6963c4450f2fae74632e0e74037641d50d2 (patch)
tree6f8fb00ab0aa528ac495152610d98826cce7f99a /layout.h
parent69146f70a65e8f376833390ced3951d8a8746996 (diff)
downloadflashrom-2d7ab6963c4450f2fae74632e0e74037641d50d2.tar.gz
flashrom-2d7ab6963c4450f2fae74632e0e74037641d50d2.tar.bz2
flashrom-2d7ab6963c4450f2fae74632e0e74037641d50d2.zip
layout: Increase max rom layout size
When trying to flash a single FMAP region on VBOOT enabled boards the default of 32 entries is to small to store all regions. Flashrom will bail out with "Cannot add fmap entries to layout - Too many entries." Increase the maximum rom layout size to 128 to support complex FMAPs. Tested on coreboot's UP/squared mainboard using SF600. With this patch it's possible to update a single FMAP region. Change-Id: I68084b08f7b35a162b5f2d3109d82a8b63c194ff Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/34025 Tested-by: Nico Huber <nico.h@gmx.de> Reviewed-by: Nico Huber <nico.h@gmx.de> Reviewed-by: Christian Walter <christian.walter@9elements.com>
Diffstat (limited to 'layout.h')
-rw-r--r--layout.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/layout.h b/layout.h
index 53a20d6cb..8e4eb1342 100644
--- a/layout.h
+++ b/layout.h
@@ -33,7 +33,7 @@ typedef uint32_t chipsize_t; /* Able to store the number of bytes of any support
#define PRIxCHIPOFF "06"PRIx32
#define PRIuCHIPSIZE PRIu32
-#define MAX_ROMLAYOUT 32
+#define MAX_ROMLAYOUT 128
struct romentry {
chipoff_t start;