diff options
author | Marshall Dawson <marshalldawson3rd@gmail.com> | 2019-07-23 07:24:30 -0600 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2019-07-29 05:58:08 +0000 |
commit | b85ddc5d44cb76fa3dbec461c949fb79b66decec (patch) | |
tree | 7fbd6557424a824e9caaaaaeed309e4664287b7b /Documentation/vendorcode | |
parent | dffa781558535bec98d2ebee0a0cb84d62e2f535 (diff) | |
download | coreboot-b85ddc5d44cb76fa3dbec461c949fb79b66decec.tar.xz |
util/amdfwtool: Correct fletcher32 algorithm
Change the fletcher32 checksum calculation to match PSP and AGESA
implementations.
The symptom of the failure has only been noted in Picasso's BIOS
Directory Table, when a BIOS binary image of different sizes were
passed to amdfwtool. The PSP halts the boot process with the bad
BDT checksum, and if allowed to continue, AGESA asserts later due
to a failed BDT verification.
This version has been verified to produce the same result as found
at https://en.wikipedia.org/wiki/Fletcher%27s_checksum.
TEST=Build apu2, bettong, grunt and verify before/after amdfw.rom
is unchanged.
Change-Id: I2ba2c49a70aa81c15acaab0be6b4c95e7891234f
Signed-off-by: Marshall Dawson <marshalldawson3rd@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/34574
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'Documentation/vendorcode')
0 files changed, 0 insertions, 0 deletions