[#6424] SDIO MMC can't work in latest u-boot

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

[#6424] SDIO MMC can't work in latest u-boot

Submitted By: Vivi Li

Open Date

2010-12-27 03:52:20     Close Date

2011-01-18 23:02:48

Priority:

Medium     Assignee:

Sonic Zhang

Category:

N/A     Fixed In Release:

N/A

Found In Release:

2011R1     Status:

Closed

Board:

N/A     Processor:

BF518

Silicon Revision:

    Resolution:

Fixed

Is the bug repeatable?:

N/A     

Summary: SDIO MMC can't work in latest u-boot

Details:

 

SDIO MMC can't work in u-boot in latest trunk.

 

Last passed version is 2010.09-svn2525, first failed version is 2010.12-svn2539.

 

On bf548-ezkit:

--

U-Boot 2010.12-svn2539 (ADI-2011R1-pre) (Dec 23 2010 - 18:24:01)

 

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

Board: ADI BF548 EZ-Kit board

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

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

RAM:   64 MiB

Flash: 16 MiB

256 MiB

MMC:   Blackfin SDH: 0

*** Warning - bad CRC, using default environment

 

In:    serial

Out:   serial

Err:   serial

KGDB:  [on serial] ready

Net:   smc911x-0

Hit any key to stop autoboot:  0

bfin>

bfin> mmc rescan 0

bfin> fatls mmc 0

  5630746   uimage

  5630746   uimage.trunk.sdiommc

  5614355   uimage.09r1.sdiommc

 

3 file(s), 0 dir(s)

 

bfin> mmcinfo

Device: Blackfin SDH

Manufacturer ID: 3

OEM: 5344

Name: SD02G

Tran Speed: 25000000

Rd Block Len: 512

SD version 2.0

High Capacity: No

Capacity: 2032664576

Bus Width: 4-bit

bfin> fatload mmc 0 0x1000000 uimage

reading uimage

Invalid FAT entry

 

4096 bytes read

bfin>

--

 

On bf518f-ezbrd:

--

U-Boot 2010.12-svn2539 (ADI-2011R1-pre) (Dec 23 2010 - 22:29:54)

 

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

Board: ADI BF518F EZ-Board board

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

Clock: VCO: 400 MHz, Core: 400 MHz, System: 80 MHz

RAM:   64 MiB

Flash: 4 MiB

MMC:   Blackfin SDH: 0

In:    serial

Out:   serial

Err:   serial

KGDB:  [on serial] ready

Net:   bfin_mac

Hit any key to stop autoboot:  0

bfin> mmc rescan 0

tranfering data failed

bfin> fatls mmc 0

MMC: block number 0x1 exceeds max(0x0)

** Can't read from device 0 **

 

** Unable to use mmc 0:1 for fatls **

bfin>

--

 

Follow-ups

 

--- Mike Frysinger                                           2010-12-29 21:07:10

Sonic: i'm not terribly familiar with the SDH drivers or protocol, so it'll

probably be better to have someone in the China team debug this.  in the past,

Cliff and Barry took care of SDH issues.

 

--- Sonic Zhang                                              2010-12-30 03:38:06

Fixed.

 

Enable multiblock SD operation in bfin_sdh.c.

 

--- Vivi Li                                                  2011-01-17 01:39:46

Still fail on bf518 and bf548.

 

Bellow is the log for bf548:

--

U-Boot 2010.12-svn2585 (ADI-2011R1-pre) (Jan 13 2011 - 21:18:15)

 

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

Board: ADI BF548 EZ-Kit board

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

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

RAM:   64 MiB

Flash: 16 MiB

NAND:  256 MiB

MMC:   Blackfin SDH: 0

In:    serial

Out:   serial

Err:   serial

KGDB:  [on serial] ready

Net:   smc911x-0

Hit any key to stop autoboot:  0

bfin>

bfin> mmc rescan 0

bfin> fatls mmc 0

tranfering data failed

  5630746   uimage

  5630746   uimage.trunk.sdiommc

  5614355   uimage.09r1.sdiommc

 

3 file(s), 0 dir(s)

 

bfin> fatload mmc 0 0x1000000 uimage

sending CMD16 failed

** Can't read from device 0 **

 

** Unable to use mmc 0:1 for fatload **

bfin>

--

 

Bellow is the example on bf518.

--

U-Boot 2010.12-svn2586 (ADI-2011R1-pre) (Jan 17 2011 - 10:36:03)

 

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

Board: ADI BF518F EZ-Board board

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

Clock: VCO: 625 MHz, Core: 156.250 MHz, System: 78.125 MHz

RAM:   64 MiB

Flash: 4 MiB

MMC:   Blackfin SDH: 0

In:    serial

Out:   serial

Err:   serial

KGDB:  [on serial] ready

Net:   bfin_mac

Hit any key to stop autoboot:  0

bfin> mmc rescan 0

tranfering data failed

bfin>

--

 

--- Sonic Zhang                                              2011-01-17 21:55:25

This is a different bug. Please open a new report.

 

--- Vivi Li                                                  2011-01-18 23:02:48

OK, close this one and open new bug.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes