diff options
author | Jayanth Othayoth <ojayanth@in.ibm.com> | 2018-02-06 21:11:13 -0600 |
---|---|---|
committer | Jayanth Othayoth <ojayanth@in.ibm.com> | 2018-02-06 21:11:13 -0600 |
commit | ce910e960617d1be86f3b47a48f62f3daeb0ceba (patch) | |
tree | 7dfae631543a3a658d7adbe7988235f12ac9f22f | |
parent | 8e29044fb4f2d6de6585bdff361959c06b0103c8 (diff) | |
download | phosphor-debug-collector-ce910e960617d1be86f3b47a48f62f3daeb0ceba.tar.gz phosphor-debug-collector-ce910e960617d1be86f3b47a48f62f3daeb0ceba.zip |
dreport: Added altfwprintenv plugin
Plugin used for collecting alt flash U-boot
environment variables.
Resolves openbmc/openbmc#2862
Change-Id: Ife6eec8e85640e1933771cd149c49f1579430473
Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
-rw-r--r-- | tools/dreport.d/plugins.d/altfwprintenv | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tools/dreport.d/plugins.d/altfwprintenv b/tools/dreport.d/plugins.d/altfwprintenv new file mode 100644 index 0000000..d9c0ace --- /dev/null +++ b/tools/dreport.d/plugins.d/altfwprintenv @@ -0,0 +1,21 @@ +#!/bin/bash +# +# config: 2 50 +# @brief: Print variables from Alt flash U-Boot environment. +# + +. $DREPORT_INCLUDE/functions + +desc="Alt-Flash: U-Boot environment variables" +env_config="/etc/alt_fw_env.config" + +if [ ! -f $env_config ]; then + log_error "$env_config does not exist" + exit +fi + + +file_name="alt-fw-printenv.log" +command="fw_printenv -c $env_config" + +add_cmd_output "$command" "$file_name" "$desc" |