Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Linux - Kernel This forum is for all discussion relating to the Linux kernel.


  Search this Thread
Old 02-11-2011, 07:33 PM   #1
LQ Newbie
Registered: Aug 2010
Posts: 5

Rep: Reputation: 0
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?
Old 02-12-2011, 02:31 PM   #2
LQ 5k Club
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,396
Blog Entries: 2

Rep: Reputation: 905Reputation: 905Reputation: 905Reputation: 905Reputation: 905Reputation: 905Reputation: 905Reputation: 905
The Linux Ramdisk mini-HOWTO should give you a good start.
--- rod.
Old 02-13-2011, 01:23 AM   #3
LQ Newbie
Registered: Aug 2010
Posts: 5

Original Poster
Rep: Reputation: 0
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.


file, ramdisk, system

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
accessing liveusb reserved space ssaha Ubuntu 0 05-09-2010 11:43 AM
Mechanism for Storing Installation Files in RHEL 5 Hi_This_is_Dev Linux - Software 1 09-09-2009 08:51 AM
Storing in text files vs. performance calande Linux - General 5 05-16-2006 03:50 PM
Storing Sound (Media) files in MySQL 1kyle SUSE / openSUSE 2 04-04-2006 10:44 AM
Storing files from linux to NT buddy Linux - General 3 01-15-2003 06:36 PM

All times are GMT -5. The time now is 12:13 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration