How do I access nvRAM from user space?

Bruce_Leonard at selinc.com Bruce_Leonard at selinc.com
Fri Sep 26 04:13:43 EST 2008


> 
> Thanks for the reply.  So if my nvSRAM device is located at 0xb0000000 
in 
> physical memory, what would the mmap() call look like?  Also, do I need 
to 
> have a device tree entry for the kernel to know about the memory?  I can 

> access the device in uboot so I know it works, but I can't figure out 
the 
> mmap to get it from linux
> 

Never mind.  I figured out how to use mmap.  It's all in the parameter 
'off' not 'addr' :).  Thanks to everyone who responded with help.

Bruce


More information about the Linuxppc-embedded mailing list