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>
This commit is contained in:
Patrick Rudolph
2019-02-12 11:52:41 +01:00
committed by Patrick Georgi
parent b6d91753fc
commit 9b545df90b
2 changed files with 238 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
Dumps SPD ROMs from a given blob to separate files using known patterns
and reserved bits. Useful for analysing firmware that holds SPDs on boards
that have soldered down DRAM. `python`