2009-03-31 02:33:36     BF527 USB OTG interface

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

2009-03-31 02:33:36     BF527 USB OTG interface

razia razia (INDIA)

Message: 71817   

 

Hi,

 

   I am doing the USB MAss storage testing on BF527 ezkit. I have followed the configurartion settings as in

  docs.blackfin.uclinux.org/doku.php?id=hw:cards:usb_ez-extender#test_usb_mass_stroage

 

The connection is as follows,

USB Mini B socket connected to the USB OTG Port on the BF527 Board and USB A Female socket connected to the USB Flash disk.

 

1.After booting the kernel, when I plug the USB Flash disk to the USB Port, I am not getting any message on my Serial Port Terminal.

 

Can you please help me out to fix this problem?

QuoteReplyEditDelete

 

 

2009-03-31 02:45:13     Re: BF527 USB OTG interface

Yi Li (CHINA)

Message: 71819   

 

Razia,

 

What is your BF527 chip revision?

 

-Yi

QuoteReplyEditDelete

 

 

2009-03-31 02:54:07     Re: BF527 USB OTG interface

razia razia (INDIA)

Message: 71821   

 

The revision is 0.1

QuoteReplyEditDelete

 

 

2009-03-31 03:04:14     Re: BF527 USB OTG interface

razia razia (INDIA)

Message: 71826   

 

BF527EzkitLite chip revision is 0.2.

 

Kernel : 2008R1.5 compiled for silicon revision 0.1

QuoteReplyEditDelete

 

 

2009-03-31 03:13:53     Re: BF527 USB OTG interface

Yi Li (CHINA)

Message: 71829   

 

Could you post your kernel boot message here?

 

How about build kernel for 0.2 revision and try again?

 

-Yi

QuoteReplyEditDelete

 

 

2009-03-31 04:01:10     Re: BF527 USB OTG interface

razia razia (INDIA)

Message: 71834   

 

This is the kernel boot message.

 

Booting image at 01200000 ...

   Image Name:   Linux-2.6.22.19-ADI-2008R1.5-svn

   Created:      2009-03-31   5:57:07 UTC

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    4239358 Bytes =  4 MB

   Load Address: 00001000

   Entry Point:  001c2000

   Verifying Checksum ... OK

   Uncompressing Kernel Image ... OK

Starting Kernel at = 1c2000

Linux version 2.6.22.19-ADI-2008R1.5-svn (sreecha@linux-hms-jasmin) (gcc version 4.1.2 (ADI svn)) #26 Tue Mar 31 11:27:01 IST 2009

early printk enabled on early_BFuart0

Hardware Trace Active and Enabled

Blackfin support (C) 2004-2007 Analog Devices, Inc.

Compiled for ADSP-BF527 Rev 0.1

Warning: Compiled for Rev 1, but running on Rev 2

Blackfin Linux support by   blackfin.uclinux.org/

Processor Speed: 525 MHz core clock and 131 MHz System Clock

Board Memory: 64MB

Kernel Managed Memory: 64MB

Memory map:

  text      = 0x00001000-0x00148c40

  rodata    = 0x00149000-0x001ab704

  data      = 0x001ac000-0x001c2000

    stack   = 0x001ac000-0x001ae000

  init      = 0x001c2000-0x007de000

  bss       = 0x007de000-0x007edfb0

  available = 0x007edfb0-0x03eff000

  DMA Zone  = 0x03f00000-0x04000000

NOMPU: setting up cplb tables for global access

Instruction Cache Enabled

Data Cache Enabled (write-back)

Built 1 zonelists.  Total pages: 16002

Kernel command line: root=/dev/mtdblock0 rw earlyprintk=serial,uart1,57600 console=tty0 console=ttyBF0,57600

Configuring Blackfin Priority Driven Interrupts

PID hash table entries: 256 (order: 8, 1024 bytes)

console handover: boot [early_BFuart0] -> real [ttyBF0]

Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)

Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)

Memory available: 55812k/65536k RAM, (6256k init code, 1311k kernel code, 548k data, 1024k dma, 584k reserved)

Blackfin Scratchpad data SRAM: 4 KB

Blackfin Data A SRAM: 16 KB (15 KB free)

Blackfin Data B SRAM: 16 KB (16 KB free)

Blackfin Instruction SRAM: 48 KB (41 KB free)

Security Framework v1.0.0 initialized

Mount-cache hash table entries: 512

NET: Registered protocol family 16

Blackfin GPIO Controller

Blackfin DMA Controller

stamp_init(): registering device resources

Generic PHY: Registered new driver

