David Hendricks (dhendrix@chromium.org) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/5191
-gerrit
commit 9ba6867e97b6ec7a0ad8dd0c019c928bd2950a6b Author: David Hendricks dhendrix@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@chromium.org --- util/board_status/board_status.sh | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/util/board_status/board_status.sh b/util/board_status/board_status.sh index 735932b..8e9ec16 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 or if serial log captures more messages. -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,12 @@ 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" + chmod 644 "${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"