• 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 » OMAP L138 problem with multiple usb serial converters on same 2.0 USB port
Share
Linux
  • Forum
Options
  • Subscribe via RSS

Forums

OMAP L138 problem with multiple usb serial converters on same 2.0 USB port

This question is not answered
Aníbal Pinto
Posted by Aníbal Pinto
on Jun 26 2012 04:04 AM
Intellectual700 points

Hi, we are using an board with an OMAP L138 with a exar xr21v141x [1], an usb to two serial port converter. The exar have drivers [2] for linux but aren't on mainline. We are having problems when using both ports at same time, the driver only receive the information from one port after the other was closed.

All testes were executed on a linux 3.0.20 from mainline with RT and linux-davinci patches applied.

On musb_core.c there are some information about problems with multi point devices. The behavior that we are seeing is due to this ? Using a different approach, with a hub and two USB to serial converter from Prolific Technology Inc that uses the pl2303 driver, I get the same error.

When opening one of the devices I can communicate and everything work fine.

When trying to open a second one, with the first connected, I receive this error:

    pl2303 ttyUSB1: pl2303_open - failed submitting interrupt urb, error -28

This setup works on i386, so can this be a problem from MUSB ?

Any way of resolve this, being able to receive data from both ports when both are open ? We are having problems compiling the latest release of linux-davinci kernel with usb support, even usb 1.0 interface don't work on OMAP L138 evm. Any info about this ?

Thanks.

[1] - http://www.exar.com/connectivity/uart-and-bridging-solutions/usb-uarts/xr21v1412
[2] - http://www.exar.com/common/content/document.ashx?id=20835&languageid=1033

Regards,
Aníbal