SCSI subsystem initialized

usbcore: registered new interface driver usbfs

usbcore: registered new interface driver hub

usbcore: registered new device driver usb

musb_hdrc: version 6.0, musb-dma, host, debug=0

musb_hdrc: kernel must blacklist external hubs

musb_hdrc: USB Host mode controller at ffc03800 using DMA, IRQ 59

musb_hdrc musb_hdrc.0: MUSB HDRC host driver

musb_hdrc musb_hdrc.0: new USB bus registered, assigned bus number 1

usb usb1: Product: MUSB HDRC host driver

usb usb1: Manufacturer: Linux 2.6.22.19-ADI-2008R1.5-svn musb-hcd

usb usb1: SerialNumber: musb_hdrc.0

usb usb1: configuration #1 chosen from 1 choice

hub 1-0:1.0: USB hub found

dma_alloc_init: dma_page @ 0x03ea0000 - 256 pages at 0x03f00000

NET: Registered protocol family 2

IP route cache hash table entries: 1024 (order: 0, 4096 bytes)

TCP established hash table entries: 2048 (order: 2, 16384 bytes)

TCP bind hash table entries: 2048 (order: 1, 8192 bytes)

TCP: Hash tables configured (established 2048 bind 2048)

TCP reno registered

io scheduler noop registered

io scheduler anticipatory registered (default)

io scheduler cfq registered

IR Module enabled

Single Core  Loader Module enabled

bfin-t350mcqb: 320x240 24-bit RGB FrameBuffer initializing...

bfin-otp: initialized

bfin-wdt: initialized: timeout=20 sec (nowayout=0)

Serial: Blackfin serial driver

bfin-uart.1: ttyBF0 at MMIO 0xffc02000 (irq = 31) is a BFIN-UART

RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize

bfin_mac_mdio: probed

bfin_mac: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:01, irq=-1, mdc_clk=2500000Hz(mdc_div=25)@sclk=131MHz)

bfin_mac: Version 1.1, Blackfin BF53[67] BF527 on-chip Ethernet MAC driver

bfin-spi bfin-spi.0: Blackfin BF5xx on-chip SPI Contoller Driver, Version 1.0, regs_base@ffc00500, dma channel@7

sl811: driver sl811-hcd, 19 May 2005

Initializing USB Mass Storage driver...

usbcore: registered new interface driver usb-storage

USB Mass Storage support registered.

rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0

i2c /dev entries driver

i2c-bfin-twi i2c-bfin-twi.0: Blackfin BF5xx on-chip I2C TWI Contoller Driver, Version 1.8, regs_base@ffc01400

usbcore: registered new interface driver usbhid

drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver

Advanced Linux Sound Architecture Driver Version 1.0.12rc1 (Thu Jun 22 13:55:50 2006 UTC).

ASoC version 0.13.1

dma rx:3 tx:4, err irq:15, regs:ffc00800

ssm2602 Audio Codec 0.1<6>asoc: SSM2602 <-> bf5xx-i2s-0 mapping ok

ALSA device list:

  #0: bf5xx_ssm2602 (SSM2602)

TCP cubic registered

NET: Registered protocol family 1

NET: Registered protocol family 17

rtc-bfin rtc-bfin: setting the system clock to 1970-01-01 00:52:40 (3160)

Freeing unused kernel memory: 6256k freed

 

 

 

In the Kernel: Silicon revision options, 0.2 option is not present.

 

The available options are

 

0.0

 

0.1

 

any

 

none

 

I tried with 'any' and 'none' option.

 

But still couldn't get the device detected.

 

 

 

 

 

 

QuoteReplyEditDelete

 

 

2009-03-31 04:20:50     Re: BF527 USB OTG interface

Mike Frysinger (UNITED STATES)

Message: 71849   

 

your output already shows the problem:

 

hub 1-0:1.0: USB hub found

 

hubs will not work

QuoteReplyEditDelete

 

 

2009-03-31 06:07:17     Re: BF527 USB OTG interface

razia razia (INDIA)

Message: 71861   

 

Hi Mike,

 

The kernel settings are as follows,

 

[Linux Kernel Configuration] -→ [Device Drivers] -→ [USB support]

 

<*> Support for Host-side USB

[*]   USB device filesystem

[*]   USB device class-devices (DEPRECATED)

<*> Inventra Highspeed Dual Role Controller (TI, ADI, ...)

---   Blackfin BF54x high speed USB support

       Driver Mode (USB Peripheral (gadget stack))  --->

[ ]   Disable DMA (always use PIO)

