Rockbox Technical Forums

Rockbox Development => New Ports => Topic started by: saanaito on February 27, 2008, 09:27:52 AM

Title: Rocbox for Palm OS
Post by: saanaito on February 27, 2008, 09:27:52 AM
I'm afraid to start a new thread; what about Rockbox as a Palm OS application? (I believe most recent Palms use ARM processors.)

Edit:  Saratoga made this a new thread.
Title: Rocbox for Microsoft Windows Mobile 5 & 6
Post by: LambdaCalculus on February 27, 2008, 09:33:05 AM
If the Palm platform has SDL on it, then certainly. You can write it as an app on the Palm platform.
Title: Rocbox for Microsoft Windows Mobile 5 & 6
Post by: Chronon on February 29, 2008, 05:54:00 PM
Shows how much I know. :-[ But come to think of it, I don't recall ever hearing of SDL on the Palm OS, so that's out.

I found this but haven't poked around in it:
https://sourceforge.net/projects/sdlpalmos/
Title: Rocbox for Microsoft Windows Mobile 5 & 6
Post by: saanaito on March 12, 2008, 07:56:07 PM
Nice find! ;D I'll experiment with it on my Zire 71 and report back.
Title: Re: Rocbox for Microsoft Windows Mobile 5 & 6
Post by: dip on July 09, 2008, 03:12:17 AM
Nice find! ;D I'll experiment with it on my Zire 71 and report back.
Have you ever tried it? Is there a chance to get Rockbox work on the Palm?
Title: Re: Rocbox for Palm OS
Post by: saanaito on July 21, 2008, 10:10:32 AM
Wow, I completely forgot about my own thread. :-[

Anyways, yes; I tried the applications and they run fairly well on my Palm.
Title: Re: Rockbox for Palm OS
Post by: dip on July 21, 2008, 10:17:56 AM
Wow, I completely forgot about my own thread. :-[

Anyways, yes; I tried the applications and they run fairly well on my Palm.
That sounds exciting, I would love to have rockbox on my treo centro.

Could you please be so kind to explain what you have done to get rockbox running.

Thanks a lot.
Dieter
Title: Re: Rocbox for Palm OS
Post by: saanaito on July 21, 2008, 10:20:36 AM
I have done nothing; I have only tried the apps Chronon linked and successfully run them. I'm looking at the source code now, but there's not much that I know how to do. :-[
Title: Re: Rocbox for Palm OS
Post by: Chronon on July 21, 2008, 05:08:30 PM
If I were you I would sit tight and see how the "Rockbox as an application" work progresses this summer. 
Title: Re: Rocbox for Palm OS
Post by: dip on July 21, 2008, 05:13:29 PM
I don't understand what is the difference between "Rockbox as an application" and the Simulator (which runs as application)? Can't simply the Simulator compiled for Palm OS and that's it (of course, the hardware button key codes must be adapted)?
Title: Re: Rocbox for Palm OS
Post by: saratoga on July 21, 2008, 05:30:09 PM
I don't understand what is the difference between "Rockbox as an application" and the Simulator (which runs as application)?

Its mostly an organizational thing.  The Simulator gets its configuration from a real hardware device.  The app patch changes this to make the sim into a real hardware device.  It also moves SDL "drivers" into the target tree allowing for target specific code.  Without this all simulators must run exactly the same code and drivers regardless of the target, which is problematic.

Can't simply the Simulator compiled for Palm OS and that's it (of course, the hardware button key codes must be adapted)?

Sure, this is how the rockbox for the EZX fork works, but its probably not all that simple to get compiling.

That said I don't see much sense in waiting for the App project.  Once the sim was working, moving over to App would be quite simple.
Title: Re: Rocbox for Palm OS
Post by: saanaito on July 21, 2008, 10:03:17 PM
Other limitations:

The thing about all Palms is the way they store things. On older Palms (with a so-called Volatile File System), the primary means of storage is RAM; and users can insert an SD card for extra storage. Because of this, applications must assume that the amount of available RAM can vary wildly. My Zire 71 has about 13.1 MB of RAM for the user, but with my usage habits it often falls to 8 MB.

A seperate chunk of RAM is set aside for dynamic memory (for those who don't know, that's a chunk of storage for data that is constantly added and removed; i.e., for graphics and such). On my Zire it's about 980 KB - quite small. Other devices have larger heaps, and there are tools to increase the heap (hacks, effectively; the best known such tool is shareware - Ultimate Dynamic Memory Hack at palmpowerups.com).

Then there are NVFS devices, which use a flash memory of sorts instead of RAM. I don't know the details, so I won't pretend I do. :D