Headless PlexAmp on ARMv6

I’d wanted to build a headless PlexAmp setup on my old Pi for a long time but didn’t have access to it (long story). I recently got my hands back on it and was bummed to see the zeroth step is “have a 64-bit capable Raspberry Pi”. I’m glad I double-checked the forum to find this thread that says it does work on 32-bit models too. Well, there have been a lot of Pis since I got my Model B Rev 2, and ARMv6 doesn’t seem to be supported by much anymore. I was able to (slowly) build Node v12.22.12 from source but I only get “Illegal instruction” when I try to run PlexAmp. Is it possible for me to get an ARMv6 compatible version, or is there a step I can take to make it compatible?

Here are the steps I took. Also documenting it as a reference for others.

# I'm using the Raspberry Pi Model B Rev 2
# I used the Raspberry Pi Imager to set up Raspberry Pi OS Lite (32-bit)
# I increased the virtual memory from 100MB to 1GB. Not sure if it's necessary, but I only have 512MB RAM, it doesn't hurt, and I have plenty of space on this 8GB card.
# https://pimylifeup.com/raspberry-pi-swap-file/
sudo dphys-swapfile swapoff
sudo vim /etc/dphys-swapfile
# I installed vim for this but use your favorite
# Change this line. It's in megabytes.
CONF_SWAPSIZE=100
sudo dphys-swapfile setup
sudo dphys-swapfile swapon
sudo reboot
# https://github.com/nodejs/node/blob/v12.x/BUILDING.md
sudo apt install python3 g++ make python3-pip
# I initially followed the wrong instructions. The v12.x instructions say to use: sudo apt-get install python g++ make
wget https://nodejs.org/dist/v12.22.12/node-v12.22.12.tar.gz
tar xvfz node-v12.22.12.tar.gz
cd node-v12.22.12
./configure
make
# make took several days on my poor 1 core doing its best at 700 MHz. Just be patient.
sudo make install
wget https://plexamp.plex.tv/headless/Plexamp-Linux-headless-v4.4.0.tar.bz2
tar xvfj Plexamp-Linux-headless-v4.4.0.tar.bz2
cd plexamp
node js/index.js
# Illegal instruction
# https://stackoverflow.com/questions/42159324/illegal-instruction-core-dumped-node-js
# This suggested the node_modules may need to be rebuilt to fix this issue
npm rebuild
node js/index.js
# Illegal instruction

I’m sorry, we don’t have a lot of the libraries/requirements for ARMv6.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.