2009-01-15 03:05:13     musb with many problem in bf527

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

2009-01-15 03:05:13     musb with many problem in bf527

Bill Xie (CHINA)

Message: 67959   

 

   usb host code cann't work in bf527 ezkit from blackfin.uclinux.org. I got from  third party uClinux code ,but the usb host cann't work fine with many problem,for example :

 

  1. The system can identify usb flash disk only one time by power on.Once the flash disk is plugout,It

 

cann't work next time plugin.

 

2. test USB writing speed,usb may be dead

 

       time dd if=/dev/zero of=/mnt/100m.bin bs=1M count=100

 

usb 1-1: USB disconnect, address 2

musb_h_tx_flush_fifo 124: Could not flush host TX fifo: csr: 0003

sd 0:0:0:0: [sda] Result: hostbyte=0x07 driverbyte=0x00

end_request: I/O error, dev sda, sector 2892288

sd 0:0:0:0: [sda] Result: hostbyte=0x07 driverbyte=0x00

end_request: I/O error, dev sda, sector 2892528

sd 0:0:0:0: [sda] Result: hostbyte=0x07 driverbyte=0x00

end_request: I/O error, dev sda, sector 2892768

sd 0:0:0:0: [sda] Result: hostbyte=0x07 driverbyte=0x00

end_request: I/O error, dev sda, sector 2893008

sd 0:0:0:0: [sda] Result: hostbyte=0x07 driverbyte=0x00

end_request: I/O error, dev sda, sector 2893248

sd 0:0:0:0: [sda] Result: hostbyte=0x07 driverbyte=0x00

end_request: I/O error, dev sda, sector 2893488

sd 0:0:0:0: [sda] Result: hostbyte=0x07 driverbyte=0x00

end_request: I/O error, dev sda, sector 12604

Buffer I/O error on device sda1, logical block 4412

lost page write due to I/O error on sda1

Buffer I/O error on device sda1, logical block 4413

lost page write due to I/O error on sda1

sd 0:0:0:0: [sda] Result: hostbyte=0x07 driverbyte=0x00

end_request: I/O error, dev sda, sector 12946

Buffer I/O error on device sda1, logical block 4754

lost page write due to I/O error on sda1

Buffer I/O error on device sda1, logical block 4755

lost page write due to I/O error on sda1

sd 0:0:0:0: [sda] Result: hostbyte=0x07 driverbyte=0x00

end_request: I/O error, dev sda, sector 14498

Buffer I/O error on device sda1, logical block 6306

lost page write due to I/O error on sda1

Buffer I/O error on device sda1, logical block 6307

lost page write due to I/O error on sda1

sd 0:0:0:0: [sda] Result: hostbyte=0x07 driverbyte=0x00

end_request: I/O error, dev sda, sector 14840

Buffer I/O error on device sda1, logical block 6648

lost page write due to I/O error on sda1

Buffer I/O error on device sda1, logical block 6649

lost page write due to I/O error on sda1

sd 0:0:0:0: [sda] Result: hostbyte=0x07 driverbyte=0x00

end_request: I/O error, dev sda, sector 16384

Buffer I/O error on device sda1, logical block 8192

lost page write due to I/O error on sda1

sd 0:0:0:0: [sda] Result: hostbyte=0x07 driverbyte=0x00

end_request: I/O error, dev sda, sector 2893584

sd 0:0:0:0: [sda] Result: hostbyte=0x07 driverbyte=0x00

end_request: I/O error, dev sda, sector 2893824

sd 0:0:0:0: [sda] Result: hostbyte=0x07 driverbyte=0x00

end_request: I/O error, dev sda, sector 2894064

sd 0:0:0:0: [sda] Result: hostbyte=0x07 driverbyte=0x00

end_request: I/O error, dev sda, sector 2894304

sd 0:0:0:0: [sda] Result: hostbyte=0x07 driverbyte=0x00

end_request: I/O error, dev sda, sector 2894544

sd 0:0:0:0: [sda] Result: hostbyte=0x07 driverbyte=0x00

end_request: I/O error, dev sda, sector 2894784

