Skip to contentSkip to conversation

paging the kernel out of nand flash.

DISCUSSION Duane Ellis 1 participant 1 message Mar 31, 2002 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

I'm not sure which list to ask this on. But since my question is NAND flash specific I thought I'd ask here.

I've done something like this before on other systems but never with linux.

Has anybody setup a system with the following attributes:

1) Kernel is configured with XIP
2) BUT Kernel actually lives in NAND flash
3) When sections of the kernel code page fault
they are loaded from NAND flash.

Maybe you do this with a small micro-ish kernel under the main kernel.

ie: on the MMU interrupt - decided - who should handle the fault

ie: If kernel fault - micro-kernel handles.
Otherwise let linux kernel handle it.

In effect, the kernel 'just thinks' it is doing XIP.

In addition, one would need to allocate space on the NAND flash devices such that a portion of the device (ie: the part with the kernel in it) is not available to linux.

Along with a portion of the physical ram used for paging.

And yes, I'm well aware of problems of a fault within a fault that handles a fault. Somethings must live in real memory. I'm looking at the 'rest of the kernel'

-Duane.