2009-10-20 12:42:10     BF548 ezkit USB Host not working?

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

2009-10-20 12:42:10     BF548 ezkit USB Host not working?

Izhar Eyal (ISRAEL)

Message: 81490   

 

Hi,

 

Has anyone worked with the USB Host on the BF548-ezkit ?

 

We are trying to connect a Mass Storage Device.

 

I've added a 220uF cap. on VBUS as recommended on this forum.

 

Here is what we get on dmseg:

 

root:/> dmesg

Linux version 2.6.28.10-ADI-2009R1 (ariel@Ariel-Linux) (gcc version 4.1.2 (ADI 9bootconsole [early_shadow0] enabled

bootconsole [early_BFuart0] enabled

early printk enabled on early_BFuart0

Board Memory: 64MB

Kernel Managed Memory: 64MB

Memory map:

  fixedcode = 0x00000400-0x00000490

  text      = 0x00001000-0x00183560

  rodata    = 0x00183560-0x00204698

  bss       = 0x00205000-0x0021b6c4

  data      = 0x0021b6c4-0x00236000

    stack   = 0x00234000-0x00236000

  init      = 0x00236000-0x00261000

  available = 0x00261000-0x02e00000

  rootfs    = 0x02e00000-0x03e00000

  DMA Zone  = 0x03e00000-0x04000000

Hardware Trace Active and Enabled

Boot Mode: 3

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

Compiled for ADSP-BF548 Rev any

Blackfin Linux support by http://blackfin.uclinux.org/

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

boot memmap: 0000000000261000 - 0000000002e00000 (usable)

On node 0 totalpages: 11776

free_area_init_node: node 0, pgdat 0023285c, node_mem_map 00263000

  DMA zone: 92 pages used for memmap

  DMA zone: 0 pages reserved

  DMA zone: 11684 pages, LIFO batch:1

  Normal zone: 0 pages used for memmap

  Movable zone: 0 pages used for memmap

NOMPU: setting up cplb tables

Instruction Cache Enabled for CPU0

Data Cache Enabled for CPU0 (write-back)

Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 11684

Kernel command line: root=/dev/mtdblock0 rw clkin_hz=25000000 earlyprintk=seriafConfiguring Blackfin Priority Driven Interrupts

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

Console: colour dummy device 80x25

console [tty0] enabled

console [ttyBF0] enabled, bootconsole disabled

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

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

Kernel managed physical pages: 11776

Memory available: 44096k/65536k RAM, (172k init code, 1545k kernel code, 715k d)Calibrating delay loop... 1046.52 BogoMIPS (lpj=2093056)

Security Framework initialized

Mount-cache hash table entries: 512

Blackfin Scratchpad data SRAM: 4 KB

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

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

Blackfin L1 Instruction SRAM: 48 KB (42 KB free)

Blackfin L2 SRAM: 128 KB (128 KB free)

net_namespace: 288 bytes

NET: Registered protocol family 16

Blackfin DMA Controller

ezkit_init(): registering device resources

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: ConfigData=0x00 (UTMI-8)

musb_hdrc: HDRC RTL version 0.0

musb_hdrc: hw_ep 0shared, max 64

musb_hdrc: hw_ep 1tx, max 128

musb_hdrc: hw_ep 1rx, max 128

musb_hdrc: hw_ep 2tx, max 128

musb_hdrc: hw_ep 2rx, max 128

musb_hdrc: hw_ep 3tx, max 128

musb_hdrc: hw_ep 3rx, max 128

musb_hdrc: hw_ep 4tx, max 128

musb_hdrc: hw_ep 4rx, max 128

musb_hdrc: hw_ep 5tx, max 1024

musb_hdrc: hw_ep 5rx, max 1024

musb_hdrc: hw_ep 6tx, max 1024

musb_hdrc: hw_ep 6rx, max 1024

musb_hdrc: hw_ep 7tx, max 1024

musb_hdrc: hw_ep 7rx, max 1024

musb_hdrc: USB Host mode controller at ffc03c00 using DMA, IRQ 82

musb_hdrc musb_hdrc.0: MUSB HDRC host driver

drivers/usb/core/inode.c: creating file 'devices'

drivers/usb/core/inode.c: creating file '001'

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

usb usb1: default language 0x0409

usb usb1: uevent

usb usb1: usb_probe_device

usb usb1: configuration #1 chosen from 1 choice

usb usb1: adding 1-0:1.0 (config #1, interface 0)

usb 1-0:1.0: uevent

hub 1-0:1.0: usb_probe_interface

hub 1-0:1.0: usb_probe_interface - got id

hub 1-0:1.0: USB hub found

dma_alloc_init: dma_page @ 0x02d93000 - 512 pages at 0x03e00000

hub 1-0:1.0: 1 port detected

hub 1-0:1.0: standalone hub

hub 1-0:1.0: individual port power switching

hub 1-0:1.0: no over-current protection

hub 1-0:1.0: power on to power good time: 10ms

hub 1-0:1.0: local power source is good

hub 1-0:1.0: enabling power on all ports

drivers/usb/core/inode.c: creating file '001'

usb usb1: New USB device found, idVendor=1d6b, idProduct=0002

usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1

usb usb1: Product: MUSB HDRC host driver

usb usb1: Manufacturer: Linux 2.6.28.10-ADI-2009R1 musb-hcd

usb usb1: SerialNumber: musb_hdrc.0

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

hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0000

NET: Registered protocol family 1

Setting up Blackfin MMR debugfs

msgmni has been set to 86

io scheduler noop registered

io scheduler anticipatory registered (default)

io scheduler cfq registered

bf54x-lq043: FrameBuffer initializing...

Console: switching to colour frame buffer device 80x24

bfin-otp: initialized

Serial: Blackfin serial driver

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

brd: module loaded

smsc911x: Driver version 2007-07-13.

eth0: SMSC911x MAC Address: 00:e0:22:fe:b7:a0

Driver 'sd' needs updating - please use bus_type methods

physmap platform flash device: 02000000 at 20000000

physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank

physmap-flash.0: Found an alias at 0x1000000 for the chip at 0x0

Support for command set 0001 not present

gen_probe: No supported Vendor Command Set found

physmap-flash physmap-flash.0: map_probe failed

uclinux[mtd]: RAM probe address=0x2e00000 size=0x1000000

Creating 1 MTD partitions on "RAM":

0x00000000-0x01000000 : "ROMfs"

bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0, regs_4bfin-spi bfin-spi.1: Blackfin on-chip SPI Controller Driver, Version 1.0, regs_5Initializing USB Mass Storage driver...

usbcore: registered new interface driver usb-storage

USB Mass Storage support registered.

usbcore: registered new interface driver libusual

i2c /dev entries driver

i2c-bfin-twi i2c-bfin-twi.0: Blackfin BF5xx on-chip I2C TWI Contoller, regs_basei2c-bfin-twi i2c-bfin-twi.1: Blackfin BF5xx on-chip I2C TWI Contoller, regs_basebfin-wdt: initialized: timeout=20 sec (nowayout=0)

TCP cubic registered

NET: Registered protocol family 17

eth0: SMSC911x/921x identified at 0x24000000, IRQ: 175

eth0: link down

IP-Config: Complete:

     device=eth0, addr=192.168.168.254, mask=255.255.255.0, gw=192.168.168.230,

     host=bf548-ezkit, domain=, nis-domain=(none),

     bootserver=192.168.168.106, rootserver=192.168.168.106, rootpath=

VFS: Mounted root (ext2 filesystem).

Freeing unused kernel memory: 172k freed

eth0: link up, 100Mbps, full-duplex, lpa 0x45E1

hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002

hub 1-0:1.0: port 1, status 0101, change 0001, 12 Mb/s

hub 1-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x101

usb 1-1: new high speed USB device using musb_hdrc and address 2

usb 1-1: khubd timed out on ep0in len=0/64

usb 1-1: khubd timed out on ep0in len=0/64

usb 1-1: khubd timed out on ep0in len=0/64

usb 1-1: device descriptor read/64, error -110

usb 1-1: khubd timed out on ep0in len=0/64

usb 1-1: khubd timed out on ep0in len=0/64

usb 1-1: khubd timed out on ep0in len=0/64

usb 1-1: device descriptor read/64, error -110

usb 1-1: new high speed USB device using musb_hdrc and address 3

usb 1-1: khubd timed out on ep0in len=0/64

usb 1-1: khubd timed out on ep0in len=0/64

usb 1-1: khubd timed out on ep0in len=0/64

usb 1-1: device descriptor read/64, error -110

usb 1-1: khubd timed out on ep0in len=0/64

usb 1-1: khubd timed out on ep0in len=0/64

usb 1-1: khubd timed out on ep0in len=0/64

usb 1-1: device descriptor read/64, error -110

usb 1-1: new high speed USB device using musb_hdrc and address 4

musb_h_tx_flush_fifo 124: Could not flush host TX fifo: csr: 000a

usb 1-1: khubd timed out on ep0out len=0/0

musb_h_tx_flush_fifo 124: Could not flush host TX fifo: csr: 000a

usb 1-1: khubd timed out on ep0out len=0/0

usb 1-1: device not accepting address 4, error -110

usb 1-1: new high speed USB device using musb_hdrc and address 5

musb_h_tx_flush_fifo 124: Could not flush host TX fifo: csr: 000a

usb 1-1: khubd timed out on ep0out len=0/0

musb_h_tx_flush_fifo 124: Could not flush host TX fifo: csr: 000a

usb 1-1: khubd timed out on ep0out len=0/0

usb 1-1: device not accepting address 5, error -110

hub 1-0:1.0: unable to enumerate USB device on port 1

hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002

hub 1-0:1.0: port 1 enable change, status 00000501

root:/>

 

 

 

 

Any ideas?

 

Thanks.

QuoteReplyEditDelete

 

 

2009-10-20 13:17:41     Re: BF548 ezkit USB Host not working?

Robin Getz (UNITED STATES)

Message: 81492   

 

Izhar:

 

Can you try one of the default uImages - and see if you get different results? (I personally have not tested "ADSP-BF548 Rev any" - I always set it to the correct chip rev).

 

-Robin

QuoteReplyEditDelete

 

 

2009-10-21 17:13:24     Re: BF548 ezkit USB Host not working?

Izhar Eyal (ISRAEL)

Message: 81538   

 

Thanks Robin:)

 

It seems the revision is important.

 

USB Host is now working with Mass Storage.

 

The "any" revision works ok on a BF548 Rev 0.1 (USB Host working, I commented the panic errors for anomaly 05000448), but fails to work with Rev 0.0 (the ez-kit)

 

setting the Rev to the specific revision solves the issue.

 

Thanks!

QuoteReplyEditDelete

 

 

2009-10-21 21:49:05     Re: BF548 ezkit USB Host not working?

Robin Getz (UNITED STATES)

Message: 81544   

 

Izhar:

 

rev 0.1 isn't supported -- you will get with random errors which can manifest themselves as any number of ways. If things work -- you are just lucky.

 

-Robin

Attachments

    Outcomes