-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A bit dirty updates to the factory testing scripts
- Loading branch information
1 parent
97397df
commit 2abe6bb
Showing
15 changed files
with
564 additions
and
95 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
tp2bmc/board/tp2bmc/factory_overlay/upper/etc/init.d/S00nodeson
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,24 @@ | ||
#!/bin/sh | ||
|
||
# Turn on the node power as soosn as possible | ||
# to speed up factory testing | ||
|
||
case "$1" in | ||
start|"") | ||
gpioset 1 0=1 | ||
gpioset 1 1=1 | ||
gpioset 1 2=1 | ||
gpioset 1 3=1 | ||
gpioset 1 4=1 | ||
|
||
echo "enabled" > /sys/devices/platform/node1-power/state | ||
echo "enabled" > /sys/devices/platform/node2-power/state | ||
echo "enabled" > /sys/devices/platform/node3-power/state | ||
echo "enabled" > /sys/devices/platform/node4-power/state | ||
;; | ||
*) | ||
echo "Usage: $0 {start}" | ||
exit 1 | ||
;; | ||
esac | ||
|
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
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 |
---|---|---|
|
@@ -3,4 +3,4 @@ source node_helpers.sh | |
|
||
# node 1 has a NVMe slot + MPCIe slot | ||
assert_pci_devices "1" "2" | ||
|
||
exit $? |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ | |
source node_helpers.sh | ||
# node 2 has a NVMe slot + MPCIe slot | ||
assert_pci_devices "2" "2" | ||
exit $? |
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
13 changes: 11 additions & 2 deletions
13
tp2bmc/board/tp2bmc/factory_overlay/upper/factory/010-node1_usb_host_test.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 |
---|---|---|
@@ -1,10 +1,19 @@ | ||
#!/bin/bash | ||
source node_helpers.sh | ||
|
||
result=$(send_command "1" "lsusb -d ${BMC_OTG}") | ||
if [[ $? -ne 0 ]]; then | ||
return_code=1 | ||
for i in {1..20}; do | ||
devices=$(get_usb_devices "1") | ||
if echo "$devices" | grep -q "ID ${BMC_OTG}"; then | ||
return_code=0 | ||
break | ||
fi | ||
sleep 0.5 | ||
done | ||
if [ $return_code -eq 1 ]; then | ||
echo "Error: NODE1_USB_HOST or BMC_USB_OTG port not responding" | ||
echo "Verify if cable is attached between the 2 USB ports. The BMC should expose an USB device with ID ${BMC_OTG} over the BMC_USB_OTG port" | ||
exit 1 | ||
fi | ||
|
||
echo -e "\tUSB_HOST => OK" |
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
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
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
Oops, something went wrong.