Many thanks Andy... I will build a new Raspbian card, once the current Wolfson audio image has completed
Unfortunately, the first Wolson image I made refused to boot, I am dd'ing it a second time at the moment, Its a slow job dd'ing 8GB images! It's about 60% done. I will hang on till the end and try it again, before I try a vanilla raspbian.
Before I dd'd the second attempt at a Wolfson image to my 8GB sd card, I completely erased the card. This time it copied the image properly. (3 partitions instead of only two last time).
I would advise anyone using the Wolfson image on an 8GB sdcard, to zero the entire card before you start.
I can ssh into Wolfson Audio image, will install the Audio card and see what I can see.
I've followed the instructions as far as 7.
The fetch appeared to work fine but then git checkout rpi-3.10.y says that rpi-3.10.y did not match any file(s) known to git.
Any idea where I am going wrong ?
Thanks in advance.
Kevin, I rec'd that error when I didn't notice that I'd run out of storage space in the preceeding step.
have you an functional img, for raspberry,? also do you know if this Wolfson kernel is compatible with WM8731 chipset , ? regards
Didn't quite work for me. I found the Image file in ./arch/arm/boot/Image not ./arch/kernel/boot/Image /boot/kernel.img
I also found the image in "./arch/arm/boot/Image" and after reboot i get :
Loading Kernel module snd_soc_hifiberry_dac
[ 36.417367] Unable to handle kernel paging request at virtual address 0010019c
Basically i can't reboot
Actually it worked fine, the sd-card was just corrupted so I had to restore it.
Just tried to patch kernel following your instructions.
Patch number 16 fails to apply under git am with the following error:-
Applying: ASoC: arizona: Disable AIF TX/RX before configuring it
Patch is empty. Was it split wrong?
I have has a look at the mail for patch 16 and compared it wwith some pf the preceding successfull patches and I am bug****ed if I can see why git am thinks this patch is bad.
Your advice will be gratefully appreciated!
The message "Patch is empty. Was it split wrong?" is actually from when git tries to apply the 17th file - gpl-2.0.txt - as a patch.
If you change the command to "git am -3 /home/pi/rpi_wlf_3.10_beta/*.patch" you don't get the error message.
Thanks for the explanation,,,, I was going mad trying to find a problem with patch 16.
Thanks very much, Andy and all
We got to here, all seeming as expected; then got the following:
~/kernel_source $ git am -3 /home/pi/rpi_wlf_3.10_beta/*
/usr/lib/git-core/git-am: 203: /usr/lib/git-core/git-am: cannot open /home/pi/rpi_wlf_3.10_beta/*: No such file
Following Ragnar's related suggestion, we also tried:
~/kernel_source $ git am -3 /home/pi/rpi_wlf_3.10_beta/*.patch
/usr/lib/git-core/git-am: 203: /usr/lib/git-core/git-am: cannot open /home/pi/rpi_wlf_3.10_beta/*.patch: No such file
Now we're stuck.
We'd be grateful for any ideas.
It looks like the patch files haven't been extracted into the /home/pi directory. Step 4 in the instructions.
What does the command
ls -la /home/pi
that was it, Ragnar - thank you very much
we re did step 4 and that got us going again
great script, thanks a lot! Everything worked, except the wrong path of the new build kernel, must be: "./arch/arm/boot/Image".
Could someone tell me the exact files, that will be changed with this method please? It must be of course the kernel and maybe some modules and I don't know what else will be changed. Maybe someone is able to tell me the exact files?!
Thanks a lot,
Here you can find a litte howto on compiling the Wolson auddio drivers for kernel 3.12 ->
Here you can find some the sources and binaries. Please test and report.
What advantage is there in compiling 3.12 vs. the 3.10? Does the wolfson card work better on the 3.12? Or just to bring the system up to date?
It's not only to update the sources. Using that kernel (3.12) you are able to play midi instrument attached over usb port in realtime. So you can use the raspberry pi as a sysnthesizer or sampler that produces high qualtiy sounds together with the wolfson audio card. The advantage is clear: You can take it with you and power it with external battery packs (http://elinux.org/RPi_VerifiedPeripherals#Working_external_Battery_packs_.28with_5.C2.A0V_regulated_output.29 ) and play live music everywhere you want to without heavy equipment.
Hi guys thanks for your help, WAC is fully functional with my raspberry pi, did test it yesterday with my ceiling speakers with the headphone out and the mic out (green 3.5 mm plug) and to my surprise it did drive them clear and loud without the need of an external amplifier, am going to try it today with the WAC internal amplifier providing aux power to the card, did take me 12 hours to download the master zip, but it was worth the wait, do have 2 other pi's configure with the standard raspbian package, major complication that am having is that the pi's with standard raspbian goes to sleep and disappear from the wireless network and the one with the WAC software is always on and ready, any suggestion to prevent the suspend state on the regular raspbian package, thanks.
Hi, I have installed the package from Jan posted on May 1 (Re: Instructions for compiling the wolfson audio card kernel drivers and supported use cases).
After installing (no issue during install), my Runeaudio web UI is not responsive. I can click on the Play arrow icon, it won't play. As if the link between the web UI and the back-end is broken.
ensure you did install music player daemon on the raspberry. Maybe a sudo apt-get install --reinstall mpd helps. Make shure that the mpd is setup correctly. Did you test it with another mpd client than rune? Have a look at http://wiki.ubuntuusers.de/MPD#Clients You should be able to use mpd together with the wolfson audio card. On my rpi I'm able to listen several radio stations and my music from nas in High quality.
Thank you very much for your feedback. In fact, I can play music on the rpi card jack by selecting "Audio output interface" in the Runeaudio web UI "MPD Configuration" page. But, when I switch this option to "Wolfson" to use the Wolfson card, then the web UI becomes "unresponsive": I hit Play and the song does not play.
I would like to be able to play music from my NAS from a web browser. Would you happen to have a "rpi + wolfson" image that I could download?
There's a guy over in the Volumio forums has produced a Wolfson kernel that works with Volumio, which is a browser-based front-end for MPD.
I've not tried it myself (the kernel), but maybe it would suit your purposes?
ensure you did install music player daemon on the raspberry. Maybe a sudo apt-get install --reinstall mpd helps. Make shure that the mpd is setup correctly. Did you test it with another mpd client the rune? Have a look at http://wiki.ubuntuusers.de/MPD#Clients You should be able to use mpd together with the wolfson audio card. On my rpi I'm able to listen several radio stations and my music from nas in High quality.
Many thanks Georg
I used your source code to create patch for Runeaudio with Wolfson Audio Card and Power-on-off circuit.
The only problem is with "vc_cma: dma_declare_contiguous (11800000, d400000) failed", I used the workaround described in http://archlinuxarm.org/forum/viewtopic.php?f=31&t=6432
Otherwise, it works great, thanks for the great work.
Patch contains the kernel 3.12RT21, kernel modules, startup scripts for systemd, scripts for setting Wolfson audio card and patches on the GUI Runeaudio.
All except the patch for Runeaudio is directly applicable to other systems, such as Arch Linux, or Raspbian.
I added to udev rule for Wolfson audio card
great! I'll have a look at Runeaudio. Looks pretty fine! I use the rt-kernel to play midi instruments in realtime on raspberry. This works pretty fine with 3.12-rt21 kernel.
I have an issue and I'm not sure if it's due to your kernel package or a coincidence - I probably should have checked before installing that F2FS support was included but didn't give it a thought.
Since installing this kernel my Pi doesn't boot, but instead of getting half way through and complaining that it can't mount the rootfs it gives up way before; I get one blink from the green LED and that's it, nothing comes up on my tv. I tried going back to the old kernel in config.txt but it does the same thing. Would this be a firmware mismatch?
I was going to compile my own kernel but couldn't as my /proc/config.gz was empty - I guess Ragnar disabled it when he made his kernel, which I was using...
Any help would be very much appreciated!
Thanks for confirming Ragnar, it was 0kb here somehow and the GPIO modules were awol which is what prompted me to look for an upgrade.
I will use the config you attached when I've done a re-install as I think something's gone seriously wrong with my setup
sorry for answering late. Maybe it's a firmware mismatch.
Try downloading a "good" config from here and compile again. Do an "make mrproper" before copying the config file to .config in your source root.
Good luck. Please give a feedback if it works.
Some days ago I tried to get the Wolfson Card running with mdp to have a HiFi radio playing Raspberry Pi. And ... it works pretty good. Now I can listen musik over wifi in Hifi on Raspberry Pi. In order to change the radio channels I can easiliy connect with an mpd-client on my smartphone. Even soundvolume control is possible via mpd client app from my smartphone.
I have wiped my card and installed a fresh Raspbian, done all the updates and finally compiled this kernel with some modifications (disable onboard sound, IPv6, MAC filesystems, all the wifi and ethernet adapters I don't have..) and am pleased to say that it boots and my wifi still works.
I've not tested it with the Wolfson yet as that's not here but my Wacom tablet does work which it doesn't on the standard kernel so that's a nice bonus - I'll report back with my findings with the Wolfson but as I only want analogue in and out I don't see there being any issues.
Thanks for your work on this
There is a big 4.3 GB download call master sotware, is tha Rasbian ready or the audio card, or do I install rasbian the patch it with the 4.3 gb download and then install the kernel, please some help
Ragnar Jensen made a smaller version of that for download. See this thread http://www.element14.com/community/message/106822/l/re-wolfson-modified-noobs-raspbian-zipped-img-cannot-unzip-new-download#106822
According to this link from OpenELEC github:
Wolfson cards will be supported if they provide and maintain the drivers, please ask them for support
We are quite a lot of people to have bought this audio card, but we cannot use it the way we like due to this problem.
Are you going to do something about this?
This card has been on the market for over a year now.
Personally I am extremely frustrated with having to kludge and glue kernels to get this thing working only to have the whole lot broken by the next update.
Had it with this.
Come on guys! Was promised last spring when I bought this card that "soon!" the drivers would be included in the official raspian OS. Now no one I'd spoken with previously will answer any of my emails for a status. My project was a test to see if this card would be the best solution for those of us in a global SID (Sudden Ionospheric Disturbance) project monitoring solar flares. Sadly I still cannot give anyone a thumbs up.
I am also frustrated by the fact that the only way to make the wolfson card working is either downloading the "proprietory" image from element14 or to compile my own kernel that makes the system instable with regard to updates. Honestly, I do not understand why it is that difficult to provide the drivers in a way that is more or less independent. Admittedly, I am no Linux geek and cannot really judge, but other components work flawlessly "from scratch", why not the wolfson card?
Please support the official, native Raspbian releases.
Thank you very much!
Screw this, I'm out.
Going to buy a HiFiBerry since support from Wolfson has been utterly abysmal!
Good luck all who persist with it.
I concur. I'm done waiting. Card is going in the trash.
I dug up the email dialog I had with US Sales for Wolfson last May. I've seen been replying to her asking what the plan was with support for this card and have also been including the general USA email address and now 2 weeks later not even an acknowledgement. I also had included the europe email address but got a reply back basically giving me phone numbers to call and the general web sites.
For those who might want to continue to directly pester Wolfson here are the email addresses:
Lynn.Mason@cirrus.com (Sales Administration Manager)
Best of luck to the rest of you.
I haven't followed this whole thread but there is an image for the Wolfson from here
This is designed for live streaming with Darkice - for which it is fully tested and works well.
I can't vouch for it for other purposes, but you are welcome to try it.
We got a lot of help from people here, especially from Ragnar Jensen, to make the image - thank you!
I have already installed a patched kernel for GPS/PPS support on raspi... Now, I wanna patch the kernel again for Wolfson audio card support.. I wanna know if the steps described above will erase the old config... If yes, how do I go about patching it for the audio diver and retain the old changes too..?
If you're lucky you can use a patch from https://www.kernel.org/pub/linux/kernel/projects/rt/ and it will apply cleanly to your already patched kernel, if it does you'll find the Wolfson in the normal place for ALSA devices - enable it in your existing config and you should be good to go.
I have a problem: I have to work with kernel 3.8,
since I use xenomai realtime framework that binds me to the 3.8.
Do you know if there are similar drivers for the 3.8 one?
Thank you in advance
I've just posted an update on our plans going forward with the card and how we want to handle software integration and support. Hopefully it answers some of your questions.
Quote "With regards to upstreaming into the Raspberry Pi kernel and in particular Kernel 3.12, we have encountered issues relative to how the kernel operates when the card is not connected, there are also issues which impact other audio cards. We have tried to find a solution to this but unfortunately the effort is not insignificant and reaches further than our own drivers. Therefore we are currently unable to support inclusion into the official Raspberry Pi 3.12 kernel."
I would have thought this should have been considered prior to release to market.
Hi Georg, I started with a blank SD card and followed the instructions on the blog. uname -r shows 3.12.33-rt47-georg so it seems to have installed ok.
I would like to use the Rpi/Wolfson as a media player with the 3,5 mm minijack going out to the amplifier. However audio from VLC now plays over the monitor speakers via hdmi. I can not find info on audio through the minijack.
Also, will apt-get update interfere with your kernel?
Thanks from a noob user.
For those interested I've uploaded the following packages to my Raspbian repository (http://rpi.autostatic.com/):
- linux-image-cirrus: meta package that installs a kernel with Wolfson/Cirrus Logic audio interface support
- cirrus-config-overlay: package that installs the device tree overlay file for the Wolfson/Cirrus Logic audio interface
- cirrus-config-modprobe: package that installs the modprobe config file for the Wolfson/Cirrus Logic audio interface
- cirrus-config-scripts: package that installs the playback, record and reset scripts for use with the Wolfson/Cirrus Logic audio interface
- cirrus-config: meta package that installs all the above packages
If anyone is interested in testing these packages, go ahead, feedback is greatly appreciated. On a clean Raspbian install adding my repo, installing the cirrus-config package and rebooting your RPi should enable the Wolfson/Cirrus Logic audio interface. No need to edit any config files.
I tried your repository on a fresh Debian Wheezy, which was updated to Kernel 3.18.11+.
Now I got problems with the connection to the Wolfson card.
I just add the snapshot of the boot messages here:
6.665600] LDO1: 1200 <--> 1800 mV at 1200 mV
[ 6.796651] random: nonblocking pool is initialized
[ 6.892402] arizona spi0.1: Failed to find supply LDOVDD
[ 7.062092] arizona spi0.1: Failed to register LDO1 supply: -517
[ 7.374279] platform arizona-ldo1: Driver arizona-ldo1 requests probe deferral
[ 7.814390] arizona spi0.1: Failed to get supply 'AVDD': -517
[ 8.155847] arizona spi0.1: Failed to request core supplies: -517
[ 8.300513] LDO1: 1200 <--> 1800 mV at 1200 mV
[ 8.321687] arizona spi0.1: Failed to find supply LDOVDD
[ 8.349790] arizona spi0.1: Failed to register LDO1 supply: -517
[ 8.376792] platform arizona-ldo1: Driver arizona-ldo1 requests probe deferral
[ 8.490988] spi spi0.1: Driver arizona requests probe deferral
[ 8.670538] LDO1: 1200 <--> 1800 mV at 1200 mV
[ 8.706935] arizona spi0.1: Failed to find supply LDOVDD
[ 8.733592] bcm2708_i2c_init_pinmode(1,2)
[ 8.744568] arizona spi0.1: Failed to register LDO1 supply: -517
[ 8.764903] platform arizona-ldo1: Driver arizona-ldo1 requests probe deferral
[ 8.791004] arizona spi0.1: Failed to get supply 'AVDD': -517
[ 8.818631] arizona spi0.1: Failed to request core supplies: -517
[ 8.845592] spi spi0.1: Driver arizona requests probe deferral
[ 8.880089] LDO1: 1200 <--> 1800 mV at 1200 mV
[ 8.906803] arizona spi0.1: Failed to find supply LDOVDD
[ 8.932691] arizona spi0.1: Failed to register LDO1 supply: -517
[ 8.946738] bcm2708_i2c_init_pinmode(1,3)
[ 8.958704] platform arizona-ldo1: Driver arizona-ldo1 requests probe deferral
[ 8.988742] arizona spi0.1: Failed to get supply 'AVDD': -517
[ 9.016722] arizona spi0.1: Failed to request core supplies: -517
[ 9.047211] spi spi0.1: Driver arizona requests probe deferral
[ 9.180532] LDO1: 1200 <--> 1800 mV at 1200 mV
[ 9.191797] bcm2708_i2c 20804000.i2c: BSC1 Controller at 0x20804000 (irq 79) (baudrate 100000)
[ 9.207230] arizona spi0.1: Failed to find supply LDOVDD
[ 9.228430] arizona spi0.1: Failed to register LDO1 supply: -517
[ 9.256755] platform arizona-ldo1: Driver arizona-ldo1 requests probe deferral
[ 9.286869] arizona spi0.1: Failed to get supply 'AVDD': -517
[ 9.309437] arizona spi0.1: Failed to request core supplies: -517
[ 9.335149] spi spi0.1: Driver arizona requests probe deferral
[ 9.420869] LDO1: 1200 <--> 1800 mV at 1200 mV
[ 9.446851] arizona spi0.1: Failed to find supply LDOVDD
[ 9.476962] arizona spi0.1: Failed to register LDO1 supply: -517
[ 9.489946] DC_1V8: 1800 mV
[ 9.499301] platform arizona-ldo1: Driver arizona-ldo1 requests probe deferral
[ 9.574142] spi0.1 supply DCVDD not found, using dummy regulator
[ 9.604644] DC_5V: 5000 mV
[ 9.617042] arizona spi0.1: Unknown device ID: 0
[ 11.097854] snd-rpi-wsp sound: ASoC: CODEC DAI wm5102-aif1 not registered
[ 11.111219] snd-rpi-wsp sound: Failed to register card: -517
[ 11.123279] platform sound: Driver snd-rpi-wsp requests probe deferral
[ 13.172931] snd-rpi-wsp sound: ASoC: CODEC DAI wm5102-aif1 not registered
[ 13.206662] snd-rpi-wsp sound: Failed to register card: -517
[ 13.236685] platform sound: Driver snd-rpi-wsp requests probe deferral
[ 14.983834] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[ 15.470855] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[ 18.415500] snd-rpi-wsp sound: ASoC: CODEC DAI wm5102-aif1 not registered
[ 18.446876] snd-rpi-wsp sound: Failed to register card: -517
[ 18.466882] platform sound: Driver snd-rpi-wsp requests probe deferral
[ 20.676962] snd-rpi-wsp sound: ASoC: CODEC DAI wm5102-aif1 not registered
[ 20.706841] snd-rpi-wsp sound: Failed to register card: -517
[ 20.726900] platform sound: Driver snd-rpi-wsp requests probe deferral
Maybe you have an idea what is wrong.
I'm aware of this issue and I will update my packages. This happens because of the updated boot files (start.elf and the start_*.elf files). If you use older boot files with my packages it might start working again.
First, thank for all your help and the time that you have dedicated to create this packages.
I'm trying to find a way to make usable the Wolfson card. I've bought one few days ago and right now, I couldn't use it.
I need this card to record from the micro, and I've found nothing more helpfull than your package.
Could you please, just indicate how I could work with the card? Can I help, with my very limited knowledge in Unix System to fix it?
Thanks, another time, for your work and your help.