Rockbox mail archiveSubject: Re: Firmware port
Re: Firmware port
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 5 Mar 2003 09:40:47 +0100 (CET)
On Tue, 4 Mar 2003, Josh Nisly wrote:
> I'm trying to port Rockbox to another very similar player, the NEO Jukebox.
Very cool indeed!
> It looks like the firmware is responsible for copying itself from the flash
> memory (at 0x020000) to the DRAM (at 0x09000000), which I think is done by
> the boot code in the Archos. How should I do this?
With Rockbox, we don't care about the flash or how it does to copy the
firmware from flash to ram as we only put a file on disk and let the factory
software load it from disk directly into ram.
> I modified the first example program Bjorn wrote for the player, and that
> ran fine when I set the vectors to start at 0x20000, but when I tried this
> with Rockbox 1.0, it called main() correctly, but it looks like that when a
> function returns, it returns to the wrong place. What am I doing wrong?
> I'm rather clueless about gcc, so I could use all the help I can get.
You need to edit the .lds file to use the correct addresses that your system
If you use the most recent code off CVS, there's only one single .lds file
named firmware/app.lds that controls details such as this.
-- Daniel Stenberg -- http://rockbox.haxx.se/ -- http://daniel.haxx.se/Received on 2003-03-05