[#6851] uboot mmc fails to load uimage on both bf548 and bf518 board now

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

[#6851] uboot mmc fails to load uimage on both bf548 and bf518 board now

Submitted By: Mingquan Pan

Open Date

2011-10-27 03:51:21    

Priority:

Medium     Assignee:

Bob Liu

Category:

N/A     Fixed In Release:

2011R1

Found In Release:

2011R1     Status:

Open

Board:

N/A     Processor:

BF548

Silicon Revision:

    Resolution:

N/A

Is the bug repeatable?:

N/A     

Summary: uboot mmc fails to load uimage on both bf548 and bf518 board now

Details:

 

uboot mmc fails to load uimage  on both bf548 and bf518 board 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

 

Follow-ups

 

--- Bob Liu                                                  2011-11-01 02:08:51

fixed.

Changed blkcnt to 1 for blackfin.

 

--- Mingquan Pan                                             2011-11-03 02:44:45

it looks this case can pass for bf548, but still fails for bf537 and  bf518

board. They have similar error.

 

U-Boot 2011.09-svn2739 (ADI-2011R1) (Nov 03 2011 - 04:14:08)^M

^M

CPU:   ADSP bf537-0.2 (Detected Rev: 0.2) (bypass boot)^M

Board: ADI BF537 stamp board^M

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

Clock: VCO: 400 MHz, Core: 200 MHz, System: 100 MHz^M

RAM:   64 MiB^M

Flash: 4 MiB^M

MMC:   ^M

In:    serial^M

Out:   serial^M

Err:   serial^M

KGDB:  [on serial] ready^M

Net:   bfin_mac^M

Hit any key to stop autoboot:  9 ^H^H^H 8 ^H^H^H 7 ^H^H^H 6 ^H^H^H 5 ^H^H^H 0

^M

bfin> waiting for uboot prompt

^M

mmc_spi 4^M

MMC_SPI: 0 at 0:4 hz 25000000 mode 0^M

bfin> mmcinfo^M

Device: MMC_SPI^M

Manufacturer ID: 0^M

OEM: 0^M

Name: Tran Speed: 0^M

Rd Block Len: 0^M

MMC version 0.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

 

===== Recording result: mmc is fail

Fail to find last passed mmc result!

 

Attempting to recover to u-boot prompt

^M

^M

 

--- Bob Liu                                                  2011-11-07 04:12:10

518 works fine for me.

 

U-Boot 2011.09-svn2739 (ADI-2011R1) (Nov 07 2011 - 17:06:46)

 

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

bfin> fatls mmc 0

  5630746   uimage

 

1 file(s), 0 dir(s)

 

bfin> mmc info

mmc - MMC sub system

 

Usage:

mmc read addr blk# cnt

mmc write addr blk# cnt

mmc erase blk# cnt

mmc rescan

mmc part - lists available partition on current mmc device

mmc dev [dev] [part] - show or set current mmc device [partition]

mmc list - lists available devices

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>

 

--- Mingquan Pan                                             2011-12-09 01:17:13

It looks this case still would fail on bf518 mmc on changed system and clock

value.

 

The following is the summary of one round of uboot testing. On the default

system and core clock, mmc case can pass, while on the next two settting of

clocks, mmc case fails.

 

The error info is quite similar with above.

 

test@uboot36-518f:~/work/cruise/test_scripts/u-boot/logs/2011_12_08_17_11>

grep -nr "Test Re" *sum*log -A 10

test-uboot-2011_12_08_17_23-ion-don-summary-log:4:Test Results (cclk:400

Mhz,sclk:80 Mhz,icache:on,dcache:on)

test-uboot-2011_12_08_17_23-ion-don-summary-log-5-=====================================

test-uboot-2011_12_08_17_23-ion-don-summary-log-6-  Total Tests   :   51

test-uboot-2011_12_08_17_23-ion-don-summary-log-7-  Passed Tests  :   48

test-uboot-2011_12_08_17_23-ion-don-summary-log-8-  Failed Tests  :   0

test-uboot-2011_12_08_17_23-ion-don-summary-log-9-  Tests Not Run :   3

test-uboot-2011_12_08_17_23-ion-don-summary-log-10-

test-uboot-2011_12_08_17_23-ion-don-summary-log-11-Failed Tests

test-uboot-2011_12_08_17_23-ion-don-summary-log-12-=====================================

test-uboot-2011_12_08_17_23-ion-don-summary-log-13-

test-uboot-2011_12_08_17_23-ion-don-summary-log-14-Passed Tests

--

test-uboot-2011_12_08_18_22-ion-doff-summary-log:4:Test Results (cclk:400

Mhz,sclk:80 Mhz,icache:on,dcache:off)

test-uboot-2011_12_08_18_22-ion-doff-summary-log-5-=====================================

test-uboot-2011_12_08_18_22-ion-doff-summary-log-6-  Total Tests   :   51

test-uboot-2011_12_08_18_22-ion-doff-summary-log-7-  Passed Tests  :   47

test-uboot-2011_12_08_18_22-ion-doff-summary-log-8-  Failed Tests  :   1

test-uboot-2011_12_08_18_22-ion-doff-summary-log-9-  Tests Not Run :   3

test-uboot-2011_12_08_18_22-ion-doff-summary-log-10-

test-uboot-2011_12_08_18_22-ion-doff-summary-log-11-Failed Tests

test-uboot-2011_12_08_18_22-ion-doff-summary-log-12-=====================================

test-uboot-2011_12_08_18_22-ion-doff-summary-log-13-  -  mtest

test-uboot-2011_12_08_18_22-ion-doff-summary-log-14-

--

test-uboot-2011_12_08_19_23-ioff-don-summary-log:4:Test Results (cclk:400

Mhz,sclk:80 Mhz,icache:off,dcache:on)

test-uboot-2011_12_08_19_23-ioff-don-summary-log-5-=====================================

test-uboot-2011_12_08_19_23-ioff-don-summary-log-6-  Total Tests   :   51

test-uboot-2011_12_08_19_23-ioff-don-summary-log-7-  Passed Tests  :   47

test-uboot-2011_12_08_19_23-ioff-don-summary-log-8-  Failed Tests  :   1

test-uboot-2011_12_08_19_23-ioff-don-summary-log-9-  Tests Not Run :   3

test-uboot-2011_12_08_19_23-ioff-don-summary-log-10-

test-uboot-2011_12_08_19_23-ioff-don-summary-log-11-Failed Tests

test-uboot-2011_12_08_19_23-ioff-don-summary-log-12-=====================================

test-uboot-2011_12_08_19_23-ioff-don-summary-log-13-  -  mtest

test-uboot-2011_12_08_19_23-ioff-don-summary-log-14-

--

test-uboot-2011_12_08_20_32-ioff-doff-summary-log:4:Test Results (cclk:400

Mhz,sclk:80 Mhz,icache:off,dcache:off)

test-uboot-2011_12_08_20_32-ioff-doff-summary-log-5-=====================================

test-uboot-2011_12_08_20_32-ioff-doff-summary-log-6-  Total Tests   :   51

test-uboot-2011_12_08_20_32-ioff-doff-summary-log-7-  Passed Tests  :   47

test-uboot-2011_12_08_20_32-ioff-doff-summary-log-8-  Failed Tests  :   1

test-uboot-2011_12_08_20_32-ioff-doff-summary-log-9-  Tests Not Run :   3

test-uboot-2011_12_08_20_32-ioff-doff-summary-log-10-

test-uboot-2011_12_08_20_32-ioff-doff-summary-log-11-Failed Tests

test-uboot-2011_12_08_20_32-ioff-doff-summary-log-12-=====================================

test-uboot-2011_12_08_20_32-ioff-doff-summary-log-13-  -  mtest

test-uboot-2011_12_08_20_32-ioff-doff-summary-log-14-

--

test-uboot-2011_12_08_21_46-ion-don-summary-log:4:Test Results (cclk:100

Mhz,sclk:50 Mhz,icache:on,dcache:on)

test-uboot-2011_12_08_21_46-ion-don-summary-log-5-=====================================

test-uboot-2011_12_08_21_46-ion-don-summary-log-6-  Total Tests   :   51

test-uboot-2011_12_08_21_46-ion-don-summary-log-7-  Passed Tests  :   38

test-uboot-2011_12_08_21_46-ion-don-summary-log-8-  Failed Tests  :   2

test-uboot-2011_12_08_21_46-ion-don-summary-log-9-  Tests Not Run :   11

test-uboot-2011_12_08_21_46-ion-don-summary-log-10-

test-uboot-2011_12_08_21_46-ion-don-summary-log-11-Failed Tests

test-uboot-2011_12_08_21_46-ion-don-summary-log-12-=====================================

test-uboot-2011_12_08_21_46-ion-don-summary-log-13-  -  mmc

test-uboot-2011_12_08_21_46-ion-don-summary-log-14-  -  autoboot countdown

seconds

--

test-uboot-2011_12_08_22_34-ion-doff-summary-log:4:Test Results (cclk:100

Mhz,sclk:50 Mhz,icache:on,dcache:off)

test-uboot-2011_12_08_22_34-ion-doff-summary-log-5-=====================================

test-uboot-2011_12_08_22_34-ion-doff-summary-log-6-  Total Tests   :   51

test-uboot-2011_12_08_22_34-ion-doff-summary-log-7-  Passed Tests  :   47

test-uboot-2011_12_08_22_34-ion-doff-summary-log-8-  Failed Tests  :   1

test-uboot-2011_12_08_22_34-ion-doff-summary-log-9-  Tests Not Run :   3

test-uboot-2011_12_08_22_34-ion-doff-summary-log-10-

test-uboot-2011_12_08_22_34-ion-doff-summary-log-11-Failed Tests

test-uboot-2011_12_08_22_34-ion-doff-summary-log-12-=====================================

test-uboot-2011_12_08_22_34-ion-doff-summary-log-13-  -  mmc

test-uboot-2011_12_08_22_34-ion-doff-summary-log-14-

--

test-uboot-2011_12_08_23_38-ioff-don-summary-log:4:Test Results (cclk:100

Mhz,sclk:50 Mhz,icache:off,dcache:on)

test-uboot-2011_12_08_23_38-ioff-don-summary-log-5-=====================================

test-uboot-2011_12_08_23_38-ioff-don-summary-log-6-  Total Tests   :   51

test-uboot-2011_12_08_23_38-ioff-don-summary-log-7-  Passed Tests  :   46

test-uboot-2011_12_08_23_38-ioff-don-summary-log-8-  Failed Tests  :   2

test-uboot-2011_12_08_23_38-ioff-don-summary-log-9-  Tests Not Run :   3

test-uboot-2011_12_08_23_38-ioff-don-summary-log-10-

test-uboot-2011_12_08_23_38-ioff-don-summary-log-11-Failed Tests

test-uboot-2011_12_08_23_38-ioff-don-summary-log-12-=====================================

test-uboot-2011_12_08_23_38-ioff-don-summary-log-13-  -  mmc

test-uboot-2011_12_08_23_38-ioff-don-summary-log-14-  -  mtest

--

test-uboot-2011_12_09_00_50-ioff-doff-summary-log:4:Test Results (cclk:100

Mhz,sclk:50 Mhz,icache:off,dcache:off)

test-uboot-2011_12_09_00_50-ioff-doff-summary-log-5-=====================================

test-uboot-2011_12_09_00_50-ioff-doff-summary-log-6-  Total Tests   :   51

test-uboot-2011_12_09_00_50-ioff-doff-summary-log-7-  Passed Tests  :   47

test-uboot-2011_12_09_00_50-ioff-doff-summary-log-8-  Failed Tests  :   1

test-uboot-2011_12_09_00_50-ioff-doff-summary-log-9-  Tests Not Run :   3

test-uboot-2011_12_09_00_50-ioff-doff-summary-log-10-

test-uboot-2011_12_09_00_50-ioff-doff-summary-log-11-Failed Tests

test-uboot-2011_12_09_00_50-ioff-doff-summary-log-12-=====================================

test-uboot-2011_12_09_00_50-ioff-doff-summary-log-13-  -  mmc

test-uboot-2011_12_09_00_50-ioff-doff-summary-log-14-

--

test-uboot-2011_12_09_02_09-ion-don-summary-log:4:Test Results (cclk:400

Mhz,sclk:50 Mhz,icache:on,dcache:on)

test-uboot-2011_12_09_02_09-ion-don-summary-log-5-=====================================

test-uboot-2011_12_09_02_09-ion-don-summary-log-6-  Total Tests   :   51

test-uboot-2011_12_09_02_09-ion-don-summary-log-7-  Passed Tests  :   47

test-uboot-2011_12_09_02_09-ion-don-summary-log-8-  Failed Tests  :   1

test-uboot-2011_12_09_02_09-ion-don-summary-log-9-  Tests Not Run :   3

test-uboot-2011_12_09_02_09-ion-don-summary-log-10-

test-uboot-2011_12_09_02_09-ion-don-summary-log-11-Failed Tests

test-uboot-2011_12_09_02_09-ion-don-summary-log-12-=====================================

test-uboot-2011_12_09_02_09-ion-don-summary-log-13-  -  mmc

test-uboot-2011_12_09_02_09-ion-don-summary-log-14-

--

test-uboot-2011_12_09_03_09-ion-doff-summary-log:4:Test Results (cclk:400

Mhz,sclk:50 Mhz,icache:on,dcache:off)

test-uboot-2011_12_09_03_09-ion-doff-summary-log-5-=====================================

test-uboot-2011_12_09_03_09-ion-doff-summary-log-6-  Total Tests   :   51

test-uboot-2011_12_09_03_09-ion-doff-summary-log-7-  Passed Tests  :   46

test-uboot-2011_12_09_03_09-ion-doff-summary-log-8-  Failed Tests  :   2

test-uboot-2011_12_09_03_09-ion-doff-summary-log-9-  Tests Not Run :   3

test-uboot-2011_12_09_03_09-ion-doff-summary-log-10-

test-uboot-2011_12_09_03_09-ion-doff-summary-log-11-Failed Tests

test-uboot-2011_12_09_03_09-ion-doff-summary-log-12-=====================================

test-uboot-2011_12_09_03_09-ion-doff-summary-log-13-  -  mmc

test-uboot-2011_12_09_03_09-ion-doff-summary-log-14-  -  mtest

--

test-uboot-2011_12_09_04_17-ioff-don-summary-log:4:Test Results (cclk:400

Mhz,sclk:50 Mhz,icache:off,dcache:on)

test-uboot-2011_12_09_04_17-ioff-don-summary-log-5-=====================================

test-uboot-2011_12_09_04_17-ioff-don-summary-log-6-  Total Tests   :   51

test-uboot-2011_12_09_04_17-ioff-don-summary-log-7-  Passed Tests  :   46

test-uboot-2011_12_09_04_17-ioff-don-summary-log-8-  Failed Tests  :   2

test-uboot-2011_12_09_04_17-ioff-don-summary-log-9-  Tests Not Run :   3

test-uboot-2011_12_09_04_17-ioff-don-summary-log-10-

test-uboot-2011_12_09_04_17-ioff-don-summary-log-11-Failed Tests

test-uboot-2011_12_09_04_17-ioff-don-summary-log-12-=====================================

test-uboot-2011_12_09_04_17-ioff-don-summary-log-13-  -  mmc

test-uboot-2011_12_09_04_17-ioff-don-summary-log-14-  -  autoboot countdown

seconds

--

test-uboot-2011_12_09_05_28-ioff-doff-summary-log:4:Test Results (cclk:400

Mhz,sclk:50 Mhz,icache:off,dcache:off)

test-uboot-2011_12_09_05_28-ioff-doff-summary-log-5-=====================================

test-uboot-2011_12_09_05_28-ioff-doff-summary-log-6-  Total Tests   :   51

test-uboot-2011_12_09_05_28-ioff-doff-summary-log-7-  Passed Tests  :   47

test-uboot-2011_12_09_05_28-ioff-doff-summary-log-8-  Failed Tests  :   1

test-uboot-2011_12_09_05_28-ioff-doff-summary-log-9-  Tests Not Run :   3

test-uboot-2011_12_09_05_28-ioff-doff-summary-log-10-

test-uboot-2011_12_09_05_28-ioff-doff-summary-log-11-Failed Tests

test-uboot-2011_12_09_05_28-ioff-doff-summary-log-12-=====================================

test-uboot-2011_12_09_05_28-ioff-doff-summary-log-13-  -  mmc

test-uboot-2011_12_09_05_28-ioff-doff-summary-log-14-

--

test-uboot-2011_12_09_06_45-ion-don-summary-log:4:Test Results (cclk:156

Mhz,sclk:78 Mhz,icache:on,dcache:on)

test-uboot-2011_12_09_06_45-ion-don-summary-log-5-=====================================

test-uboot-2011_12_09_06_45-ion-don-summary-log-6-  Total Tests   :   51

test-uboot-2011_12_09_06_45-ion-don-summary-log-7-  Passed Tests  :   45

test-uboot-2011_12_09_06_45-ion-don-summary-log-8-  Failed Tests  :   3

test-uboot-2011_12_09_06_45-ion-don-summary-log-9-  Tests Not Run :   3

test-uboot-2011_12_09_06_45-ion-don-summary-log-10-

test-uboot-2011_12_09_06_45-ion-don-summary-log-11-Failed Tests

test-uboot-2011_12_09_06_45-ion-don-summary-log-12-=====================================

test-uboot-2011_12_09_06_45-ion-don-summary-log-13-  -  iminfo

test-uboot-2011_12_09_06_45-ion-don-summary-log-14-  -  bdinfo

--

test-uboot-2011_12_09_07_46-ion-doff-summary-log:4:Test Results (cclk:156

Mhz,sclk:78 Mhz,icache:on,dcache:off)

test-uboot-2011_12_09_07_46-ion-doff-summary-log-5-=====================================

test-uboot-2011_12_09_07_46-ion-doff-summary-log-6-  Total Tests   :   51

test-uboot-2011_12_09_07_46-ion-doff-summary-log-7-  Passed Tests  :   48

test-uboot-2011_12_09_07_46-ion-doff-summary-log-8-  Failed Tests  :   0

test-uboot-2011_12_09_07_46-ion-doff-summary-log-9-  Tests Not Run :   3

test-uboot-2011_12_09_07_46-ion-doff-summary-log-10-

test-uboot-2011_12_09_07_46-ion-doff-summary-log-11-Failed Tests

test-uboot-2011_12_09_07_46-ion-doff-summary-log-12-=====================================

test-uboot-2011_12_09_07_46-ion-doff-summary-log-13-

test-uboot-2011_12_09_07_46-ion-doff-summary-log-14-Passed Tests

--

test-uboot-2011_12_09_08_47-ioff-don-summary-log:4:Test Results (cclk:156

Mhz,sclk:78 Mhz,icache:off,dcache:on)

test-uboot-2011_12_09_08_47-ioff-don-summary-log-5-=====================================

test-uboot-2011_12_09_08_47-ioff-don-summary-log-6-  Total Tests   :   51

test-uboot-2011_12_09_08_47-ioff-don-summary-log-7-  Passed Tests  :   48

test-uboot-2011_12_09_08_47-ioff-don-summary-log-8-  Failed Tests  :   0

test-uboot-2011_12_09_08_47-ioff-don-summary-log-9-  Tests Not Run :   3

test-uboot-2011_12_09_08_47-ioff-don-summary-log-10-

test-uboot-2011_12_09_08_47-ioff-don-summary-log-11-Failed Tests

test-uboot-2011_12_09_08_47-ioff-don-summary-log-12-=====================================

test-uboot-2011_12_09_08_47-ioff-don-summary-log-13-

test-uboot-2011_12_09_08_47-ioff-don-summary-log-14-Passed Tests

--

test-uboot-2011_12_09_09_54-ioff-doff-summary-log:4:Test Results (cclk:156

Mhz,sclk:78 Mhz,icache:off,dcache:off)

test-uboot-2011_12_09_09_54-ioff-doff-summary-log-5-=====================================

test-uboot-2011_12_09_09_54-ioff-doff-summary-log-6-  Total Tests   :   51

test-uboot-2011_12_09_09_54-ioff-doff-summary-log-7-  Passed Tests  :   40

test-uboot-2011_12_09_09_54-ioff-doff-summary-log-8-  Failed Tests  :   0

test-uboot-2011_12_09_09_54-ioff-doff-summary-log-9-  Tests Not Run :   11

test-uboot-2011_12_09_09_54-ioff-doff-summary-log-10-

test-uboot-2011_12_09_09_54-ioff-doff-summary-log-11-Failed Tests

test-uboot-2011_12_09_09_54-ioff-doff-summary-log-12-=====================================

test-uboot-2011_12_09_09_54-ioff-doff-summary-log-13-

test-uboot-2011_12_09_09_54-ioff-doff-summary-log-14-Passed Tests

--

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes