Patrick Georgi (pgeorgi(a)google.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/10661
-gerrit
commit f6d0370e11d5d95f689b6e6244268fc3b8cb7996
Author: Patrick Georgi <pgeorgi(a)chromium.org>
Date: Thu Jun 25 17:01:26 2015 +0200
google/chromeos: always enable VBOOT_VERIFY_FIRMWARE with CHROMEOS
Change-Id: Icc3cf64f259d4ebd7900ad91163276774e5422ab
Signed-off-by: Patrick Georgi <pgeorgi(a)chromium.org>
---
src/vendorcode/google/chromeos/Kconfig | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/vendorcode/google/chromeos/Kconfig b/src/vendorcode/google/chromeos/Kconfig
index b9530f9..51a04ed 100644
--- a/src/vendorcode/google/chromeos/Kconfig
+++ b/src/vendorcode/google/chromeos/Kconfig
@@ -31,6 +31,7 @@ config CHROMEOS
select BOOTMODE_STRAPS
select ELOG
select COLLECT_TIMESTAMPS
+ select VBOOT_VERIFY_FIRMWARE
help
Enable ChromeOS specific features like the GPIO sub table in
the coreboot table. NOTE: Enabling this option on an unsupported
@@ -129,7 +130,7 @@ config VIRTUAL_DEV_SWITCH
config VBOOT_VERIFY_FIRMWARE
bool "Verify firmware with vboot."
default n
- depends on CHROMEOS && HAVE_HARD_RESET
+ depends on HAVE_HARD_RESET
help
Enabling VBOOT_VERIFY_FIRMWARE will use vboot to verify the components
of the firmware (stages, payload, etc).
Patrick Georgi (pgeorgi(a)google.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/10660
-gerrit
commit fa0606a3d1faa1b33b4d7b925bac221f16865274
Author: Patrick Georgi <pgeorgi(a)chromium.org>
Date: Thu Jun 25 16:57:57 2015 +0200
vboot: Init vb2 work memory area before calling verstage
Otherwise it'll determine some offsets from uninitialized data and hilarity
ensues.
Change-Id: I6a671987857cfd3f3cd6078aebd13dd09fc79020
Signed-off-by: Patrick Georgi <pgeorgi(a)chromium.org>
---
src/vendorcode/google/chromeos/vboot2/vboot_loader.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/vendorcode/google/chromeos/vboot2/vboot_loader.c b/src/vendorcode/google/chromeos/vboot2/vboot_loader.c
index cbb5f89..d6e760a 100644
--- a/src/vendorcode/google/chromeos/vboot2/vboot_loader.c
+++ b/src/vendorcode/google/chromeos/vboot2/vboot_loader.c
@@ -90,6 +90,7 @@ static int vboot_active(struct asset *asset)
init_vb2_working_data();
verstage_main();
} else if (verstage_should_load()) {
+ init_vb2_working_data();
struct prog verstage =
PROG_INIT(ASSET_VERSTAGE,
CONFIG_CBFS_PREFIX "/verstage");
Patrick Georgi (pgeorgi(a)google.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/10659
-gerrit
commit d952ab43d6249fb4a85106413e3fe85468f7b7ff
Author: Patrick Georgi <pgeorgi(a)chromium.org>
Date: Thu Jun 25 14:31:41 2015 +0200
google/veyron_speedy: Add chromeos.c to romstage
vboot requires it.
Change-Id: Iae2310c9b9c311c3f64b8417295685261ba404b0
Signed-off-by: Patrick Georgi <pgeorgi(a)chromium.org>
---
src/mainboard/google/veyron_speedy/Makefile.inc | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/mainboard/google/veyron_speedy/Makefile.inc b/src/mainboard/google/veyron_speedy/Makefile.inc
index a027c6d..ea1c606 100644
--- a/src/mainboard/google/veyron_speedy/Makefile.inc
+++ b/src/mainboard/google/veyron_speedy/Makefile.inc
@@ -26,6 +26,7 @@ verstage-y += chromeos.c
verstage-y += reset.c
romstage-y += boardid.c
+romstage-y += chromeos.c
romstage-y += romstage.c
romstage-y += sdram_configs.c
romstage-y += reset.c
Martin Roth (gaumless(a)gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/10607
-gerrit
commit 823b6132bec8b8e54901d004d589ce059c2a4e74
Author: Martin Roth <gaumless(a)gmail.com>
Date: Fri Jun 19 20:50:59 2015 -0600
Store the payload config and revision in CBFS
Store the payload .config and version.c files in CBFS if using a
SeaBIOS or filo payload if INCLUDE_CONFIG_FILE is enabled.
Change-Id: I0c1b4da8f6179b9cee06cecfa76bc631b43196e0
Signed-off-by: Martin Roth <gaumless(a)gmail.com>
---
Makefile.inc | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/Makefile.inc b/Makefile.inc
index 2f1fe82..5ee785f 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -110,6 +110,17 @@ dir-wildcards=$(addsuffix %,$(1))
# files-in-dir,dir,files
files-in-dir=$(filter-out $(call dir-wildcards,$(call filter-out-dirs,$(1),$(sort $(dir $(2))))),$(call files-in-dir-recursive,$(1),$(2)))
+######################################################################
+# set up payload config and version files for later inclusion
+ifeq ($(CONFIG_PAYLOAD_SEABIOS),y)
+PAYLOAD_CONFIG=payloads/external/SeaBIOS/seabios/.config
+PAYLOAD_VERSION=payloads/external/SeaBIOS/seabios/out/version.c
+endif
+ifeq ($(CONFIG_PAYLOAD_FILO),y)
+PAYLOAD_CONFIG=payloads/external/FILO/filo/.config
+PAYLOAD_VERSION=payloads/external/FILO/filo/build/version.h
+endif
+
#######################################################################
# reduce command line length by linking the objects of each
# directory into an intermediate file
@@ -636,6 +647,16 @@ ifeq ($(CONFIG_CPU_MICROCODE_ADDED_DURING_BUILD),y)
$(CBFSTOOL) $@.tmp update-fit -n cpu_microcode_blob.bin -x $(CONFIG_CPU_INTEL_NUM_FIT_ENTRIES)
endif
endif
+ifeq ($(CONFIG_INCLUDE_CONFIG_FILE),y)
+ @printf " CONFIG $(PAYLOAD_CONFIG)\n"
+ if [ -f "$(PAYLOAD_CONFIG)" ]; then \
+ $(CBFSTOOL) $@.tmp add -f "$(PAYLOAD_CONFIG)" -n payload_config -t raw; \
+ fi
+ @printf " REVISION $(PAYLOAD_VERSION)\n"
+ if [ -f "$(PAYLOAD_VERSION)" ]; then \
+ $(CBFSTOOL) $@.tmp add -f "$(PAYLOAD_VERSION)" -n payload_revision -t raw; \
+ fi
+endif
mv $@.tmp $@
@printf " CBFSPRINT $(subst $(obj)/,,$(@))\n\n"
$(CBFSTOOL) $@ print
Martin Roth (gaumless(a)gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/10607
-gerrit
commit b8e6529dfb734e5ae7fe5a7d02cf374f2c849728
Author: Martin Roth <gaumless(a)gmail.com>
Date: Fri Jun 19 20:50:59 2015 -0600
Store the payload config and revision in CBFS
Store the payload .config and version.c files in CBFS if using a
SeaBIOS or filo payload if INCLUDE_CONFIG_FILE is enabled.
Change-Id: I0c1b4da8f6179b9cee06cecfa76bc631b43196e0
Signed-off-by: Martin Roth <gaumless(a)gmail.com>
---
Makefile.inc | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/Makefile.inc b/Makefile.inc
index 2f1fe82..d017e19 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -110,6 +110,17 @@ dir-wildcards=$(addsuffix %,$(1))
# files-in-dir,dir,files
files-in-dir=$(filter-out $(call dir-wildcards,$(call filter-out-dirs,$(1),$(sort $(dir $(2))))),$(call files-in-dir-recursive,$(1),$(2)))
+######################################################################
+# set up payload config and version files for later inclusion
+ifeq ($(CONFIG_PAYLOAD_SEABIOS),y)
+PAYLOAD_CONFIG=payloads/external/SeaBIOS/seabios/.config
+PAYLOAD_VERSION=payloads/external/SeaBIOS/seabios/out/version.c
+endif
+ifeq ($(CONFIG_PAYLOAD_FILO),y)
+PAYLOAD_CONFIG=payloads/external/FILO/filo/.config
+PAYLOAD_VERSION=payloads/external/FILO/filo/build/version.h
+endif
+
#######################################################################
# reduce command line length by linking the objects of each
# directory into an intermediate file
@@ -636,6 +647,13 @@ ifeq ($(CONFIG_CPU_MICROCODE_ADDED_DURING_BUILD),y)
$(CBFSTOOL) $@.tmp update-fit -n cpu_microcode_blob.bin -x $(CONFIG_CPU_INTEL_NUM_FIT_ENTRIES)
endif
endif
+ifeq ($(CONFIG_INCLUDE_CONFIG_FILE),y)
+ @printf " CONFIG $(PAYLOAD_CONFIG)\n"
+ if [ -f "$(PAYLOAD_CONFIG)" ]; then \
+ $(CBFSTOOL) $@.tmp add -f "$(PAYLOAD_CONFIG)" -n payload_config -t raw ; fi
+ @printf " REVISION $(PAYLOAD_VERSION)\n"
+ if [ -f "$(PAYLOAD_VERSION)" ]; then $(CBFSTOOL) $@.tmp add -f "$(PAYLOAD_VERSION)" -n payload_revision -t raw; fi
+endif
mv $@.tmp $@
@printf " CBFSPRINT $(subst $(obj)/,,$(@))\n\n"
$(CBFSTOOL) $@ print
Martin Roth (gaumless(a)gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/10655
-gerrit
commit 86979348098f03031d8600a662ae68a67edcfcc5
Author: Martin Roth <gaumless(a)gmail.com>
Date: Wed Jun 24 19:43:17 2015 -0600
SeaBIOS: Change clean to just 'rm -rf seabios/out'
When running 'make clean' if the seabios directory is present, we get
warnings about not having IASL installed or that the C compiler can't
be executed. It fails to actually run the clean because we're not
correctly passing in the toolchain.
Just do what the SeaBIOS clean does directly and delete the 'out'
directory without actually calling the SeaBIOS clean.
Here were the previous warnings:
% make clean
Unable to execute the C compiler ().
Please install a working compiler and retry.
Makefile:104: *** "Please upgrade the build environment". Stop.
or
% make clean
The SeaBIOS project requires the 'iasl' package be installed.
Many Linux distributions have this package.
Try: sudo yum install iasl
Or: sudo apt-get install iasl
Please install iasl and retry.
Makefile:106: *** "Please upgrade the build environment". Stop.
Change-Id: Ice41376bc242f1f622d849e7628f8a9b6ef47404
Signed-off-by: Martin Roth <gaumless(a)gmail.com>
---
payloads/external/SeaBIOS/Makefile.inc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/payloads/external/SeaBIOS/Makefile.inc b/payloads/external/SeaBIOS/Makefile.inc
index 087b723..7fb63d4 100644
--- a/payloads/external/SeaBIOS/Makefile.inc
+++ b/payloads/external/SeaBIOS/Makefile.inc
@@ -53,7 +53,7 @@ build: config
$(MAKE) -C seabios OUT=out/
clean:
- test -d seabios && $(MAKE) -C seabios clean OUT=out/ || exit 0
+ test -d seabios/out && rm -rf seabios/out || exit 0
distclean:
rm -rf seabios