Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Rockbox Ports are now being developed for various digital audio players!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  New Ports
| | |-+  Pine64 Pinephone Rockbox as an application
« previous next »
  • Print
Pages: [1]

Author Topic: Pine64 Pinephone Rockbox as an application  (Read 1305 times)

Offline cela

  • Member
  • *
  • Posts: 59
Pine64 Pinephone Rockbox as an application
« on: September 21, 2020, 12:28:07 PM »
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://git.rockbox.org/rockbox

install:-
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
../tools/configure


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.


make
sudo make fullinstall


which will install Rockbox to the device

in terminal type

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

additional:-
I have now packaged this as .deb file so it appears on the desktop as a clickable icon,
Contents of Rockbox.desktop file:-
Code: [Select]
[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:-
Code: [Select]
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/
Code: [Select]
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
« Last Edit: October 20, 2020, 01:45:35 PM by cela »
Logged
Rockboxed Daps:-
 Pinephone (RaaA), Benjie T6, Sony NWZ-E384 (dead battery), Samsung YP-R0 (the best rockbox player), Creative Zen X -Fi, Sansa clip+, Sansa Fuze+ x2 (good for rockbox games) , Creative Zen X-Fi2 , Unbranded Rk27xx Dap (I need to fix the buttons)

Offline fossphile

  • Member
  • *
  • Posts: 66
Re: Pine64 Pinephone Rockbox as an application
« Reply #1 on: March 13, 2021, 07:40:20 AM »
Thank you for posting this how to. Very handy!
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  New Ports
| | |-+  Pine64 Pinephone Rockbox as an application
 

  • SMF 2.0.19 | SMF © 2021, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.024 seconds with 17 queries.