From c0f1dfa8bba77199d2eac0f1b5027974d05bdc8a Mon Sep 17 00:00:00 2001 From: Baozhu Zuo Date: Mon, 3 Aug 2020 09:07:51 +0800 Subject: [PATCH 1/2] Please use the 4.19 kernel first, 5.4 kernel support is still under development. --- README.md | 3 ++- install.sh | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index dcd158e..4b59d07 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,8 @@ Get the seeed voice card source code. and install all linux kernel drivers ```bash git clone https://github.com/respeaker/seeed-voicecard cd seeed-voicecard -sudo ./install.sh +#sudo ./install.sh +sudo ./install.sh --compat-kernel sudo reboot ``` It may probably happen that the driver won't compile with the latest kernel when raspbian rolls out new patches to the kernel. If so, please try `sudo ./install.sh --compat-kernel` which uses an older kernel but ensures that the driver can work. diff --git a/install.sh b/install.sh index 314dced..483f30d 100755 --- a/install.sh +++ b/install.sh @@ -1,7 +1,7 @@ #!/bin/bash #FORCE_KERNEL="1.20190925+1-1" -FORCE_KERNEL="1.20200212-1" +FORCE_KERNEL="1.20200601-1" if [[ $EUID -ne 0 ]]; then echo "This script must be run as root (use sudo)" 1>&2 From 19d1e6eb880a022ba3098dd1c74a5c043810dd99 Mon Sep 17 00:00:00 2001 From: Psycho Date: Sun, 9 Aug 2020 17:57:20 +0200 Subject: [PATCH 2/2] English correction --- install.sh | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/install.sh b/install.sh index 483f30d..d9631ce 100755 --- a/install.sh +++ b/install.sh @@ -8,7 +8,7 @@ if [[ $EUID -ne 0 ]]; then exit 1 fi -# Check for enough space on /boot volume +# Check if enough space on /boot volume boot_line=$(df -h | grep /boot | head -n 1) if [ "x${boot_line}" = "x" ]; then echo "Warning: /boot volume not found .." @@ -80,10 +80,10 @@ function check_kernel_headers() { # echo RUN=$VER_RUN HDR=$VER_HDR echo " !!! Your kernel version is $VER_RUN" - echo " Not found *** coressponding *** kernel headers with apt-get." - echo " This may occur if you have ran 'rpi-update'." - echo " Choose *** y *** will revert the kernel to version $VER_HDR then continue." - echo " Choose *** N *** will exit without this driver support, by default." + echo " Couldn't find *** corresponding *** kernel headers with apt-get." + echo " This may happen if you ran 'rpi-update'." + echo " Choose *** y *** to revert the kernel to version $VER_HDR and continue." + echo " Choose *** N *** to exit without this driver support, by default." read -p "Would you like to proceed? (y/N)" -n 1 -r -s echo if ! [[ $REPLY =~ ^[Yy]$ ]]; then @@ -117,7 +117,7 @@ fi function install_kernel() { local _url _prefix - # Instead of retriving the lastest kernel & headers + # Instead of retrieving the lastest kernel & headers [ "X$FORCE_KERNEL" == "X" ] && { apt-get -y --force-yes install raspberrypi-kernel-headers raspberrypi-kernel } || { @@ -177,8 +177,8 @@ function install_module { dkms build -k $_i -m $mod -v $ver && { dkms install --force -k $_i -m $mod -v $ver } || { - echo "can not compile with this kernel, abort" - echo "please try compile with the option --compat-kernel" + echo "Can't compile with this kernel, aborting" + echo "Please try to compile with the option --compat-kernel" exit 1 } done @@ -194,8 +194,8 @@ cp seeed-2mic-voicecard.dtbo /boot/overlays cp seeed-4mic-voicecard.dtbo /boot/overlays cp seeed-8mic-voicecard.dtbo /boot/overlays -#install alsa plugins -# no need this plugin now +# install alsa plugins +# we don't need this plugin now # install -D ac108_plugin/libasound_module_pcm_ac108.so /usr/lib/arm-linux-gnueabihf/alsa-lib/ rm -f /usr/lib/arm-linux-gnueabihf/alsa-lib/libasound_module_pcm_ac108.so @@ -242,6 +242,6 @@ systemctl enable seeed-voicecard.service systemctl start seeed-voicecard echo "------------------------------------------------------" -echo "Please reboot your raspberry pi to apply all settings" +echo "Please reboot your device to apply all settings" echo "Enjoy!" echo "------------------------------------------------------"