kernel executing from flash

Markus Sundberg erammsu at
Fri Mar 24 03:33:50 EST 2000

christof <xfr at> 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.

Signature under construction, please come back later.

** Sent via the linuxppc-embedded mail list. See

More information about the Linuxppc-embedded mailing list