Hey guys,
A few months ago i noted that librespot didn’t work for me using a X96 Max Plus powered by a S905X3 SOC.
The Coreelec box simply didn’t show up in the Spotify-Connect device list, even without the discovery mode.
Back then i didn’t really care and simply used the great Spotify addon by marcelveldt, but the Spotify connect feature is quite unstable.
So I gave the updated version of librespot a try again, but without success.
The creator of the librespot addon awiouy seems to be quite active on the Libreelec forums, so i reached out for his help.
I showed him the logs, and this is what he answered to me:
According to this, people aren’t / won’t be able to use Rust on Linux with CP15_BARRIER_EMULATION=y & abi.cp15_barrier=1 (emulation, default value) & arm-unknown-linux-gnueabihf toolchain.
This could be the case for CoreELEC.
So I ask the Coreelec devs know if this is a problem that could probably fixed by i don’t know maybe improving the toolchain? Or do you see the problem elsewhere?
He answered that he is willing to cooperate with you guys to fix this problem, that was already reported by other users here.
How do you run librespot? I’m not familiar with this addon and don’t know how it is started. Maybe this service file must be copied to /storage/.config/system.d folder? Then edit file there.
Jup i think this will do it for now.
I tried copying the file to the system.d directory and changed the file permissions to 777 but i didn’t work unfortunatly.
Thank you anyway
Don’t copy file service.librespot-alsa.service if you didn’t do it already before. Remove it from system.d folder and only add line in autostart.sh file. After reboot everything should be good.
I am glad to see that a solution was found.
Thank you @vpeter
Since revision 121 of Librespot, the addon is a pure Kodi service which does not rely on system.d anymore.
Therefore, the best way to fix the problem for all variants of librespot (pre 121, post 121, alsa custom) may be to add @vpeter’s echo command in autostart.sh.
However, I ask myself why CoreELEC is built with CP15 barrier, if CP15 barrier can be so easily unset system wide. Does the workaround not break other parts of CoreELEC?
I’m trying to get spotify/librespot to work, but at least on the recent nightlies, /proc/sys/abi/cp15_barrier doesn’t exist anymore. Trying to execute librespot, even as root, just returns “Illegal instruction”