Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(188)

Unified Diff: utility/dev_debug_vboot

Issue 4242001: Add a few more commands to help debug verified boot. (Closed) Base URL: http://git.chromium.org/git/vboot_reference.git@master
Patch Set: Created 10 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utility/dev_debug_vboot
diff --git a/utility/dev_debug_vboot b/utility/dev_debug_vboot
index 88e9a8b9dccedc8e23096e5ad508498be9d0eb4a..879ee8b41b57e3eafdd427c9661e3d7ef29b8134 100755
--- a/utility/dev_debug_vboot
+++ b/utility/dev_debug_vboot
@@ -43,6 +43,10 @@ log() {
"$@" >> "$LOGFILE" 2>&1
}
+loghead() {
+ echo "+" "$@" "| head" >> "$LOGFILE"
+ "$@" | head >> "$LOGFILE" 2>&1
+}
logdie() {
echo "+" "$@" >> "$LOGFILE"
"$@" >> "$LOGFILE" 2>&1
@@ -66,6 +70,9 @@ require_chromeos_bios() {
fi
# including /dev/null just to get final "\n"
log head "${ACPI}"/*ID "${ACPI}"/BINF* "${ACPI}"/CHSW /dev/null
+ log reboot_mode
+ log ls -a /mnt/stateful_partition
+ log ls -a /root
}
# Here we go...
@@ -97,6 +104,7 @@ if [ -n "$USE_EXISTING" ]; then
else
require_chromeos_bios
info "Extracting BIOS image from flash..."
+ log flashrom --wp-status
log flashrom -r ${BIOS}
HD_KERN_A="${HD}2"
@@ -142,6 +150,7 @@ done
for keyblock in *kern*.blob; do
infon "Test $keyblock... "
log vbutil_keyblock --unpack $keyblock ; result
+ loghead od -Ax -tx1 $keyblock
done
# Test each kernel with each key
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698