Rockbox Development > Starting Development and Compiling

compiling ipod bootloader

(1/1)

Paul_:
Hey,

Im on Windows and using the cygwin setup.

I made my build directory, and ran ../tools/configure selecting 22 (iPod Video) and then B (Bootloader).

Then I ran make, and it made a bunch of files, one of those being bootloader-ipodvideo.ipod

I already had rockbox installed on my iPod (installed the bootloader by running ipodpatcher with no parameters) and I tried installing the bootloader I just compiled (no change from the source code) by running "ipodpatcher -a bootloader-ipodvideo.ipod" which should add (or replace) the bootloader into the iPod.

But when I restarted my iPod and didn't press any buttons it loaded into the apple firmware, instead of rockbox.

Is there something im missing?

I'm thinking that the bootloader-ipodvideo.ipod should run the main function in trunk/bootloader/ipod.c ?

Paul_:
What I want to do is make sure i'm compiling the right way (or right things) at the moment i'm either compiling the wrong code or using the wrong file. I think.

EDIT:

Ok, I tried another way, making ipodpatcher with the embedded bootloaders, with the bootloaders from http://download.rockbox.org/bootloader/ipod/bootloaders.zip it worked fine (they were compiled 23rd May 07) but if I replace the bootloader with the one I just compiled (from trunk) it has the same effect as before (just loads apple firmware)

Is there something wrong i'm doing to compile the bootloader?

EDIT2:

Just checked subversion & last time ipod.c was updated was 23rd May 07 (so the link above was giving me the latest compiled bootloaders)

tdtooke:
I could be wrong, but I think the recent changes to the clock just haven't caught up to the bootloader yet.  You could try compiling it from the source from the 1st, or just use the official bootloader (nothing wrong with it, probably works better actually).

Paul_:
Ok cool thanks  :)
I'll try that when I get home.

I'm wanting to compile a bootloader that loads the apple firmware first, I first tried compiling the bootloader with no source changes to check that I was doing it right (if it loaded like the official one then I had done it right) then I was going to change it round.

Paul_:
Hey thanks heaps tdtooke!

I reverted to some code committed on July 1st and the bootloader compiled correctly.

Thanks again  8-)

Navigation

[0] Message Index

Go to full version