[#5382] mmcspi: Can not detect SD card in bf533-stamp if connecting an ad1836 board

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

[#5382] mmcspi: Can not detect SD card in bf533-stamp if connecting an ad1836 board

Submitted By: Vivi Li

Open Date

2009-07-23 00:27:30     Close Date

2010-09-16 04:48:10


Low     Assignee:



Closed     Fixed In Release:


Found In Release:

2009R1-RC6     Release:


Drivers     Board:



BF533     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:


Uboot version or rev.:

    Toolchain version or rev.:


App binary format:


Summary: mmcspi: Can not detect SD card in bf533-stamp if connecting an ad1836 board



Can not detect SD card in bf533-stamp with spimmc daughter card.

No such problem on BF537-stamp. Board version is 1.1.


It can work with board version is 1.2.



Linux version (test@uclinux77-bf533-ad1836-spi) (gcc version 4.1.2 (ADI svn)) #40 Wed Jul 22 22:13:9

bootconsole [early_shadow0] enabled

bootconsole [early_BFuart0] enabled

early printk enabled on early_BFuart0

Warning: limiting memory to 56MB due to hardware anomaly 05000263

Board Memory: 128MB

Kernel Managed Memory: 128MB

Memory map:

  fixedcode = 0x00000400-0x00000490

  text      = 0x00001000-0x0011bd90

  rodata    = 0x0011bd90-0x00173628

  bss       = 0x00174000-0x00184490

  data      = 0x00184490-0x00194000

    stack   = 0x00192000-0x00194000

  init      = 0x00194000-0x0088f000

  available = 0x0088f000-0x037ff000

  DMA Zone  = 0x07f00000-0x08000000

Hardware Trace Active and Enabled

Boot Mode: 0

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

Compiled for ADSP-BF533 Rev 0.3

Warning: Compiled for Rev 3, but running on Rev 4

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

Processor Speed: 497 MHz core clock and 82 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: 14223

Kernel command line: root=/dev/mtdblock0 rw clkin_hz=11059200 earlyprintk=serial,uart0,57600 console=ttyBF0,57600 ip=

Configuring Blackfin Priority Driven Interrupts

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

bfin-rtc: invalid date; resetting

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

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

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

Memory available: 48008k/131072k RAM, (7148k init code, 1131k kernel code, 481k data, 1024k dma, 73280k reserved)

Calibrating delay loop... 991.23 BogoMIPS (lpj=1982464)

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

net_namespace: 288 bytes

NET: Registered protocol family 16

Blackfin DMA Controller

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

io scheduler noop registered

io scheduler anticipatory registered (default)

io scheduler cfq registered

Serial: Blackfin serial driver

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

brd: module loaded

smc91x.c: v1.1, sep 22 2004 by Nicolas Pitre <nico@cam.org>

eth0: SMC91C11xFD (rev 1) at 20300300 IRQ 40 [nowait]

eth0: Ethernet addr: 00:e0:22:fe:04:8b

bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0, regs_base@ffc00500, dma channel@5

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

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

mmc_spi spi0.4: ASSUMING 3.2-3.4 V slot power

mmc_spi spi0.4: SD/MMC host mmc0, no DMA, no WP, no poweroff

mmc_spi spi0.4: requested mode not fully supported

mmc_spi spi0.4: can't change chip-select polarity

TCP cubic registered

NET: Registered protocol family 17

rtc-bfin rtc-bfin: setting system clock to 1970-01-01 08:14:25 UTC (29665)

eth0: link down

IP-Config: Complete:

     device=eth0, addr=, mask=, gw=,

     host=bf533-stamp, domain=, nis-domain=(none),

     bootserver=, rootserver=, rootpath=

Freeing unused kernel memory: 7148k freed

dma_alloc_init: dma_page @ 0x0088c000 - 256 pages at 0x07f00000

eth0: link up, 100Mbps, full-duplex, lpa 0x41E1


        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|            - http://blackfin.uclinux.org/

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

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

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


Have a lot of fun...



BusyBox v1.13.4 (2009-07-22 11:17:25 MDT) built-in shell (msh)

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


root:/> cd /dev/

root:/dev> ls

console             ptmx                ram2                stderr

cpu_dma_latency     pts                 ram3                stdin

fd                  ram0                ram4                stdout

full                ram1                ram5                tty

kmsg                ram10               ram6                ttyBF0

log                 ram11               ram7                urandom

mem                 ram12               ram8                watchdog

network_latency     ram13               ram9                zero

network_throughput  ram14               random

null                ram15               rtc0






--- Yi Li                                                    2009-07-23 23:53:32

I tested with the same configure, but I cannot reproduce.


--- Vivi Li                                                  2009-07-24 00:23:03

It can work with board version is 1.2. Board version 1.1 can't work.


--- Yi Li                                                    2009-07-24 04:28:19

After more tests, it turns out that this is not related with board revision.


The cause is that, there is an ad1836 board and a spi-mmc board on the same

BF533-STAMP. Even if we disable ad1836 support in the kernel, spi-mmc cannot

work if ad1836 board connected to stamp. I did not see this problem on

BF537-STAMP. So there may be some HW issue.



--- Sonic Zhang                                              2010-09-16 04:48:10

Don't put ad1836 addon and spi-mmc addon to the same bf533-stamp.












File Name     File Type     File Size     Posted By

config.spimmc    application/octet-stream    30223    Vivi Li