[#5612] u-boot should reset the USB host controller before boot kernel

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

[#5612] u-boot should reset the USB host controller before boot kernel

Submitted By: Sonic Zhang

Open Date

2009-10-15 00:04:37     Close Date

2010-01-14 02:17:56


Medium     Assignee:

Cliff Cai


N/A     Fixed In Release:


Found In Release:

2009R1     Status:



N/A     Processor:


Silicon Revision:


Not reproducible

Is the bug repeatable?:


Summary: u-boot should reset the USB host controller before boot kernel



yihui zhang report this bug on forum.







--- Cliff Cai                                                2009-11-12 01:47:42

It works for me on u-boot-2008.10+ 09r1 kernel or u-boot-2009.08+trunk kernel.

see the following boot message.




U-Boot 2008.10-svn1603 (ADI-2009R1-pre) (Nov 12 2009 - 22:21:44)


CPU:   ADSP bf527-0.0 (Detected Rev: 0.0) (parallel flash boot)

Board: ADI BF527 EZ-Kit board

       Support: http://blackfin.uclinux.org/

Clock: VCO: 525 MHz, Core: 525 MHz, System: 131.250 MHz

RAM:   64 MB

Flash:  4 MB

In:    serial

Out:   serial

Err:   serial

Net:   Blackfin EMAC


Hit any key to stop autoboot:  0






bfin> usb start

(Re)start USB...

USB:   scanning bus for devices... 1 USB Device(s) found

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

bfin> fatload usb 0 0x2000000 uimage;bootm 0x2000000

reading uimage



5586099 bytes read

## Booting kernel from Legacy Image at 02000000 ...

   Image Name:   Linux-

   Created:      2009-11-12  14:03:59 UTC

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    5586035 Bytes =  5.3 MB

   Load Address: 00001000

   Entry Point:  00201914

   Verifying Checksum ... OK

   Uncompressing Kernel Image ... OK

Starting Kernel at = 00201914

Linux version (cliff@debiancliff) (gcc version

4.1.2 (ADI svn)) #235 Thu Nov 12 22:03:49 CST 2009

bootconsole [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-0x0015c780

  rodata    = 0x0015c780-0x001cc154

  bss       = 0x001cd000-0x001de830

  data      = 0x001de830-0x001f4000

    stack   = 0x001f2000-0x001f4000

  init      = 0x001f4000-0x00af8000

  available = 0x00af8000-0x03dff000

  DMA Zone  = 0x03e00000-0x04000000

Hardware Trace Active and Enabled

Boot Mode: 1

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

Compiled for ADSP-BF527 Rev 0.0

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

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

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: 15747

Kernel command line: root=/dev/mtdblock0 rw ip=

earlyprintk=serial,uart,57600 console=ttyBF0,57600

Configuring Blackfin Priority Driven Interrupts

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

console [ttyBF0] enabled, bootconsole disabled

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)

Memory available: 51684k/65536k RAM, (9232k init code, 1389k kernel code, 607k

data, 2048k dma, 572k reserved)

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: 32 KB (32 KB free)

Blackfin L1 Instruction SRAM: 48 KB (42 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: 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: configuration #1 chosen from 1 choice

hub 1-0:1.0: USB hub found

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

hub 1-0:1.0: 1 port detected

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

NET: Registered protocol family 1

msgmni has been set to 100

io scheduler noop registered

io scheduler anticipatory registered (default)

io scheduler cfq registered

bfin-otp: initialized

Serial: Blackfin serial driver

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

brd: module loaded

bfin_mii_bus: probed

bfin_mac: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:03, irq=-1,


bfin_mac bfin_mac.0: Blackfin on-chip Ethernet MAC driver, Version 1.1

Driver 'sd' needs updating - please use bus_type methods

Initializing USB Mass Storage driver...

usbcore: registered new interface driver usb-storage

USB Mass Storage support registered.

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

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,


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

usbcore: registered new interface driver usbhid

usbhid: v2.6:USB HID core driver

Advanced Linux Sound Architecture Driver Version 1.0.18rc3.

ASoC version 0.13.2

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

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

ALSA device list:

  #0: bf5xx_ssm2602 (SSM2602)

TCP cubic registered

NET: Registered protocol family 17

rtc-bfin rtc-bfin: setting system clock to 1970-01-01 02:29:13 UTC (8953)

IP-Config: Guessing netmask

IP-Config: Complete:

     device=eth0, addr=, mask=, gw=,

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

     bootserver=, rootserver=, rootpath=

Freeing unused kernel memory: 9232k freed


        a8888b.           / Welcome to the uClinux distribution \

       d888888b.         /       _     _                         \

       8P"YP"Y88        /       | |   |_|            __  __ (TM)  |

       8|o||o|88  _____/        | |    _ ____  _   _ \ \/ /       |

       8'    .88       \        | |   | |  _ \| | | | \  /        |

       8`._.' Y8.       \       | |__ | | | | | |_| | /  \        |

      d/      `8b.       \      \____||_|_| |_|\____|/_/\_\       |

     dP   .    Y8b.       \   For embedded processors including   |

    d8:'  "  `::88b        \    the Analog Devices Blackfin      /

   d8"         'Y88b        \___________________________________/

  :8P    '      :888

   8a.   :     _a88P         For further information, check out:

._/"Yaa_:   .| 88P|            - http://blackfin.uclinux.org/

\    YP"    `| 8P  `.          - http://docs.blackfin.uclinux.org/

/     \.___.d|    .'           - http://www.uclinux.org/

`--..__)8888P`._.'  jgs/a:f    - http://www.analog.com/blackfin


Have a lot of fun...



f syBox v1.13.4 (2009-11-12 21:44:16 CPH)Y:u 0t:0n3 h- lLimnk) iEs eUp'h l-

10r0/ Fusll

  uilt-in commands.


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

musb_h_ep0_irq 1112: no URB for end 0

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

usb 1-1: configuration #1 chosen from 1 choice

scsi0 : SCSI emulation for USB Mass Storage devices


scsi 0:0:0:0: Direct-Access     SanDisk  Cruzer           7.01 PQ: 0 ANSI: 0




sd 0:0:0:0: [sda] 1957887 512-byte hardware sectors: (1.00 GB/955 MiB)


sd 0:0:0:0: [sda] Write Protect is off

sd 0:0:0:0: [sda] Assuming drive cache: write through





sd 0:0:0:0: [sda] 1957887 512-byte hardware sectors: (1.00 GB/955 MiB)


sd 0:0:0:0: [sda] Write Protect is off

sd 0:0:0:0: [sda] Assuming drive cache: write through




sd 0:0:0:0: [sda] Attached SCSI removable disk




--- Sonic Zhang                                              2010-01-14 02:17:47

No feedback from customer.












File Name     File Type     File Size     Posted By

No Files Were Found