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:
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.
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.
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.