The New 4-core Raspberry Pi

Raspberry Pi related support

Re: The New 4-core Raspberry Pi

Postby hondagx35 » 17 Feb 2015, 00:20

Hi all,

here you can download the image for the Raspberry Pi 2.

This is not an official image!

Please keep in mind:
- The image is based on the latest nightly build.
- Some features like Spotify are not tested yet.
- Switching / selecting I2S audio cards does not work via UI (see below)
- User=root and PWD=root (edit: now rune as usual)
- Kernel is 3.18.7-3-ARCH and not switchable.
- developer mode is activated
- hifiberry-digi is enabled (edit: now all disabled)

With the new kernel version a new way to load device drivers has been introduced to the Raspberry Pi environment. It is called device tree overlay.

To select a I2S module you have to edit /boot/config.txt
Code: Select all
# Uncomment one of these lines to enable an audio interface
#device_tree_overlay=hifiberry-dac
#device_tree_overlay=hifiberry-dacplus
#device_tree_overlay=hifiberry-digi
#device_tree_overlay=hifiberry-amp
#device_tree_overlay=iqaudio-dac
#device_tree_overlay=iqaudio-dacplus


Frank
User avatar
hondagx35
 
Posts: 3042
Joined: 11 Sep 2014, 22:06
Location: Germany

Re: The New 4-core Raspberry Pi

Postby dwijtsma » 17 Feb 2015, 08:52

Thanks a lot! I will try it out this evening. 8-)

I tried to build it myself. Being new at Linux it took a lot of time and eventually I got stuck trying to build the 'php-rune' package. I got PGP signature issues with it. Rhoering created a ticket about it with a solution, but it didn't work for me. I eventually build it ignoring the PGP signature check. But than I got issues when trying to install it.

Luckily there are also people that know what there doing :ugeek:
Audio gear: RuneAudio on Raspberry Pi 2 + Dr. DAC nano, Marantz pm66se, Avalon Avatar
dwijtsma
 
Posts: 51
Joined: 03 Nov 2014, 20:16

Re: The New 4-core Raspberry Pi

Postby wfverkerk » 17 Feb 2015, 08:54

Hondagx35, thank you soo much for that IMG. I'm new to the RPI-game and have been trying out all kinds of different distros to get my sound system up and running. I was waiting for a PI2 version of RuneAudio as it seemed very promising (and because Volumio keeps crapping out).

However, I get this error when trying to mount my NFS source, and I have no clue on where to start. Does anyone know what I should do?

The error:
Code: Select all
Job for rpc-statd.service failed. See "systemctl status rpc-statd.service" and "journalctl -xe" for details. mount.nfs: rpc.statd is not running but is required for remote locking. mount.nfs: Either use '-o nolock' to keep locks local, or start statd. mount.nfs: an incorrect mount option was specified


Setup:
Synology DS415play <-ethernet-> PI2 <-USB-> Rotel RA-1570
wfverkerk
 
Posts: 6
Joined: 17 Feb 2015, 08:48

Re: The New 4-core Raspberry Pi

Postby hondagx35 » 17 Feb 2015, 12:24

Hi wfverkerk,

However, I get this error when trying to mount my NFS source, and I have no clue on where to start. Does anyone know what I should do?


You can try to specify "nolock" in the advanced mount options:
nfs.jpg
nfs.jpg (69.37 KiB) Viewed 15039 times


I was able to reproduce this error on my installation.
I'll try to get this fixed soon.

Edit:
To fix this you have to do:
Code: Select all
ln -s /usr/bin /usr/sbin
systemctl start rpcbind
systemctl enable rpcbind


Frank
User avatar
hondagx35
 
Posts: 3042
Joined: 11 Sep 2014, 22:06
Location: Germany

Re: The New 4-core Raspberry Pi

Postby FauDrei » 17 Feb 2015, 12:58

hondagx35 wrote:...With a multi core processor one can do "cool" things.
For example isolating the last two cores from the scheduler and run MPD and other stuff exclusively on them...

Hi Frank.

Can you give us few examples how to isolate and dedicate CPUs?

Thanks in advance.
FauDrei
 
Posts: 19
Joined: 04 Mar 2014, 16:59

Re: The New 4-core Raspberry Pi

Postby hondagx35 » 17 Feb 2015, 13:33

Hi FauDrei,

Can you give us few examples how to isolate and dedicate CPUs?


