[coreboot-gerrit] New patch to review for coreboot: e64fa8a board_status.sh: allow user to supply console log

David Hendricks (dhendrix@chromium.org) gerrit at coreboot.org
Mon Feb 10 23:43:42 CET 2014


David Hendricks (dhendrix at chromium.org) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/5191

-gerrit

commit e64fa8ae461283a9ab0b182b3ff9a876bfb0ac6f
Author: David Hendricks <dhendrix at chromium.org>
Date:   Mon Feb 10 14:40:34 2014 -0800

    board_status.sh: allow user to supply console log
    
    This adds an option to allow the user to supply a console log, for
    example if serial console logs provide additional pre-RAM messages
    that are useful.
    
    Change-Id: I3c8e496c90e56868196e95f5326c76cd524ad775
    Signed-off-by: David Hendricks <dhendrix at chromium.org>
---
 util/board_status/board_status.sh | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/util/board_status/board_status.sh b/util/board_status/board_status.sh
index 735932b..d649e11 100644
--- a/util/board_status/board_status.sh
+++ b/util/board_status/board_status.sh
@@ -10,6 +10,7 @@ EXIT_FAILURE=1
 
 # Stuff from command-line switches
 REMOTE_HOST=""
+CONSOLE_LOG=""
 CLOBBER_OUTPUT=0
 UPLOAD_RESULTS=0
 
@@ -103,6 +104,9 @@ show_help() {
 Options
     -h
         Show this message.
+    -c  <filename>
+        Use <filename> as console log instead of content from cbmem. Useful if
+        target does not support CBMEM.
     -C
         Clobber temporary output when finished. Useful for debugging.
     -r  <host>
@@ -118,6 +122,9 @@ while getopts "Chr:u" opt; do
 			show_help
 			exit $EXIT_SUCCESS
 			;;
+		c)
+			CONSOLE_LOG="$OPTARG"
+			;;
 		C)
 			CLOBBER_OUTPUT=1
 			;;
@@ -169,7 +176,11 @@ printf "Upstream URL: %s\n" $($getrevision -U)>> ${tmpdir}/${results}/revision.t
 printf "Timestamp: %s\n" "$timestamp" >> ${tmpdir}/${results}/revision.txt
 
 test_cmd $REMOTE "cbmem"
-cmd $REMOTE "cbmem -c" "${tmpdir}/${results}/coreboot_console.txt"
+if [ -f "$CONSOLE_LOG" ]; then
+	cp "$CONSOLE_LOG" "${tmpdir}/${results}/coreboot_console.txt"
+else
+	cmd $REMOTE "cbmem -c" "${tmpdir}/${results}/coreboot_console.txt"
+fi
 cmd_nonfatal $REMOTE "cbmem -t" "${tmpdir}/${results}/coreboot_timestamps.txt"
 
 cmd $REMOTE dmesg "${tmpdir}/${results}/kernel_log.txt"



More information about the coreboot-gerrit mailing list