From: "yanjun.luo" <yanjun.luo@gmail.com>
To: "Bruce_Leonard@selinc.com" <Bruce_Leonard@selinc.com>,
"linuxppc-embedded@ozlabs.org" <linuxppc-embedded@ozlabs.org>
Subject: Re: How do I access nvRAM from user space?
Date: Thu, 25 Sep 2008 13:45:06 +0800 [thread overview]
Message-ID: <200809251345052340726@gmail.com> (raw)
In-Reply-To: OFFC64870C.57753273-ON882574CF.001088E7-882574CF.001228E4@selinc.com
[-- Attachment #1: Type: text/plain, Size: 1010 bytes --]
Hi Bruce,
You can use mmap to access NVRAM from user space, but you should config
local bus first, like width, speed etc.
Regards,
Yanjun Luo.
发件人: Bruce_Leonard@selinc.com
发送时间: 2008-09-25 11:44:56
收件人: linuxppc-embedded@ozlabs.org
抄送:
主题: How do I access nvRAM from user space?
Sorry for the dumb question, I just can figure out the right google search
to find what I'm trying to do. I'm running 2.6.27-rc4 on an mpc8347 with
a 32KiB nvSRAM (Cypress CY14B256L) on the local bus. We just want to be
able to access this memory from user space seperately from "main" memory.
We've got a process that needs to be able to remember info through power
cycles. Can anyone point me to an article or some code snippet that does
something like this so I can sink my teeth into it?
Bruce
_______________________________________________
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded
[-- Attachment #2: Type: text/html, Size: 4006 bytes --]
next prev parent reply other threads:[~2008-09-25 5:43 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-25 3:18 How do I access nvRAM from user space? Bruce_Leonard
2008-09-25 5:45 ` yanjun.luo [this message]
2008-09-25 15:53 ` David Hawkins
2008-09-25 17:18 ` Bruce_Leonard
2008-09-25 18:13 ` Bruce_Leonard
2008-09-25 18:14 ` David Hawkins
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200809251345052340726@gmail.com \
--to=yanjun.luo@gmail.com \
--cc=Bruce_Leonard@selinc.com \
--cc=linuxppc-embedded@ozlabs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).