Get firmware version values from the platform
For embedded targets, instead of hardcoding the firmware version
values retrieve them using the recently added platform API.
Do not store the version in the NVRAM - always get it from the
platform, as firmware updates do not cause changes to the firmware
version storing NVRAM locations set during manufacturing.
The 8 bytes taken by the two firmware versions are still kept to avoid
changing NVRAM persistent storage layout.
CQ-DEPEND=CL:403115
BUG=chrome-os-partner:58177
TEST=verified that the expected values are returned for TPM firmware
version:
localhost ~ # tpm_version
TPM 2.0 Version Info:
Chip Version: 2.0.0.0
....
Firmware Version: 09004f2a08d73d07
(the first half is the zero prepended 7 characters of the ec SHA1,
and the second half is the zero prepended 7 characters of the tpm2
SHA1).
Change-Id: Id3b3ca15560d9ecb7af0d78abbd46e133707ee53
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/403213
Reviewed-by: Andrey Pronin <apronin@chromium.org>
3 files changed