Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: linker/startup question for rockbox _running_ from flash
From: [IDC]Dragon (idc-dragon_at_gmx.de)
Date: 2004-01-17


Hi,

yesterday I turned my head towards an experiment I have in mind since a
longer time:
To actually run rockbox from flash, so not having the loader decompress it
from flash into DRAM, but executing directly from there (the loader is
prepared to do that). This would save ~160K of RAM, but executes slower since the
flash has only an 8 bit bus versus the DRAM has 16. I don't know if it's
tolerable, have to find out.

I'm struggling with the linker to teach that to him. The gnu linker docs
didn't help me much. Attached is my first .lds file. But this won't work,
because I somehow have to place the .data segment into DRAM, but have it
initialized from flash, copied from a part in .rodata. Maybe this requires a special
startup code to copy that, but I don't even know how to define the regions for
the linker.

BTW, we have a couple of arrays we'd better define as "const", else I would
have them twice.

Any ideas?
Thanks,
Jörg

-- 
+++ GMX - die erste Adresse für Mail, Message, More +++
Bis 31.1.: TopMail + Digicam für nur 29 EUR http://www.gmx.net/topmail




Page was last modified "Jan 10 2012" The Rockbox Crew
aaa