USB OMAP L138 MUSB
Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Aníbal Pinto
    Posted by Aníbal Pinto
    on Jul 27 2012 10:25 AM
    Intellectual700 points
    OMAP EVM.jpg

    Carlos,

    Can you try a hub with 2x one port serial-to-usb converter ? It gives the same error ...

    I have attached an image to be clear the setup that we are using.

    On pastebin [1] is the output from lsusb -t and lsusb -v.

    [1] - http://pastebin.com/1q9PPjjW

    Thanks

    Aníbal

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Aníbal Pinto
    Posted by Aníbal Pinto
    on Jul 31 2012 12:31 PM
    Intellectual700 points

    Carlos,

    you were able to  get the same behavior ?

    Thanks.

    Regards,

    Aníbal

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Carlos Hernandez
    Posted by Carlos Hernandez
    on Aug 02 2012 15:12 PM
    Intellectual1115 points

    Anibal,

    I tried with 2 usb serial adapters and they are detected but apparently a new serial port node is not created because the kernel does not have the drivers for them.

    root@am180x-evm:~# lsusb -t
    2-1.1:1.0: No such file or directory
    2-1.2:1.0: No such file or directory
    /: Bus 02.Port 1: Dev 1, class="root_hub", Driver=musb-hdrc/1p, 480M
    |__ Port 1: Dev 2, If 0, class="hub", Driver=hub/4p, 480M
    |__ Port 1: Dev 5, If 0, class="vend"., Driver=, 12M
    |__ Port 2: Dev 6, If 0, class="vend"., Driver=, 12M
    /: Bus 01.Port 1: Dev 1, class="root_hub", Driver=ohci/1p, 12M
    root@am180x-evm:~# lsusb
    Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 002 Device 002: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
    Bus 002 Device 005: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port
    Bus 002 Device 006: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port
    root@am180x-evm:~#

    root@am180x-evm:~# find /lib/modules/3.3.0/ -name pl2303

    I will try to build another image with pl2303 support.

    Carlos

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Carlos Hernandez
    Posted by Carlos Hernandez
    on Aug 02 2012 16:18 PM
    Intellectual1115 points

    Anibal,

    I was able to reproduce the problem. I will pass the information to the kernel dev team.

    See logs and procedure below:

    am180x-evm login: root
    root@am180x-evm:~# lsusb
    Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    root@am180x-evm:~#
    root@am180x-evm:~# insmod /lib/modules/3.3.0/kernel/drivers/usb/gadget/g_ether.k
    o
    gadget: using random self ethernet address
    gadget: using random host ethernet address
    usb0: MAC c2:d8:0a:bd:43:c3
    usb0: HOST MAC c2:41:be:6b:a1:bb
    gadget: Ethernet Gadget, version: Memorial Day 2008
    gadget: g_ether ready
    musb-hdrc musb-hdrc: MUSB HDRC host driver
    musb-hdrc musb-hdrc: new USB bus registered, assigned bus number 2
    hub 2-0:1.0: USB hub found
    hub 2-0:1.0: 1 port detected
    root@am180x-evm:~# usb 2-1: new high-speed USB device number 2 using musb-hdrc
    ADDRCONF(NETDEV_UP): usb0: link is not ready
    hub 2-1:1.0: USB hub found
    hub 2-1:1.0: 4 ports detected
    usb 2-1.1: new full-speed USB device number 3 using musb-hdrc
    pl2303 2-1.1:1.0: pl2303 converter detected
    usb 2-1.1: pl2303 converter now attached to ttyUSB0
    usb 2-1.2: new full-speed USB device number 4 using musb-hdrc
    pl2303 2-1.2:1.0: pl2303 converter detected
    usb 2-1.2: pl2303 converter now attached to ttyUSB1

    root@am180x-evm:~# lsusb -t
    /: Bus 02.Port 1: Dev 1, class="root_hub", Driver=musb-hdrc/1p, 480M
    |__ Port 1: Dev 2, If 0, class="hub", Driver=hub/4p, 480M
    |__ Port 1: Dev 3, If 0, class="vend"., Driver=pl2303, 12M
    |__ Port 2: Dev 4, If 0, class="vend"., Driver=pl2303, 12M
    /: Bus 01.Port 1: Dev 1, class="root_hub", Driver=ohci/1p, 12M
    root@am180x-evm:~#

    Open telnet session and open microcom on /dev/ttyUSB0:

    root@am180x-evm:~# microcom -s 115200 /dev/ttyUSB0

    Open another telnet session and open microcom on /dev/ttyUSB1:

    root@am180x-evm:~# microcom -s 115200 /dev/ttyUSB1
    microcom: can't open '/dev/ttyUSB1': Input/output error
    root@am180x-evm:~#

    Also as you pointed out the following message is shown on the console:

    root@am180x-evm:~# pl2303 ttyUSB1: pl2303_open - failed submitting interrupt urb, error -28

    Regards,

    Carlos 

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Aníbal Pinto
    Posted by Aníbal Pinto
    on Aug 03 2012 03:47 AM
    Intellectual700 points

    Carlos,

    its the same error that I have.

    If you need any help testing or validate the modifications, just ask.

    Thanks.

    Regards,

    Aníbal

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Aníbal Pinto
    Posted by Aníbal Pinto
    on Aug 13 2012 09:14 AM
    Intellectual700 points

    Carlos,

    any update ? Anyone have an idea why this happen ? It there a solution or a quick fix for this ?

    Thanks.

    Regards,

    Aníbal

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Marcos Lopez Cuevas
    Posted by Marcos Lopez Cuevas
    on Nov 05 2012 12:06 PM
    Intellectual2515 points

    hi team,

    do we have any update regarding this issue, we need support asap since it has a deep impact on end customers, thanks a lot.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Ravi B
    Posted by Ravi B
    on Jan 17 2013 00:24 AM
    Expert3710 points

    Hi

    Please find the interrupt ep scheduling patch 3.x kernel and available at arago link at http://arago-project.org/git/projects/?p=linux-davinci.git;a=commit;h=2432b15edbd0ee4a7f274a215698a408c1b6522f .  This feature will help to connect more interrupt devices on musb controller which has limited number of eps.

    Make sure to enable "CONFIG_MUSB_SCHEDULE_INTR_EP" feature through Menuconfig.

    Menuconfig->"Device Drivers"->"USB Support"

    Regards

    Ravi B

    If my reply answers your question then please click on the green button "Verify Answer"

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Ravi B
    Posted by Ravi B
    on Jan 17 2013 00:26 AM
    Expert3710 points

    Hi

    Hope this patch will resolve the issue you are observing.

    Regards

    Ravi B

    If my reply answers your question then please click on the green button "Verify Answer"

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Aníbal Pinto
    Posted by Aníbal Pinto
    on Jan 18 2013 08:04 AM
    Intellectual700 points

    Hi,

    I have some good news and some bad news.


    Good news:

    My previous test of connecting a hub to the OMAP L138 EVM and then connecting 2 usb2serial to the hub did not return any error and worked as expected.
    I also tried the same test with DMA using CPP4.1 and in PIO mode. Both tests were succesful.


    Bad news:

    When I did the test using DMA CPP4.1, althought it worked as expected, when I remove the device it is not properly disconnected, and no message appear on DMESG. After that, the usb stops working until I reboot the EVM. This problem does not occur in PIO mode.

    I tried a different test were I plugged a SMSC lan9512 EVM in PIO mode, and I get this error:
    root@arago:~# usb 2-1: new high-speed USB device number 2 using musb-hdrc
    hub 2-1:1.0: USB hub found
    hub 2-1:1.0: config failed, can't read hub descriptor (err -22)

    and then the usb stops working.

    If I plug the SMSC lan9512 EVM with USB in DMA CPP4.1, I get this error:
    root@arago:~# usb 2-1: new high-speed USB device number 2 using musb-hdrc
    usb 2-1: device not accepting address 2, error -71
    usb 2-1: new high-speed USB device number 3 using musb-hdrc
    usb 2-1: device not accepting address 3, error -71
    usb 2-1: new high-speed USB device number 4 using musb-hdrc
    usb 2-1: device descriptor read/8, error -32
    usb 2-1: can't set config #1, error -71

    and then the usb stops working, like when I use PIO mode.

    Please note that the SMSC lan9512 has driver support on the kernel, I just had to enable it, like I did for the usb to serial converters.

    Regards,
    Aníbal

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Beatriz Soriano Saura
    Posted by Beatriz Soriano Saura
    on Apr 04 2013 05:18 AM
    Prodigy70 points

    Hello team, could you please provide some feedback about this post? It is pending for almost 2 months... Thanks, Beatriz.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
12
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