building volumio with Octo support

Moderator: flatmax

Post Reply
flatmax
Posts: 609
Joined: Sat Jul 23, 2016 11:39 pm

building volumio with Octo support

Post by flatmax » Sun Jul 23, 2017 3:12 pm

This post will build volumio with Octo support ... I will do this all on a debian or related operating system ... if you aren't using Linux, well - what can I say ?

Following instructions from here :

Code: Select all

https://github.com/volumio/Build
Setup prereqs :

Code: Select all

sudo apt install git squashfs-tools kpartx multistrap qemu-user-static samba debootstrap parted dosfstools qemu binfmt-support qemu-utils
Clone and configure the volumio build system :

Code: Select all

git clone https://github.com/volumio/Build.git
cd Build
Now set the image creation into life :

Code: Select all

sudo ./build.sh -b arm -d pi -v 2.0 -l reponame
Once built, you will end up with the following file (similarly named) in the driectory :

Code: Select all

$ ls -l Volumio2.0-2017-07-23-pi.img 
-rw-r--r-- 1 root root 2936012800 Jul 23 14:16 Volumio2.0-2017-07-23-pi.img
I put an SDCARD into my computer and the operating system auto mounts it ... I firstly need to unmount it. In my case :

Code: Select all

$ mount
... SNIP ...
/dev/sdd3 on /media/flatmax/volumio_data type ext4 (rw,nosuid,nodev,relatime,stripe=1024,data=ordered,uhelper=udisks2)
/dev/sdd1 on /media/flatmax/boot type vfat (rw,nosuid,nodev,relatime,uid=1000,gid=1000,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks2)
/dev/sdd2 on /media/flatmax/volumio type ext4 (rw,nosuid,nodev,relatime,stripe=1024,data=ordered,uhelper=udisks2)
To unmount /dev/sdd1 sdd2 and sdd3 :

Code: Select all

sudo umount /dev/sdd[123]
You can use dd to write the volumio .img file to SDCARD or you can right click on it and use the disk image writer. Once written, pop it into your Pi and turn it on !

Once on, it boots login with the user name root and pass volumio. It gives you the following prompt :


I enable ssh access by creating an empty file in /boot :

Code: Select all

cat '' > /boot/ssh
I create a user audioinjector:

Code: Select all

adduser audioinjector
I can now log in here is what I see :

Code: Select all

$ ssh audioinjector@192.168.0.9
audioinjector@192.168.0.9's password: 
                       ___                                      
                      /\_ \                        __           
         __  __    ___\//\ \    __  __    ___ ___ /\_\    ___   
        /\ \/\ \  / __`\\ \ \  /\ \/\ \ /' __` __`\/\ \  / __`\ 
        \ \ \_/ |/\ \L\ \\_\ \_\ \ \_\ \/\ \/\ \/\ \ \ \/\ \L\ \
         \ \___/ \ \____//\____\\ \____/\ \_\ \_\ \_\ \_\ \____/
          \/__/   \/___/ \/____/ \/___/  \/_/\/_/\/_/\/_/\/___/ 
        
             Free Audiophile Linux Music Player - Version 2.0

          C 2015 Michelangelo Guarise - Volumio Team - Volumio.org
                               

Volumio Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
I switch to superuser :

Code: Select all

su
I can now do anything I want ... such as adding the octo's device tree for boot up :

Code: Select all

echo 'dtoverlay=audioinjector-addons' >> /boot/config.txt
Sure enough, I reboot and the sound card is recognised :

root@volumio:/home/audioinjector# dmesg | grep octo

Code: Select all

[   11.914759] audioinjector-octo soc:sound: ASoC: CPU DAI (null) not registered - will retry
[   11.914776] audioinjector-octo soc:sound: snd_soc_register_card failed (-517)
[   13.477351] audioinjector-octo soc:sound: cs42448 <-> 3f203000.i2s mapping ok
I setup my asoundrc to ensure I can play/record any thing between 1 and 8 channels :

Code: Select all

echo 'pcm.!default {
        type plug
        slave.pcm "anyChannelCount"
}

ctl.!default {
        type hw
        card 0
}

pcm.anyChannelCount {
    type route
    slave.pcm "hw:0"
    slave.channels 8;
    ttable {
           0.0 1
           1.1 1
           2.2 1
           3.3 1
           4.4 1
           5.5 1
           6.6 1
}' > /etc/asound.conf
I check that I can see the anychannelcount plugin like so :

Code: Select all

root@volumio:/home/audioinjector# aplay -L | grep -C 1 anyCh
default
anyChannelCount
sysdefault:CARD=ALSA
I test play a track by installing mplayer first :

Code: Select all

apt install mplayer
I then play a track from the web :

Code: Select all

wget "https://mp3l.jamendo.com/?trackid=206413&format=mp31&from=app-97dab294" -O - | mplayer -
and it works !!!!

I secure my volumio system again by turning off ssh :

Code: Select all

rm /boot/ssh
reboot
Matt
Check out our audiophile quality crossovers : https://bit.ly/2kb1nzZ
Please review the Zero sound card on Amazon USA : https://www.amazon.com/dp/B075V1VNDD
---
Check out our new forum on github : https://github.com/Audio-Injector

Painter1234
Posts: 5
Joined: Tue Aug 22, 2017 11:55 pm

Re: building volumio with Octo support

Post by Painter1234 » Wed Aug 23, 2017 5:42 pm

Would this build work with the stereo version of the card ? What would need changing?

Painter1234
Posts: 5
Joined: Tue Aug 22, 2017 11:55 pm

Re: building volumio with Octo support

Post by Painter1234 » Fri Aug 25, 2017 6:31 am

How could this be done for the stereo board?

flatmax
Posts: 609
Joined: Sat Jul 23, 2016 11:39 pm

Re: building volumio with Octo support

Post by flatmax » Fri Aug 25, 2017 8:33 pm

It would work. The only changes would be to /boot/config.txt and .asoundrc. You can find the setup for those on this thread :
http://forum.audioinjector.net/viewtopic.php?f=5&t=3

I would like to do a similar setup for the stereo card ... it is possible you don't need to compile it, simply put :

Code: Select all

 dtoverlay=audioinjector-wm8731-audio
into the /boot/config.txt on the stock standard volumio, however that still has to be tested.
Check out our audiophile quality crossovers : https://bit.ly/2kb1nzZ
Please review the Zero sound card on Amazon USA : https://www.amazon.com/dp/B075V1VNDD
---
Check out our new forum on github : https://github.com/Audio-Injector

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests