mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
.github: workaround for missing kernel modules for 5.4.0-1032-azure
This commit is contained in:
parent
f12191b4b1
commit
1c2e0a887f
5
.github/workflows/test_sitl_periph.yml
vendored
5
.github/workflows/test_sitl_periph.yml
vendored
@ -97,7 +97,10 @@ jobs:
|
|||||||
- name: setup can-utils
|
- name: setup can-utils
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get -y install can-utils iproute2 linux-modules-extra-$(uname -r)
|
echo "Kernel Version: $(uname -r)"
|
||||||
|
kernel_ver=`uname -r`; if [ "$kernel_ver" = "5.4.0-1032-azure" ]; then sudo apt-get -y install linux-modules-extra-5.4.0-1031-azure;else sudo apt-get -y install linux-modules-extra-$(uname -r) ;fi;
|
||||||
|
kernel_ver=`uname -r`; if [ "$kernel_ver" = "5.4.0-1032-azure" ]; then sudo cp -r /lib/modules/5.4.0-1031-azure /lib/modules/5.4.0-1032-azure;fi;
|
||||||
|
sudo apt-get -y install can-utils iproute2
|
||||||
sudo modprobe vcan
|
sudo modprobe vcan
|
||||||
sudo ip link add dev vcan0 type vcan
|
sudo ip link add dev vcan0 type vcan
|
||||||
sudo ip link set up vcan0
|
sudo ip link set up vcan0
|
||||||
|
Loading…
Reference in New Issue
Block a user