Musicbox and Allo Boss

To be clear, do you use the settings.ini file or the websettings to configure your Allo Boss soundcard @fourzfour? Or are you manually setting the device tree overlay in config.txt yourself? The latter way would work, but I can’t see how the former ‘automatic’ way currently would since its looking for the wrong soundcard name in setsound.sh.

It’s been a while but I used a post on here to update (trying to find it now)…Some of the commands I used were:

apt-get update && apt-get install --yes rpi-update
PRUNE_MODULES=1 SKIP_WARNING=1 rpi-update
reboot

There may have been more, I’ll let you know when I find the post.

Allo Boss was then listed in websettings.

All commands I used were:

wget -O /opt/musicbox/setsound.sh https://raw.githubusercontent.com/pimusicbox/pimusicbox/develop/filechanges/opt/musicbox/setsound.sh
apt-get update && apt-get install --yes rpi-update
PRUNE_MODULES=1 SKIP_WARNING=1 rpi-update
reboot

On reboot Allo Boss was available in websettings.

Full post here:

Yeh I appreciate it’s be listed in the websettings following that, and that the driver would be available but I’d have thought the startup would fail as the script would think it doesn’t exist. Would you mind providing the output of ‘aplay -l’ with your Allo Boss card system?

Sure I’ll provide whatever data you need if it helps…But you’ll have to give me instructions how to access what you need as I’m pretty much out of my comfort zone with this.

It you could login via ssh and run aplay -l and paste the output that would be very helpful. ( and that’s a lowecase L, not a 1)

Output below…

**** List of PLAYBACK Hardware Devices ****
card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
Subdevices: 8/8
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
Subdevice #4: subdevice #4
Subdevice #5: subdevice #5
Subdevice #6: subdevice #6
Subdevice #7: subdevice #7
card 0: ALSA [bcm2835 ALSA], device 1: bcm2835 ALSA [bcm2835 IEC958/HDMI]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: BossDAC [BossDAC], device 0: Boss DAC HiFi [Master] pcm512x-hifi-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0

Brilliant OK, thanks. So I assume when it starts up you see some errors about the Device Tree Overlay already being present and not being able to find the soundcard, but then it works anyway i.e doesn’t crash! I do still need to fix it properly so it finds the soundcard properly and I understand what that is. But I don’t understand this crashing behaviour. That should be fixed in rc6 (and rc5 if you did the manual updates).

I’ve never noticed any errors on the rare occasion that I’ve needed to restart for a music file update, In fact can’t remember it ever throwing an error, Just works great.
If you need anything else just let me know…

If you have a minute, could you paste the output of cat /var/log/musicbox_startup.log ?

Ah I see that error you mentioned in the log…But I never get to see it in the web interface or Mopidy Mobile etc.


Initializing MusicBox…


Setting sound configuration…
Probing sound devices:

  • Found internal device: card0
  • Found internal device: card0
  • Found unknown device ‘bossdac’ on card1
    Probing sound devices:
  • Found internal device: card0
  • Found internal device: card0
  • Found unknown device ‘bossdac’ on card1

ERROR: Device Tree Overlay ‘allo-boss-dac-pcm512x-audio’ is already present
in /boot/config.txt but unable to find soundcard.


Selected card= (i2s= output=allo-boss-dac-pcm512x-audio usb=1 intc=0)
No output was specified/found, falling back to auto detection
Selected card=1 (i2s= output=usb usb=1 intc=0)
Using audio card1 (usb)
MusicBox name is MusicBox
Stopping Samba daemons: nmbd smbd.
Starting Samba daemons: nmbd smbd.
Waiting for network (1 of 4)…

Running /etc/init.d/networking restart is deprecated because it may not re-enable some interfaces … (warning).
Reconfiguring network interfaces…RTNETLINK answers: No such process
Internet Systems Consortium DHCP Client 4.2.2
Copyright 2004-2011 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/b8:27:eb:e7:e2:2e
Sending on LPF/eth0/b8:27:eb:e7:e2:2e
Sending on Socket/fallback
DHCPRELEASE on eth0 to 192.168.. port 67
send_packet: Network is unreachable
send_packet: please consult README file regarding broadcast address.
Reloading /etc/samba/smb.conf: smbd only.
wlan0: ERROR while getting interface flags: No such device
Error for wireless request “Set Power Management” (8B2C) :
SET failed on device wlan0 ; No such device.
wpa_supplicant: /sbin/wpa_supplicant daemon failed to start
run-parts: /etc/network/if-pre-up.d/wpasupplicant exited with return code 1
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
wpa_supplicant: /sbin/wpa_cli daemon failed to start
run-parts: /etc/network/if-up.d/wpasupplicant exited with return code 1
Internet Systems Consortium DHCP Client 4.2.2
Copyright 2004-2011 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/b8:27:eb:e7:e2:2e
Sending on LPF/eth0/b8:27:eb:e7:e2:2e
Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 19
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 12
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPOFFER from 192.168..
DHCPACK from 192.168..
Reloading /etc/samba/smb.conf: smbd only.
bound to 192.168.. – renewal in 17073 seconds.
done.
Starting Dropbear SSH server: dropbear.
Starting daemon monitor: monitINFO:librespot: librespot cc9dba8 (2017-03-26). Built on 2017-07-17. Build ID: 8zQE3Bpb
.
INFO:librespot::session: Connecting to AP “gew1-accesspoint-b-vzpx.ap.spotify.com:4070
thread ‘main’ panicked at ‘Authentication failed’, /home/travis/build/herrernst/librespot/target/arm-unknown-linux-gnueabihf/release/build/librespot-3b4585bfa7dba5dd/out/lib.rs:369
note: Run with RUST_BACKTRACE=1 for a backtrace.
Mounting Windows Network drive: //192.168../Data/MUSIC …
Scanning music-files, please wait…
INFO Starting Mopidy 1.1.2
INFO Loading config from builtin defaults
INFO Loading config from /etc/mopidy/mopidy.conf
INFO Loading config from command line options
INFO Enabled extensions: file, stream, spotify_tunigo, scrobbler, http-kuechenradio, podcast-itunes, softwaremixer, moped, musicbox_webclient, websettings, tunein, mopify, spotify, somafm, local, mpd, http, dirble, podcast, soundcloud, mobile, m3u, youtube, simple-webclient, local-sqlite
INFO Disabled extensions: alsamixer, gmusic, subsonic, internetarchive, spotify_web, audioaddict
INFO Found 241 files in media_dir.
INFO Checking 213 tracks from library.
INFO Removing 0 missing tracks.
INFO Found 25 tracks which need to be updated.
INFO Scanning…
INFO Scanned 25 of 25 files in 14s.
INFO Done scanning.