[#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

Priority:

Medium     Assignee:

Cliff Cai

Category:

N/A     Fixed In Release:

N/A

Found In Release:

2009R1     Status:

Closed

Board:

N/A     Processor:

BF527

Silicon Revision:

    Resolution:

Not reproducible

Is the bug repeatable?:

N/A     

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

Details:

 

yihui zhang report this bug on forum.

 

http://blackfin.uclinux.org/gf/project/u-boot/forum/?action=ForumBrowse&_forum_action=MessageReply&message_id=81157

 

 

Follow-ups

 

--- 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.

 

Cliff

 

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

MAC:   C6:DE:D0:EC:EE:DD

Hit any key to stop autoboot:  0

bfin>

bfin>

bfin>

bfin>

bfin>

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-2.6.28.10-ADI-2009R1-svn77

   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 2.6.28.10-ADI-2009R1-svn7789 (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=10.100.4.50

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,

mdc_clk=2500000Hz(mdc_div=25)@sclk=131MHz)

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,

regs_base@ffc01400

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 255.0.0.0

IP-Config: Complete:

     device=eth0, addr=10.100.4.50, mask=255.0.0.0, gw=255.255.255.255,

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

     bootserver=255.255.255.255, rootserver=255.255.255.255, 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

cliff:host00000

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

CCS

cliff:host00000

cliff:host00000

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

cliff:host00000

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

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

cliff:host00000

cliff:host00000

cliff:host00000

cliff:host00000

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

cliff:host00000

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

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

sda:<3>cliff:host00000

sda1

cliff:host00000

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

 

root:/>

 

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

No feedback from customer.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes