summaryrefslogtreecommitdiff
path: root/utility/crossystem_main.c
diff options
context:
space:
mode:
authorVadim Bendebury <vbendeb@chromium.org>2011-03-15 09:29:48 -0700
committerVadim Bendebury <vbendeb@chromium.org>2011-03-15 09:29:48 -0700
commit2008423d5fb291eb7628389dcb04fe6d5ebb75fc (patch)
tree2a4c676835b9d91cadb75d21c5f77de742548d26 /utility/crossystem_main.c
parent192d7e14f6f0991ff1ca53180ad69136fd04570d (diff)
downloadvboot-2008423d5fb291eb7628389dcb04fe6d5ebb75fc.tar.gz
Add function for VDAT processing.
This CL is a user space counterpart of http://codereview.chromium.org/6690023, which provided the ability to retrieve buffers through chromeos_acpi driver. The buffer contents is communicated as a multi line string with each buffer byte represented as a two symbol hex number. `crosstool', on the other has to map the buffer contents into a certain binary structure. This CL add conversion of the multiline string into a binary buffer and also adds a temp. routine to dump the buffer contents on the screen when `crosstool' is invoked. Change-Id: I8dd3eb935332f9bc8769c71de0db302365f12d70 BUG=chromium-os:13069, chromium-os:13091 TEST=manual - Install the new image on a target with firmware providing the VDAT ACPI method. - Run crosstool and watch for the last line: vdat = 11 22 33 44 ff 1f 1c 40 ff 57 74 41 ff ff ff ff # Raw VDAT contents. localhost tmp # Review URL: http://codereview.chromium.org/6695012
Diffstat (limited to 'utility/crossystem_main.c')
-rw-r--r--utility/crossystem_main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/utility/crossystem_main.c b/utility/crossystem_main.c
index 90ad718b..4d6cd48a 100644
--- a/utility/crossystem_main.c
+++ b/utility/crossystem_main.c
@@ -49,6 +49,7 @@ const Param sys_param_list[] = {
{"recovery_request", 0, 1, "Recovery mode request (writable)"},
{"dbg_reset", 0, 1, "Debug reset mode request (writable)"},
{"fwb_tries", 0, 1, "Try firmware B count (writable)"},
+ {"vdat", 1, 0, "Raw VDAT contents."},
/* TODO: implement the following:
* nvram_cleared