mounting fs from memory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello All,

I have a bootloader that that is reading segments out of flash and into memory. The segments are 3 compressed ext2 filesystems and the linux kernel. After a signature check of each of the sections in memory the bootloader jumps to the kernel.

I would like to mount one filesystem section in RAM as the root filesystem. I think it's easy enough to specify initrd as the offset and size of the section in RAM. But I would also like to mount the remaining two filesystems in RAM when linux starts up. This is where I'm having some trouble. I have two questions:

1. Is there some way to protect the memory regions in RAM from linux just trashing it? I saw a function add_memory_region in arch/mips/kernel/setup.c that seems to do something, does anyone know what exactly this does?

2. How do you mount an area of memory that you know has a filesystem already there under linux? Is there some mount command where you can pass the address and size, and mount does the right thing?

Thank you in advance,

Drew Frezell



[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux