SEPIA-Framework / sepia-docs

Documentation and Wiki for SEPIA. Please post your questions and bug-reports here in the issues section! Thank you :-)
https://sepia-framework.github.io/
236 stars 16 forks source link

Respeaker mic hat Install Script incompatible kernel #66

Open rubipopubi opened 4 years ago

rubipopubi commented 4 years ago

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

sepia-assistant commented 4 years ago

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

rubipopubi commented 4 years ago

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.