[#4074] spi flash on bf527 ezkit would fail at mount

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

[#4074] spi flash on bf527 ezkit would fail at mount

Submitted By: Mingquan Pan

Open Date

2008-04-30 05:51:49     Close Date

2008-05-05 04:48:35


Medium     Assignee:

Michael Hennerich


Closed     Fixed In Release:


Found In Release:

N/A     Release:


N/A     Board:



N/A     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:


Uboot version or rev.:

    Toolchain version or rev.:


App binary format:


Summary: spi flash on bf527 ezkit would fail at mount



spi flash on bf527 ezkit would fail at mount.


root:/> dmesg

Linux version (test@linux-bf527-std) (gcc version 4.1.2 (ADI svn)) #92 Thu May 1 01:23:27 CST 2008

early printk enabled on early_BFuart0

Hardware Trace Active and Enabled

Reset caused by Software reset

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

Compiled for ADSP-BF527 Rev 0.0

Warning: Unsupported Chip Revision ADSP-BF527 Rev 0.0 detected

Blackfin Linux support by   blackfin.uclinux.org/

Processor Speed: 525 MHz core clock and 131 MHz System Clock

Board Memory: 64MB

Kernel Managed Memory: 64MB

Memory map:

  text      = 0x00001000-0x0010a1a0

  rodata    = 0x0010b000-0x0015839c

  data      = 0x00159000-0x0016a000

    stack   = 0x0015a000-0x0015c000

  init      = 0x0016a000-0x002fb000

  bss       = 0x002fb000-0x0030a810

  available = 0x0030a810-0x03eff000

  DMA Zone  = 0x03f00000-0x04000000

On node 0 totalpages: 16127

  DMA zone: 125 pages used for memmap

  DMA zone: 0 pages reserved

  DMA zone: 16002 pages, LIFO batch:3

  Normal zone: 0 pages used for memmap

Instruction Cache Enabled

Data Cache Enabled (write-through)

Built 1 zonelists.  Total pages: 16002

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

Configuring Blackfin Priority Driven Interrupts

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

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)

Kernel managed physical pages: 16127

Memory available: 60816k/65536k RAM, (1604k init code, 1060k kernel code, 446k data, 1024k dma, 584k reserved)

Blackfin Scratchpad data SRAM: 4 KB

Blackfin Data A SRAM: 16 KB (15 KB free)

Blackfin Data B SRAM: 16 KB (16 KB free)

Blackfin Instruction SRAM: 48 KB (42 KB free)

Calibrating delay loop... 1046.52 BogoMIPS (lpj=2093056)

Security Framework v1.0.0 initialized

Mount-cache hash table entries: 512

NET: Registered protocol family 16

Blackfin GPIO Controller

Blackfin DMA Controller

stamp_init(): registering device resources

Generic PHY: Registered new driver

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

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

io scheduler noop registered

io scheduler anticipatory registered (default)

io scheduler cfq registered

bfin-otp: initialized

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

Serial: Blackfin serial driver

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

RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize

bfin_mac_mdio: probed

bfin_mac: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:03, irq=-1, mdc_clk=2500000Hz(mdc_div=25)@sclk=131MHz)

bfin_mac: Version 1.1, Blackfin BF53[67] BF527 on-chip Ethernet MAC driver

m25p80 spi0.1: m25p64 (8192 Kbytes)

Creating 3 MTD partitions on "m25p80":

0x00000000-0x00040000 : "bootloader"

0x00040000-0x00120000 : "kernel"

0x00120000-0x00800000 : "file system"

bfin-spi bfin-spi.0: Blackfin BF5xx on-chip SPI Contoller Driver, Version 1.0, regs_base@ffc00500, dma channel@7

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

TCP cubic registered

NET: Registered protocol family 1

NET: Registered protocol family 17

Setting up Blackfin MMR debugfs

rtc-bfin rtc-bfin: setting the system clock to 2004-06-01 05:17:10 (1086067030)

Freeing unused kernel memory: 1604k freed

PHY: 0:03 - Link is Up - 100/Full


root:/> cat /proc/mtd

dev:    size   erasesize  name

mtd0: 00040000 00010000 "bootloader"

mtd1: 000e0000 00010000 "kernel"

mtd2: 006e0000 00010000 "file system"


root:/> eraseall /dev/mtd2

Erased 7040 Kibyte @ 0 -- 100% complete.

root:/> echo This is test for mtd driver > rootfs/test

root:/> mkfs.jffs2 -r rootfs -o mtd.img

root:/> cp mtd.img /dev/mtd2

root:/> mount -t jffs2 /dev/mtdblock2 /mnt

root:/> JFFS2 notice: (130) jffs2_get_inode_nodes: Node header CRC failed at 0x20002c. {1985,c002,00000060,b7a7c374}

JFFS2 notice: (130) jffs2_get_inode_nodes: Node header CRC failed at 0x00002c. {1985,c002,00000060,b7a7c374}

JFFS2 error: (130) jffs2_do_read_inode_internal: CRC failed for read_inode of inode 2 at physical location 0x60002c

Returned error for crccheck of ino #2. Expect badness...


root:/> ls /mnt/

JFFS2 notice: (131) jffs2_get_inode_nodes: Node header CRC failed at 0x60002c. {ffff,ffff,ffffffff,ffffffff}

Node totlen on flash (0xffffffff) != totlen from node ref (0x00000060)

JFFS2 warning: (131) jffs2_do_read_inode_internal: no data nodes found for ino #2

ls: /mnt/test: Input/output error




--- Michael Hennerich                                        2008-04-30 09:32:03

Fixed - please try again.




--- Mingquan Pan                                             2008-05-05 04:48:35













File Name     File Type     File Size     Posted By

config.snormtd    application/octet-stream    25468    Mingquan Pan