waveshare / WM8960-Audio-HAT

The drivers of [WM8960 Audio HAT] for Raspberry Pi
GNU General Public License v3.0
100 stars 65 forks source link

Soundcard doesn't compile on latest kernel - both RetroPie 5.4.71 + Raspbian Desktop 5.10.17-v71+ #36

Open StonedEdge opened 2 years ago

StonedEdge commented 2 years ago

Have wasted 2 days on trying to get this up with zero support from waveshare. Tried compiling on latest image of Raspbian, no good. Anyone else have any luck with this on the later versions of the kernel?

RetroPie 4.7.1 DKMS: add completed. Error! echo Your kernel headers for kernel 5.10.17-v7l+ cannot be found at /lib/modules/5.10.17-v7l+/build or /lib/modules/5.10.17-v7l+/source. Created symlink /etc/systemd/system/sysinit.target.wants/wm8960-soundcard.ser vice → /lib/systemd/system/wm8960-soundcard.service. Job for wm8960-soundcard.service failed because the control process exited wi th error code. See "systemctl status wm8960-soundcard.service" and "journalctl -xe" for deta ils.

Raspbian Desktop DKMS: add completed. Error! echo Your kernel headers for kernel 5.10.17-v7l+ cannot be found at /lib/modules/5.10.17-v7l+/build or /lib/modules/5.10.17-v7l+/source. Created symlink /etc/systemd/system/sysinit.target.wants/wm8960-soundcard.service → /lib/systemd/system/wm8960-soundcard.service. Job for wm8960-soundcard.service failed because the control process exited with error code. See "systemctl status wm8960-soundcard.service" and "journalctl -xe" for details.

qkum commented 2 years ago

Try installing/compiling it 2 times in a row (reboot between).

Worked for me on Raspberry pi 3B+ Raspberry Pi OS, 2022, version 1 (they release a new version every 3 months it seems)