linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Accessing physical memory
@ 2006-04-08 21:52 Antonio Di Bacco
  2006-04-08 23:07 ` Arnd Bergmann
  2006-04-09  4:20 ` dwh
  0 siblings, 2 replies; 4+ messages in thread
From: Antonio Di Bacco @ 2006-04-08 21:52 UTC (permalink / raw)
  To: linuxppc-embedded

How can I access the physical memory? Can I MMAP for example /dev/mem? Is 
there a simpler way?

Bye,
Antonio. 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Accessing physical memory
  2006-04-08 21:52 Accessing physical memory Antonio Di Bacco
@ 2006-04-08 23:07 ` Arnd Bergmann
  2006-04-09  4:20 ` dwh
  1 sibling, 0 replies; 4+ messages in thread
From: Arnd Bergmann @ 2006-04-08 23:07 UTC (permalink / raw)
  To: linuxppc-embedded

On Saturday 08 April 2006 23:52, Antonio Di Bacco wrote:
> How can I access the physical memory? Can I MMAP for example /dev/mem? Is 
> there a simpler way?

/dev/mem access is the most simple way. A cleaner solution is usually to
write your own simple character device driver for the stuff you want to
access in memory.

Depending on why you want to access memory, slram may be the right
driver, e.g. when you want to store a file system there.

	Arnd <><

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Accessing physical memory
  2006-04-08 21:52 Accessing physical memory Antonio Di Bacco
  2006-04-08 23:07 ` Arnd Bergmann
@ 2006-04-09  4:20 ` dwh
  1 sibling, 0 replies; 4+ messages in thread
From: dwh @ 2006-04-09  4:20 UTC (permalink / raw)
  To: Antonio Di Bacco; +Cc: linuxppc-embedded

Quoting Antonio Di Bacco <antonio.dibacco@aruba.it>:

> How can I access the physical memory? Can I MMAP for example /dev/mem? Is
> there a simpler way?
>

Hi Antonio,

What would you like to do? If you just want some arbitrary
page of memory, then look at the 'nopage' example in Rubini,
or ask me and I'll send you some code.

If you want a specific memory location, then you'll need
to claim and ioremap the memory, and again, I can give you
some code.

So, explain a little more and I can help.

Dave


----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: Accessing physical memory
@ 2006-04-10 12:43 Fillod Stephane
  0 siblings, 0 replies; 4+ messages in thread
From: Fillod Stephane @ 2006-04-10 12:43 UTC (permalink / raw)
  To: Antonio Di Bacco, linuxppc-embedded

Antonio Di Bacco wrote:
>How can I access the physical memory? Can I MMAP for example /dev/mem?
Is=20
>there a simpler way?

Your question is a linuxppc-embedded FAQ.
It is documented in Denx's FAQ[1], and accessible through shorter
URL[2].
For more information, please follow this thread[3] (not ppc specific
actually).

[1]
http://www.denx.de/twiki/bin/view/PPCEmbedded/DeviceDrivers#Section_Acce
ssingPeripheralsFromUserSpace
[2] http://tinyurl.com/6c7th
[3] http://lists.linuxppc.org/linuxppc-embedded/200403/msg00059.html

CIAO,
--=20
Stephane

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-04-10 12:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-08 21:52 Accessing physical memory Antonio Di Bacco
2006-04-08 23:07 ` Arnd Bergmann
2006-04-09  4:20 ` dwh
  -- strict thread matches above, loose matches on Subject: below --
2006-04-10 12:43 Fillod Stephane

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).