Rockbox Technical Forums

Installation / Removal => Manual Installation => Apple - Installation/Removal => Topic started by: dreamlayers on December 16, 2008, 12:07:38 AM

Title: An alternate dual boot method for faster Rockbox startup
Post by: dreamlayers on December 16, 2008, 12:07:38 AM
It's possible to install Rockbox into the firmware partition, and then patch it with a modified bootloader to allow dual-booting.  This gives faster Rockbox startup at the expense of slower original firmware startup.

Save the original firmware to apple_os.ipod:
ipodpatcher -rf apple_os.ipod
Put that in the root directory on the iPod.
Write rockbox to the firmware partition:
ipodpatcher -wf rockbox.ipod
Add the modified bootloader:
ipodpatcher -a bootloader-ipodvideo.ipod

You might want to save a copy of the firmware partition in case something goes wrong, but you should be able to restore from the apple_os.ipod file.  If you put the original firmware back in the firmware partition, you probably don't want an apple_os.ipod file in the root because the Rockbox bootloader will load it instead of running the already loaded firmware.

Here's a link to the patch and a pre-built 30 gig Video iPod bootloader (http://drop.io/dreamlayers/asset/bootloader-for-patching-rockbox).  This bootloader should only be used for this special application.

(I was trying to figure out how to load the original firmware from within Rockbox.  I was able to find some hardware initializations which prevent it from running properly, but I wasn't able to undo those.  So I gave up for now and did this instead.)

Edit:  Custom bootloader mentioned above is obsolete.  The required functionality is in SVN since r20921, via http://www.rockbox.org/tracker/task/9730
Title: Re: An alternate dual boot method for faster Rockbox startup
Post by: Llorean on December 16, 2008, 02:40:57 AM
Please, don't post unsupported builds (and a custom bootloader is exactly that) anywhere but the unsupported build forum.

And don't post static information, like tutorials, in the forums in general.

Both of these are in the forum guidelines. I'll remove this post in a day or two, so you have time to decide if you want to maintain an unsupported build.
Title: Re: An alternate dual boot method for faster Rockbox startup
Post by: torne on December 30, 2008, 04:20:05 PM
I've written a patch for current svn which implements this functionality in a backward compatible way (i.e. you can still also load rockbox from disk). Booting this way is roughly five seconds faster for me; I'd appreciate anyone who's intereted in testing :)

Patch and instructions are here: http://www.rockbox.org/tracker/task/9730

Edit: actually I can't reproduce the five second speedup - it's more like 1.5 seconds when I time it multiple times and average. There are some timings posted on the patch comments, it'd be good if someone else could try, on any model?