LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
Search this Thread
Old 02-11-2011, 06:33 PM   #1
jghalam
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?
Thanks,
Joe
 
Old 02-12-2011, 01:31 PM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,395
Blog Entries: 2

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
The Linux Ramdisk mini-HOWTO should give you a good start.
--- rod.
 
Old 02-13-2011, 12:23 AM   #3
jghalam
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.
Thanks,
Joe
 
  


Reply

Tags
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 10:43 AM
Mechanism for Storing Installation Files in RHEL 5 Hi_This_is_Dev Linux - Software 1 09-09-2009 07:51 AM
Storing in text files vs. performance calande Linux - General 5 05-16-2006 02:50 PM
Storing Sound (Media) files in MySQL 1kyle Suse/Novell 2 04-04-2006 09:44 AM
Storing files from linux to NT buddy Linux - General 3 01-15-2003 05:36 PM


All times are GMT -5. The time now is 11:25 PM.

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