mirror of
https://github.com/hathach/tinyusb.git
synced 2025-01-31 05:52:55 +08:00
Merge pull request #2379 from hathach/tweak-hil-pi4
reset pi4 usb bus before checkout/download, so that we could skip delay
This commit is contained in:
commit
5a0c21a0aa
18
.github/workflows/build_esp.yml
vendored
18
.github/workflows/build_esp.yml
vendored
@ -81,6 +81,15 @@ jobs:
|
||||
rm -rf "${{ github.workspace }}"
|
||||
mkdir -p "${{ github.workspace }}"
|
||||
|
||||
# USB bus on rpi4 is not stable, reset it before testing
|
||||
- name: Reset USB bus
|
||||
run: |
|
||||
for port in $(lspci | grep USB | cut -d' ' -f1); do
|
||||
echo -n "0000:${port}"| sudo tee /sys/bus/pci/drivers/xhci_hcd/unbind;
|
||||
sleep 0.1;
|
||||
echo -n "0000:${port}" | sudo tee /sys/bus/pci/drivers/xhci_hcd/bind;
|
||||
done
|
||||
|
||||
- name: Checkout test/hil
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
@ -92,15 +101,6 @@ jobs:
|
||||
name: ${{ matrix.board }}
|
||||
path: cmake-build/cmake-build-${{ matrix.board }}
|
||||
|
||||
- name: Reset USB bus
|
||||
run: |
|
||||
for port in $(lspci | grep USB | cut -d' ' -f1); do
|
||||
echo -n "0000:${port}"| sudo tee /sys/bus/pci/drivers/xhci_hcd/unbind;
|
||||
sleep 0.5;
|
||||
echo -n "0000:${port}" | sudo tee /sys/bus/pci/drivers/xhci_hcd/bind;
|
||||
sleep 3;
|
||||
done
|
||||
|
||||
- name: Test on actual hardware
|
||||
run: |
|
||||
python3 test/hil/hil_test.py --board ${{ matrix.board }} hil_pi4.json
|
||||
|
18
.github/workflows/cmake_arm.yml
vendored
18
.github/workflows/cmake_arm.yml
vendored
@ -133,6 +133,15 @@ jobs:
|
||||
rm -rf "${{ github.workspace }}"
|
||||
mkdir -p "${{ github.workspace }}"
|
||||
|
||||
# USB bus on rpi4 is not stable, reset it before testing
|
||||
- name: Reset USB bus
|
||||
run: |
|
||||
for port in $(lspci | grep USB | cut -d' ' -f1); do
|
||||
echo -n "0000:${port}"| sudo tee /sys/bus/pci/drivers/xhci_hcd/unbind;
|
||||
sleep 0.1;
|
||||
echo -n "0000:${port}" | sudo tee /sys/bus/pci/drivers/xhci_hcd/bind;
|
||||
done
|
||||
|
||||
- name: Checkout test/hil
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
@ -144,15 +153,6 @@ jobs:
|
||||
name: ${{ matrix.board }}
|
||||
path: cmake-build/cmake-build-${{ matrix.board }}
|
||||
|
||||
- name: Reset USB bus
|
||||
run: |
|
||||
for port in $(lspci | grep USB | cut -d' ' -f1); do
|
||||
echo -n "0000:${port}"| sudo tee /sys/bus/pci/drivers/xhci_hcd/unbind;
|
||||
sleep 0.5;
|
||||
echo -n "0000:${port}" | sudo tee /sys/bus/pci/drivers/xhci_hcd/bind;
|
||||
sleep 3;
|
||||
done
|
||||
|
||||
- name: Test on actual hardware
|
||||
run: |
|
||||
python3 test/hil/hil_test.py --board ${{ matrix.board }} hil_pi4.json
|
||||
|
Loading…
x
Reference in New Issue
Block a user