[#4896] mmc/sd card can not be detect in bf518f-ezbrd

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

[#4896] mmc/sd card can not be detect in bf518f-ezbrd

Submitted By: Vivi Li

Open Date

2009-02-12 01:47:46     Close Date

2009-07-02 02:30:32

Priority:

Medium     Assignee:

Cliff Cai

Status:

Closed     Fixed In Release:

N/A

Found In Release:

N/A     Release:

Category:

Drivers     Board:

EZBRD

Processor:

BF518     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Not reproducible

Uboot version or rev.:

    Toolchain version or rev.:

gcc4.1-2009-01-19

App binary format:

N/A     

Summary: mmc/sd card can not be detect in bf518f-ezbrd

Details:

 

mmc/sd card can not be detect in bf518f-ezbrd. Config file is attached.

 

Bellow is the bug:

--

Linux version 2.6.28.3-ADI-2009R1-pre-svn6083 (test@uclinux36-uboot518) (gcc version 4.1.2 (ADI svn9

console [early_BFuart0] enabled

early printk enabled on early_BFuart0

Board Memory: 64MB

Kernel Managed Memory: 64MB

Memory map:

  fixedcode = 0x00000400-0x00000490

  text      = 0x00001000-0x0011e910

  rodata    = 0x0011e910-0x0017a7a0

  bss       = 0x0017a7a0-0x0018abfc

  data      = 0x0018abfc-0x0019e000

    stack   = 0x0019c000-0x0019e000

  init      = 0x0019e000-0x0045c000

  available = 0x0045c000-0x03eff000

  DMA Zone  = 0x03f00000-0x04000000

Hardware Trace Active and Enabled

Boot Mode: 3

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

Compiled for ADSP-BF518 Rev 0.0

Blackfin Linux support by   blackfin.uclinux.org/

Processor Speed: 100 MHz core clock and 50 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: 16001

Kernel command line: root=/dev/mtdblock0 rw clkin_hz=25000000 earlyprintk=serial,uart0,57600 consol0

Configuring Blackfin Priority Driven Interrupts

PID hash table entries: 256 (order: 8, 1024 bytes)

Console: colour dummy device 80x25

console handover: boot [early_BFuart0] -> real [ttyBF0]

Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)

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

Memory available: 59460k/65536k RAM, (2808k init code, 1142k kernel code, 510k data, 1024k dma, 588)

Calibrating delay loop... 198.14 BogoMIPS (lpj=396288)

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: 16 KB (16 KB free)

Blackfin L1 Instruction SRAM: 48 KB (42 KB free)

PDA for CPU0 reserved at 0017b64c

net_namespace: 288 bytes

NET: Registered protocol family 16

Blackfin GPIO Controller

Blackfin DMA Controller

ezbrd_init(): registering device resources

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 116

io scheduler noop registered (default)

Serial: Blackfin serial driver

bfin-uart.1: ttyBF0 at MMIO 0xffc00400 (irq = 29) 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_d)

bfin_mac bfin_mac.0: Blackfin on-chip Ethernet MAC driver, Version 1.1

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)

dma_alloc_init: dma_page @ 0x00657000 - 256 pages at 0x03f00000

TCP cubic registered

NET: Registered protocol family 17

rtc-bfin rtc-bfin: setting system clock to 2003-02-14 23:03:17 UTC (1045263797)

Freeing unused kernel memory: 2808k 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|            -   blackfin.uclinux.org/

\    YP"    `| 8P  `.          -   docs.blackfin.uclinux.org/

/     \.___.d|    .'           -   www.uclinux.org/

`--..__)8888P`._.'  jgs/a:f    -   www.analog.com/blackfin

 

Have a lot of fun...

 

 

BusyBox v1.13.2 (2009-02-12 11:36:04 CST) built-in shell (msh)

Enter 'help' for a list of built-in commands.

 

root:/> ls dev/

console             ram8                tty28               tty51

cpu_dma_latency     ram9                tty29               tty52

full                random              tty3                tty53

i2c-0               rtc0                tty30               tty54

kmsg                tty                 tty31               tty55

log                 tty0                tty32               tty56

mem                 tty1                tty33               tty57

network_latency     tty10               tty34               tty58

network_throughput  tty11               tty35               tty59

null                tty12               tty36               tty6

ptmx                tty13               tty37               tty60

pts                 tty14               tty38               tty61

ram0                tty15               tty39               tty62

ram1                tty16               tty4                tty63

ram10               tty17               tty40               tty7

ram11               tty18               tty41               tty8

ram12               tty19               tty42               tty9

ram13               tty2                tty43               ttyBF0

ram14               tty20               tty44               urandom

ram15               tty21               tty45               vcs

ram2                tty22               tty46               vcsa

ram3                tty23               tty47               watchdog

ram4                tty24               tty48               zero

ram5                tty25               tty49

ram6                tty26               tty5

ram7                tty27               tty50

root:/>

--

 

Follow-ups

 

--- Cliff Cai                                                2009-02-12 04:34:34

fixed now,the card inserting detect pin will affect card detection on BF51x.

 

--- Vivi Li                                                  2009-02-13 06:13:00

When I reset the board and stop in u-boot, run "mmcinit", then boot

kernel, SD card is not detected in kernel.

 

Bellow is the log:

--

U-Boot 2008.10-svn1651 (ADI-2009R1-pre) (Feb  6 2009 - 17:16:33)

 

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

Board: ADI BF518F EZ-Board board

       Support:   blackfin.uclinux.org/

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

RAM:   64 MB

Flash: ## Unknown FLASH on Bank 1 - Size = 0x00000000 = 0 MB

0 kB

SF: Got idcode 20 20 15

In:    serial

Out:   serial

Err:   serial

Net:   Blackfin EMAC

MAC:   0A:39:0E:5C:AC:8E

Hit any key to stop autoboot:  0

bfin> mmcinit

CID information:

Manufacturer ID:       03

OEM/Application ID:    5344

Product name:          SD512

Product Revision:      8.0

Product Serial Number: 2415997771

Manufacturing Date:    03/03

SD Card detected (RCA 53244)

CSD information:

CSD structure version:   1.0

Card command classes:    5f5

Max trans speed: 25MHz

Read block length:       512

Write block length:      16

Card capacity:          507379712 bytes

 

bfin> run bootcmd

Using Blackfin EMAC device

TFTP from server 10.100.4.174; our IP address is 10.100.4.50

Filename 'uImage'.

Load address: 0x1000000

Loading: #################################################################

         #################################################################

         #################################################################

         ####################################################

done

Bytes transferred = 3619955 (373c73 hex)

## Booting kernel from Legacy Image at 01000000 ...

   Image Name:   Linux-2.6.28.3-ADI-2009R1-pre-sv

   Created:      2009-02-12  17:14:06 UTC

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    3619891 Bytes =  3.5 MB

   Load Address: 00001000

   Entry Point:  001aa704

   Verifying Checksum ... OK

   Uncompressing Kernel Image ... OK

Starting Kernel at = 001aa704

Linux version 2.6.28.3-ADI-2009R1-pre-svn6091 (cliff@debiancliff) (gcc version

4.1.2 (ADI svn)) #319

console [early_BFuart0] enabled

early printk enabled on early_BFuart0

Board Memory: 64MB

Kernel Managed Memory: 64MB

Memory map:

  fixedcode = 0x00000400-0x00000490

  text      = 0x00001000-0x0011e970

  rodata    = 0x0011e970-0x001798d4

  bss       = 0x001798e0-0x00189d04

  data      = 0x00189d04-0x0019e000

    stack   = 0x0019c000-0x0019e000

  init      = 0x0019e000-0x00707000

  available = 0x00707000-0x03eff000

  DMA Zone  = 0x03f00000-0x04000000

Hardware Trace Active and Enabled

Boot Mode: 3

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

Compiled for ADSP-BF518 Rev 0.0

Blackfin Linux support by   blackfin.uclinux.org/

Processor Speed: 400 MHz core clock and 80 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: 16001

Kernel command line: root=/dev/mtdblock0 rw clkin_hz=25000000

earlyprintk=serial,uart0,57600 consolf

Configuring Blackfin Priority Driven Interrupts

PID hash table entries: 256 (order: 8, 1024 bytes)

Console: colour dummy device 80x25

console handover: boot [early_BFuart0] -> real [ttyBF0]

Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)

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

