sepia-docs icon indicating copy to clipboard operation
sepia-docs copied to clipboard

Respeaker mic hat Install Script incompatible kernel

Open rubipopubi opened this issue 4 years ago • 2 comments

Installer script for respeaker mic hat finishes with error due to kernel incompatibility.

Adding --compat-kernel solves the problem and should maybe be added to the script by default?

install_respeaker_mic.sh:

#!/bin/bash sudo apt-get update sudo apt-get install -y git git clone https://github.com/respeaker/seeed-voicecard cd seeed-voicecard #sed -i 's/^FORCE_KERNEL=.*/FORCE_KERNEL="1.20190925-1"/' install.sh sudo ./install.sh --compat-kernel

rubipopubi avatar Aug 28 '20 08:08 rubipopubi

Thanks for the info! What versions of the RPi and Raspbian/Rapberry Pi OS are affected by this?

sepia-assistant avatar Aug 28 '20 10:08 sepia-assistant

It comes up both on my rpi3b and pi zero with the newest image of pi os installed and freshly updated. Here's the terminal output:

Building module: cleaning build area.... make -j4 KERNELRELEASE=5.4.51+ -C /lib/modules/5.4.51+/build M=/var/lib/dkms/seeed-voicecard/0.3/build.....(bad exit status: 2) Error! Bad return status for module build on kernel: 5.4.51+ (armv7l) Consult /var/lib/dkms/seeed-voicecard/0.3/build/make.log for more information. Can't compile with this kernel, aborting Please try to compile with the option --compat-kernel

As suggested in the output i put --compat-kernel in the install_respeaker_mic,sh, and the script runs through.

rubipopubi avatar Aug 28 '20 16:08 rubipopubi