hello,
we have a hardware board with NAND flash memory in it.We want to
build a multi-xip(multiregion) OS image say with two regions NK.BIN
(with kernel and other components required for BinFS file system to
run) and APP.BIN for custom applications and store it in the NAND
flash memory.At boot up we want to retrieve the kernel region alone
from NAND to RAM.i have gone through the threads that discuss how this
should be done but i have a few doubts regarding this
a) After the bootloader extracts kernel region to RAM, kernel starts
executing till binfs is mounted. How does BinFS know about the modules/
files in the other region (ie APP.BIN)stored in the NAND flash so that
it can demand page it. Does OEMRomchain() play any role in this? I
read that BinFS reads the CHAIN to know about this i would greatly
appreciate if someone
could explain more about this.
b) Since the multiregions are stored inside nandflash in rawformat
similar to .nbo how does BinFS recognize the regions?
c) Would XIP.BIN contain the chain info(ie information about the
regions)?
I would really appreciate if someone could help me out.