security/vboot: Fix remaining measured boot issues

Makes vboot measured boot mode available for all boards.

* Increase Tegra210 and Rockchip3228 SRAM for
  romstage/verstage.
* Add missing files for Intel apollolake and
  AMD stoneyridge as TPM driver target.

Change-Id: I35a85b8f137f28cd9960f2c5ce95f8fa31185b82
Signed-off-by: Philipp Deppenwiese <zaolin.daisuki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/29840
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Werner Zeh <werner.zeh@siemens.com>
Reviewed-by: Julius Werner <jwerner@chromium.org>
This commit is contained in:
Philipp Deppenwiese 2018-11-26 15:04:46 +01:00
parent aea00f496b
commit 2af17af829
4 changed files with 14 additions and 12 deletions

View File

@ -87,6 +87,7 @@ postcar-$(CONFIG_STONEYRIDGE_UART) += uart.c
postcar-y += ramtop.c postcar-y += ramtop.c
postcar-y += sb_util.c postcar-y += sb_util.c
postcar-y += nb_util.c postcar-y += nb_util.c
postcar-$(CONFIG_VBOOT_MEASURED_BOOT) += i2c.c
ramstage-y += BiosCallOuts.c ramstage-y += BiosCallOuts.c
ramstage-y += i2c.c ramstage-y += i2c.c

View File

@ -75,6 +75,7 @@ postcar-y += i2c.c
postcar-$(CONFIG_RESET_ON_INVALID_RAMSTAGE_CACHE) += heci.c postcar-$(CONFIG_RESET_ON_INVALID_RAMSTAGE_CACHE) += heci.c
postcar-$(CONFIG_RESET_ON_INVALID_RAMSTAGE_CACHE) += reset.c postcar-$(CONFIG_RESET_ON_INVALID_RAMSTAGE_CACHE) += reset.c
postcar-$(CONFIG_UART_DEBUG) += uart.c postcar-$(CONFIG_UART_DEBUG) += uart.c
postcar-$(CONFIG_VBOOT_MEASURED_BOOT) += gspi.c
verstage-y += car.c verstage-y += car.c
verstage-y += i2c.c verstage-y += i2c.c

View File

@ -28,18 +28,18 @@
SECTIONS SECTIONS
{ {
SRAM_START(0x40000000) SRAM_START(0x40000000)
PRERAM_CBMEM_CONSOLE(0x40000000, 8K) PRERAM_CBMEM_CONSOLE(0x40000000, 4K)
PRERAM_CBFS_CACHE(0x40002000, 36K) PRERAM_CBFS_CACHE(0x40001000, 36K)
VBOOT2_WORK(0x4000B000, 12K) VBOOT2_WORK(0x4000A000, 12K)
#if ENV_ARM64 #if ENV_ARM64
STACK(0x4000E000, 3K) STACK(0x4000D000, 3K)
#else /* AVP gets a separate stack to avoid any chance of handoff races. */ #else /* AVP gets a separate stack to avoid any chance of handoff races. */
STACK(0x4000EC00, 3K) STACK(0x4000DC00, 3K)
#endif #endif
TIMESTAMP(0x4000F800, 2K) TIMESTAMP(0x4000E800, 2K)
BOOTBLOCK(0x40010000, 28K) BOOTBLOCK(0x4000F000, 28K)
VERSTAGE(0x40017000, 64K) VERSTAGE(0x40016000, 64K)
ROMSTAGE(0x40027000, 100K) ROMSTAGE(0x40026000, 104K)
SRAM_END(0x40040000) SRAM_END(0x40040000)
DRAM_START(0x80000000) DRAM_START(0x80000000)

View File

@ -31,9 +31,9 @@ SECTIONS
SRAM_START(0xFF700000) SRAM_START(0xFF700000)
TTB(0xFF700000, 16K) TTB(0xFF700000, 16K)
BOOTBLOCK(0xFF704004, 20K - 4) BOOTBLOCK(0xFF704004, 20K - 4)
PRERAM_CBMEM_CONSOLE(0xFF709000, 3K) PRERAM_CBMEM_CONSOLE(0xFF709000, 2K)
VBOOT2_WORK(0xFF709C00, 12K) VBOOT2_WORK(0xFF709800, 12K)
OVERLAP_VERSTAGE_ROMSTAGE(0xFF70CC00, 41K) OVERLAP_VERSTAGE_ROMSTAGE(0xFF70C800, 42K)
PRERAM_CBFS_CACHE(0xFF717000, 1K) PRERAM_CBFS_CACHE(0xFF717000, 1K)
TIMESTAMP(0xFF717400, 0x180) TIMESTAMP(0xFF717400, 0x180)
STACK(0xFF717580, 3K - 0x180) STACK(0xFF717580, 3K - 0x180)