Memory available: 56728k/65536k RAM, (5540k init code, 1142k kernel code, 510k

data, 1024k dma, 588)

Calibrating delay loop... 796.67 BogoMIPS (lpj=1593344)

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: 16 KB (16 KB free)

Blackfin L1 Instruction SRAM: 48 KB (42 KB free)

PDA for CPU0 reserved at 0017a78c

net_namespace: 288 bytes

NET: Registered protocol family 16

Blackfin GPIO Controller

Blackfin DMA Controller

ezbrd_init(): registering device resources

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 110

io scheduler noop registered (default)

Serial: Blackfin serial driver

bfin-uart.1: ttyBF0 at MMIO 0xffc00400 (irq = 29) is a BFIN-UART

brd: module loaded

rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0

bfin-wdt: initialized: timeout=20 sec (nowayout=0)

dma_alloc_init: dma_page @ 0x03bce000 - 256 pages at 0x03f00000

TCP cubic registered

NET: Registered protocol family 17

rtc-bfin rtc-bfin: setting system clock to 2036-11-30 14:24:38 UTC

(2111667878)

IP-Config: Device `eth0' not found.

Freeing unused kernel memory: 5540k 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|            -   blackfin.uclinux.org/

\    YP"    `| 8P  `.          -   docs.blackfin.uclinux.org/

/     \.___.d|    .'           -   www.uclinux.org/

`--..__)8888P`._.'  jgs/a:f    -   www.analog.com/blackfin

 

Have a lot of fun...

 

 

BusyBox v1.13.1 (2008-12-27 00:53:57 CST) built-in shell (msh)

Enter 'help' for a list of built-in commands.

 

root:/> ls /dev/m*

/dev/mem

--

 

--- Vivi Li                                                  2009-07-02 02:30:32

This bug disappears in the latest bf518f-ezbrd board 0.2 with 09r1 branch.

So close this bug.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

config.sdiommc    application/octet-stream    28218    Vivi Li

Attachments

Outcomes