Marri Devender Rao | 9bd89b6 | 2022-03-28 23:41:48 -0500 | [diff] [blame] | 1 | #!/usr/bin/env bash |
| 2 | # |
| 3 | # config: 234 25 |
| 4 | # @brief: Collect PHAL devtree debug data |
| 5 | # |
| 6 | |
| 7 | . $DREPORT_INCLUDE/functions |
| 8 | |
| 9 | attributes="/usr/bin/attributes" |
| 10 | attr_list_file_name="PHAL_devtree.txt" |
| 11 | |
| 12 | #export attributes list to attribute_list.txt |
| 13 | if [ -x $attributes ]; then |
| 14 | add_cmd_output "$attributes export" "$attr_list_file_name" "Attribute list" |
| 15 | fi |
| 16 | |
| 17 | #copy PHAL device tree file to dump |
| 18 | devtree_file_name="/media/hostfw/running/DEVTREE" |
| 19 | if [ -f "$devtree_file_name" ]; then |
| 20 | add_copy_file "$devtree_file_name" "device tree" |
| 21 | fi |
| 22 | |
| 23 | |
| 24 | #copy PHAL export device tree to dump |
| 25 | exp_dev_tree="/var/lib/phal/exportdevtree" |
| 26 | if [ -f "$exp_dev_tree" ]; then |
| 27 | add_copy_file "$exp_dev_tree" "export device tree" |
| 28 | fi |
| 29 | |
| 30 | #copy attribues info db to dump |
| 31 | attr_info_db="/usr/share/pdata/attributes_info.db" |
| 32 | if [ -f "$attr_info_db" ]; then |
| 33 | add_copy_file "$attr_info_db" "attribute info db" |
| 34 | fi |