• 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 » DLP & MEMS » New DLP Applications & Technology Forum » error in running bus3-i2c on beagleboard
Share
DLP & MEMS
  • Forums
Options
  • Subscribe via RSS

Forums

error in running bus3-i2c on beagleboard

This question is not answered
amit agrawal
Posted by amit agrawal
on Aug 27 2010 19:46 PM
Prodigy45 points

 

Hi,

I have a pico projector v2 kit with beagleboard Rev C4. I installed the latest angstrom demo image on beagleboard rev C4 using the SD card and logged in as root. Pico projector is connected to HDMI port and shows the login screen. I have a serial port connected with tera term pro and a mouse and keyboard connected to beagleboard. I can play the included movie on pico projector using mplayer command.

However, running bus3-i2c or picodlp command gives the following error

root@beagleboard:/dev# bus3-i2c 0x1b wb4 0x08 0xf0000000
ERROR: I2cTransfer: ioctl failed: Input/output error (5)
ERROR: I2cWriteBytes failed: -1

root@beagleboard:# picodlp-control hflip 1
ERROR: I2cTransfer: ioctl failed: Input/output error (5)
ERROR: I2cWriteBytes failed: -1

How can I fix this?
thanks

Amit

Details are as follows

root@beagleboard:/dev# uname -a
Linux beagleboard 2.6.32 #3 PREEMPT Fri Aug 6 11:19:13 CEST 2010 armv7l GNU/Linux

i2c and bus3-i2c exists as shown below

root@beagleboard:/dev# ls i2c*
i2c-1  i2c-2  i2c-3

root@beagleboard:/dev# bus3-i2c
ERROR: Must specify an i2c address
Usage: i2c [options] i2c-addr cmd [cmd-arguments]

 

