• 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 » DM365: Unable to read from /dev/video0 (kernel 2.6.37)
Share
Linux
  • Forum
Options
  • Subscribe via RSS

Forums

DM365: Unable to read from /dev/video0 (kernel 2.6.37)

This question is not answered
James Brown
Posted by James Brown
on Jul 11 2011 09:28 AM
Prodigy40 points

hello everyone,

I've just finished building a FileSystem+Kernel Image from arago, with kernel linux-davinci-2.6.37-psp03.21.00.04.sdk-r57.

everything seems to be working, aside from one problem: v4l2 isn't working

 

every time I try to run dmai/ce example / gstreamer pipeline / manually read from /dev/video0 I'm getting the following error:

invalid media connection to video node
invalid external subdev

 

My bootargs are:

console=ttyS0,115200n8 noinitrd rw ip=192.168.1.2 root=/dev/nfs nfsroot=192.168.1.1:/home/user/workdir365/rootfs,nolock mem=60M video=davincifb:vid0=OFF:vid1=OFF:osd0=720x576x16,4050K dm365_imp.oper_mode=0 davinci_capture.device_type=1 davinci_display.cont2_bufsize=6291456 vpfe_capture.bufsize=829440davinci_enc_mngr.ch0_mode=pal vpfe_capture.interface=0

 

dmesg after boot:

5875.log2.txt

 

I've looked in the kernel sources and it looks like the failure occurs in vpfe_video.c, but I have no idea why any function there would fail since tvp5146 was registered OK

 

any help would be great!

Thanks,

         James

Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Nagabhushana
    Posted by Nagabhushana
    on Jul 12 2011 01:03 AM
    Expert4685 points

    James,

    VPFE Capture driver you are using is based on media controller framework. I believe gstreamer has not incorporated necessary changes needed yet because of the advanced framework. So, it is failing. I suggest you to check these sample applications( SDK also should contain them) for the driver you are using - http://arago-project.org/git/projects/?p=examples-davinci.git;a=shortlog;h=refs/heads/03.21.00.03

     

    Regards,

    Nagabhushana


    Does this help in finding the answer? If not, please provide more info. If it helps, please click the Verify Answer button below.

     

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • James Brown
    Posted by James Brown
    on Jul 12 2011 02:05 AM
    Prodigy40 points

    Hello Nagabhushana,

     

    I've tried running the vpif examples from the git you provided (compiled them against my Arago kernel), and I got the same error messages

     

    I also provide the kernel config (this is the default, I haven't touched it, but perhaps something is missing):

    6232.conf.txt.

     

    Any ideas?

     

    Best regards,

            James

     

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Nagabhushana
    Posted by Nagabhushana
    on Jul 12 2011 02:23 AM
    Expert4685 points

    You should use applications under mc/dm365 as they are intended for dm365. VPIF applications are only for omapl138 platform.

    Regards,

    Nagabhushana


    Does this help in finding the answer? If not, please provide more info. If it helps, please click the Verify Answer button below.

     

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • James Brown
    Posted by James Brown
    on Jul 12 2011 06:42 AM
    Prodigy40 points

    The test applications are indeed working, so this is a gstreamer-specific problem.

    Is there an ETA until the needed changes will make it into gstreamer / instructions how to insert the changes myself?

     

     

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Nagabhushana
    Posted by Nagabhushana
    on Jul 12 2011 06:53 AM
    Expert4685 points

    Nice to hear that applications are working for you.

    Media-controller framework is not part of linux up-stream. Efforts are ON to make the same possible. So, it will take some time. Regarding making gstreamer changes yourself, http://en.wikipedia.org/wiki/GStreamer might help.

    Regards,

    Nagabhushana


    Does this help in finding the answer? If not, please provide more info. If it helps, please click the Verify Answer button below.

     

    PSP
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Pete Eberlein
    Posted by Pete Eberlein
    on Apr 06 2012 15:40 PM
    Intellectual280 points

    I'm seeing the message" invalid media connection to video node" and "invalid external subdev" on 2.6.37 kernel also.  I think this is due to the mediabus api added to that version of the kernel.  It may be necessary to set up the /dev/media0 device first before /dev/video0 can be used.  For more info, see: http://processors.wiki.ti.com/index.php?oldid=56675

    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