How to mount filesystem from RAM ?

From: Jongman Heo
Date: Tue Apr 19 2011 - 02:02:21 EST


Dear all,

I have a flash device and it will store cramfs or squashfs filesystem
in one of its partition.

I can't directly mount it using normal way, for example, "mount
/dev/mtdblock0 /mnt", due to some other constraint.
(And initrd is not an option for me.)

Instead, I can load the data from the partition into RAM, which means
whole filesystem data is copied into some location of RAM. ( I know
the physical address, for the data to be loaded.) This copy operation
is done by bootloader side, not in Linux.

In this case, how can I mount the filesystem from RAM? Is there any
way to do this?

And I think the memory location of filesystem data should be reserved
not to be used by Linux kernel and user space application, am I right?


Thanks in advance,
Jongman.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/