Problems Building VoiceCard Driver On Raspberry PI Zero 2W

Hello, I am trying to build the driver as explained here - GitHub - HinTak/seeed-voicecard: This is an enhancement fork with the explicit aim of supporting current shipping Raspbian/Ubuntu kernels without requiring downgrading. Please donate at https://hintak.github.io/ if it works for you. Use vX.Y branch for kernel version vX.Y. I have a Raspberry Pi Zero 2W and the 2 mic hat. I am on branch v6.6 as that matches my kernal version. When I run the install script I get to the part where it is runing make -j4…

It slowly adds periods like it’s working, but eventually the ssh connection seems to hang. Is there any trick to get this working?

I have the same issue. I also tried to download the prebuild image, but that doesn’t work for me either.

$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: b1 [bcm2835 HDMI 1], device 0: bcm2835 HDMI 1 [bcm2835 HDMI 1]
  Subdevices: 8/8
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2
  Subdevice #3: subdevice #3
  Subdevice #4: subdevice #4
  Subdevice #5: subdevice #5
  Subdevice #6: subdevice #6
  Subdevice #7: subdevice #7
$ arecord -l
**** List of CAPTURE Hardware Devices ****
$ i2cdetect -y 1
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- -- 
10: -- -- -- -- -- -- -- -- -- -- 1a -- -- -- -- -- 
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
30: -- -- 32 -- -- -- -- -- -- -- -- -- -- -- -- -- 
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
70: -- -- -- -- -- -- -- --   

It’s possible that some dependencies were not properly installed or configured. Try running the following commands to ensure that all necessary dependencies are installed before running the build:

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install build-essential
sudo apt-get install libasound2-dev
sudo apt-get install cmake

Thank you for the response. I ended up going back to a 32-bit legacy version of Raspbian as that helped me past this problem.
This is good enough for my application but if I have a need to rebuild I will try this.

1 Like

I have the same problem, nothing seems to work. I am following the instructions here from a YouTuber known as Jeff, here. His instructions are pretty clean and straight forward, I really like his layout of instructions and all of the included hardware. I am using the same devices ie, Pi zero 2 w and 2-mic hat, but can’t seem to get my device to capture a sound recording, I get at play back is a faint white-noise sound. I am starting to think that it could be my sound card that is defective.

1 Like

I have the same problem. :frowning:

i have the same problem

Building module:
Cleaning build area…
make -j4 KERNELRELEASE=6.1.21-v8+ -C /lib/modules/6.1.21-v8+/build M=/var/lib/dkms/seeed-voicecard/0.3/build…(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.1.21-v8+ (aarch64)
Consult /var/lib/dkms/seeed-voicecard/0.3/build/make.log for more information.
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
dkms: autoinstall for kernel: 6.1.21-v8+ failed!
run-parts: /etc/kernel/postinst.d/dkms exited with return code 11
dpkg: error processing package raspberrypi-kernel (–configure):
installed raspberrypi-kernel package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
raspberrypi-kernel
E: Sub-process /usr/bin/dpkg returned an error code (1)
6.1.21-v8+
6.1.21-v8+
dpkg-query: package ‘linux-headers-’ is not installed
dpkg-query: package ‘6.1.21-v8+’ is not installed
Use dpkg --contents (= dpkg-deb --contents) to list archive files contents.
6.1.21-v8+

!!! Your kernel version is

6.1.21-v8+
Not found *** corresponding *** kernel headers with apt-get.
This may occur if you have ran ‘rpi-update’.
Choose *** y *** will revert the kernel to version then continue.
Choose *** N *** will exit without this driver support, by default.
Would you like to proceed? (y/N)
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
E: Internal Error, No file name for raspberrypi-kernel:arm64

WARNING Your loaded kernel version is 6.6.62
Not matching the updated version

Has anyone actually got the 2 mic hat working on a zero 2? I have gotten to the point where i confirmed the kernel loading and sync’d The kernel header is visible and there’s where it ends. I have tried newest, legacy, and experimental kernels. I could match a header to the kernel but it wouldn’t load dtoverlay or the header was matched. That is two days work.