Release schedule?

CuBox related support

Release schedule?

Postby aj78 » 29 Oct 2014, 20:48

Hi,

Great to see the release of v1.3-beta. I've been following both this project and Volumio since the divorce; I have a Raspberry Pi and an original Cubox (not the newer Cubox-i). Features-wise there isn't much to choose between the two projects at the moment (for me, anyway - I have well supported DACs and I'm not really interested in the streaming services). I'd prefer to run the same software on both my RPi and my Cubox.

I noted that the v1.3-beta release is "RPi only at the moment", but does that mean a release for the other platforms is a week away? A month? Six? I'm not after exact dates, you understand, but an indication of when a Cubox v1.3beta will be available would be really helpful. (Or even if it will be available at all; the current Cubox release is not up to the same version as the releases for other platforms.)

Thanks, and good luck.

Adrian.
aj78
 
Posts: 51
Joined: 29 Oct 2014, 20:42

Re: Release schedule?

Postby ACX » 29 Oct 2014, 21:07

Hi aj78,
the porting of the 0.3-beta on all the remaing platforms is the next step in our schedule. CuBox and CuBox-i are among them of course.
I can't tell you an exact schedule yet, because our daytime jobs don't let us do accurate plans... just let us have a rest after this huge release and then we'll come back to work for you :)
User avatar
ACX
RuneAudio co-founder
 
Posts: 1690
Joined: 29 Nov 2013, 02:25
Location: Udine, Italy

Re: Release schedule?

Postby aj78 » 19 Nov 2014, 01:59

I've managed to get v1.3beta up and running on my first generation Cubox!

I used the Arch Linux Cubox image, the cookbook (partly), the Cubox-i packages from github (these work for the original Cubox too as it's all same-generation ARM code), the database file from the Raspberry Pi v1.3beta image and a lot of patience and trial and error. There are still some systemd glitches but I'm really happy with it, it performs well and stably using the built-in Kirkwood SPDIF and is nice and responsive - considerably more so than my Raspberry Pi running the same software (but that's as expected as it's an ARMv7 running at 1GHz with twice the RAM). I'm really chuffed; I will try to post a cookbook update for this platform for any other adventurous types in advance of the official image being released. Just as soon as I've got the systemd glitches sorted out.... So might not be for a while.... :roll:
aj78
 
Posts: 51
Joined: 29 Oct 2014, 20:42

Re: Release schedule?

Postby ACX » 19 Nov 2014, 02:31

aj78 wrote:I've managed to get v1.3beta up and running on my first generation Cubox!

I used the Arch Linux Cubox image, the cookbook (partly), the Cubox-i packages from github (these work for the original Cubox too as it's all same-generation ARM code), the database file from the Raspberry Pi v1.3beta image and a lot of patience and trial and error. There are still some systemd glitches but I'm really happy with it, it performs well and stably using the built-in Kirkwood SPDIF and is nice and responsive - considerably more so than my Raspberry Pi running the same software (but that's as expected as it's an ARMv7 running at 1GHz with twice the RAM). I'm really chuffed; I will try to post a cookbook update for this platform for any other adventurous types in advance of the official image being released. Just as soon as I've got the systemd glitches sorted out.... So might not be for a while.... :roll:

That's a great news! We already have an almost ready image for the new CuBox-i, but if you manage to submit an updated cookbook specific for the first generation Cubox, then it will help us a lot in cutting the porting time for it. Did you manage to get the optical S/PDIF working well?
User avatar
ACX
RuneAudio co-founder
 
Posts: 1690
Joined: 29 Nov 2013, 02:25
Location: Udine, Italy

Re: Release schedule?

Postby aj78 » 19 Nov 2014, 21:10

Yes, the optical SPDIF actually worked right from the start: Arch / ALSA recognise it correctly and it's picked up by RuneUI and listed correctly in the settings screen. The issues I still need to sort out are (I think) systemd related: Runeaudio is the first thing I've had based on systemd, and there are a few things that aren't as they should be (e.g. the rune helpers refuse to start from systemd at boot but starts fine manually with systemctl start; eth0 complains that it hasn't started successfully when it actually has). But as soon as I've sorted these out I'll write up the cookbook. I'm glad if it'll be of help :)
aj78
 
Posts: 51
Joined: 29 Oct 2014, 20:42

Re: Release schedule?

Postby ACX » 20 Nov 2014, 01:29

Great, we'll try to assist you if you get stucked with those problems anyway. Thank you very much for your contribution :)
User avatar
ACX
RuneAudio co-founder
 
Posts: 1690
Joined: 29 Nov 2013, 02:25
Location: Udine, Italy

Re: Release schedule?

Postby aj78 » 24 Nov 2014, 00:24

OK, here's my Cubox cookbook. I haven't actually redone the installation while producing this so it's possible there might be a few minor mistakes or omissions - most likely some system config bits that need a little more massaging; also, it's not as novice-friendly as my BBC radio guide as it assumes a bit more system knowledge. It looks like a list of commands you could pass to a shell, but don't! There are some bits you need to do by hand along the way, in particular some of the system config and copying the runeaudio redis database from the production Raspberry Pi image. However it should serve as a guide for the adventurous in advance of the official release. Essentially you're installing the custom rune packages and their dependencies over a vanilla Arch Cubox distribution. The Cubox-i packages do the job perfectly well on the original Cubox because the CPU is am ARMv7 hardfloat with the same FPU in both machines. (Hopefully this will make the job of doing a formal release much easier as the packages only need to be built once, basically it's the kernel that's different).
There are some bits where what I've done may be slightly sub-optimal, but I got a working RuneAudio setup on my Cubox, including streaming audio from my phone. The only bit I haven't tested is spotify as I don't use it.

Cheers,

Adrian.

Code: Select all
#########################################
# RuneAudio v0.3-beta cookbook #
# written by: Orion (development image) #
# adapted for Cubox by: aj78 #
# HW platform: Cubox (03?) #
# update: 20141123 #
#########################################
# install base ArchLinux system (follow guide http://archlinuxarm.org/platforms/armv7/marvell/cubox - see the Installation tab)
# Boot into system
# Enable network
netctl enable eth0-dhcp # Or whatever your network interface is
netctl enable th0-dhcp # Or whatever your network interface is
# first time sync
ntpdate pool.ntp.org
# general system update
pacman -Syu --noconfirm
###################
### -- redis -- ###
###################
# install Redis (1.53 MiB)
pacman -S redis --noconfirm
#################################################
### -- git support for live RuneUI updates -- ###
#################################################
# install git support (22.47 MiB)
pacman -S git --noconfirm
#########################################
### -- additional system libraries -- ###
#########################################
# install libmcrypt (0.25 MiB)
pacman -S libmcrypt --noconfirm
# install libjpeg-turbo (1.15 MiB)
pacman -S libjpeg --noconfirm
# install apr-util (nginx req.) (1.63 MiB)
pacman -S apr-util --noconfirm
##########################
### -- system tools -- ###
##########################
# install atop (0.44 MiB)
pacman -S atop --noconfirm
# install wget (3.05 MiB)
pacman -S wget --noconfirm
# install ethtool (0.25 MiB)
pacman -S ethtool --noconfirm
# install mkinitcpio (*0.21 MiB)
pacman -S mkinitcpio --noconfirm
###########################
### -- network tools -- ###
###########################
# install avahi (2.30 MiB)
pacman -S avahi --noconfirm
# install nettools (0.49 MiB)
pacman -S net-tools --noconfirm
# install ifplugd (0.13 MiB)
pacman -S ifplugd --noconfirm
# install wireless tools (0.33 MiB)
pacman -S wireless_tools --noconfirm
# install iw (1.18 MiB)
pacman -S iw --noconfirm
# install hostapd (0.85 MiB)
pacman -S hostapd --noconfirm
# install nfs-utils (2.49 MiB)
pacman -S nfs-utils --noconfirm
# install netcat (0.36 MiB)
pacman -S openbsd-netcat --noconfirm
##############################
### -- filesystem tools -- ###
##############################
# install NTFS support (1.50 MiB)
pacman -S ntfs-3g --noconfirm
# install dosfstools (0.25 MiB)
pacman -S dosfstools --noconfirm
# install exFAT support (0.19 MiB)
pacman -S exfat-utils --noconfirm
# install sshfs support (0.07 MiB)
pacman -S sshfs --noconfirm
# install cifs-utils (0.63 MiB)
pacman -S cifs-utils --noconfirm
# install ftpfs (0.06 MiB)
pacman -S curlftpfs --noconfirm
# install USB automount daemon (0.34 MiB)
# >>> REMEMBER to enable kernel polling when using devmon without udisks:
# http://ignorantguru.github.com/udevil/#polling
pacman -S udevil --noconfirm
###########################
### -- install samba -- ###
###########################
pacman -S samba --noconfirm # There is a samba-rune directory in the RuneOS tree but I couldn't get this to build so just used the default samba
#########################
### -- AUDIO stack -- ###
#########################
# install ALSA utils (9.66 MiB)
pacman -S alsa-utils --noconfirm
# install SOX (3.08 MiB)
pacman -S sox --noconfirm
# install Jack (2.56 MiB)
pacman -S jack --noconfirm
# install NetJACK driver (0.15 MiB)
pacman -S celt --noconfirm
############################
### -- install RuneUI -- ###
############################
cd /
ln -s /srv/http/ /var/www
cd /var/www
# clone RuneUI git repo
git clone https://github.com/RuneAudio/RuneUI.git .
##############################
# -- setup filesystem ACL -- #
##############################
# setup tmpfs directory
chmod 777 /run
# setup webserver directory
chown -R http.http /srv/http/
chmod 644 $(find /srv/http/ -type f)
chmod 755 $(find /srv/http/ -type d)
chmod -R 755 /srv/http/command/
# setup log directory
rm -r /var/log/*
mkdir /var/log/runeaudio/

# ----->>>> INSTALL CUSTOM PACKAGES <<<<----- #
# clone RuneOS repo
git clone https://github.com/RuneAudio/RuneOS.git /usr/local/src/RuneOS
######################################################
# -- install hfsprogs v332.25 and hfsutils v3.2.6 -- #
######################################################
cd /usr/local/src/RuneOS/07_cubox-i/packages/hfsprogs
# install hfsprogs (0.15 MiB)
pacman -U hfsprogs-rune-332.25-10-armv7h.pkg.tar.xz --noconfirm
cd ../hfsutils
pacman -U hfsutils-rune-3.2.6-4-armv7h.pkg.tar.xz --noconfirm
##########################
# -- install php-rune -- #
##########################
# php deps
pacman -S icu --noconfirm
pacman -S libpng --noconfirm
# use the Cubox-i package (it is the same arm7hf target, same FPU)
cd /usr/local/src/RuneOS/07_cubox-i/packages/php-rune
pacman -U php-rune-5.5.16-1-armv7h.pkg.tar.xz --noconfirm
# install pthreads support (TODO)
# pecl install channel://pecl.php.net/pthreads-2.0.7 # This currently fails stating php should be compiled with ZTS enabled,
                       # I haven't got round to it yet but the system works without it
# install Redis support (phpredis)
cd /usr/local/src/RuneOS/07_cubox-i/packages/phpredis-rune
pacman -U phpredis-rune-2.2.5-1-armv7h.pkg.tar.xz --noconfirm
###################################
# -- install nginx-rune v1.4.7 -- #
###################################
cd /usr/local/src/RuneOS/07_cubox-i/packages/nginx-rune
# install nginx-rune (1.02 MiB)
pacman -U nginx-rune-1.4.7-2-armv7h.pkg.tar.xz --noconfirm
###################################
# -- install mpd-rune v0.18.10 -- #
###################################
cd /usr/local/src/RuneOS/07_cubox-i/packages/mpd-rune
# install mpd-rune (0.62 MiB)
pacman -U mpd-rune-0.18.14-1-armv7h.pkg.tar.xz --noconfirm
#####################################
# -- spop-rune (spotify support) -- #
#####################################
cd /usr/local/src/RuneOS/07_cubox-i/packages/libspotify
pacman -U libspotify-12.1.51-3-armv7h.pkg.tar.xz
cd /usr/local/src/RuneOS/07_cubox-i/packages/spop-rune
pacman -U spop-rune-1.0-1-armv7h.pkg.tar.xz --noconfirm
#############################
# -- install ffmpeg-rune -- #
#############################
cd /usr/local/src/RuneOS/07_cubox-i/packages/ffmpeg-rune
pacman -U ffmpeg-rune-r66290.b76d613-1-armv7h.pkg.tar.xz
##################################
# -- install mpdscribble v1.4.7 -- #
##################################
cd /usr/local/src/RuneOS/07_cubox-i/packages/mpdscribble-rune
pacman -U mpdscribble-rune-0.22.6-armv7h.pkg.tar.xz
cp mpdscribble.service /usr/lib/systemd/system/
##############################
# -- install shairport-rune -- #
##############################
cd /usr/local/src/RuneOS/07_cubox-i/packages/shairport-rune
pacman -U shairport-rune-1.0.1-armv7h.pkg.tar.xz --noconfirm
cp shairport.service /usr/lib/systemd/system
##############################
# -- install tcp_wrappers -- #
##############################
cd /usr/local/src/RuneOS/07_cubox-i/packages/spop-rune
pacman -U tcp_wrappers-7.6.16-armv7h.pkg.tar.xz --noconfirm
###############################
# -- install upmpdcli-rune -- #
###############################
cd /usr/local/src/RuneOS/07_cubox-i/packages/upmpdcli-rune
pacman -U upmpdcli-rune-0.8.0-1-armv7h.pkg.tar.xz --noconfirm

# ----->>>> SYSTEM CONFIGURATION <<<<----- #
# Copy system config files
cd /usr/local/src/RuneOS/07_cubox-i/os_config
cp -axv * /
cd /etc
# Edit redis.conf, change daemonize=no to daemonize=yes # This solved the problem I had where redis refused to start from the systemd script
# Copy rune.rdb from a v0.3-beta RPi /var/lib/redis into /var/lib/redis

# enable avahi
systemctl enable avahi-daemon
sysemctl enable avahi-dnsconfd # avahi-dnsconfd still not working on my box but I haven't noticed its absence cause a problem so far

# enable SSHD
systemctl enable sshd # I did this much earlier as I did most of the configuration via ssh
# enable php
systemctl enable php-fpm
# enable nginx
systemctl enable nginx
# enable mpd
systemctl enable mpd
systemctl enable mpdscribble
# enable redis
systemctl enable redis
# enable workers
systemctl enable rune_PL_wrk.service
systemctl enable rune_SY_wrk.service
# enable cronie (optional; useful for BBC update script, alarms)
systemctl enable cronie
# link Orion Optimize script
ln -s /srv/http/command/orion_optimize.sh /usr/sbin/
# create /mnt directory structure
mkdir /mnt/MPD
mkdir /mnt/MPD/USB
mkdir /mnt/MPD/Webradio
mkdir /mnt/MPD/NAS
mkdir /mnt/MPD/LocalStorage
chown -R mpd.audio /mnt/MPD
# reboot system
reboot
aj78
 
Posts: 51
Joined: 29 Oct 2014, 20:42

Re: Release schedule?

Postby ACX » 24 Nov 2014, 02:03

Thank you Adrian, we will review your cookbook as soon as we focus ourselves on the porting on the CuBox. In the meanwhile, if somebody attempts an installation following it, please give feedback about it.
User avatar
ACX
RuneAudio co-founder
 
Posts: 1690
Joined: 29 Nov 2013, 02:25
Location: Udine, Italy

Re: Release schedule?

Postby mars68 » 22 Dec 2014, 19:34

I was about to try to install on a Cubox-i and was wondering if anyone here had gone through the process of installing from scratch based on the guidelines yet ?

-- mars68
mars68
 
Posts: 17
Joined: 08 Dec 2014, 10:47

Re: Release schedule?

Postby aj78 » 23 Dec 2014, 01:07

Not on a Cubox-i, but on an original Cubox. If you search the forum you'll find an updated "cookbook" I put together detailing my experiences. Note, since then the packages have been updated. When I updated I had a bit of a problem - eventually discovered that after installing the php-rune package you need to rebuild the phpredis-rune package to match. It can be done without too much bother but it will help if you've done stuff like building from source code, configuring systems before because the cookbook is pretty basic and might be out of date as the codebase gets updated.

But when you get it working I reckon you'll be delighted, the Cubox makes a very good platform for runeaudio. Will you be connecting your DAC via USB or the optical SPDIF? I'm doing the latter and it works excellently.
aj78
 
Posts: 51
Joined: 29 Oct 2014, 20:42

support RuneAudio Donate with PayPal

Next

Return to CuBox

Who is online

Users browsing this forum: No registered users and 0 guests