Rockbox Development > Starting Development and Compiling

Customizing Rockbox - Need Help Please

(1/4) > >>

rangi_chip:
Okay, some may take offense to what I am wanting to achieve here. But any help would be much appreciated as I am fairly new to Rockbox.

This is what I am wanting from Rockbox:

I want my Apple OS to be the default firmware when booting, with Rockbox being the alternative. This is fairly easily achieved no?

Then... and this maybe the offensive part...
When Rockbox boots, I would like to see if it could do this...
Boots (with a blank black screen)
Runs a script (which renames some folders on the root directory of my iPod)
Reboots

Is this possible?
I know it isn't what Rockbox is intended to do, but this would be Very useful for me!

I would need help for that entire process. The blank booting (which shouldn't be too hard), the writing and calling of the script on startup (which I wouldn't have a clue how to do), and then rebooting once the script has finished it's business.

I have a 80GB 5.5G iPod if this means anything.


Cheers.

gevaerts:
I think that maybe you don't want a full customized rockbox, but just a customized rockbox bootloader.
Do you need this "script" to be changeable, or can it just be a C function that's compiled in?

rangi_chip:
Yes! Just a customized bootloader would be great...

Basically I have two folders that I want to be renamed every time Rockbox bootloader is run.

Example:
I have these two folders
"iPod_Control"
"Music2"

When the bootloader is run, I would like it to swap them
"iPod_Control" becomes "Music1"
"Music2" becomes "iPod_Control"

And then vice-versa the next time the Rockbox bootloader is run
"iPod_Control" becomes "Music2"
"Music1" becomes "iPod_Control"

Is this possible?


Thanks for the reply!

gevaerts:
That should be possible, yes. You can change main() in bootloader/ipod.c to do that instead of loading firmware. I think the correct place to start your changes would be at the "printf("Partition 1: 0x%02x %ld MB"," line.

The filesystem is mounted there, so you can use all rockbox file manipulation functions. There may be some documentation about those on the wiki. If not, have a look at firmware/export/fat.h, or look in apps/ for examples.

rangi_chip:
Would it be easier doing what was described above with changing two folder names... or would it be easier using the Rockbox bootloader to boot two Apple OS's?

Like one default one, and one alternative one?

Navigation

[0] Message Index

[#] Next page

Go to full version