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



Rockbox mail archive

Subject: linker/startup question for rockbox _running_ from flash

linker/startup question for rockbox _running_ from flash

From: [IDC]Dragon <idc-dragon_at_gmx.de>
Date: Sat, 17 Jan 2004 14:13:57 +0100 (MET)

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

Received on 2004-01-17

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy