I’m new to Zynthian and trying to run it in a headless mode using an rpi3(b) and HiFiBerry Digi2 Pro (v2.1).
The idea for now is to simply run pianoteq and route sound to DAC/HPA.
I followed the documentation but unfortunately when I set audio to “HifiBerry digi” Zynthian boots with an “MIDI / Audio error” screen. The hardware works with HifiBerryOS (used as a streamer box) and Zynthian works when I set rpi headphones in the audio settings.
Is Digi2 Pro hat supported?
Below is the screenshot of my audio configuration (it’s default settings)
It seems to be detected correctly by alsa:
$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: b1 [bcm2835 HDMI 1], device 0: bcm2835 HDMI 1 [bcm2835 HDMI 1]
Subdevices: 3/4
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
card 0: b1 [bcm2835 HDMI 1], device 1: bcm2835 HDMI 1 [bcm2835 HDMI 1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: Headphones [bcm2835 Headphones], device 0: bcm2835 Headphones [bcm2835 Headphones]
Subdevices: 4/4
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
card 2: sndrpihifiberry [snd_rpi_hifiberry_digi], device 0: HifiBerry Digi HiFi wm8804-spdif-0 [HifiBerry Digi HiFi wm8804-spdif-0]
Subdevices: 0/1
Subdevice #0: subdevice #0
I’m not sure what could cause this and how to troubleshoot it, here’s an error in Zynthian logs:
$ journalctl -u zynthian
...
Nov 10 22:30:23 zynthian startx[1451]: /zynthian/config/img/fb_zynthian_message.jpg is a 1920x1080 JPEG image, color space YCbCr, 3 comps, Huffman coding.
Nov 10 22:30:23 zynthian startx[1451]: Zooming image by 33%...done
Nov 10 22:30:23 zynthian startx[1451]: Merging...done
Nov 10 22:30:23 zynthian startx[1451]: Building XImage...done
Nov 10 22:30:36 zynthian startx[1470]: ZynCore: Configured 8 x Logical Zynswitches...
Nov 10 22:30:36 zynthian startx[1470]: ZynCore: Setting-up 0 x Physical Zynswitches...
Nov 10 22:30:36 zynthian startx[1470]: ZynCore: Setting-up 0 x Zynpots (zyncoders)...
Nov 10 22:30:47 zynthian startx[1470]: Cannot read socket fd = 12 err = Success
Nov 10 22:30:47 zynthian startx[1470]: CheckRes error
Nov 10 22:30:47 zynthian startx[1470]: JackSocketClientChannel read fail
Nov 10 22:30:47 zynthian startx[1470]: Cannot open ZynMidiRouter client
Nov 10 22:30:47 zynthian startx[1470]: JackShmReadWritePtr1::~JackShmReadWritePtr1 - Init not done for -1, skipping unlock
Nov 10 22:30:47 zynthian startx[1470]: JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
Nov 10 22:30:47 zynthian startx[1470]: JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
Nov 10 22:30:47 zynthian startx[1470]: ZynMidiRouter: Error connecting with jack server.
Nov 10 22:30:47 zynthian startx[1470]: ERROR:zynthian_gui_config.<module>: lib_zyncore: Failed to initialise zynmidirouter (2)
I did system update today so I should be on the latest version.
$ cat /zynthian/build_info.txt
ZynthianOS ORAM-2409
Timestamp: 2024-10-02
Built from RaspberryPiOS Bookworm (aarch64)