Introduce utility for parsing CBMEM contents.
authorVadim Bendebury <vbendeb@chromium.org>
Fri, 30 Sep 2011 21:21:03 +0000 (14:21 -0700)
committerStefan Reinauer <stefan.reinauer@coreboot.org>
Thu, 29 Mar 2012 18:15:26 +0000 (20:15 +0200)
commitb93f74bb0776c9911f9b5f5d965610a76a0b31cc
treef3c7ca9aa47b5cc12e881f3d4c64f4a8fa01afbe
parent3e31600e62a260c377ac67b305530a5e93c07051
Introduce utility for parsing CBMEM contents.

This is a python script which is supposed to run on a target
which is controlled by coreboot. The script examines top of
memory looking for the CBMEM signature at addresses aligned at
128K boundary. Once the script finds the CBMEM, it iterates
through the CBMEM table of contents and parses two entries: the
timestamps and the console log.

This submission is just a template to build upon to create a
utility for displaying CBMEM information while running Linux on
the target.

BUG=chrome-os-partner:4200
TEST=manual

See test description of d81e6b8c8d41f2d6 for test procedure.

Change-Id: Id863a8598eaadc2d20d728f9186843e65cbe6f37
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-on: https://gerrit-int.chromium.org/5942
Tested-by: Vadim Bendebury <vbendeb@google.com>
Reviewed-by: Stefan Reinauer <reinauer@google.com>
Reviewed-on: http://review.coreboot.org/723
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
util/cbmem/cbmem.py [new file with mode: 0755]