New MPD and ffmpeg packages available for update

Hi all,

I am writing to announce you that MPD 0.19.13 and ffmpeg 3 are available for update if you are using latest 0.99.4 images:

  1. clear the package cache
pacman -Scc

you will need to pres and ENTER twice

 

2. Update ffmpeg (it’s a good idea even if you use mpd-archphile minimal which is ffmpeg independent):

pacman -Sy ffmpeg-archphile

 

3. Now it’s time to update the MPD package. For a standard installation you should do the following:

pacman -Sy mpd-archphile

Replace the name of the package with mpd-archphile-minimal, mpd-archphile-sacd, mpd-archphile-sacd if you use a different package.

Please note that mpd-archphile-native-dsd remains in 0.19.12, and mpd-archphile-sacd remains on an old github version but they are both rebuilt in order to use latest ffmpeg package.

 

4. If you use an i2s dac, its time to run i2select. If you use Odroid C1+ or Cubox-i you must run bselect and choose your board.

 

Please note that MPD package update will override your mpd.conf configuration.

 

Have fun,

Michael

Ps. A special thanks goes to espakman  for his very important support in general (testing, bugfixing etc.) and to iSushi42 for testing the packages.

0.99.4b Beta is up for Raspberry Pi 2, Odroid C1+, Cubox-i and Udoo Quad

Edit: Most of the new information is now included in Archphile Website documentation. Please read carefully all the sections of Tips & Tricks in order to understand how you can configure Archphile to suit your own needs!


 

Hi all,

after almost a week of feedback and testing after 0.99.4 Beta I am happy to announce you that Archphile 0.99.4b Beta is up for all the supported boards. With regards to the differences between 0.99.4 released last week for Raspberry Pi 2 and Odroid C1+ the only differences are:

– Fully updated system that includes latest Glibc that fixes a security vulnerability
– a custom Raspberry Pi 2 kernel based on 4.1.18 which fixes the maximum volume of Hifiberry Plus Dac
– an updated i2select package in order to be compliant with the kernel above

A quick summary for all devices:

– Latest MPD 0.19.12
– Latest YMPD with extra patches (fix for folders shown as empy – remeber last database folder position – dirble API Key)
– Replaced shairport with shairport-sync 2.8
– Added bselect command that configures mpd.conf for various embedded boards
– Added commands to backup/restore MPD database
– Added option to limit MPD in one core
– Added option to optimize IRQ affinity
– Added Samba capabilities – USB disks can be shared in local network
– Added USB sleep support (needs extra configuration)
– Added brutefir support (playground repository)
– Added an alternative minimalistic MPD package named mpd-archphile-minimal (playground repository)
– Added optional MPD fork with SACD ISO support and another MPD fork with native DSD support
– Added the useful alsacap command line tool

The website is not updated yet in order to include the latest tips and how-tos. You can use all the information from the previous announcements for 0.99.4 Beta where I explain most of the new stuff until I finish with the website pages.

Please note that Archphile is a completely open source and non-commercial distribution based on user donations. If you like my distribution and you want to help me keep it alive please donate using the paypal button below!

 

I hope you will enjoy it!

Cheers,

Michael

 

P.s I would like to thank Espakman from Archphile forum and Sat Lover from avclub.gr that helped me apply all the bugfixes for Hifiberry Plus i2s DAC!

 

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

Arm7 repository and upgrades

Hi all,

I wish you a happy new year!

I am preparing the new beta version for Udoo and Cubox these days. This means that the repositories will be loaded with newer packages. It’s highly recommended not to upgrade or install any packages in your existing installations as you might break your Os!

It’s a good idea for existing users to leave their system untouched from today until further notice. For new users it’s highly recommended to stay with default image.

Cheers,

Michael

Archphile 0.99.1 Beta for Udoo Quad

Hi all,

0.99.1 Beta for Udoo Quad is up!

– upnp/dlna (upmpdcli)
– Airport/Aiplay support (shairport)
Ympd 1.2.3 and MPD 0.19.1

 

Changelog

Download 

Configuration Guides   

NEW upnp/dlna and airplay/shairport guide

 

Guide for Udoo Dual users: Although Udoo Dual is not officially supported, you can install Archphile on it. You will need to do the following procedure (being root or with sudo) from a Linux machine, replacing X with the number of your sd card:

wget http://archlinuxarm.org/os/imx6/boot/udoo/u-boot-dual.imx
dd if=u-boot-dual.imx of=/dev/sdX bs=512 seek=2
sync

 

