• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Embedded Software » Linux » Linux forum » EDMA Error: init: Failed to open /dev/mem: 'Operation not permitted'
Share
Linux
  • Forum
Options
  • Subscribe via RSS

Forums

EDMA Error: init: Failed to open /dev/mem: 'Operation not permitted'

This question is answered
Ashwani
Posted by Ashwani
on Feb 03 2011 03:01 AM
Expert1365 points

hi all ,

I am trying to play a mp4 media file using OMX hardware plugins.we got
some problem ,the video is not playing .

I am posting the few lines of CE debug messages and attaching complete CE debug messages.

I//system/bin/mediaserver( 1707): @2,083,678us: [+0 T:0x00083d18 S:0x406174ac] ti.sdo.fc.edma3 - EDMA3_getResourceManager> Enter (alg=0x4061a000, scratchId=0)
I//system/bin/mediaserver( 1707): @2,084,788us: [+2 T:0x00083d18 S:0x406174ac] ti.sdo.fc.edma3 - EDMA3_getResourceManager> First time handle is requested, create Resource Manager object
I//system/bin/mediaserver( 1707): @2,085,026us: [+0 T:0x00083d18 S:0x40617484] ti.sdo.fc.edma3 - EDMA3_createResourceManagerObject> Enter


I//system/bin/mediaserver( 1707): EDMA Error: init: Failed to open /dev/mem: 'Operation not permitted'


I//system/bin/mediaserver( 1707): @2,096,554us: [+7 T:0x00083d18 S:0x40617484] ti.sdo.fc.edma3 - EDMA3_createResourceManagerObject> Failed to initialize ti.sdo.fc.linuxutils.edma module.
I//system/bin/mediaserver( 1707): @2,096,837us: [+7 T:0x00083d18 S:0x406174ac] ti.sdo.fc.edma3 - EDMA3_getResourceManager> Resource Manager object could not be created.
I//system/bin/mediaserver( 1707): @2,106,335us: [+7 T:0x00083d18 S:0x406174d4] ti.sdo.fc.ires.edma3Chan - IRESMAN_EDMA3CHAN_getHandles> Error obtaining Low level Resource Manager Handle.
I//system/bin/mediaserver( 1707): @2,106,578us: [+0 T:0x00083d18 S:0x406174d4] ti.sdo.fc.ires.edma3Chan - IRESMAN_EDMA3CHAN_getHandles> Exit (handle=NULL, status=IRES_ENORESOURCE.

 

able to play the mp4 file using Gstreamer pipelines under the same.

can anyone help me whats going wrong incase of Openmax hardware
plugins ?any help is appreciated.

-Regards.

 Ashwani

Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Robert Tivy
    Posted by Robert Tivy
    on Feb 03 2011 11:54 AM
    Verified Answer
    Verified by Ashwani
    Genius11090 points

    The simplest reason would be that you don't have the correct permissions for /dev/mem.  Are you running the app as "root"?  It could be that you are not and only "root" has the necessary permissions.

    Regards,

    - Rob

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Ashwani
    Posted by Ashwani
    on Feb 03 2011 23:25 PM
    Expert1365 points

    I am working on android platform. I have run the application as root user(#su root). I have given full permission to /dev/mem but getting the same messages.

    Any suggestion would be very appreciated.

    -Regards.

     Ashwani

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Ashwani
    Posted by Ashwani
    on Feb 04 2011 03:48 AM
    Expert1365 points

    After changing the permission, Its working.

     

    Thanks

    -Regards.

     Ashwani

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Xiaogang Li
    Posted by Xiaogang Li
    on Feb 21 2011 00:42 AM
    Prodigy20 points

    What `permission' you've changed, could you give me some tips?

    Thanks.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Ashwani
    Posted by Ashwani
    on Feb 21 2011 07:14 AM
    Expert1365 points

    I have run the application as root user(#su root) and given full permission to /dev/mem.

    -Regards.

     Ashwani

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Xiaogang Li
    Posted by Xiaogang Li
    on Feb 21 2011 07:24 AM
    Prodigy20 points

    Got it.

    And I figured out my question:

    Early kernel let userspace utils read&write physical memroy via mmap and /dev/mem.

    but it changed to be strict, if sudo cat /dev/mem > mem, only 1M.

    CONFIG_X86_PAT and CONFIG_STRICT_DEVMEM are defaultly set to `y'.

    Get to `n' then recompile, works again.

     

    Regards,

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Rex Su
    Posted by Rex Su
    on Apr 15 2012 21:13 PM
    Prodigy10 points

    Hi,

    I am facing the same issue.  I have checked my config file, the CONFIG_STRICT_DEVMEM is set to n.  But I still have no luck getting an application to work with /dev/mem

    I wrote a user space C native program which can access /dev/mem, but when I put the same code into JNI it says " Failed to open /dev/mem: 'Operation not permitted'"

    Since there are at least two members who got this to work, would someone explain how you managed to run an application as root to get /dev/mem working?

    Does it require modifying the application JAVA source code to gain root permissions?  Thanks

    Linux Kernel OMAP Android
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use