sd 0:0:0:0: [sda] Result: hostbyte=0x07 driverbyte=0x00

end_request: I/O error, dev sda, sector 2895024

sd 0:0:0:0: [sda] Result: hostbyte=0x07 driverbyte=0x00

end_request: I/O error, dev sda, sector 2895264

sd 0:0:0:0: [sda] Result: hostbyte=0x07 driverbyte=0x00

end_request: I/O error, dev sda, sector 2895504

sd 0:0:0:0: [sda] Result: hostbyte=0x07 driverbyte=0x00

end_request: I/O error, dev sda, sector 2895744

sd 0:0:0:0: [sda] Result: hostbyte=0x07 driverbyte=0x00

end_request: I/O error, dev sda, sector 2895984

sd 0:0:0:0: [sda] Result: hostbyte=0x07 driverbyte=0x00

end_request: I/O error, dev sda, sector 2896224

sd 0:0:0:0: [sda] Result: hostbyte=0x07 driverbyte=0x00

end_request: I/O error, dev sda, sector 2896464

sd 0:0:0:0: [sda] Result: hostbyte=0x07 driverbyte=0x00

end_request: I/O error, dev sda, sector 12947

FAT: FAT read failed (blocknr 4755)

sd 0:0:0:0: [sda] Result: hostbyte=0x07 driverbyte=0x00

end_request: I/O error, dev sda, sector 12596

FAT: FAT read failed (blocknr 4404)

sd 0:0:0:0: [sda] Result: hostbyte=0x07 driverbyte=0x00

end_request: I/O error, dev sda, sector 12947

FAT: FAT read failed (blocknr 4755)

sd 0:0:0:0: [sda] Result: hostbyte=0x07 driverbyte=0x00

end_request: I/O error, dev sda, sector 12596

FAT: FAT read failed (blocknr 4404)

dd: writing '/mnt/100m.bin': Unknown error 5

39+0 records in

38+0 records out

Command exited with non-zero status 1

real    0m 6.72s

user    0m 0.00s

sys    0m 4.84s

sd 0:0:0:0: [sda] Result: hostbyte=0x07 driverbyte=0x00

end_request: I/O error, dev sda, sector 8193

FAT: bread failed in fat_clusters_flush 

 

3. 160G usb hard dist cannot work .The out message is:

 

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

 

Who can give me uclinux mhost code with working fine in usb host

 

QuoteReplyEditDelete

 

 

2009-01-15 03:15:52     Re: musb with many problem in bf527

Mike Frysinger (UNITED STATES)

Message: 67960   

 

usb hubs will never work.  the hardware does not support them.

 

only software obtained from our site is supported here.

QuoteReplyEditDelete

 

 

2009-01-15 04:00:19     Re: musb with many problem in bf527

Bill Xie (CHINA)

Message: 67962   

 

Mike:

 

    Thank you for your responce.I know bf527 usb host only supoprt  point to point way,so it is not

 

connect by usb hub.Do you test uClinux-dist-2008R1.5-RC3 usb host by flash dist?

 

--Bill

QuoteReplyEditDelete

 

 

2009-01-15 04:39:22     Re: musb with many problem in bf527

Bryan Wu (CHINA)

Message: 67976   

 

Hi Bill,

 

We did test the USB harddisk and flashdisk on BF527 board with 08R1.5.

 

There are billions of USB devices in this world, we can not test everything. How about trying another USB flash disk?

 

I guess this issue relates to the power supply of the USB harddisk. Is the USB harddisk self powered?

 

Please post the 'dmesg' and your config file of the kernel.

 

Thanks

 

-Bryan

QuoteReplyEditDelete

 

 

2009-01-16 02:22:44     Re: musb with many problem in bf527

Bill Xie (CHINA)

Message: 68009   

 

Hi Bryan,

 

     Thank you,BF527 board supply power for  usb harddisk .USB host is not working using 08R1.5  out message is:

 

   dmesg

 

Linux version 2.6.22.19-ADI-2008R1.5-svn (xiechl@localhost.localdomain) (gcc version 4.1.2 (ADI svn)) #19 Tue Jan 6 09:28:07 CST 2009

