LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   accessing reserved ram for storing files. (https://www.linuxquestions.org/questions/linux-kernel-70/accessing-reserved-ram-for-storing-files-862133/)

jghalam 02-11-2011 06:33 PM

accessing reserved ram for storing files.
 
Hi everyone,
On an embedded system, I have a predefined RAM space that is outside of the kernel memory. I want to access this area almost like a ramdisk, so that I can store some files. I don't mind writing my own kmod. But I was wondering if there is a better solution.

The preferred way is to access the space as a ramdisk, install a file system, and mount it as a part of the file system. But I don't know of way tools to create a ramdisk at a specific address and fixed size on a memory outside the kernel space.

Any thoughts or suggestions?
Thanks,
Joe

theNbomr 02-12-2011 01:31 PM

The Linux Ramdisk mini-HOWTO should give you a good start.
--- rod.

jghalam 02-13-2011 12:23 AM

Thanks for the reply Rod. But the built in ramdisk support in linux doesn't help me, since I cannot specify the exact location of the RAM to use. Please note that I want to use a ram section, which is defined outside of the memory managed by the kernel (I call it preserved memory). The ram area can be memory mapped and accessed, but it is not part of the available pages of the kernel memory. Anyhow, the more I dig into this, the more I realize that I need to write my own kernel module.
Thanks,
Joe


All times are GMT -5. The time now is 12:11 AM.