Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.


  Search this Thread
Old 09-27-2010, 02:57 PM   #1
LQ Newbie
Registered: Aug 2010
Posts: 11

Rep: Reputation: 0
Declaring a specific RAM section as used

I have an embedded system, where the main processor is running linux. A sub processor is running in parallel, and assumes it controls a specific section of RAM. The kernel must still be able to read/write to this section of RAM, but must never allocate it, or use it for anything else.

I'm wondering if there is a simple way to do this.
Old 09-28-2010, 07:32 AM   #2
Senior Member
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Stretch (Fluxbox WM)
Posts: 1,389
Blog Entries: 52

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
My understanding (and I haven't tried this, so this is just an outline) is:

1. that you use the 'memmap=nn$ss' parameter to the kernel at boot (nn is size, ss is offset, with optional K/M/G suffixes) to reserve the area of memory that you are using for the dual port to the secondary processor

2. you then create a driver to 'remap_pfn_range' this physical area into user space so that you can access it
Old 09-29-2010, 09:45 AM   #3
LQ Newbie
Registered: Aug 2010
Posts: 11

Original Poster
Rep: Reputation: 0
Thanks, I'll give that a try.

Last edited by timboar; 09-29-2010 at 10:07 AM.


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
set specific application to always reside in ram, for +performance Siljrath Linux - General 2 06-13-2010 12:31 AM
Subscribing to a specific section of LQ sycamorex LQ Suggestions & Feedback 8 03-27-2010 11:38 PM
Declaring variables in external and internal RAM VGM Programming 1 03-25-2010 04:37 PM
C: declaring void parameters jrtayloriv Programming 4 02-11-2005 02:20 PM > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 08:47 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