To isolate a cpu core you have to edit /boot/cmdline.txt:
Code: Select all
root=/dev/mmcblk0p2 rw rootwait console=ttyAMA0,115200 console=tty1 selinux=0 plymouth.enable=0 smsc95xx.turbo_mode=N dwc_otg.lpm_enable=0 kgdboc=ttyAMA0,115200 elevator=noop isolcpus=2,3


Name
isolcpus — Isolate CPUs from the kernel scheduler.

Synopsis
isolcpus= cpu_number [, cpu_number ,...]

Description
Remove the specified CPUs, as defined by the cpu_number values, from the general kernel SMP balancing and scheduler algroithms. The only way to move a process onto or off an "isolated" CPU is via the CPU affinity syscalls. cpu_number begins at 0, so the maximum value is 1 less than the number of CPUs on the system.

This option is the preferred way to isolate CPUs. The alternative, manually setting the CPU mask of all tasks in the system, can cause problems and suboptimal load balance


After rebooting you can check the result with:
Code: Select all
top

Code: Select all
Tasks: 109 total,   1 running, 108 sleeping,   0 stopped,   0 zombie
%Cpu0  :   0.6/1.3     2[                ]
%Cpu1  :   0.6/3.2     4[                ]
%Cpu2  :   0.0/0.0     0[                ]
%Cpu3  :   0.0/0.0     0[                ]
GiB Mem : 21.3/0.724    [                ]
GiB Swap:  0.0/0.000    [                ]


To retrieve or set a process's CPU affinity you have to use taskset.

If you want MPD assigned to core 3 you have to edit /usr/lib/systemd/system/mpd.service:
Code: Select all
[Unit]
Description=Music Player Daemon
After=network.target sound.target

[Service]
ExecStart=/usr/bin/taskset -c 3 /usr/bin/mpd --no-daemon
Restart=always

[Install]
WantedBy=multi-user.target


Reload the daemon:
Code: Select all
systemctl daemon-reload


And restart the service:
Code: Select all
systemctl restart mpd


Frank
User avatar
hondagx35
 
Posts: 3042
Joined: 11 Sep 2014, 22:06
Location: Germany

Re: The New 4-core Raspberry Pi

Postby emilot » 17 Feb 2015, 15:33

I tried your new image and everything went flawlessly...

I even try to activate my new DAC(i am the distributor) and everything fits perfect.


Thank you so much and we are going to follow the progress you guys made...

Thnx!!! :D
emilot
 
Posts: 15
Joined: 30 Oct 2014, 18:34

Re: The New 4-core Raspberry Pi

Postby ACX » 17 Feb 2015, 17:32

emilot wrote:I tried your new image and everything went flawlessly...

A big thank you to hondagx35 for this image which fills the gap while waiting for the 0.4 release. Great contribution!

emilot wrote:I even try to activate my new DAC(i am the distributor) and everything fits perfect.

What's your DAC btw?
User avatar
ACX
RuneAudio co-founder
 
Posts: 1692
Joined: 29 Nov 2013, 02:25
Location: Udine, Italy

Re: The New 4-core Raspberry Pi

Postby dwijtsma » 17 Feb 2015, 17:59

GUI is much faster indeed. Only problem is that I can't select my DAC. Dr. DAC nano (Tenor TE7022L). Never had problems with this in the past.
Audio gear: RuneAudio on Raspberry Pi 2 + Dr. DAC nano, Marantz pm66se, Avalon Avatar
dwijtsma
 
Posts: 51
Joined: 03 Nov 2014, 20:16

Re: The New 4-core Raspberry Pi

Postby emilot » 17 Feb 2015, 18:08

ACX wrote:
emilot wrote:I tried your new image and everything went flawlessly...

A big thank you to hondagx35 for this image which fills the gap while waiting for the 0.4 release. Great contribution!

emilot wrote:I even try to activate my new DAC(i am the distributor) and everything fits perfect.

What's your DAC btw?


Our DAC will be called, Mamboberry and it will be in our Hi-Fi Rasp series category, but with a very good price. :D

We are in the final stage of testing out our new website and we will need your help to be include it, in your "OS" list of DAC's !!! :mrgreen:

(for now it is working with the hifiberry dac setting)...

PS. Can you plz send me a pm with your contact info?(address, etc)......

Thnx!!!
emilot
 
Posts: 15
Joined: 30 Oct 2014, 18:34

support RuneAudio Donate with PayPal

PreviousNext

Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 12 guests