To create a Rockbox build as an application on the Pinephone using Mobian.
For this I flashed Mobian to a 32GB microSd card which the Pinephone will automatically boot from if inserted.
This is building Rockbox the easy way on the device itself so no cross compiling needed.
On the Pinephone in terminal
install git:-
sudo apt-get update; sudo apt-get -y install gitdownload Rockbox source:-
git clone git://git.rockbox.org/rockboxinstall:-
sudo apt-get install libsdl1.2-dev
sudo apt-get install gcc
sudo apt-get install zip
sudo apt-get install makecd rockbox
mkdir build
cd build
../tools/configurefrom the table select target 200 for the SDL app
next leave the default screen size to get a pre-installed ready made theme that just fits on the screen, press
enter on the width and height.
then just press enter again to create the makefile.
make
sudo make fullinstallwhich will install Rockbox to the device
in terminal type
rockboxto run the Rockbox application.
I have tested this out and can confirm audio and some plugins work.
For the record the rockbox binary is in
/usr/local/bin/
codecs and plugins are in
/usr/local/lib/rockbox/themes, fonts and other elements are in
/usr/local/share/rockbox/
additional:-
I have now packaged this as .deb file so it appears on the desktop as a clickable icon,
Contents of
Rockbox.desktop file:-
[Desktop Entry]
Version=1f9e16e4df-200922
Name=Rockbox
Exec=rockbox
Icon=/usr/local/share/rockbox/rockbox.png
Terminal=false
Type=Application
Categories=AudioVideo;Player;Audio;
Contents of Debian
control file:-
Package: Rockbox
Version: 1f9e16e4df-200922
Architecture: all
Essential: no
Section: AudioVideo;
Priority: optional
Depends:
Maintainer: rockbox.org
Description: RockBox Music Player App for Pinephone
and I tweaked the screen dimension so it centred and fit nicely on the screen
340x640 gave the best fit, there is a nice Rockbox icon buried in the android source tree for the desktop, I did need to resize a cabbie theme to 340x640 to finish the job.
If you want to make the build portable on a fresh Mobian image you can include the SDL1.2 dependancies already installed on your phone in
/lib/aarch64-linux-gnu/libSDLmain.a
libSDL.so
libSDL.a
libSDL-1.2.so.0.11.4
libSDL-1.2.so.0
and replicate the path
lib/aarch64-linux-gnu/ in the .deb build.
Video of it in action here:-
https://odysee.com/@Alex_Davis:8/(RaaA)-Rockbox-as-an-application-on-Pinephone:b