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

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

Submitted By: Vivi Li

Open Date

2011-01-18 23:02:54     Close Date

2013-02-19 01:06:01

Priority:

Medium     Assignee:

Aaron Wu

Bob Liu

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. This happened on Dec 23, 2010.

 

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>

--

 

Follow-ups

 

--- Aaron Wu                                                 2011-08-02 02:48:15

I can verify this bug on a bf548 board, Vivi, could you check the log to see

what's the latest version that works fine?

 

--- Vivi Li                                                  2011-08-02 03:30:20

This bug happened on Dec 23, 2010.

Last passed version is 2010.09-svn2525.

First failed version is 2010.12-svn2539.

 

--- Bob Liu                                                  2011-09-22 04:12:32

fixed

 

--- Mingquan Pan                                             2011-10-25 04:58:00

On latest uboot trunk, it looks this still fails:

U-Boot 2011.09-svn2725 (ADI-2011R1-pre) (Oct 25 2011 - 10:22:24)^M

^M

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

Board: ADI BF548 EZ-Kit board^M

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

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

RAM:   64 MiB^M

Flash: 16 MiB^M

NAND:  256 MiB^M

MMC:   Blackfin SDH: 0^M

In:    serial^M

Out:   serial^M

Err:   serial^M

KGDB:  [on serial] ready^M

Net:   smc911x-0^M

Warning: smc911x-0 MAC addresses don't match:^M

Address in SROM is         00:e0:22:fe:bd:b0^M

Address in environment is  00:11:22:33:44:55^M

 

 

STEP 43: Test MMC/SD

 

mmc rescan 0^M

sending CMD2 failed^M

bfin> mmcinfo^M

sending CMD2 failed^M

Device: Blackfin SDH^M

Manufacturer ID: 0^M

OEM: 0^M

Name: Tran Speed: 0^M

Rd Block Len: 0^M

SD version 2.0^M

High Capacity: No^M

Capacity: 0 Bytes^M

Bus Width: 1-bit^M

bfin> fatls mmc 0^M

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

** Can't read from device 0 **^M

^M

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

bfin> ERROR: can not find uimage

Attempting to recover to u-boot prompt

got u-boot prompt

<INTERRUPT>^M

bfin> versionRecovered

 

 

--- Bob Liu                                                  2011-10-25 23:21:04

Can't reproduce.

U-Boot 2011.09-svn2725 (ADI-2011R1-pre) (Oct 26 2011 - 11:12:00)

 

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

*** Warning - bad CRC, using default environment

 

In:    serial

Out:   serial

Err:   serial

KGDB:  [on serial] ready

Net:   smc911x-0Warning: failed to set MAC address

 

Hit any key to stop autoboot:  0

bfin> mmc rescan 0

bfin> mmcinfo

Device: Blackfin SDH

Manufacturer ID: 2

OEM: 544d

Name: SA02G

Tran Speed: 25000000

Rd Block Len: 512

SD version 1.0

High Capacity: No

Capacity: 1.8 GiB

Bus Width: 4-bit

bfin> fatls mmc 0

     1070   mkcard.sh

    20632   mlo

  2966308   uimage.bak

  3178624   uimage

    72571   readlink03

   149712   u-boot.bin

            .trash-1001/

   183484   e2fsck

   175568   libext2fs.so.2

    13980   libcom_err.so.2

    48284   libblkid.so.1

 

10 file(s), 1 dir(s)

 

bfin>

 

--- Mingquan Pan                                             2011-10-26 05:12:39

After fixing the mmc board issue, I can run fatls correcly now.

 

U-Boot 2011.09-svn2728 (ADI-2011R1-pre) (Oct 26 2011 - 15:51:49)

 

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

Warning: smc911x-0 MAC addresses don't match:

Address in SROM is         00:e0:22:fe:bd:b0

Address in environment is  00:11:22:33:44:55

 

Hit any key to stop autoboot:  0

bfin>

bfin> mmc rescan 0

bfin> mmcinfo

Device: Blackfin SDH

Manufacturer ID: 3

OEM: 5344

Name: SD01G

Tran Speed: 25000000

Rd Block Len: 512

SD version 1.0

High Capacity: No

Capacity: 968.8 MiB

Bus Width: 1-bit

bfin> fatls mmc 0

  5614355   uimage.09r1.sdiommc

  5630746   uimage.trunk.sdiommc

  5630746   uimage

 

3 file(s), 0 dir(s)

 

bfin> fatload mmc 0 0x1000000 uimage

reading uimage

Invalid FAT entry

 

16384 bytes read

 

but fatload still fails. Is it FAT 16 issue that need to reflash the mmc?

 

--- Sonic Zhang                                              2011-10-27 23:28:26

This bug is fixed. Grace's comment is a different bug.

 

--- Mingquan Pan                                             2013-02-19 02:12:51

spi mmc on bf548 can pass now.Close.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes