This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

how can I use usb mouse in a GUI application on OMAP35x EVM Linux sdk 1.0.2?

Other Parts Discussed in Thread: OMAP3530

Hi everyone,

I was developing GUI applications with Qt on OMAP 35x EVM(Mistral). I have a USB falsh drive, mouse and keyboard connected to the board via a USB hub.

I booted the newest Linux IMAGE from sdk1.0.2. I can mount the USB flash drive and access its content.

 I run a Qt demo program on the usb FLASH drive and the program was able to display its main windows on LCD touchscreen, but when I click on the touchscreen it did not have any response. 

I thought something wrong with the touch screen driver, so I switched the display to DVI on my LCD monitor and hope I can use external USB mouse connected to the EVM board via a USB hub.

I run the program again, the program windows shows up on my LCD monitor, but still not way to move the mouse cursor.

does anybody know what could go wrong with my program?

 

 

  • btw, I did some more tests, it looks like before I run my program, I was able to turn on/off the "num Lock" light on the keyboard, while when the program is runnig I can not do that.

    it seems like the keyboard is disconnected or not recognized by the program after the program starts running.

    any thoughts?

    Thanks!

  • Hi,

    I am trying to mount an USB pen drive on Mistral OMAP3530. I have connected a USB hub(BELKIN) to the board.  The connections are like : mini-A ti the board and the other mini-B port to the hub, USB mass storage device to the hub. The hub is a self powered one. I have enabled the USB host option while building the kernel. But when I boot up the kernel, I get lines of messages like

    musb_stage0_irq 699: CONNECT (a_host) devctl 5d
    musb_stage0_irq 638: VBUS_ERROR in a_host (91, <VBusValid), retry #1, port1 00130503
    hub 1-0:1.0: Cannot enable port 1.  Maybe the USB cable is bad?
    usb 1-1: new high speed USB device using musb_hdrc and address 6
    musb_stage0_irq 699: CONNECT (a_host) devctl 5d
    prcm_set_clock_domain_state : Pre-condition not met. Domain : 0x7 FCLK Mask : 0x2 ICLK Mask : 0x0
    FATAL ERROR: Unable to Change level for resource dss to 0
    musb_stage0_irq 638: VBUS_ERROR in a_host (91, <VBusValid), retry #1, port1 00130511
    musb_stage0_irq 699: CONNECT (a_host) devctl 5d
    musb_stage0_irq 638: VBUS_ERROR in a_host (91, <VBusValid), retry #1, port1 00130503
    hub 1-0:1.0: Cannot enable port 1.  Maybe the USB cable is bad?
    musb_stage0_irq 699: CONNECT (a_host) devctl 5d
    musb_stage0_irq 638: VBUS_ERROR in a_host (91, <VBusValid), retry #1, port1 00130503
    hub 1-0:1.0: Cannot enable port 1.  Maybe the USB cable is bad?
    musb_stage0_irq 699: CONNECT (a_host) devctl 5d
    musb_stage0_irq 638: VBUS_ERROR in a_host (91, <VBusValid), retry #1, port1 00130503
    hub 1-0:1.0: Cannot enable port 1.  Maybe the USB cable is bad?
    musb_stage0_irq 699: CONNECT (a_host) devctl 5d
    musb_stage0_irq 638: VBUS_ERROR in a_host (91, <VBusValid), retry #1, port1 00130503
    hub 1-0:1.0: Cannot enable port 1.  Maybe the USB cable is bad?
    usb 1-1: new high speed USB device using musb_hdrc and address 10
    musb_stage0_irq 699: CONNECT (a_host) devctl 5d
    musb_stage0_irq 638: VBUS_ERROR in a_host (91, <VBusValid), retry #1, port1 00130511
    musb_stage0_irq 699: CONNECT (a_host) devctl 5d
    musb_stage0_irq 638: VBUS_ERROR in a_host (91, <VBusValid), retry #1, port1 00130503
    hub 1-0:1.0: Cannot enable port 1.  Maybe the USB cable is bad?
    musb_stage0_irq 699: CONNECT (a_host) devctl 5d
    musb_stage0_irq 638: VBUS_ERROR in a_host (91, <VBusValid), retry #1, port1 00130503
    hub 1-0:1.0: Cannot enable port 1.  Maybe the USB cable is bad?
    musb_stage0_irq 699: CONNECT (a_host) devctl 5d
    musb_stage0_irq 638: VBUS_ERROR in a_host (91, <VBusValid), retry #1, port1 00130503
    hub 1-0:1.0: Cannot enable port 1.  Maybe the USB cable is bad?
    musb_stage0_irq 699: CONNECT (a_host) devctl 5d
    musb_stage0_irq 638: VBUS_ERROR in a_host (91, <VBusValid), retry #1, port1 00130503
    hub 1-0:1.0: Cannot enable port 1.  Maybe the USB cable is bad?
    usb 1-1: new high speed USB device using musb_hdrc and address 14
    musb_stage0_irq 699: CONNECT (a_host) devctl 5d
    musb_stage0_irq 638: VBUS_ERROR in a_host (91, <VBusValid), retry #1, port1 00130511
    musb_stage0_irq 699: CONNECT (a_host) devctl 5d
    musb_stage0_irq 638: VBUS_ERROR in a_host (91, <VBusValid), retry #1, port1 00130503
    hub 1-0:1.0: Cannot enable port 1.  Maybe the USB cable is bad?
    musb_stage0_irq 699: CONNECT (a_host) devctl 5d
    musb_stage0_irq 638: VBUS_ERROR in a_host (91, <VBusValid), retry #1, port1 00130503
    hub 1-0:1.0: Cannot enable port 1.  Maybe the USB cable is bad?
    musb_stage0_irq 699: CONNECT (a_host) devctl 5d
    musb_stage0_irq 638: VBUS_ERROR in a_host (91, <VBusValid), retry #1, port1 00130503
    hub 1-0:1.0: Cannot enable port 1.  Maybe the USB cable is bad?
    musb_stage0_irq 699: CONNECT (a_host) devctl 5d
    musb_stage0_irq 638: VBUS_ERROR in a_host (91, <VBusValid), retry #1, port1 00130503
    hub 1-0:1.0: Cannot enable port 1.  Maybe the USB cable is bad?
    usb 1-1: new high speed USB device using musb_hdrc and address 18
    musb_stage0_irq 699: CONNECT (a_host) devctl 5d
    musb_stage0_irq 638: VBUS_ERROR in a_host (91, <VBusValid), retry #1, port1 00130511
    musb_stage0_irq 699: CONNECT (a_host) devctl 5d
    musb_stage0_irq 638: VBUS_ERROR in a_host (91, <VBusValid), retry #1, port1 00130503
    hub 1-0:1.0: Cannot enable port 1.  Maybe the USB cable is bad?
    musb_stage0_irq 699: CONNECT (a_host) devctl 5d
    musb_stage0_irq 638: VBUS_ERROR in a_host (91, <VBusValid), retry #1, port1 00130503
    hub 1-0:1.0: Cannot enable port 1.  Maybe the USB cable is bad?
    musb_stage0_irq 699: CONNECT (a_host) devctl 5d
    musb_stage0_irq 638: VBUS_ERROR in a_host (91, <VBusValid), retry #1, port1 00130503
    hub 1-0:1.0: Cannot enable port 1.  Maybe the USB cable is bad?
    musb_stage0_irq 699: CONNECT (a_host) devctl 5d
    musb_stage0_irq 638: VBUS_ERROR in a_host (91, <VBusValid), retry #1, port1 00130503
    hub 1-0:1.0: Cannot enable port 1.  Maybe the USB cable is bad?
    usb 1-1: new high speed USB device using musb_hdrc and address 22
    musb_stage0_irq 699: CONNECT (a_host) devctl 5d
    musb_stage0_irq 638: VBUS_ERROR in a_host (91, <VBusValid), retry #1, port1 00130511
    musb_stage0_irq 699: CONNECT (a_host) devctl 5d
    musb_stage0_irq 638: VBUS_ERROR in a_host (91, <VBusValid), retry #1, port1 00130503
    hub 1-0:1.0: Cannot enable port 1.  Maybe the USB cable is bad?
    musb_stage0_irq 699: CONNECT (a_host) devctl 5d
    musb_stage0_irq 638: VBUS_ERROR in a_host (91, <VBusValid), retry #1, port1 00130503
    hub 1-0:1.0: Cannot enable port 1.  Maybe the USB cable is bad?
    musb_stage0_irq 699: CONNECT (a_host) devctl 5d
    musb_stage0_irq 638: VBUS_ERROR in a_host (91, <VBusValid), retry #1, port1 00130503
    hub 1-0:1.0: Cannot enable port 1.  Maybe the USB cable is bad?
    musb_stage0_irq 699: CONNECT (a_host) devctl 5d
    musb_stage0_irq 638: VBUS_ERROR in a_host (91, <VBusValid), retry #1, port1 00130503
    hub 1-0:1.0: Cannot enable port 1.  Maybe the USB cable is bad?
    usb 1-1: new high speed USB device using musb_hdrc and address 26
    musb_stage0_irq 699: CONNECT (a_host) devctl 5d
    musb_stage0_irq 638: VBUS_ERROR in a_host (91, <VBusValid), retry #1, port1 00130511
    musb_stage0_irq 699: CONNECT (a_host) devctl 5d
    musb_stage0_irq 638: VBUS_ERROR in a_host (91, <VBusValid), retry #1, port1 00130503
    hub 1-0:1.0: Cannot enable port 1.  Maybe the USB cable is bad?
    musb_stage0_irq 699: CONNECT (a_host) devctl 5d
    musb_stage0_irq 638: VBUS_ERROR in a_host (91, <VBusValid), retry #1, port1 00130503
    hub 1-0:1.0: Cannot enable port 1.  Maybe the USB cable is bad?
    musb_stage0_irq 699: CONNECT (a_host) devctl 5d
    musb_stage0_irq 638: VBUS_ERROR in a_host (91, <VBusValid), retry #1, port1 00130503
    hub 1-0:1.0: Cannot enable port 1.  Maybe the USB cable is bad?
    musb_stage0_irq 699: CONNECT (a_host) devctl 5d
    musb_stage0_irq 638: VBUS_ERROR in a_host (91, <VBusValid), retry #1, port1 00130503
    hub 1-0:1.0: Cannot enable port 1.  Maybe the USB cable is bad?
    usb 1-1: new high speed USB device using musb_hdrc and address 30
    musb_stage0_irq 699: CONNECT (a_host) devctl 5d
    musb_stage0_irq 638: VBUS_ERROR in a_host (91, <VBusValid), retry #1, port1 00130511
    musb_stage0_irq 699: CONNECT (a_host) devctl 5d
    musb_stage0_irq 638: VBUS_ERROR in a_host (91, <VBusValid), retry #1, port1 00130503
    hub 1-0:1.0: Cannot enable port 1.  Maybe the USB cable is bad?
    musb_stage0_irq 699: CONNECT (a_host) devctl 5d
    musb_stage0_irq 638: VBUS_ERROR in a_host (91, <VBusValid), retry #1, port1 00130503
    hub 1-0:1.0: Cannot enable port 1.  Maybe the USB cable is bad?
    musb_stage0_irq 699: CONNECT (a_host) devctl 5d
    musb_stage0_irq 638: VBUS_ERROR in a_host (91, <VBusValid), retry #1, port1 00130503
    hub 1-0:1.0: Cannot enable port 1.  Maybe the USB cable is bad?
    musb_stage0_irq 699: CONNECT (a_host) devctl 5d
    musb_stage0_irq 638: VBUS_ERROR in a_host (91, <VBusValid), retry #1, port1 00130503
    hub 1-0:1.0: Cannot enable port 1.  Maybe the USB cable is bad?
    usb 1-1: new high speed USB device using musb_hdrc and address 34
    musb_stage0_irq 699: CONNECT (a_host) devctl 5d
    musb_stage0_irq 638: VBUS_ERROR in a_host (91, <VBusValid), retry #1, port1 00130511
    musb_stage0_irq 699: CONNECT (a_host) devctl 5d
    musb_stage0_irq 638: VBUS_ERROR in a_host (91, <VBusValid), retry #1, port1 00130503
    hub 1-0:1.0: Cannot enable port 1.  Maybe the USB cable is bad?
    musb_stage0_irq 699: CONNECT (a_host) devctl 5d
    musb_stage0_irq 638: VBUS_ERROR in a_host (91, <VBusValid), retry #1, port1 00130503
    hub 1-0:1.0: Cannot enable port 1.  Maybe the USB cable is bad?
    musb_stage0_irq 699: CONNECT (a_host) devctl 5d
    musb_stage0_irq 638: VBUS_ERROR in a_host (91, <VBusValid), retry #1, port1 00130503
    hub 1-0:1.0: Cannot enable port 1.  Maybe the USB cable is bad?
    musb_stage0_irq 699: CONNECT (a_host) devctl 5d
    musb_stage0_irq 638: VBUS_ERROR in a_host (91, <VBusValid), retry #1, port1 00130503
    hub 1-0:1.0: Cannot enable port 1.  Maybe the USB cable is bad?
    usb 1-1: new high speed USB device using musb_hdrc and address 38
    musb_stage0_irq 699: CONNECT (a_host) devctl 5d
    musb_stage0_irq 638: VBUS_ERROR in a_host (91, <VBusValid), retry #1, port1 00130511
    musb_stage0_irq 699: CONNECT (a_host) devctl 5d
    musb_stage0_irq 638: VBUS_ERROR in a_host (91, <VBusValid), retry #1, port1 00130503
    hub 1-0:1.0: Cannot enable port 1.  Maybe the USB cable is bad?
    musb_stage0_irq 699: CONNECT (a_host) devctl 5d
    musb_stage0_irq 638: VBUS_ERROR in a_host (91, <VBusValid), retry #1, port1 00130503
    hub 1-0:1.0: Cannot enable port 1.  Maybe the USB cable is bad?
    musb_stage0_irq 699: CONNECT (a_host) devctl 5d
    musb_stage0_irq 638: VBUS_ERROR in a_host (91, <VBusValid), retry #1, port1 00130503
    hub 1-0:1.0: Cannot enable port 1.  Maybe the USB cable is bad?
    musb_stage0_irq 699: CONNECT (a_host) devctl 5d
    musb_stage0_irq 638: VBUS_ERROR in a_host (91, <VBusValid), retry #1, port1 00130503
    hub 1-0:1.0: Cannot enable port 1.  Maybe the USB cable is bad?
    usb 1-1: new high speed USB device using musb_hdrc and address 42
    musb_stage0_irq 699: CONNECT (a_host) devctl 5d

    Please help me in this. Where is the problem and how did you mount the USB drive on your side?

    Thanks a lot

    Rama

     

  • Adding some info

    I am using the SDK1.0.2 and arm2008q1 toolchain.

  • It may be worth trying another USB hub if you have one available, I am also on SDK 1.0.2 and with a generic self powered USB hub and a USB flash drive and I do not get such errors. VBUS error makes me thing that the hub may not actually be self powering, if it is pulling too much current on the VBUS than it could explain such failure, I get similar errors when I unplug the power supply to my USB hub.

  • Thanks Bernie for your reply.

    The same hub works with Beagle board. I don't think the problem is with USB hub. I see the LED glowing in USB hub when kernel boots up.

    When the debug messages are thrown in the console, I couldn't get the control to the kernel.

    Should I try with Kernel 2.6.23+? Please tell me whether this link is relevant to this issue "https://bugs.launchpad.net/linux/+bug/122102"

     

     

  • I used Targus PA050, EVM SDK 1.0.2 and arm 2007q3.

    I just follow the instructions and everything works as expected

    You may want to change the USB hub to Targus.

     

     

  • Below message shows that there would be some hub or cabling (loose connections) problem.

    "hub 1-0:1.0: Cannot enable port 1.  Maybe the USB cable is bad?"

    Please try with some other hub.

    Regards,
    Ajay

  • Also please make sure to use a self powered hub.

    Thanks,

    Prathap.

  • Hi All,

    I use self-powered USB hub and changed to another hub also. Still no luck!

    Thanks,

    Rama