Hardware Trace Active and Enabled

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

Compiled for ADSP-BF527 Rev 0.0

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

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

Processor Speed: 600 MHz core clock and 100 MHz System Clock

Board Memory: 32MB

Kernel Managed Memory: 32MB

Memory map:

  text      = 0x00001000-0x0012f0e0

  rodata    = 0x00130000-0x0018b58c

  data      = 0x0018c000-0x001a2000

    stack   = 0x0018c000-0x0018e000

  init      = 0x001a2000-0x00710000

  bss       = 0x00710000-0x0071f6b0

  available = 0x0071f6b0-0x01eff000

  DMA Zone  = 0x01f00000-0x02000000

On node 0 totalpages: 7935

  DMA zone: 61 pages used for memmap

  DMA zone: 0 pages reserved

  DMA zone: 7874 pages, LIFO batch:0

  Normal zone: 0 pages used for memmap

NOMPU: setting up cplb tables for global access

Instruction Cache Enabled

Data Cache Enabled (write-through)

Built 1 zonelists.  Total pages: 7874

Kernel command line: console=ttyBF0,115200

Configuring Blackfin Priority Driven Interrupts

PID hash table entries: 128 (order: 7, 512 bytes)

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

Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)

Kernel managed physical pages: 7935

Memory available: 24148k/32768k RAM, (5560k init code, 1208k kernel code, 521k data, 1024k dma, 304k 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)

Calibrating delay loop... 1196.03 BogoMIPS (lpj=2392064)

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/dbg, pio, host, debug=3

musb_hdrc: ConfigData=0x00 (UTMI-8)

ep_config_from_hw 1276: <== static silicon ep config

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

musb_start 874: <== devctl 98

musb_init_controller 2099: HOST mode, status 0, devctl 99 B

Registered /proc/driver/musb_hdrc

NET: Registered protocol family 2

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

TCP established hash table entries: 1024 (order: 1, 8192 bytes)

TCP bind hash table entries: 1024 (order: 0, 4096 bytes)

TCP: Hash tables configured (established 1024 bind 1024)

TCP reno registered

musb_stage0_irq 403: <== Power=e0, DevCtl=5d, int_usb=0x10

musb_stage0_irq 641: CONNECT (a_host) devctl 5d

musb_hub_control 344: port status 00010101

io scheduler noop registered

io scheduler anticipatory registered (default)

io scheduler cfq registered

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=19)@sclk=100MHz)

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

Initializing USB Mass Storage driver...

musb_hub_control 344: port status 00120503

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

musb_ep_program 657: --> hw0 urb 01b5bde0 spd3 dev0 ep0out h_addr00 h_port00 bytes 8

musb_h_ep0_irq 1064: no response, csr0 0010

__musb_giveback 304: complete 01b5bde0 (-71), dev0 ep0in, 0/64

musb_ep_program 657: --> hw0 urb 01b5bde0 spd3 dev0 ep0out h_addr00 h_port00 bytes 8

musb_h_ep0_irq 1064: no response, csr0 0010

__musb_giveback 304: complete 01b5bde0 (-71), dev0 ep0in, 0/64

musb_ep_program 657: --> hw0 urb 01b5bde0 spd3 dev0 ep0out h_addr00 h_port00 bytes 8

musb_h_ep0_irq 1064: no response, csr0 0010

__musb_giveback 304: complete 01b5bde0 (-71), dev0 ep0in, 0/64

musb_hub_control 344: port status 00120503

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

musb_ep_program 657: --> hw0 urb 01b5bde0 spd3 dev0 ep0out h_addr00 h_port00 bytes 8

musb_h_ep0_irq 1064: no response, csr0 0010

__musb_giveback 304: complete 01b5bde0 (-71), dev0 ep0in, 0/64

musb_ep_program 657: --> hw0 urb 01b5bde0 spd3 dev0 ep0out h_addr00 h_port00 bytes 8

musb_h_ep0_irq 1064: no response, csr0 0010

