Altera_Forum
Honored Contributor
13 years agoUSB OTG port Cyclone 5 Altera Linux - mouse doesn't power on
Hi,
I am working the Cyclone 5 development board. I am trying to use the prebuilt binaries for the altera linux 3.7 to work with the USB otg port. I have followed the tutorial below and I am able to boot the linux just fine and connect via the serial port. http://rocketboards.org/foswiki/documentation/alterasocdevelopmentboardsoftwaregettingstarted
uname -a
Linux socfpga_cyclone5 3.7.0# 1 SMP Fri Apr 5 14:42:17 CDT 2013 armv7l GNU/Linux
So, altera linux is up and running just fine, but nothing happens when I plug a mouse into the USB OTG port. By looking at the /var/log/messages, it would appear to me that the USB drivers are at least loading: Apr 5 20:02:00 socfpga_cyclone5 user.info kernel: usbcore: registered new interface driver usbfs
Apr 5 20:02:00 socfpga_cyclone5 user.info kernel: usbcore: registered new interface driver hub
Apr 5 20:02:00 socfpga_cyclone5 user.info kernel: usbcore: registered new device driver usb
...
Apr 5 20:02:00 socfpga_cyclone5 user.info kernel: Initializing USB Mass Storage driver...
Apr 5 20:02:00 socfpga_cyclone5 user.info kernel: usbcore: registered new interface driver usb-storage
Apr 5 20:02:00 socfpga_cyclone5 user.info kernel: USB Mass Storage support registered.
Apr 5 20:02:00 socfpga_cyclone5 user.warn kernel: dwc_otg_core_reset() HANG! AHB Idle GRSTCTL=0
Apr 5 20:02:00 socfpga_cyclone5 user.warn kernel: dwc_otg_core_reset() HANG! AHB Idle GRSTCTL=0
...
Apr 5 20:02:00 socfpga_cyclone5 user.info kernel: dwc_otg ffb00000.usb: DWC OTG Controller
Apr 5 20:02:00 socfpga_cyclone5 user.info kernel: dwc_otg ffb00000.usb: new USB bus registered, assigned bus number 1
Apr 5 20:02:00 socfpga_cyclone5 user.info kernel: dwc_otg ffb00000.usb: irq 653, io mem 0xffb00000
Apr 5 20:02:00 socfpga_cyclone5 user.info kernel: Init: Port Power? op_state=b_peripheral
Apr 5 20:02:00 socfpga_cyclone5 user.info kernel: hub 1-0:1.0: USB hub found
Apr 5 20:02:00 socfpga_cyclone5 user.info kernel: hub 1-0:1.0: 1 port detected
Apr 5 20:02:00 socfpga_cyclone5 user.info kernel: Dedicated Tx FIFOs mode
Apr 5 20:02:00 socfpga_cyclone5 user.info kernel: Using DMA mode
Apr 5 20:02:00 socfpga_cyclone5 user.info kernel: dwc_otg ffb40000.usb: DWC OTG Controller
Apr 5 20:02:00 socfpga_cyclone5 user.info kernel: dwc_otg ffb40000.usb: new USB bus registered, assigned bus number 2
Apr 5 20:02:00 socfpga_cyclone5 user.info kernel: dwc_otg ffb40000.usb: irq 656, io mem 0xffb40000
Apr 5 20:02:00 socfpga_cyclone5 user.info kernel: Init: Port Power? op_state=b_peripheral
Apr 5 20:02:00 socfpga_cyclone5 user.info kernel: hub 2-0:1.0: USB hub found
Apr 5 20:02:00 socfpga_cyclone5 user.info kernel: hub 2-0:1.0: 1 port detected
...
Apr 5 20:02:00 socfpga_cyclone5 user.info kernel: usbcore: registered new interface driver usbhid
Apr 5 20:02:00 socfpga_cyclone5 user.info kernel: usbhid: USB HID core driver
But when I plug a mouse into the USB OTG port(J1), The mouse led does not power on. When I run lsusb. It only shows the 2 hubs. And if I look at the /var/log/messages. Nothing appears when I plug the mouse in.
lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
So, if anyone can help, here are my questions: 1. Should the USB OTG port be ready to go with the out of box altera linux 3.7 or is there something I need to do here to enable it? 2. Is there any physical jumper or dip switch setting that I need to change to make the proper USB connections? I am using the default from the tutorial link I posted above. Does it matter what is the FPGA image? 3. Anything obvious I am missing here? Thanks for any help. John