util/spdtool: Add tool to extract SPD from BLOBs
commit9b545df90bd03d363ef3ab3311dfaf4428bf81d4
authorPatrick Rudolph <patrick.rudolph@9elements.com>
Tue, 12 Feb 2019 10:52:41 +0000 (12 11:52 +0100)
committerPatrick Georgi <pgeorgi@google.com>
Mon, 1 Apr 2019 08:03:29 +0000 (1 08:03 +0000)
treeb250cffc59f4eaf8eb76f24731d7cc748c3b88db
parentb6d91753fc6afed85e1bce520898a9bdfa4db4a9
util/spdtool: Add tool to extract SPD from BLOBs

Opens a binary file to extract DDR SPDs using known bits.
At the moment only DDR4 SPDs are supported.
Dumps the found SPDs into the current folder, as either
binary or hex encoded file.

Works with python2 and python3.

Change-Id: I26dd73d43b724ea6891bb5b6e96856c42db8577c
Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/31385
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Philipp Deppenwiese <zaolin.daisuki@gmail.com>
util/spdtool/description.md [new file with mode: 0644]
util/spdtool/spdtool.py [new file with mode: 0644]