Skip to content

Commit

Permalink
setup: remove kernel rollback patch.
Browse files Browse the repository at this point in the history
  • Loading branch information
f-laurens authored and pguyot committed May 5, 2024
1 parent 20136d6 commit bd64c67
Showing 1 changed file with 1 addition and 25 deletions.
26 changes: 1 addition & 25 deletions setup
Original file line number Diff line number Diff line change
Expand Up @@ -170,31 +170,7 @@ echo "Installing required packages."
sudo apt-get update -y
sudo apt-get dist-upgrade -y
sudo apt-get install --no-install-recommends -y postgresql libpq-dev git python3 python3-venv python3-dev gettext nginx openssl libssl-dev libffi-dev libmpg123-dev libasound2-dev libatlas-base-dev libgfortran5 libopenblas-dev liblapack-dev zram-tools
sudo apt-get install --no-install-recommends -y gcc make
os_version=$(. /etc/os-release && echo "$VERSION_ID")
if [ "${os_version}" == "11" ]
then
# Bullseye (nasty) patch: force rollback to kernel 5.15.32 (20220331)
# since wm8960 driver is incompatible with later versions.
kver="1.20220331-1"
if [ "$(uname -m)" == "aarch64" ]
then
karch="arm64"
else
karch="armhf"
fi
cd /tmp
wget https://archive.raspberrypi.org/debian/pool/main/r/raspberrypi-firmware/raspberrypi-kernel_${kver}_${karch}.deb
sudo dpkg -i raspberrypi-kernel_${kver}_${karch}.deb
rm raspberrypi-kernel_${kver}_${karch}.deb
sudo apt-mark hold raspberrypi-kernel
wget https://archive.raspberrypi.org/debian/pool/main/r/raspberrypi-firmware/raspberrypi-kernel-headers_${kver}_${karch}.deb
sudo dpkg -i raspberrypi-kernel-headers_${kver}_${karch}.deb
rm raspberrypi-kernel-headers_${kver}_${karch}.deb
sudo apt-mark hold raspberrypi-kernel-headers
else
sudo apt-get install --no-install-recommends -y raspberrypi-kernel-headers
fi
sudo apt-get install --no-install-recommends -y gcc make raspberrypi-kernel-headers

build_and_install_driver() {
for dir in /lib/modules/*/build
Expand Down

0 comments on commit bd64c67

Please sign in to comment.