__musb_giveback 304: complete 01b5bde0 (-71), dev0 ep0in, 0/64

musb_ep_program 657: --> hw0 urb 01b5bde0 spd3 dev0 ep0out h_addr00 h_port00 bytes 8

musb_h_ep0_irq 1064: no response, csr0 0010

__musb_giveback 304: complete 01b5bde0 (-71), dev0 ep0in, 0/64

musb_hub_control 344: port status 00120503

conn_timer_handler 299: a_host state not handled

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

musb_hub_control 344: port status 00120503

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

musb_ep_program 657: --> hw0 urb 01b5bde0 spd3 dev0 ep0out h_addr00 h_port00 bytes 8

musb_h_ep0_irq 1064: no response, csr0 0010

__musb_giveback 304: complete 01b5bde0 (-71), dev0 ep0in, 0/64

musb_ep_program 657: --> hw0 urb 01b5bde0 spd3 dev0 ep0out h_addr00 h_port00 bytes 8

musb_h_ep0_irq 1064: no response, csr0 0010

__musb_giveback 304: complete 01b5bde0 (-71), dev0 ep0in, 0/64

musb_ep_program 657: --> hw0 urb 01b5bde0 spd3 dev0 ep0out h_addr00 h_port00 bytes 8

musb_h_ep0_irq 1064: no response, csr0 0010

__musb_giveback 304: complete 01b5bde0 (-71), dev0 ep0in, 0/64

musb_hub_control 344: port status 00120503

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

musb_ep_program 657: --> hw0 urb 01b5bde0 spd3 dev0 ep0out h_addr00 h_port00 bytes 8

musb_h_ep0_irq 1064: no response, csr0 0010

__musb_giveback 304: complete 01b5bde0 (-71), dev0 ep0in, 0/64

musb_ep_program 657: --> hw0 urb 01b5bde0 spd3 dev0 ep0out h_addr00 h_port00 bytes 8

musb_h_ep0_irq 1064: no response, csr0 0010

__musb_giveback 304: complete 01b5bde0 (-71), dev0 ep0in, 0/64

musb_ep_program 657: --> hw0 urb 01b5bde0 spd3 dev0 ep0out h_addr00 h_port00 bytes 8

musb_h_ep0_irq 1064: no response, csr0 0010

__musb_giveback 304: complete 01b5bde0 (-71), dev0 ep0in, 0/64

musb_hub_control 344: port status 00120503

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

musb_hub_control 344: port status 00120503

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

musb_ep_program 657: --> hw0 urb 01b5bde0 spd3 dev0 ep0out h_addr00 h_port00 bytes 8

musb_h_ep0_irq 1064: no response, csr0 0010

__musb_giveback 304: complete 01b5bde0 (-71), dev0 ep0out, 0/0

musb_ep_program 657: --> hw0 urb 01b5bde0 spd3 dev0 ep0out h_addr00 h_port00 bytes 8

musb_h_ep0_irq 1064: no response, csr0 0010

__musb_giveback 304: complete 01b5bde0 (-71), dev0 ep0out, 0/0

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

musb_hub_control 344: port status 00120503

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

musb_ep_program 657: --> hw0 urb 01b5bde0 spd3 dev0 ep0out h_addr00 h_port00 bytes 8

musb_h_ep0_irq 1064: no response, csr0 0010

__musb_giveback 304: complete 01b5bde0 (-71), dev0 ep0out, 0/0

musb_ep_program 657: --> hw0 urb 01b5bde0 spd3 dev0 ep0out h_addr00 h_port00 bytes 8

musb_h_ep0_irq 1064: no response, csr0 0010

__musb_giveback 304: complete 01b5bde0 (-71), dev0 ep0out, 0/0

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

musb_hub_control 344: port status 00020501

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

usbcore: registered new interface driver usbhid

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

TCP cubic registered

NET: Registered protocol family 1

NET: Registered protocol family 17

Setting up Blackfin MMR debugfs

rtc-bfin rtc-bfin: setting the system clock to 1970-01-19 00:50:06 (1558206)

 

 

 

 

 

--Bill

Attachments

    Outcomes