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:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Rockbox on Raspberry
« previous next »
  • Print
Pages: 1 [2] 3

Author Topic: Rockbox on Raspberry  (Read 1638 times)

Offline __builtin

  • Developer
  • Member
  • *
  • Posts: 385
  • iPod 6G, c200v1 (RIP), e200v1 (RIP)
    • FWEI.TK
Re: Rockbox on Raspberry
« Reply #15 on: August 03, 2019, 12:13:07 PM »
There should be a "rockbox" executable in your build directory and under /usr/local/bin. Can you run the following commands from your build directory and post their output?

Code: [Select]
ls | grep rockbox
ls /usr/local/bin | grep rockbox
Logged
No support questions by PM, please.

Offline WS64

  • Member
  • *
  • Posts: 17
Re: Rockbox on Raspberry
« Reply #16 on: August 03, 2019, 12:31:17 PM »
The output for both is empty. That's what I'm trying to say, there is no executable!
Logged

Offline __builtin

  • Developer
  • Member
  • *
  • Posts: 385
  • iPod 6G, c200v1 (RIP), e200v1 (RIP)
    • FWEI.TK
Re: Rockbox on Raspberry
« Reply #17 on: August 03, 2019, 01:28:25 PM »
You did run "make" to actually build the binary, right? If you did then I'm stumped.
Logged
No support questions by PM, please.

Offline WS64

  • Member
  • *
  • Posts: 17
Re: Rockbox on Raspberry
« Reply #18 on: August 03, 2019, 03:02:41 PM »
I guess I reall missed one step
I always did first
../tools/configure
and then
make fullinstall

Now I tried a sinple "make", this results in this:

Code: [Select]
...
CC firmware/common/vuprintf.c
/home/pi/rockbox/apps/recorder/jpeg_idct_arm.S:25:31: fatal error: apps/core_asmdefs.h: No such file or directory
 #include "apps/core_asmdefs.h"
                               ^
