Quantcast
Channel: kristofdba – kristof dba
Viewing all articles
Browse latest Browse all 26

HiFiBERRY DAC on Raspbmc => 3.10.33+ firmware

$
0
0

I’m not at all a Linux wonder. I do have some background on redhat and debian but still google is my best friend for stuff like this. Since the audio output on raspberry pi rev b is sooooo bad i bought a hifiberry DAC board, soldered it (killing one in the process due to incompetence and rushing things :) ) and installed it on the Raspberry pi.
the board is not recognized by default, i needed a new kernel, new xbmc and some libs…
After some research and some testing an even killing my raspbmc setup this is what i did to get it up and running.

What you’ll need:

FTP client like filezilla
Putty (to connect to your raspbmc)
the Crosscompiled firmware 3.10.33+ tx to ElectricPim at XbmcForums
ALSA utillities
A raspberry pi rev B and hifi berry dac ofcourse
Wired network for you rasp and your pc..

Download the kernel file, install filezilla and putty on your windows machine.
Connect to your rasp with filezilla. server: the IP Address of your raspberry pi Username: pi password: raspberrypi

Drag the tar.gz kernel file to your pi ( /home/pi, its on the right…) we’ll putty in later to extract the file and move it.
If you exctract on windows and ftp it then, it could get corrupted

Now fire Putty ! again, enter the ip address in the hostname or ip address box, select SSH and click “open”.
A black screen will open asking a login.
Again user: pi Password: raspberrypi
Follow the on screen instructions to set your locals and stuff like that, you’ll only be asked the first time you logon… READ it . its not that hard !

First we’ll install libdvd .. check you local legal market if you are allowed to.
this was explained by Miappa at xbmc forum

type these commands (or copy paste ONE BY ONE).
sudo -s
apt-get install bzip2
apt-get install -y gcc make
wget -O libdvdcss-1.2.13.tar.bz2 http://goo.gl/WUgATG –no-check-certificate
tar xvjf libdvdcss-1.2.13.tar.bz2
cd libdvdcss-1.2.13
./configure
make && make install
cd /lib
cp /usr/local/lib/libdvdcss.so.2.1.0 .
ln -sf libdvdcss.so.2.1.0 libdvdcss.so.2
ln -sf libdvdcss.so.2 libdvdcss.so
cd /home/pi
rm libdvdcss-1.2.13.tar.bz2
rm -R libdvdcss-1.2.13

Now the libraries for playing dvd’s are installed, now update XBMC.
Again, one by one

wget -O xbmc-13-20140326-nc3.tar.gz http://goo.gl/aSLng3 –no-check-certificate
mkdir .upgrade
pv xbmc-13-20140326-nc3.tar.gz | tar xzf – -C /home/pi/.upgrade
sudo cp /home/pi/.upgrade/xbmc-13-20140326-nc3/{fixup_x.dat,start_x.elf} /boot
ln -sfn /home/pi/.upgrade/xbmc-13-20140326-nc3/xbmc-bcm /home/pi/.xbmc-current
sudo reboot

After rebooting, connect to your pi with putty again…

You should be in /home/pi, to be sure type
cd /home/pi
Now type this
gzip -dc raspbmc_kernel_3.10.33.tar.gz | tar xf -
This will extract the files for the new kernel
first we’ll backup the existing kernel and move the new one to the boot folder

cd /boot
sudo mv kernel.img old_kernel.img
sudo mv /home/pi/kernel.img /boot/kernel.img

The kernel is sad if it has no modules, so you’ll need to move them to !

cd /home/pi/modules
sudo mv 3.10.33+ /lib/modules

Now set the owner and security on the modules you just moved with the chmod and chown command (the current owner is PI, it should be root)

Ad these lines to your /etc/modules

Use copy paste to do this…

snd_soc_bcm2708
snd_soc_bcm2708_i2s
bcm2708_dmaengine
snd_soc_pcm5102a
snd_soc_hifiberry_dac

Putty

vi /etc/modules

paste it there..

:w

:q

Reboot!

Dont worry if it does not boot again. You can just reinstall the raspberry pi like you did the first time and start over again.
I needed 3 runs before getting stuff to work.. :-)
after successful reboot, putty again to your pi and install the alsa utils
sudo apt-get install alsa-utils
Reboot! (sudo reboot)

now, again putty to your pi and login, type
aplay -l
your hifi berry should be listed now !



Viewing all articles
Browse latest Browse all 26

Trending Articles