WhyNine
Posts: 72
Joined: Thu May 30, 2019 7:00 pm

Voice Bonnet drivers won't install on Raspbian

Wed Feb 10, 2021 9:35 am

I am having problems installed the Voice Bonnet driver, ie it fails. This is on a Pi 3B+.

I have written the latest Raspbian to an SD card, then:

- run "echo "deb https://packages.cloud.google.com/apt aiyprojects-stable main" | sudo tee /etc/apt/sources.list.d/aiyprojects.list"
- run "curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -"
- run "sudo apt update"
- run "sudo apt-get install -y aiy-voicebonnet-soundcard-dkms"

This fails with:

Code: Select all

Building initial module for 5.10.11+
Error! Bad return status for module build on kernel: 5.10.11+ (armv7l)
Consult /var/lib/dkms/aiy-voicebonnet-soundcard/3.0/build/make.log for more information.
dpkg: error processing package aiy-voicebonnet-soundcard-dkms (--configure):
 installed aiy-voicebonnet-soundcard-dkms package post-installation script subprocess returned error exit status 10
Errors were encountered while processing:
 aiy-voicebonnet-soundcard-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)
The first error in the log file is:

Code: Select all

/var/lib/dkms/aiy-voicebonnet-soundcard/3.0/build/snd-aiy-voicebonnet.c: In function ‘snd_rpi_aiy_voicebonnet_init
’:
/var/lib/dkms/aiy-voicebonnet-soundcard/3.0/build/snd-aiy-voicebonnet.c:39:43: error: ‘struct snd_soc_pcm_runtime’
 has no member named ‘codec_dai’
  struct snd_soc_component *component = rtd->codec_dai->component;
                                           ^~
This used to work (last month?) but somehow is now broken. I have tried doing an upgrade before installed the driver but no difference. I have tried full Raspbian and also Lite with the same result.

What am I doing wrong? Is my Voice Bonnet broken?

Please help!

mongonta
Posts: 4
Joined: Mon Apr 23, 2018 5:55 am

Re: Voice Bonnet drivers won't install on Raspbian

Fri Feb 12, 2021 1:40 pm

Hi,
I had the same problem.
It seems that VoiceBonnet drivers are only supported up to Kernel 5.4, and I get an error when building dkms that upgrade to Kernel 5.10.

I think the only way for now is to revert to the base OS version.

WhyNine
Posts: 72
Joined: Thu May 30, 2019 7:00 pm

Re: Voice Bonnet drivers won't install on Raspbian

Fri Feb 12, 2021 5:04 pm

mongonta wrote:
Fri Feb 12, 2021 1:40 pm
Hi,
I had the same problem.
It seems that VoiceBonnet drivers are only supported up to Kernel 5.4, and I get an error when building dkms that upgrade to Kernel 5.10.

I think the only way for now is to revert to the base OS version.
Thanks for the feedback.

Yes, now that I look, I can see that there was a release of raspbian on 12 Jan. I probably originally used the prior release. I'll try using an older version.

If only Google (with all their resources) could keep their drivers up to date ...

WhyNine
Posts: 72
Joined: Thu May 30, 2019 7:00 pm

Re: Voice Bonnet drivers won't install on Raspbian

Fri Feb 12, 2021 5:29 pm

WhyNine wrote:
Fri Feb 12, 2021 5:04 pm
mongonta wrote:
Fri Feb 12, 2021 1:40 pm
Hi,
I had the same problem.
It seems that VoiceBonnet drivers are only supported up to Kernel 5.4, and I get an error when building dkms that upgrade to Kernel 5.10.

I think the only way for now is to revert to the base OS version.
Thanks for the feedback.

Yes, now that I look, I can see that there was a release of raspbian on 12 Jan. I probably originally used the prior release. I'll try using an older version.

If only Google (with all their resources) could keep their drivers up to date ...
Spoke too soon. I used a version of raspbian from last year but it still fails at the same point.

How would I "revert to the base OS level"?

mongonta
Posts: 4
Joined: Mon Apr 23, 2018 5:55 am

Re: Voice Bonnet drivers won't install on Raspbian

Sat Feb 13, 2021 12:35 am

I made a mistake. The current release of RaspberryPiOS is Kernel 5.4. I meant to use it without "sudo apt upgrade" during setup.

Also, if you are using VoiceBonnet, AIYProjects OS is also initially Kernel 5.4.

mongonta
Posts: 4
Joined: Mon Apr 23, 2018 5:55 am

Re: Voice Bonnet drivers won't install on Raspbian

Sat Feb 13, 2021 12:47 am

If you are setting up with the GUI, the "Update Software" dialog should be set to "Skip".

Image

WhyNine
Posts: 72
Joined: Thu May 30, 2019 7:00 pm

Re: Voice Bonnet drivers won't install on Raspbian

Sat Feb 13, 2021 4:30 pm

Ah, right.

I was originally trying to install the driver on stock Raspbian. Using the google image does work, as you say, as long as a blanket upgrade is not done.

Would be interested to know what can/not be upgraded though.

mongonta
Posts: 4
Joined: Mon Apr 23, 2018 5:55 am

Re: Voice Bonnet drivers won't install on Raspbian

Sun Feb 14, 2021 5:50 am

I found out that it works by holding the following 7 packages related to the kernel.

echo "raspberrypi-bootloader hold" | sudo dpkg --set-selections
echo "raspberrypi-kernel hold" | sudo dpkg --set-selections
echo "raspberrypi-kernel-headers hold" | sudo dpkg --set-selections
echo "libraspberrypi0 hold" | sudo dpkg --set-selections
echo "libraspberrypi-bin hold" | sudo dpkg --set-selections
echo "libraspberrypi-dev hold" | sudo dpkg --set-selections
echo "libraspberrypi-doc hold" | sudo dpkg --set-selections

WhyNine
Posts: 72
Joined: Thu May 30, 2019 7:00 pm

Re: Voice Bonnet drivers won't install on Raspbian

Wed Feb 17, 2021 2:09 pm

mongonta wrote:
Sun Feb 14, 2021 5:50 am
I found out that it works by holding the following 7 packages related to the kernel.

echo "raspberrypi-bootloader hold" | sudo dpkg --set-selections
echo "raspberrypi-kernel hold" | sudo dpkg --set-selections
echo "raspberrypi-kernel-headers hold" | sudo dpkg --set-selections
echo "libraspberrypi0 hold" | sudo dpkg --set-selections
echo "libraspberrypi-bin hold" | sudo dpkg --set-selections
echo "libraspberrypi-dev hold" | sudo dpkg --set-selections
echo "libraspberrypi-doc hold" | sudo dpkg --set-selections
I did as you suggested above then an upgrade. Everything still working so it's looking good :D

Many thanks

Return to “AIY Projects”