Note: The entries of Archphile Repositories were written twice in pacman.conf by mistake. That doesn’t affect anything and it’s of zero importance. In any case if you want to change it:

wget http://archphile.org/lab/misc/pacman.conf
mv pacman.conf /etc/pacman.conf

New (rebuilt) MPD packages

Hi all,

I uploaded 0.18.16-2 packages for mpd-archphile and mpd-archphile-ffmpeg. It’s a rebuilt of existing version with two changes:

– niceness is set to -16

– changes in MPD systemd configuration files

 

The update procedure is a little bit more tricky this time:

mkdir /etc/systemd/system/mpd.service.d
wget http://archphile.org/lab/files/user.conf
mv user.conf /etc/systemd/system/mpd.service.d/
pacman -Sy mpd-archphile
systemctl daemon-reload
systemctl restart mpd

 

If you use mpd-archphile-ffmpeg then 4th line needs to change to pacman -Sy mpd-archphile-ffmpeg ffmpeg.

 

If you don’t follow the procedure above, you will not be able to use mpd after this update. All these changes will be included in next beta for all devices.

MPD 0.18.16 for Udoo and Cubox

Hi all,

MPD 0.18.16 for Udoo and Cubox is up. Please follow the instructions below if you want to update:

– Udoo

pacman -Sy mpd-archphile
mv /etc/mpd.conf.pacnew /etc/mpd.conf
systemctl reenable mpd
systemctl restart mpd

 

– Cubox

pacman -Sy mpd-archphile
rm /etc/mpd.conf.pacnew
wget http://archphile.org/lab/files/mpd.conf-cubox
mv mpd.conf-cubox /etc/mpd.conf
systemctl reenable mpd
systemctl restart mpd

 

Notes:

– If you have modified the existing mpd.conf, please back it up (mv /etc/mpd.conf /etc.mpd.conf.backup) before following the procedure above!

– If you use mpd-archphile-ffmpeg, please replace mpd-archphile above with it. Cubox users please also replace mpd.conf-cubox with mpd.conf-ffmpeg-cubox.

mpd 0.18.14 for Udoo Quad and Cubox-i

Hi all,

I just uploaded mpd 0.18.14 in archphile repository for Udoo and Cubox-i. According to the changelog it’s a bugfix release including fixes for arm specific issues. It’s a good idea to update.

 

For Udoo:

pacman -Sy mpd-archphile
pacman -Scc
systemctl reenable mpd
systemctl restart mpd

It’s also safe to fully upgrade your system to latest archlinuxarm so you can replace the first command with just “pacman -Syyu”

 

For Cubox-i

pacman -Sy mpd-archphile
pacman -Scc
wget http://archphile.org/lab/files/mpd.conf-cubox
mv mpd.conf-cubox /etc/mpd.conf
systemctl reenable mpd
systemctl restart mpd

 

Note: If you have replaced the default mpd-archphile package with mpd-archphile-ffmpeg, please replace the name of the package above! cubox users will have to also replace the wget command with:

wget http://archphile.org/lab/files/mpd.conf-ffmpeg-cubox
mv mpd.conf-ffmpeg-cubox /etc/mpd.conf

Archphile 0.99 beta for Udoo Quad (and Dual)

Hi all!

I just uploaded Archphile 0.99 beta for Udoo Quad (and dual with an extra step!).

Some quick notes on changelog:

– unified network configuration with netctl

MPD 0.18.13

– up to date archlinuxARM (02-09)

– wireless connection tested and works without any problem

archphile-optimize and unmute-archphile are now a single package. After reboot usb dac is unmuted and volume is set to 100%

Read More →

How Archphile is made

Hi all,

I decided to write this post in order to give you all the information needed in order to build archphile or any similar distro yourselves.

Since the first days of August I have been experimenting with some very basic scirpts I have written that help me create Archphile using an ArchlinuxARM installation as a base. Before I explaining you some stuff about the scripts, lets see a quick introduction of what Archphile is:

ArchlinuxARM is the base of Archphile. Whenever I want to make an Archphile image, the first step I do is to write the latest Archphile image on an sd card

Archphile uses some custom packages located in Archphile repository. If you want to have a look at them, you can explore the source files, which you can use and make your own packages. In order to create a package from these sources, you need an archlinuxarm installation with base-devel installed. You can then unpack the files and create the package (as user) with makepkg -s

– The whole procedure of installation and customization is described in the following scripts:

archphile-create-script-rpi

archphile-create-script-udoo

Read More →