diff options
author | Vadim Bendebury <vbendeb@chromium.org> | 2014-12-25 15:34:32 -0800 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2015-04-18 08:57:24 +0200 |
commit | 42001a7051e8fcfedccaba17438a032e1ac72ed1 (patch) | |
tree | 4218ff24e847f654935d1ad20a4ab7e13ebb7ead /src/vendorcode/google/chromeos/vboot_common.c | |
parent | 3c90365bdd3883950d7dffdec75364a272be8728 (diff) | |
download | coreboot-42001a7051e8fcfedccaba17438a032e1ac72ed1.tar.xz |
vboot2: provide path for booting using alternative CBFS instances
When CONFIG_MULTIPLE_CBFS_INSTANCES is enabled, the image is expected
to have CBFS instances in rw-a and rw-b sections of the bootrom.
This patch adds code which makes sure that CBFS header points at the
proper bootrpom section as determined by vboot, and the RW stages load
from that section.
BRANCH=storm
BUG=chrome-os-partner:34161, chromium:445938
TEST=with the rest of the patches in, STORM boots all the way into
Linux login prompt.
Original-Change-Id: I187e3d3e65d548c672fdf3b42419544d3bd11ea1
Original-Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Original-Reviewed-on: https://chromium-review.googlesource.com/237662
Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org>
(cherry picked from commit 71ad0bb41b183374a84a5b9fb92c3afd813ceace)
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Change-Id: Ia05cb713981c44da8cb379b72dfbe17fe1f6c5ff
Reviewed-on: http://review.coreboot.org/9704
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'src/vendorcode/google/chromeos/vboot_common.c')
-rw-r--r-- | src/vendorcode/google/chromeos/vboot_common.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vendorcode/google/chromeos/vboot_common.c b/src/vendorcode/google/chromeos/vboot_common.c index ef47fc8a56..95bab367ed 100644 --- a/src/vendorcode/google/chromeos/vboot_common.c +++ b/src/vendorcode/google/chromeos/vboot_common.c @@ -95,6 +95,9 @@ void *vboot_get_payload(int *len) struct vboot_handoff *vboot_handoff; struct firmware_component *fwc; + if (IS_ENABLED(CONFIG_MULTIPLE_CBFS_INSTANCES)) + return NULL; /* Let CBFS figure it out. */ + vboot_handoff = cbmem_find(CBMEM_ID_VBOOT_HANDOFF); if (vboot_handoff == NULL) |