Rockbox Development > New Ports

Pine64 Pinephone Rockbox as an application


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 git

download Rockbox source:-
git clone git://

sudo apt-get install libsdl1.2-dev
sudo apt-get install gcc
sudo apt-get install zip
sudo apt-get install make

cd rockbox
mkdir build
cd build

from 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.

sudo make fullinstall

which will install Rockbox to the device

in terminal type

to 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/

I have now packaged this as .deb file so it appears on the desktop as a clickable icon,
Contents of Rockbox.desktop file:-

--- Code: ---[Desktop Entry]

--- End code ---
Contents of Debian control file:-

--- Code: ---Package: Rockbox
Version: 1f9e16e4df-200922
Architecture: all
Essential: no
Section: AudioVideo;
Priority: optional
Description: RockBox Music Player App for Pinephone
--- End code ---

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/

--- Code: ---libSDLmain.a

--- End code ---
and replicate the path lib/aarch64-linux-gnu/ in the .deb build.

Video of it in action here:-

Thank you for posting this how to. Very handy!


[0] Message Index

Go to full version