2009-12-14 22:51:43     sd卡无法正确加载

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

2009-12-14 22:51:43     sd卡无法正确加载

杨 永标 (CHINA)

Message: 83489   

 

大家好,我的开发板是ADI公司的BF518F-EZBRD,内核为2.6版本,busybox为1.13.4,在开发板上有一个SD卡的插槽SDH,我现在想为SD卡添加一个驱动,但是却怎么也添加不上去,我按照这个网址  docs.blackfin.uclinux.org/doku.php?id=linux-kernel:drivers:bfin_sdh&s[]=sd&s[]=card的说明文档对kernel进行了配置,但是还是没有添加上去,编译完成后在/proc/driver/目录倒是产生了sdh,但是在我的dev目录下没有SD或者MMC的相关设备,每次启动都提示:mmc0: error -84 whilst initialising SD card,而且我运行echo 0 > /proc/driver/sdh时也报错:mmc0: error -84 whilst initialising SD card,请大家帮忙参考参考,这是因为驱动程序没添加成功吗?还是我还有什么地方需要重新设置的?谢谢了!

TranslateQuoteReplyEditDelete

 

 

2009-12-14 23:04:17     Re: sd卡无法正确加载

Yi Li (CHINA)

Message: 83490   

 

你是用 2009R1-RC6?

 

请打开: [ ]MMC debugging 后,把boot message, 和 “echo 0 > /proc/driver/sdh” 后的message贴上来。

 

 

 

-Yi

QuoteReplyEditDelete

 

 

2009-12-15 00:37:17     Re: sd卡无法正确加载

杨 永标 (CHINA)

Message: 83493   

 

已打开[*]MMC Debugging

 

root:/proc/driver> echo 0 >/proc/driver/sdh

root:/proc/driver> mmc0: error -84 whilst initialising SD card

 

 

 

Booting kernel from Legacy Image at 01000000 ...

   Image Name:   Linux-2.6.28.10-ADI-2009R1

   Created:      2009-12-15   5:22:43 UTC

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    1103409 Bytes =  1.1 MB

   Load Address: 00001000

   Entry Point:  00200bac

   Verifying Checksum ... OK

   Uncompressing Kernel Image ... OK

Starting Kernel at = 00200bac

Linux version 2.6.28.10-ADI-2009R1 (root@ubuntu) (gcc version 4.1.2 (ADI svn)) #

11 Mon Dec 14 21:22:38 PST 2009

bootconsole [early_shadow0] enabled

bootconsole [early_BFuart0] enabled

early printk enabled on early_BFuart0

Board Memory: 32MB

Kernel Managed Memory: 32MB

Memory map:

  fixedcode = 0x00000400-0x00000490

  text      = 0x00001000-0x00156240

  rodata    = 0x00156240-0x001b7410

  bss       = 0x001b8000-0x001de60c

  data      = 0x001de60c-0x001f4000

    stack   = 0x001f2000-0x001f4000

  init      = 0x001f4000-0x00212000

  available = 0x00212000-0x01eff000

  DMA Zone  = 0x01f00000-0x02000000

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: 7873

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

arlyprintk=serial,uart0,57600 console=ttyBF0,57600

Configuring Blackfin Priority Driven Interrupts

PID hash table entries: 128 (order: 7, 512 bytes)

I-pipe 1.10-00: pipeline enabled.

Console: colour dummy device 80x25

console [ttyBF0] enabled, bootconsole disabled

console [ttyBF0] enabled, bootconsole disabled

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

Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)

Memory available: 29328k/32768k RAM, (120k init code, 1364k kernel code, 632k da

ta, 1024k dma, 296k reserved)

Calibrating delay loop... 794.62 BogoMIPS (lpj=1589248)

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)

net_namespace: 288 bytes

NET: Registered protocol family 16

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: 1024 (order: 1, 8192 bytes)

TCP bind hash table entries: 1024 (order: 0, 4096 bytes)

TCP: Hash tables configured (established 1024 bind 1024)

TCP reno registered

NET: Registered protocol family 1

I-pipe: Domain Xenomai registered.

Xenomai: hal/blackfin started.

Xenomai: real-time nucleus v2.4.7 (Andalusia) loaded.

Xenomai: starting native API services.

Xenomai: starting POSIX services.

Xenomai: starting RTDM services.

JFFS2 version 2.2. (NAND) 漏 2001-2006 Red Hat, Inc.

msgmni has been set to 57

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_div=15)@sclk=80MHz)

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

physmap platform flash device: 00300000 at 20000000

physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank

NOR chip too large to fit in mapping. Attempting to cope...

Amd/Fujitsu Extended Query Table at 0x0040

number of CFI chips: 1

cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.

Reducing visibility of 4096KiB chip to 3072KiB

cmdlinepart partition parsing not available

RedBoot partition parsing not available

Using physmap partition information

Creating 1 MTD partitions on "physmap-flash.0":

0x00000000-0x00300000 : "file system(nor)"

bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0, regs_b

ase@ffc00500, dma channel@7

bfin-spi bfin-spi.1: Blackfin on-chip SPI Controller Driver, Version 1.0, regs_b

ase@ffc03400, dma channel@5

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

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

dma_alloc_init: dma_page @ 0x002e5000 - 256 pages at 0x01f00000

TCP cubic registered

NET: Registered protocol family 17

Distributed Switch Architecture driver version 0.1

eth0: detected a KSZ8893M switch

dsa slave smi: probed

rtc-bfin rtc-bfin: setting system clock to 2003-06-06 06:34:27 UTC (1054881267)

VFS: Mounted root (jffs2 filesystem).

Freeing unused kernel memory: 120k freed

mmc0: error -84 whilst initialising SD card

                           _____________________________________

        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.4 (2009-12-14 02:48:04 PST) built-in shell (msh)

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

 

root:/> Write clean marker to block at 0x00000000 failed: -5

 

另外为什么会出现Write clean marker to block at 0x00000000 failed: -5这样的错误?

TranslateQuoteReplyEditDelete

 

 

2009-12-15 05:08:34     Re: sd卡无法正确加载

Yi Li (CHINA)

Message: 83526   

 

你能在 uclinux-dist/ 下,作 make bugreport,然后把bugreport.tgz贴到这里?我正在试图重现你的bug.

 

-Yi

QuoteReplyEditDelete

 

 

2009-12-16 22:31:19     Re: sd卡无法正确加载

Yi Li (CHINA)

Message: 83611   

 

我们在BF518f-ezbrd (chip rev 0.0)上试过mmc,在 2009R1 svn branch 下工作正常 - 你能否换几个SD卡试一试?

 

-Yi

QuoteReplyEditDelete

 

 

2009-12-17 00:55:15     Re: sd卡无法正确加载

Cliff Cai (CHINA)

Message: 83613   

 

请问你的板子的版本号是多少?

 

 

 

Cliff

QuoteReplyEditDelete

 

 

2009-12-17 02:08:11     Re: sd卡无法正确加载

Yi Li (CHINA)

Message: 83614   

 

请看一下:  docs.blackfin.uclinux.org/doku.php?id=hw:boards:bf518f-ezbrd

 

SW15是否设置正确。

Attachments

    Outcomes