compilation terminated.
/home/pi/rockbox/tools/root.make:440: recipe for target '/home/pi/rockbox/wsbin/apps/recorder/jpeg_idct_arm.o' failed
make: *** [/home/pi/rockbox/wsbin/apps/recorder/jpeg_idct_arm.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from /home/pi/rockbox/apps/plugin.h:64:0,
                 from /home/pi/rockbox/apps/recorder/jpeg_load.c:30:
/home/pi/rockbox/firmware/export/font.h:36:21: fatal error: sysfont.h: No such file or directory
 #include "sysfont.h"
                     ^

More errors follow, I think they all complain about sysfont.h

The above was for SDL.

When I choose an Archos Recorder and Simulation I'll get this error:
Code: [Select]
/home/pi/rockbox/wsbin/apps/bitmaps/native/rockboxlogo.112x30x1.c:880:15: note: (near initialization for ‘bm_rockboxlogo.data’)
/home/pi/rockbox/tools/root.make:451: recipe for target '/home/pi/rockbox/wsbin/apps/bitmaps/native/rockboxlogo.112x30x1.o' failed
make: *** [/home/pi/rockbox/wsbin/apps/bitmaps/native/rockboxlogo.112x30x1.o] Error 1
« Last Edit: August 03, 2019, 03:17:52 PM by WS64 »
Logged

Offline Bilgus

  • Developer
  • Member
  • *
  • Posts: 537
Re: Rockbox on Raspberry
« Reply #19 on: August 05, 2019, 12:03:11 AM »
Ok so lets make this step by step

Starting in the root of the directory you have the rockbox source in (looks to be /home/pi/rockbox)
Code: [Select]
mkdir rbsdl
cd rbsdl
../tools/configure --target=200 --lcdwidth=320 --lcdheight=480 --type=n
make
sudo make install
rockbox
Logged

Offline WS64

  • Member
  • *
  • Posts: 17
Re: Rockbox on Raspberry
« Reply #20 on: August 05, 2019, 12:58:59 AM »
@Bilgus, thanks, will try this evening!

Should I delete the
/usr/local/share/rockbox
directory before?
Logged

Offline Bilgus

  • Developer
  • Member
  • *
  • Posts: 537
Re: Rockbox on Raspberry
« Reply #21 on: August 05, 2019, 01:04:22 AM »
shouldn't have to but can't hurt
Logged

Offline WS64

  • Member
  • *
  • Posts: 17
Re: Rockbox on Raspberry
« Reply #22 on: August 05, 2019, 09:27:40 AM »
Something new happened:
Code: [Select]
ZIP apps/lang/voicestrings.zip
make: zip: Command not found
/home/pi/rockbox/apps/lang/lang.make:55: recipe for target '/home/pi/rockbox/rbsdl/apps/lang/voicestrings.zip' failed
make: *** [/home/pi/rockbox/rbsdl/apps/lang/voicestrings.zip] Error 127

So I did
Code: [Select]
sudo apt-get install zip
and repeated the make.

This time it worked way longer, but still resulted in an error:
Code: [Select]
LD rockbox
/usr/bin/ld: cannot find -ldirectfb
collect2: error: ld returned 1 exit status
/home/pi/rockbox/uisimulator/uisimulator.make:34: recipe for target '/home/pi/rockbox/rbsdl/rockbox' failed
make: *** [/home/pi/rockbox/rbsdl/rockbox] Error 1

How do I solve this?
Logged

Offline Bilgus

  • Developer
  • Member
  • *
  • Posts: 537
Re: Rockbox on Raspberry
« Reply #23 on: August 05, 2019, 09:35:34 AM »
/usr/bin/ld: cannot find -ldirectfb


a quick google for raspi and the library name directfb got this..
https://computerstruggles.blogspot.com/2013/02/how-to-program-directfb-in-c-on.html
Logged

Offline Bilgus

  • Developer
  • Member
  • *
  • Posts: 537
Re: Rockbox on Raspberry
« Reply #24 on: August 05, 2019, 09:37:38 AM »
now (after you get that library) you should type
Code: [Select]
make cleanand start from the beginning again
it's not always necessary but it cuts down on issues
Logged

Offline WS64

  • Member
  • *
  • Posts: 17
Re: Rockbox on Raspberry
« Reply #25 on: August 05, 2019, 10:51:45 AM »
Nearly there (I hope)...
make now worked (after "sudo apt-get install libdirectfb-dev")
But still:

Code: [Select]
~/rockbox/rbsdl$ sudo make install
Installing your build in your '/usr/local' dir
~/rockbox/rbsdl$ rockbox
Segmentation fault

Update: My mistake. I run that via SSH.
When I start it directly on my Raspberry it starts! It still is unreadable (too small), do I have to do all steps aginain with a smaller resolution?


Next is to find out how to use the buttons on the Gmae Hat instead of the keyboard...
« Last Edit: August 05, 2019, 11:00:14 AM by WS64 »
Logged

Offline Bilgus

  • Developer
  • Member
  • *
  • Posts: 537
Re: Rockbox on Raspberry
« Reply #26 on: August 05, 2019, 11:03:41 AM »
yeah no clue there, something is either mis-configured or just plain wrong for it to be accessing memory that throws a segfault but hey we got the binary!

I'd probably start from the very beginning like clean slate brand new pi and start over but it might just be a bad package somewhere or your compiler is funky
IDK, maybe someone else will chime in that has a raspi


Logged

Offline Bilgus

  • Developer
  • Member
  • *
  • Posts: 537
Re: Rockbox on Raspberry
« Reply #27 on: August 05, 2019, 11:10:46 AM »
Code: [Select]
rm -rf rbsdl
mkdir rbsdl
cd rbsdl
../tools/configure --target=200 --lcdwidth=320 --lcdheight=480 --type=n
make
sudo make install
rockbox

lcdwidth=320 --lcdheight=480

just be sure you keep the proper aspect ratio
I'm not sure what is supported TBH
Logged

Offline Bilgus

  • Developer
  • Member
  • *
  • Posts: 537
Re: Rockbox on Raspberry
« Reply #28 on: August 05, 2019, 11:13:32 AM »
smaller should make the text bigger like 240 x 360 or something like that
Logged

Offline WS64

  • Member
  • *
  • Posts: 17
Re: Rockbox on Raspberry
« Reply #29 on: August 05, 2019, 11:25:56 AM »
Yes, that's what I did, much better:


Is there a config file for the mapping of the keys somewhere?
I need an exit button, not sure if that exists since you usually don't need that.

But thanks all of you, that was a big help for me!
Logged

  • Print
Pages: 1 [2] 3
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Rockbox on Raspberry
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.127 seconds with 21 queries.