Tiny Core Base > Raspberry Pi
Pi Zero PWM sound
MikkelM:
I am trying to get audio to work over PWM pins, but without luck
I have followed the tricks described here, by setting GPIO pins.
http://forum.tinycorelinux.net/index.php?topic=20550.0
My image (the SDcard) works as intended on an Pi 3 model B
I get this error on the Pi Zero
--- Code: ---tc@box:~$ aplay -l
aplay: device_list:268: no soundcards found...
--- End code ---
Here is my config.txt
--- Code: ---# For more options and information see
# http://www.raspberrypi.org/documentation/configuration/config-txt.md
# Some settings may impact device functionality. See link above for details
[PI0]
initramfs 9.0.3.gz followkernel
kernel kernel4922.img
cmdline cmdline.txt
[PI1]
initramfs 9.0.3.gz followkernel
kernel kernel4922.img
cmdline cmdline.txt
[PI2]
initramfs 9.0.3v7.gz followkernel
kernel kernel4922v7.img
cmdline cmdline.txt
[PI3]
initramfs 9.0.3v7.gz followkernel
kernel kernel4922v7.img
cmdline cmdline3.txt
[ALL]
#----------------------------------------------------
# Enable peripheral buses
dtparam=i2c=on,spi=on,i2s=on
# Enable serial console
enable_uart=1
[PI3]
dtoverlay=pi3-disable-bt
[ALL]
dtparam=audio=on
dtoverlay=pwm-2chan,pin=18,func=2,pin2=13,func2=4
gpu_mem=16
--- End code ---
Cheers
Mikkel
Paul_123:
Did you add the appropriate kernel driver. It is not included by default.
AFAIK, it is not included in any extension, but would be in the module tar package.
MikkelM:
Hi Paul.
Thank you. Can you hint me were to find modular tar package and how to add the right kernel driver.
Yes I am a newbie.
Cheers
Mikkel
Rich:
Hi MikkelM
--- Quote from: MikkelM on August 29, 2019, 09:13:20 AM --- ... Can you hint me were to find modular tar package ...
--- End quote ---
ARM6:
http://tinycorelinux.net/9.x/armv6/releases/RPi/src/kernel/
ARM7:
http://tinycorelinux.net/9.x/armv7/releases/RPi/src/kernel/
MikkelM:
Ok, and how do I do it? Do I need to compile a new kernel?
And what do I need to include from the modular package, I can see there is a folder called sound.
I have used the newest build from here http://tinycorelinux.net/9.x/armv6/releases/RPi/
As I mentioned above, it works perfectly with PWM sound on the RPI 3, which I started out to use.
The whole setup is for an art project where we are going to use Pi zeros.
Thanks
Mikkel
Navigation
[0] Message Index
[#] Next page
Go to full version