mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-11-27 03:33:50 +00:00
Call VbExEcGetExpectedRW() with the correct parameters.
vboot is passing in an index but the function expects an enum. BUG=chrome-os-partner:11765 TEST=manual Build with serial enabled, watch what happens. Before, it does this: ec.c: VbExEcGetExpectedRW: Unrecognized EC firmware requested. VbEcSoftwareSync() - VbExEcGetExpectedRW() returned 65536 VbSetRecoveryRequest(34) After this change, it should get a little further: ec.c: VbExEcGetExpectedRW: EC-RW image offset 0 size 0. ec.c: VbExEcGetExpectedRW: EC image has bogus size. VbEcSoftwareSync() - VbExEcGetExpectedRW() returned 65536 VbSetRecoveryRequest(34) Sigh. Change-Id: Ideb5f9d70bc5f3f202a8e04a6ec718e1d674d526 Signed-off-by: Bill Richardson <wfrichar@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/28341 Reviewed-by: Randall Spangler <rspangler@chromium.org>
This commit is contained in:
@@ -422,8 +422,12 @@ VbError_t VbEcSoftwareSync(VbSharedDataHeader *shared) {
|
||||
}
|
||||
VBDEBUG(("VbEcSoftwareSync() - hash len = %d\n", ec_hash_size));
|
||||
|
||||
/* Get expected EC-RW code */
|
||||
rv = VbExEcGetExpectedRW(shared->firmware_index, &expected, &expected_size);
|
||||
/* Get expected EC-RW code. Note that we've already checked for RO_NORMAL,
|
||||
* so we know that the BIOS must be RW-A or RW-B, and therefore the EC must
|
||||
* match. */
|
||||
rv = VbExEcGetExpectedRW(
|
||||
shared->firmware_index ? VB_SELECT_FIRMWARE_B : VB_SELECT_FIRMWARE_A,
|
||||
&expected, &expected_size);
|
||||
if (rv) {
|
||||
VBDEBUG(("VbEcSoftwareSync() - VbExEcGetExpectedRW() returned %d\n", rv));
|
||||
VbSetRecoveryRequest(VBNV_RECOVERY_EC_SOFTWARE_SYNC);
|
||||
|
||||
Reference in New Issue
Block a user