From b7b085dc656e3977b3f5a6c9b7079c9ee996d227 Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Thu, 6 Sep 2018 17:32:58 +0200 Subject: board-status: Only store CBMEM console from last boot Since CBMEM console became a ring buffer, logs from several boots can be stored. We are only interested in the current boot. > -c | --console: print cbmem console > -1 | --oneboot: print cbmem console for last boot only For CBMEM time stamps only the time stamps of the current boot are stored, so only the commands for the CBMEM console need to be adapted. Change-Id: I18caa4aeebbd5576b9e218d176a7db5a8e868b74 Signed-off-by: Paul Menzel Reviewed-on: https://review.coreboot.org/28531 Tested-by: build bot (Jenkins) Reviewed-by: Philipp Deppenwiese --- util/board_status/board_status.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/board_status/board_status.sh b/util/board_status/board_status.sh index 13c58e1740..4acbb6c994 100755 --- a/util/board_status/board_status.sh +++ b/util/board_status/board_status.sh @@ -376,7 +376,7 @@ elif [ -n "$REMOTE_HOST" ]; then echo "Verifying that CBMEM is available on remote device" test_cmd $REMOTE "$cbmem_cmd" echo "Getting coreboot boot log" - cmd $REMOTE "$cbmem_cmd -c" "${tmpdir}/${results}/coreboot_console.txt" + cmd $REMOTE "$cbmem_cmd -1" "${tmpdir}/${results}/coreboot_console.txt" echo "Getting timestamp data" cmd_nonfatal $REMOTE "$cbmem_cmd -t" "${tmpdir}/${results}/coreboot_timestamps.txt" @@ -398,7 +398,7 @@ else fi echo "Getting coreboot boot log" - cmd $LOCAL "$cbmem_cmd -c" "${tmpdir}/${results}/coreboot_console.txt" + cmd $LOCAL "$cbmem_cmd -1" "${tmpdir}/${results}/coreboot_console.txt" echo "Getting timestamp data" cmd_nonfatal $LOCAL "$cbmem_cmd -t" "${tmpdir}/${results}/coreboot_timestamps.txt" -- cgit v1.2.3