Hi,
We try to open "/dev/mem" from user space, within the opencore multimedia
framework. The purpose is to allow access to hardware register of a
peripheral, as well as map chunks of DMA safe memory between kernel and user
space.
int fd = open("/dev/mem", O_RDONLY);
While we can open and use "/dev/mem" under busybox (2.6.27 kernel and we have
root permission), we got file descriptor -1 , when it's done from the opencore
framework, where device driver is supposed to be added. We tried changing 777
on "/dev/mem", no improvement.
What is the likely reason for that ? Is this due to Android's security
restriction or some other reason? (We didn't enable SELinux option)
And how do we solve it, or any alternative on sharing buffer between user /
kernel space ? Some pointers / links would be great.
Thanks!
--~--~---------~--~----~------------~-------~--~----~
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting
-~----------~----~----~----~------~----~------~--~---