Archphile 0.99.3 Beta for all devices (including Raspberry Pi 2)

Note: Updated I2s configuraiton section in order to fix a small bug (thanks Panagiotis!)

Hi all!

I am very happy to announce you that Archphile 0.99.3 is available for downloading for all supported devices:

– Raspberry Pi 2
– Rasbperry Pi B/B+
– Udoo Quad
– Cubox-i

I would really like to thank all the people who donated and especiallty Kostis for donating 2 Raspberry Pi model 2 and made the release for this board possible! In addition I would like to thank Pierre, Stavros and Kostis for helping me testing the images in various stages of Archphile preparation.

 

– Download

Changelog

Major changes/additions:

– Raspberry Pi 2 support
– native ffmpeg support (not enabled by default)
– i2s configuration tool (i2select)
– support of local cover art (using mongoose  – see below for instructions)
– latest ArchlinuxARM and MPD 0.19.9

Configuration:

System configuration (optional)

Network configuration (static ip highly recommended – ethernet connection also highly recommended)

Nas configuration (optional – only for NAS owners ) (usb disks are supported by default, you just plug and enjoy!)

MPD configuration (please ignore the section for more file formats and see below for details – this section will be updated ASAP)

I2s configuration (please ignore it a the moment and see below – it’s much easier now!)

Upnp and Airplay configuration

Android remote control configuration

 

Configuring your i2s dac with i2select configuration tool:

– use Putty from a windows machine or the terminal from Linux/BSD/Mac os X and connect via ssh on your Raspberry Pi

– I just got report about a small bug that causes mpd not to run so only the first time and before running i2select, please give the following commands

rm /usr/bin/i2select
rm -r /root/.orig
pacman -Sy i2select

– run i2select command:

i2select

You will then see the image below:

i2select

– write the number of your i2s dac and press enter

– follow the instructions in red and reboot your machine immediately using systemctl reboot command

Notes:

1. The only devices tested are Iqaudio Plus and Mamboberry. I also got some nice feedback from a friend of Archphile and I believe that configuration for Hifiberry Plus will be correct out of the box. All other Dacs will also work but there might be some issues with their volume levels. Please give me feedback in Archphile forum and I will do my best to support you!

2. Some I2s Dacs like Hifiberry Plus need a special configuration for their max volume level to be 0db (bit perfect). The script apply correct settings for Hifiberry dac. These default settings will be reloaded after each reboot. If you dont want this to happen, please edit /usr/bin/archphile-optimize:

nano /usr/bin/archphile-optimize

and comment the line /usr/bin/unmute (put a # in the beginning of the line). In order to exit nano, press CTRL+X and then Y and press ENTER.

3. The volume mixer is, as always in archphile, disabled by default. If you want to change this, please edit mpd.conf:

nano /etc/mpd.conf

and change:

mixer_type      “disabled”

to

mixer_type      “hardware”

or

mixer_type      “software”

In order to exit nano, press CTRL+X and then Y and press ENTER. Then, restart MPD and you are ready:

systemctl restart mpd

systemctl restart mpd
systemctl daemon-reload

 

I suggest you to leave number 2 and number 3 as they are by default. These are the optimal settings for bit perfect playback. My advice is to change the volume from your amplifier, leaving Archphile configuration untouched.

 

FFMPEG support (or how to play various exotic file formats)

Some month ago I decided to drop support for ffmped in MPD. That meant that if you had files like alac etc, you needed to install mpd from archphile repositories. After many efforts I managed to create a very minimal in dependencies package (ffmpeg-archphile) and ffmpeg support is now supported by default. However it is not enabled by default. If you want to enable it:

nano /etc/mpd.conf

you will find the section like below

decoder {
plugin “ffmpeg”
enabled “no”
}

change the no to yes:

decoder {
plugin “ffmpeg”
enabled “yes”
}

CTRL+X and then Y and press ENTER

The last step is to restart MPD:

systemctl restart mpd
systemctl daemon-reload

And you are ready!

 

Local cover art support using Mongoose

Many users prefer to user their own cover art while using Mpdroid or Mpod/Mpad. This is usually possible by using well known web server solutions (apache, lighttpd) and this was the reason it was not supported until now. These web servers are not light and I do not wanted a bloated Archphile. I tried various solutions and I ended up with one of the simplest. My solution uses mongoose, which is a very light web server. In order to enable it you must do the following:

edit /usr/bin/archphile-optimize

nano /usr/bin/archphile-optimize

You will find the following section

# local cover art support
#
# uncomment below if you use Mpdroid. The path to music is http://xxx.xxx.xxx.xxx:8080/music/
#mongoose -listening_port 8080 -document_root /var/www/covers
#
# uncomment below if you use Mpod or Mpad. Please change the cover server address to http://xxx.xxx.xxx.xxx:8080
#mongoose -listening_port 8080 -document_root /var/www/Music

 

Lets assume that the ip of your Archphile device is 10.0.0.100. If you want to fetch cover art using Mpdroid you must uncomment and modify the appropriate line so that the result is:

# local cover art support
#
# uncomment below if you use Mpdroid. The path to music is http://xxx.xxx.xxx.xxx:8080/music/
mongoose -listening_port 8080 -document_root /var/www/covers
#
# uncomment below if you use Mpod or Mpad. Please change the cover server address to http://xxx.xxx.xxx.xxx:8080
#mongoose -listening_port 8080 -document_root /var/www/Music

In order to exit nano, press CTRL+X and then Y and press ENTER.

You must then go to settings of Mpdroid and set as path to music

http://10.0.0.100:8080/music/

 

If you wan to fetch cover art using Mpod/Mpad, you will enable the next line:

# local cover art support
#
# uncomment below if you use Mpdroid. The path to music is http://xxx.xxx.xxx.xxx:8080/music/
#mongoose -listening_port 8080 -document_root /var/www/covers
#
# uncomment below if you use Mpod or Mpad. Please change the cover server address to http://xxx.xxx.xxx.xxx:8080
mongoose -listening_port 8080 -document_root /var/www/Music

In order to exit nano, press CTRL+X and then Y and press ENTER.

You must then go to settings of Mpod/Mpad and set as path to music

http://10.0.0.100:8080/

You must then go to settings of Mpdroid and set as path to music

http://10.0.0.100:8080

A good friend Pierre tested it and reported that you can also use:

http://10.0.0.100:8080/music/

He reported that the second option was faster. I don’t have an idevice to test. You will test both and choose what is best for you!

The last step is to reboot:

systemctl reboot

Now, after each boot, you will have mongoose enabled serving your local cover art.

 

Enjoy!

Cheers,

Michael