-
Notifications
You must be signed in to change notification settings - Fork 277
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: ELBERT: Improve debug scripts - Add dump_gpios.sh to help us in dumping gpio state. - Improve show_tech.py and make it more resilient to failing commands Testing: root@bmc-oob:~# dump_gpios.sh v | dir | GPIONAME 0 | out | BMC_ALIVE 1 | out | BMC_BOARD_EEPROM_WP_L 1 | out | BMC_CHASSIS_EEPROM_WP_L 0 | out | BMC_SPI1_CS0_MUX_SEL 1 | in | BMC_TEMP_ALERT ... Pull Request resolved: facebookexternal/openbmc.arista#96 Reviewed By: benwei13 fbshipit-source-id: e3ac94d37f
- Loading branch information
1 parent
e4fb071
commit 65a776a
Showing
3 changed files
with
195 additions
and
100 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
meta-facebook/meta-elbert/recipes-utils/openbmc-utils/files/dump_gpios.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
|
||
# shellcheck disable=SC1091 | ||
source /usr/local/bin/openbmc-utils.sh | ||
|
||
printf "%-1s | %-3s | %-30s\n" "v" "dir" "GPIONAME" | ||
for i in $(ls /tmp/gpionames/): | ||
do | ||
val="$(gpio_get_value "$i")" | ||
direction="$(gpio_get_direction "$i")" | ||
printf "%-1s | %-3s | %-30s\n" "$val" "$direction" "$i" | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters