kernel executing from flash
Markus Sundberg
erammsu at kieraypc01.p.y.ki.era.ericsson.se
Fri Mar 24 03:33:50 EST 2000
christof <xfr at freenet.de> writes:
> Hello,
>
> all Linux I know will be copied during startup from Harddisk, NFS or
> Flash to RAM and will be executed there. Is there a possibility for
> smaller systems to run the kernel directly from flash memory as other
> embedded os's do? Did somebody try this or is it totaly impossible?
Well, I see no reason why it shouldn't be possible, but not without
modifying things.
You'd need to link the .data, .data.cacheline_aligned, .data.init
and .bss sections so they are located in RAM, and the former
three plus the exception vectors would have to be copied from flash
to their linked location.
The question is why?
RAM is usually cheaper than flash, and if you run the kernel in
RAM as usual you can have it compressed in flash, whereas if
you intend to run it directly from flash it must be uncompressed.
//Marcus
--
Signature under construction, please come back later.
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
More information about the Linuxppc-embedded
mailing list