2010-03-18 07:45:14     BF527 OTG usbtty

Document created by Aaronwu Employee on Sep 25, 2013
Version 1Show Document
  • View in full screen mode

2010-03-18 07:45:14     BF527 OTG usbtty

Kevin Dimmer (UNITED KINGDOM)

Message: 87402   

 

Hi

 

Was wondering if u-boot supports usbtty using the BF527 OTG port.

 

We have a box where only the OTG port is avilable outside, so would be really useful if we could get the u-boot console out that way and connected to a PC.

 

Either as a serial gadget (if such a thing exists) or as a host so we can use back to back serial adapters (with a serial crossover). Anyone done anything this using the OTG port?

 

If yes, any hints on configuring, also are there preferred USB to serial converters that u-boot is happy with.

 

Thanks

 

Kevin Dimmer

QuoteReplyEditDelete

 

 

2010-03-18 11:51:00     Re: BF527 OTG usbtty

Mike Frysinger (UNITED STATES)

Message: 87413   

 

current u-boot does not support gadget functions for any USB controller.  the upstream u-boot-usb.git tree has an experimental branch (CDC).  but no idea what the state is wrt MUSB let alone Blackfin MUSB.

 

http://git.denx.de/?p=u-boot/u-boot-usb.git;a=summary

QuoteReplyEditDelete

 

 

2010-03-18 12:43:06     Re: BF527 OTG usbtty

Kevin Dimmer (UNITED KINGDOM)

Message: 87417   

 

Hi Mike

 

Ok no gadgets, understood.

 

How about using it in host mode with a USB serial adapter, it seems to recognise the device, but I don't know if we can stich the console into it.

npl_u-boot> usb start

(Re)start USB...

USB:   USB 5v Enabled

scanning bus for devices... 2 USB Device(s) found

       scanning bus for storage devices... 0 Storage Device(s) found

 

npl_u-boot> usb tree

Device Tree:

  1  Hub (12MBit/s, 0mA)

  |   MUSB Root Hub

  |

  +-2  Vendor specific (480MBit/s, 100mA)

       Prolific Technology Inc. USB-Serial Controller

 

npl_u-boot> usb info

1: Hub,  USB Revision 2.0

-  MUSB Root Hub

- Class: Hub

- PacketSize: 8  Configurations: 1

- Vendor: 0x0000  Product 0x0000 Version 0.0

   Configuration: 1

   - Interfaces: 1 Self Powered 0mA

     Interface: 0

     - Alternate Setting 0, Endpoints: 1

     - Class Hub

     - Endpoint 1 In Interrupt MaxPacket 512 Interval 255ms

2: Vendor specific,  USB Revision 1.10

- Prolific Technology Inc. USB-Serial Controller

- Class: (from Interface) Vendor specific

- PacketSize: 64  Configurations: 1

- Vendor: 0x067b  Product 0x2303 Version 3.0

   Configuration: 1

   - Interfaces: 1 Bus Powered 100mA

     Interface: 0

     - Alternate Setting 0, Endpoints: 3

     - Class Vendor specific

     - Endpoint 1 In Interrupt MaxPacket 10 Interval 1ms

     - Endpoint 2 Out Bulk MaxPacket 64

     - Endpoint 3 In Bulk MaxPacket 64

QuoteReplyEditDelete

 

 

2010-03-18 13:09:43     Re: BF527 OTG usbtty

Mike Frysinger (UNITED STATES)

Message: 87418   

 

we havent tested it, but look into CONFIG_USB_TTY and drivers/serial/usbtty.c

Attachments

    Outcomes