coreboot/src/mainboard/intel
Lee Leahy eb51ccb9a7 UPSTREAM: mainboard/intel/galileo: Add vboot support
Add the necessary files and changes to support vboot.

TEST=Build and run on Galileo Gen2 with a SparkFun CryptoShield

1.  Obtain and install a SparkFun CryptoShield.
    https://www.sparkfun.com/products/13183

2.  Edit src/mainboard/intel/galileo/Kconfig to select
    VBOOT_WITH_CRYPTO_SHIELD

3.  Use make menuconfig to update the config values and select a
    payload that will fit.  I used SeaBIOS which does not boot.

4.  Build coreboot

5.  Use the command file below to generate the signed coreboot image.

6.  Flash build/coreboot.rom onto the Galileo board

7.  The test is successful if verstage detects that it needs recovery
    after Phase 1.  This is expected because the image does not contain
    the GBB section.

8.  Flash build/coreboot.signed.bin onto the Galileo board

9.  The test is successful if verstage reaches Phase 4 and selects SLOT
    A to load the rest of the files.

commands:
gbb_utility -c 0x100,0x1000,0x7ce80,0x1000 gbb.blob

dd  conv=fdatasync  ibs=4096  obs=4096  count=1553  \
if=build/coreboot.rom  of=build/coreboot.signed.rom

dd  conv=fdatasync  obs=4096  obs=4096  seek=1553  if=gbb.blob  \
of=build/coreboot.signed.rom

dd  conv=fdatasync  ibs=4096  obs=4096  skip=1680  seek=1680  \
count=368  if=build/coreboot.rom  of=build/coreboot.signed.rom

gbb_utility                       \
--set --hwid='Galileo'            \
-r $PWD/keys/recovery_key.vbpubk  \
-k $PWD/keys/root_key.vbpubk      \
build/coreboot.signed.rom

3rdparty/vboot/scripts/image_signing/sign_firmware.sh  \
build/coreboot.signed.rom                              \
$PWD/keys                                              \
build/coreboot.signed.rom

Change-Id: I2c19368819bc4e5794a4bb6b9dbd4f0790da6e48
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Commit-Id: 28c3f23b46
Original-Change-Id: I02eb0ef647cd34c13a5fe8be0bdbe1bb38524d0c
Original-Signed-off-by: Lee Leahy <leroy.p.leahy@intel.com>
Original-Reviewed-on: https://review.coreboot.org/18821
Original-Tested-by: build bot (Jenkins)
Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/455854
2017-03-16 11:25:40 -07:00
..
apollolake_rvp UPSTREAM: drivers/intel/fsp2_0: Make FSP Headers Consumable out of Box 2016-09-06 13:26:32 -07:00
bakersport_fsp
baskingridge UPSTREAM: cpu/x86/msr.h: Drop excessive includes 2016-12-08 12:31:26 -08:00
bayleybay_fsp UPSTREAM: cpu/x86/msr.h: Drop excessive includes 2016-12-08 12:31:26 -08:00
camelbackmountain_fsp UPSTREAM: mainboard/{google,intel}: Change config option selection 2017-02-21 06:44:34 -08:00
cougar_canyon2 UPSTREAM: fsp 1.0 systems: Check for NULL when saving HobListPtr 2017-01-13 18:41:17 -08:00
d510mo UPSTREAM: mb/intel/d510mo: Add cmos.layout and cmos.default 2017-01-27 07:49:00 -08:00
d810e2cb UPSTREAM: mainboard/*/*/irq_tables.c: Use tabs for indents 2016-09-26 16:52:44 -07:00
d945gclf UPSTREAM: sb/ich7: Use common/gpio.h to set up GPIOs 2017-01-09 23:46:48 -08:00
eagleheights UPSTREAM: src/mainboard: Remove unnecessary whitespace 2016-10-11 14:31:36 -07:00
emeraldlake2 UPSTREAM: cpu/x86/msr.h: Drop excessive includes 2016-12-08 12:31:26 -08:00
galileo UPSTREAM: mainboard/intel/galileo: Add vboot support 2017-03-16 11:25:40 -07:00
kblrvp UPSTREAM: intel/skylake: Fix bug in VR configuration with FSP 2.0 2017-03-16 11:25:37 -07:00
kunimitsu UPSTREAM: acpi: Add ACPI_ prefix to IRQ enum and struct names 2017-02-24 11:30:26 -08:00
leafhill UPSTREAM: mainboard/intel/leafhill: Clean up 2017-02-27 14:07:53 -08:00
littleplains UPSTREAM: cpu/x86/msr.h: Drop excessive includes 2016-12-08 12:31:26 -08:00
minnow3 UPSTREAM: intel/minnow3: follow up with recent changes in master 2017-02-27 14:07:48 -08:00
minnowmax UPSTREAM: cpu/x86/msr.h: Drop excessive includes 2016-12-08 12:31:26 -08:00
mohonpeak UPSTREAM: cpu/x86/msr.h: Drop excessive includes 2016-12-08 12:31:26 -08:00
mtarvon UPSTREAM: src/mainboard/getac - kontron: Add space around operators 2016-09-22 08:55:14 -07:00
stargo2 UPSTREAM: cpu/x86/msr.h: Drop excessive includes 2016-12-08 12:31:26 -08:00
strago UPSTREAM: cpu/x86/msr.h: Drop excessive includes 2016-12-08 12:31:26 -08:00
truxton UPSTREAM: src/mainboard/getac - kontron: Add space around operators 2016-09-22 08:55:14 -07:00
wtm2 UPSTREAM: cpu/cpu.h: Drop excessive includes 2016-12-08 12:31:24 -08:00
Kconfig
Kconfig.name