(0)   Logging Level (0 - none / 3 - annoying / ... )

 

 

 

These settings are done as per the document given in

 

https://docs.blackfin.uclinux.org/doku.php?id=usb_peripherals

 

Please tell me, Is there any other setting that should be done in order to disable the hub?

QuoteReplyEditDelete

 

 

2009-03-31 06:15:55     Re: BF527 USB OTG interface

Mike Frysinger (UNITED STATES)

Message: 71863   

 

the hub has nothing to do with your configuration settings.  the hub exists in whatever you're plugging into the USB port.  dont plug in a hub.

QuoteReplyEditDelete

 

 

2009-03-31 06:25:19     Re: BF527 USB OTG interface

razia razia (INDIA)

Message: 71864   

 

Hi Mike,

 

I have not plugged in a hub.

 

The connection is like this,

 

Mini USB B socket connected to the USB OTG port on the BF527EZkit.

 

USB A Female socket connected to the USB Flash Disk.

 

 

QuoteReplyEditDelete

 

 

2009-03-31 06:29:53     Re: BF527 USB OTG interface

Mike Frysinger (UNITED STATES)

Message: 71866   

 

some flash disks have hubs built into them.  find a different device to test with.

 

the "usb hub" message doesnt lie.  if it that is displayed, a hub is in the chain, and it isnt going to work.

QuoteReplyEditDelete

 

 

2009-03-31 06:43:04     Re: BF527 USB OTG interface

razia razia (INDIA)

Message: 71868   

 

Hi Mike,

 

The kernel boot message has

 

hub 1-0:1.0: USB hub found,

 

even before connecting to the USB Flash Disk .

 

 

QuoteReplyEditDelete

 

 

2009-03-31 09:47:39     Re: BF527 USB OTG interface

Robin Getz (UNITED STATES)

Message: 71879   

 

Razia:

 

0.2 BF527 was not out when we released 2008R1.5 - it is not supported - you are REQUIRED to use trunk on that silicon version.

 

-Robin

QuoteReplyEditDelete

 

 

2009-04-01 19:47:12     Re: BF527 USB OTG interface

Ron Weiland (UNITED STATES)

Message: 71986   

 

Mike, I'm a bit confused on this as well.  I'm using an ISP1362 which has two USB ports.  To the USB subsystem, the chip appears as a hub.  Both ports work fine (except for some apparent driver issues which I'm mentioned in a different thread.)  On boot, mine always looks like this (with no USB devices plugged in):

 

(snip)

 

driver isp1362-hcd, 2005-04-04

isp1362-hcd isp1362-hcd.0: ISP1362 Host Controller

isp1362-hcd isp1362-hcd.0: new USB bus registered, assigned bus number 1

isp1362_hc_reset:

isp1362-hcd isp1362-hcd.0: irq 44, io mem 0x20000000

isp1362_hc_start:

isp1362-hcd isp1362-hcd.0: ISP1362 Memory usage:

isp1362-hcd isp1362-hcd.0:   ISTL:    2 *  256:      512 @ $0000:$0100

isp1362-hcd isp1362-hcd.0:   INTL:   16 * ( 64+8):  1152 @ $0200

isp1362-hcd isp1362-hcd.0:   ATL :   32 * ( 64+8):  2304 @ $0680

isp1362-hcd isp1362-hcd.0:   USED/FREE:   3968       128

usb usb1: configuration #1 chosen from 1 choice

hub 1-0:1.0: USB hub found

hub 1-0:1.0: 2 ports detected

ISP1362 Host Controller, irq 44

Initializing USB Mass Storage driver...

usbcore: registered new interface driver usb-storage

USB Mass Storage support registered.

usbcore: registered new interface driver libusual

usbcore: registered new interface driver usbserial

 

(snip)

 

AFAIK, all devices with multiple USB interfaces appear as a hub.  Are you saying these chips are not supported by the current build?

 

 

QuoteReplyEditDelete

 

 

2009-04-01 21:30:51     Re: BF527 USB OTG interface

Mike Frysinger (UNITED STATES)

Message: 71987   

 

you arent using the Blackfin on-chip USB interface.  thus nothing in this thread applies to you.

QuoteReplyEditDelete

 

 

2010-04-20 11:16:26     Re: BF527 USB OTG interface

Miguel Ángel Álvarez (SPAIN)

Message: 88656   

 

Hi.

 

I do not know if you prefer me to start another thread, but I am facing same behaviour as in here.

 

I am trying to use the OTG interface of a bf527 as a host, and connect a pen-drive to it.

 

Although I can see that there is some kind of interaction in the line using an oscilloscope, the kernel does not detect the pen-drive (I have also tried with other devices).

 

This are the significative traces relating USB in the kernel boot:

 

"usbcore: registered new interface driver usbfs

usbcore: registered new interface driver hub

usbcore: registered new device driver usb

musb_hdrc: version 6.0, pio, host, debug=0

musb_hdrc: USB Host mode controller at ffc03800 using PIO, IRQ 59

musb_hdrc musb_hdrc.0: MUSB HDRC host driver

musb_hdrc musb_hdrc.0: new USB bus registered, assigned bus number 1

usb usb1: configuration #1 chosen from 1 choice

hub 1-0:1.0: USB hub found

hub 1-0:1.0: 1 port detected"

 

and this is part of the kernel configuration in one of my trials:

 

"CONFIG_USB_MUSB_HDRC_HCD=y

CONFIG_USB_OTG_BLACKLIST_HUB=y

CONFIG_IRQ_USB_EINT=10

CONFIG_IRQ_USB_INT0=11

CONFIG_IRQ_USB_INT1=11

CONFIG_IRQ_USB_INT2=11

CONFIG_IRQ_USB_DMA=11

CONFIG_USB_MUSB_HDRC_HCD_CLK=20

CONFIG_USB_MUSB_HDRC=y

CONFIG_USB_MUSB_HOST=y

CONFIG_USB_MUSB_SOC=y

CONFIG_USB_MUSB_DEBUG=y

CONFIG_BLK_DEV_UB=y"

 

Is there any additional information that I can offer?

 

Thanks in advance for your help and advice.

 

Miguel Ángel

QuoteReplyEditDelete

 

 

2010-04-20 16:19:22     Re: BF527 USB OTG interface

Mike Frysinger (UNITED STATES)

Message: 88667   

 

please read the documentation.  hubs will not work.

 

  docs.blackfin.uclinux.org/doku.php?id=linux-kernel:drivers:musb

QuoteReplyEditDelete

 

 

2010-04-21 13:13:53     Re: BF527 USB OTG interface

Miguel Ángel Álvarez (SPAIN)

Message: 88732   

 

Dear Mike

 

I read the documentation before beginnign to configure the kernel, but I am sure I am missing something.

 

As far as I know i am not using an external hub, and I have even configure "CONFIG_USB_OTG_BLACKLIST_HUB=y" in the kernel in order not to take into account external hubs.

 

I am connecting my devices directly to the USB interface (which basically is the USB lines in the BF527), so... I cannot understand why it is detecting an external hub.

 

Any clues?

QuoteReplyEditDelete

 

 

2010-04-21 13:29:21     Re: BF527 USB OTG interface

Robin Getz (UNITED STATES)

Message: 88734   

 

Miguel:

 

What device are you plugging in, and does it have a built in hub (many devices do). Have a look on your host with "lsusb -t".

 

-Robin

QuoteReplyEditDelete

 

 

2010-04-22 04:47:28     Re: BF527 USB OTG interface

Miguel Ángel Álvarez (SPAIN)

Message: 88759   

 

Dear Robin

 

I am trying to test different devices (pen-drives, mouses...) with no success at all.

 

The lines in the kernel booting about detecting a hub appear even if no device is plugged in.

QuoteReplyEditDelete

 

 

2010-04-22 11:05:35     Re: BF527 USB OTG interface

Robin Getz (UNITED STATES)

Message: 88773   

 

Miguel:

 

I missed before that you were using 2008 release - upgrade to 2009R1.1 2008 will not work.

 

-Robin

QuoteReplyEditDelete

 

 

2010-04-22 12:23:23     Re: BF527 USB OTG interface

Miguel Ángel Álvarez (SPAIN)

Message: 88776   

 

Dear Robin

 

I am using 2009R1.

QuoteReplyEditDelete

 

 

2010-04-23 11:21:11     Re: BF527 USB OTG interface

Robin Getz (UNITED STATES)

Message: 88827   

 

Miguel:

 

That is not what the first posts say.

 

BF527EzkitLite chip revision is 0.2.

 

Kernel : 2008R1.5 compiled for silicon revision 0.1

 

If this is a different issue - it should be a different thread.

QuoteReplyEditDelete

 

 

2010-04-26 09:43:20     Re: BF527 USB OTG interface

Miguel Ángel Álvarez (SPAIN)

Message: 88904   

 

Dear Robin.

 

That post is from "Azia Azia"... not mine... I am experiencing the problems that he described, but using 2009R1 and a silicon revision of 0.2.

Attachments

    Outcomes