Failed to open /dev/mem from Anroid opencore framework

by Ling Wan » Fri, 07 Aug 2009 02:36:50 GMT


Sponsored Links
 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!




      
--~--~---------~--~----~------------~-------~--~----~

-~----------~----~----~----~------~----~------~--~---



Other Threads

1. Mohon bantuan suhu2

Dear rr,

Saya menggunakan desire dan titanium backup untuk membackup app saya, pada 
waktu saya mengganti rom dari auraxke MIUI dan menginstall ulang app saya 
melalui titanium backup dengan memilih option restore app+data, masalah muncul 
ketika saya mau melanjutkan angry birds ternyata savean saya terhapu sehingga 
saya harus mulai lg dr awal, nah skarang saya ingin ganti ROM lg gmn yah 
caranya biar save an bbrp game saya tidak hilang?? Mohon bantuannya thx

Regards,

Willy
Sent from my BlackBerry smartphone from Sinyal Bagus XL, Nyambung Teruuusss...!

-- 
===============
"Indonesian Android Community [id-android]"

PING'S mobile
Email: sa...@pings-mobile.com  Ph. (021) 96087100
---------------------
Yopie Ratjoen
Email: yo...@ratjoen.com  Ph. 08977726681
--------------------
Gila original
Email: i...@gilaoriginal.com  Ph. (031) 91555898
--------------------

Aturan Jual/Kloteran ID-Android  http://goo.gl/azW7

2. ga ada aplikasi market

halo semua, salam kenal..
saya baru beli LG503 os nya froyo..
tapi baru nyadar ternyata belum ada aplikasi "market" di handsetnya.
dimana saya bisa download dan instal?
mohon pencerahannya, soalnya masih bener2 baru nih :)
terima kasih.

Arba

-- 
===============
"Indonesian Android Community [id-android]"

PING'S mobile
Email: sa...@pings-mobile.com  Ph. (021) 96087100
---------------------
Yopie Ratjoen
Email: yo...@ratjoen.com  Ph. 08977726681
--------------------
Gila original
Email: i...@gilaoriginal.com  Ph. (031) 91555898
--------------------

Aturan Jual/Kloteran ID-Android  http://goo.gl/azW7

3. Ketahanan batt Rodri 1.8.1 di N

4. android installable

5. Looking for ListAdaptor pattern

6. how do i call a make file inside Android.mk

7. Camera image lost when mobile turn to landscape