Hello everyone,
Ive been working on getting my top pHAT fully working. I have it so that my buttons work fine, and my audio used to work but ever since I got the display to work, my audio stopped working entirely.
When I run “sudo aplay -l” no devices show up at all, but a “sudo dkms status” shows the WM8960 sound card. Here is the steps I used to get the display working- could something here have broken the audio?
Installed the following linked file and placed in the home directory
Sfe-topphat-overlay.dts
dtc -@ -I dts -O dtb -o rpi-display.dtbo sfe-topphat-overlay.dts
sudo cp rpi-display.dtbo /boot/overlays
Add the following text to the end of the /boot/config.txt file:
dtoverlay=rpi-display,speed=32000000,rotate=270
sudo reboot
Sudo nano /etc/modules added
Spi-bcm2835
Fbtft_device
Sudo nano /etc/modprobe.d/fbtft.conf
options fbtft_device name=fb_ili9341 gpios=reset:23,dc:24 speed=16000000 bgr=1 rotate=180 custom=1
Sudo reboot
Sudo apt-get install cmake
Git clone https://github.com/tasanakorn/rpi-fbcp
Cd rpi-fbcp
Cmake
Make
Sudo install fbcp /usr/local/bin/fbcp
Sudo nano /etc/rc.local
Added “fbcp&” before “exit 0”
Sudo reboot
I also just tried to repeat the install guide for setting up the audio card and got the following error on the ./install.sh part-
pi@ECD207raspberrypi:~/WM8960-Audio-HAT $ sudo ./install.sh
Hit:1 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
Hit:2 http://archive.raspberrypi.org/debian bullseye InRelease
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
11 packages can be upgraded. Run ‘apt list --upgradable’ to see them.
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
raspberrypi-kernel is already the newest version (1:1.20220328-1).
raspberrypi-kernel-headers is already the newest version (1:1.20220328-1).
The following package was automatically installed and is no longer required:
libfuse2
Use ‘sudo apt autoremove’ to remove it.
0 upgraded, 0 newly installed, 0 to remove and 11 not upgraded.
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
dkms is already the newest version (2.8.4-3).
git is already the newest version (1:2.30.2-1).
i2c-tools is already the newest version (4.2-1+b1).
libasound2-plugins is already the newest version (1.2.2-2).
The following package was automatically installed and is no longer required:
libfuse2
Use ‘sudo apt autoremove’ to remove it.
0 upgraded, 0 newly installed, 0 to remove and 11 not upgraded.
Deleting module version: 1.0
completely from the DKMS tree.
Done.
Creating symlink /var/lib/dkms/wm8960-soundcard/1.0/source →
/usr/src/wm8960-soundcard-1.0
DKMS: add completed.
Kernel preparation unnecessary for this kernel. Skipping…
Building module:
cleaning build area…
make -j4 KERNELRELEASE=5.15.30-v7+ -C /lib/modules/5.15.30-v7+/build M=/var/lib/dkms/wm8960-soundcard/1.0/build…(bad exit status: 2)
Error! Bad return status for module build on kernel: 5.15.30-v7+ (armv7l)
Consult /var/lib/dkms/wm8960-soundcard/1.0/build/make.log for more information.
mkdir: cannot create directory ‘/etc/wm8960-soundcard’: File exists
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.
Please reboot your raspberry pi to apply all settings
Enjoy!