DLP Pico
Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Pascal DLP
    Posted by Pascal DLP
    on Aug 30 2010 08:27 AM
    Expert7585 points

    Hello Amit,

    Are you powering the BeagleBoard from the external 5V power supply? If so, try instead powering it via the OTG USB port. This is the small USB port. Disconnect the 5V power supply.

    I found that for the C4 revision BB the I2C only works when the board is powered from the OTG USB - not the 5V power supply.

    Best regards,

    Pascal

    Best regards,

    Pascal

    pico projector development kit i2c PICO 2
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • amit agrawal
    Posted by amit agrawal
    on Aug 30 2010 08:48 AM
    Prodigy45 points

    Hi Pascal,

    I am using the 5v power supply. However, I found that when I try to power it using OTG, the angstrom demo image does not load. In between, it gives an error (here is the copy of tera term pro)

    21.125762] [<c004c2e4>] (omap3_pm_idle+0x4c/0x50) from [<c0625fd0>] (0xc0625fd0)
    [   21.133270] Code: e3530003 13a02000 05963078 05933018 (05d33014)
    [   21.139465] ---[ end trace 8ab6a661b2f156b8 ]---
    [   21.144134] Kernel panic - not syncing: Fatal exception in interrupt

    If I power it using 5V supply, everything goes smoothly and the login screen comes up. 

    I have a windows xp machine and I am connecting a USB to mini-usb cable from my PC to beagleboard OTG port to power it up

    Amit

     

     

     

     

     

     

     

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Pascal DLP
    Posted by Pascal DLP
    on Aug 31 2010 09:35 AM
    Expert7585 points

    Amit,

    I have not tried the latest Angstrom Demo, so I can't say why it is giving a kernel panic when powered from the OTG USB port. TI did not develop the Angstrom Demo, and can not support it. I suggest that you post the kernel error issue to the Angstrom support forum and see if anyone there can give some help.

    However, I have confirmed several ways that the i2c-bus3 commands do not work if the BB is powered by the 5V supply. The i2c-bus3 commands do work if the BB is powered by the OTG USB port. The i2c-bus3 commands also require root privileges, so you must be "root" or use the "sudo" command if you are logged in as a normal user. Angstrom allows you to log in as "root", but some other Linux distributions restrict login as root, requiring a user login.

    I am using an Ubuntu installation on the BB, which is working. But, it is not an off-the-shelf installation. It required quite a bit of tweaking.

    I will continue to look into this - but meanwhile it would be good to get some help from the Angstrom users.

    Pascal

    Best regards,

    Pascal

    pico projector development kit i2c PICO 2
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Jason Kridner
    Posted by Jason Kridner
    on Aug 31 2010 13:48 PM
    Intellectual1445 points

    Pascal,

    There is no good reason that I2C should only work when powered via OTG USB per the BeagleBoard itself.  Perhaps you can share more information on your configuration?  I suspect you might have some sort of grounding issue here where the ground for the Pico Projector and the ground for the BeagleBoard aren't the same.  They need to share good grounding for I2C to work properly.

    Regards,
    Jason
    (co-founder of BeagleBoard.org)

    beagleboard power pico projector
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Jason Kridner
    Posted by Jason Kridner
    on Aug 31 2010 14:20 PM
    Intellectual1445 points

    amit agrawal

    Hi Pascal,

    I am using the 5v power supply. However, I found that when I try to power it using OTG, the angstrom demo image does not load. In between, it gives an error (here is the copy of tera term pro)

    21.125762] [<c004c2e4>] (omap3_pm_idle+0x4c/0x50) from [<c0625fd0>] (0xc0625fd0)
    [   21.133270] Code: e3530003 13a02000 05963078 05933018 (05d33014)
    [   21.139465] ---[ end trace 8ab6a661b2f156b8 ]---
    [   21.144134] Kernel panic - not syncing: Fatal exception in interrupt

    If I power it using 5V supply, everything goes smoothly and the login screen comes up. 

    I have a windows xp machine and I am connecting a USB to mini-usb cable from my PC to beagleboard OTG port to power it up

    Amit

    You need to use a Y-cable when powering the BeagleBoard from a USB port, per the BBSRM_latest.pdf document.  One of the Angstrom maintainers (Koen Kooi, currently also doing some contract work for TI) has also provided a kernel build that lowers the power consumption to make it more likely to work off of OTG power.  It also compiles in the Gadget Ethernet driver to avoid producing a kernel fault due to an unplugged interrupt handler when the PC tries to start talking to the BeagleBoard.

    Look in http://www.angstrom-distribution.org/demo/beagleboard/ for uImage-2.6.32-r88+gitra6bad4464f985fdd3bed72e1b82dcbfc004d7869-beagleboard.multi-config-cpuidle-gether.bin

    You can read a bit more about this on the BeagleBoard.org discussion group list as it relates to enabling cpuidle and also on the IRC logs.  We were also discussing this on the IRC channel today.

    You might also find http://www.flickr.com/photos/koenkooi/4941801167/ interesting as it is a configuration that avoids grounding problems.

     

     

    pico projector development kit beagleboard power otg angstrom distribution usb
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • amit agrawal
    Posted by amit agrawal
    on Aug 31 2010 20:25 PM
    Prodigy45 points

     

    Hi Pascal,

    I also tried ubuntu lucid 10.04 on the beagleboard. Unfortunately it does not have bus3-i2c capability and the build does not have gcc for me to compile i2c-tools on the beagleboard.

    Is it possible for me to try your ubuntu image if you can upload it somewhere?

    thanks

    Amit

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • amit agrawal
    Posted by amit agrawal
    on Sep 01 2010 11:08 AM
    Prodigy45 points

     

    Hi,

    I got the I2C working with the power via OTG!!. But it does NOT work with the 5v supply. Now I can run picodlp-control and bus3-i2c commands. Jason, you might want to look into it further,

    I am running the latest Angstrom demo image on beagleboard C4 using a SD card.

    Amit

     

     

     

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Chethan Pandarinath
    Posted by Chethan Pandarinath
    on Dec 01 2010 15:05 PM
    Prodigy20 points

    Amit, Pascal, Jason and others, I just wanted to confirm that my beagleboard showed the same behavior -

     

    when I was power the board using the external 5V supply, the bus3-i2c commands failed:

    ERROR: I2cTransfer: ioctl failed: Input/output error (5)

    ERROR: I2cReadByte failed: -1

     

    However, the commands do work when I power using the USB-OTG port and a Y-cable.

     

    So this thread was very helpful for me. Thanks.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • tian ouman
    Posted by tian ouman
    on Mar 15 2011 09:21 AM
    Prodigy60 points

    hi,

    where can I get  picodlp-control and bus3-i2c commands?

    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