Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error! Bad return status for module build on kernel: 6.1.19-v8+ (aarch64) #48

Open
brandonrock919 opened this issue Mar 20, 2023 · 5 comments

Comments

@brandonrock919
Copy link

I did
git clone https://github.com/waveshare/WM8960-Audio-HAT
cd WM8960-Audio-HAT
sudo ./install.sh
sudo reboot

but its not working
this is the log

DKMS make.log for wm8960-soundcard-1.0 for kernel 6.1.19-v8+ (aarch64)
Mon 20 Mar 2023 01:33:32 PM EDT
make: Entering directory '/usr/src/linux-headers-6.1.19-v8+'
CC [M] /var/lib/dkms/wm8960-soundcard/1.0/build/wm8960.o
CC [M] /var/lib/dkms/wm8960-soundcard/1.0/build/wm8960-soundcard.o
/var/lib/dkms/wm8960-soundcard/1.0/build/wm8960.c:1417:3: error: ‘const struct snd_soc_component_driver’ has no member named ‘non_legacy_dai_naming’; did you mean ‘legacy_dai_naming’?
1417 | .non_legacy_dai_naming = 1,
| ^~~~~~~~~~~~~~~~~~~~~
| legacy_dai_naming
/var/lib/dkms/wm8960-soundcard/1.0/build/wm8960.c:1532:14: error: initialization of ‘void (*)(struct i2c_client )’ from incompatible pointer type ‘int ()(struct i2c_client *)’ [-Werror=incompatible-pointer-types]
1532 | .remove = wm8960_i2c_remove,
| ^~~~~~~~~~~~~~~~~
/var/lib/dkms/wm8960-soundcard/1.0/build/wm8960.c:1532:14: note: (near initialization for ‘wm8960_i2c_driver.remove’)
/var/lib/dkms/wm8960-soundcard/1.0/build/wm8960.c: In function ‘wm8960_hw_params’:
/var/lib/dkms/wm8960-soundcard/1.0/build/wm8960.c:882:6: warning: this statement may fall through [-Wimplicit-fallthrough=]
882 | if ((iface & 0x3) != 0) {
| ^
/var/lib/dkms/wm8960-soundcard/1.0/build/wm8960.c:887:2: note: here
887 | default:
| ^~~~~~~
cc1: some warnings being treated as errors
make[1]: *** [scripts/Makefile.build:250: /var/lib/dkms/wm8960-soundcard/1.0/build/wm8960.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:2012: /var/lib/dkms/wm8960-soundcard/1.0/build] Error 2
make: Leaving directory '/usr/src/linux-headers-6.1.19-v8+'

@Stalker2408
Copy link

sorry for my Bad English

her my install steps to run WM8960 on kernel 6.1.21-V8+

sudo apt-get install raspberrypi-kernel-headers
sudo apt-get dist-upgrade
sudo apt-get update
git clone https://github.com/waveshare/WM8960-Audio-HAT
cd WM8960-Audio-HAT
sudo nano wm8960-soundcard.dts
Change target = <&i2c1>; to <&i2c0> ; ca. Zeile 25
sudo ./install.sh
sudo reboot

@YashasSingh
Copy link

hey I'm having the same issue and not sure what to do after doing the sudo nano command the &i2c1 is listed as &i2s nonetheless I changed it to &i2c0 but it still does not work for me

@alfyama
Copy link

alfyama commented Oct 13, 2023

@YashasSingh @Stalker2408
Im facing the same issue, any updates?

@aschen-builder
Copy link

They are saying to change the target value on line 25 from <&i2c1> to <&i2c0>

@jvataman
Copy link

Confirming that the mentioned workaround works on pi zero 2W - 6.6.31+rpt-rpi-v8 aarch64
@Stalker2408 you are a life savior, danke ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants