FAQ: [#6952] mount spi flash on bf526 ezbrd fail on trunk head(2012)

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

[#6952] mount spi flash on bf526 ezbrd fail on trunk head

Submitted By: Mingquan Pan

Open Date

2012-01-12 03:23:26     Close Date

2012-01-17 05:00:08

Priority:

Medium     Assignee:

Scott Jiang

Status:

Closed     Fixed In Release:

N/A

Found In Release:

N/A     Release:

Category:

N/A     Board:

N/A

Processor:

BF526     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Assigned (Not Start)

Uboot version or rev.:

    Toolchain version or rev.:

2011r1-rc4

App binary format:

N/A     

Summary: mount spi flash on bf526 ezbrd fail on trunk head

Details:

 

mount spi flash on bf526 ezbrd fail on trunk head.

 

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

   Image Name:   bf526-0.0-3.1.0-ADI-2012R1-pre-s

   Created:      2012-01-10   8:31:08 UTC

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    2142309 Bytes = 2 MiB

   Load Address: 00001000

   Entry Point:  001ccca8

   Verifying Checksum ... OK

   Uncompressing Kernel Image ... OK

Starting Kernel at = 001ccca8

Linux version 3.1.0-ADI-2012R1-pre-svn10275 (test@uclinux81-bf526) (gcc version 4.3.5 (ADI-2011R1-RC4) ) #54 Tue Jan 10 16:31:00 CST 2012

register early platform devices

bootconsole [early_shadow0] enabled

bootconsole [early_BFuart1] enabled

early printk enabled on early_BFuart1

Board Memory: 64MB

Kernel Managed Memory: 64MB

Memory map:

  fixedcode = 0x00000400-0x00000490

  text      = 0x00001000-0x0013c778

  rodata    = 0x0013c778-0x001a0c28

  bss       = 0x001a1000-0x001b1510

  data      = 0x001b1510-0x001c4000

    stack   = 0x001c2000-0x001c4000

  init      = 0x001c4000-0x003bd000

  available = 0x003bd000-0x03f00000

  DMA Zone  = 0x03f00000-0x04000000

Hardware Trace active and enabled

Boot Mode: 1

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

Compiled for ADSP-BF526 Rev 0.0

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

Processor Speed: 400 MHz core clock and 80 MHz System Clock

NOMPU: setting up cplb tables

Instruction Cache Enabled for CPU0

  External memory: cacheable in instruction cache

Data Cache Enabled for CPU0

  External memory: cacheable (write-back) in data cache

Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 16002

Kernel command line: root=/dev/mtdblock0 rw ip=10.100.4.50 earlyprintk=serial,uart1,57600 console=ttyBF1,57600 ip=10.100.4.50:10.100.4.174:10.100.4.174:255.255.255.0:bf526-ezbrd:eth0:off

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

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

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

Memory available: 60076k/65536k RAM, (2020k init code, 1261k kernel code, 543k data, 1024k dma, 612k reserved)

NR_IRQS:159

Configuring Blackfin Priority Driven Interrupts

console [ttyBF1] enabled, bootconsole disabled

console [ttyBF1] enabled, bootconsole disabled

Calibrating delay loop... 792.57 BogoMIPS (lpj=1585152)

pid_max: default: 32768 minimum: 301

Mount-cache hash table entries: 512

Blackfin Scratchpad data SRAM: 4 KB

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

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

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

NET: Registered protocol family 16

Blackfin DMA Controller

ezbrd_init(): registering device resources

bio: create slab <bio-0> at 0

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

i2c-bfin-twi i2c-bfin-twi.0: Blackfin BF5xx on-chip I2C TWI Contoller, regs_base@ffc01400

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

UDP hash table entries: 256 (order: 0, 4096 bytes)

UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)

NET: Registered protocol family 1

debug-mmrs: setting up Blackfin MMR debugfs

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

msgmni has been set to 117

io scheduler noop registered (default)

bfin-uart: Blackfin serial driver

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

bfin-otp: initialized

brd: module loaded

physmap platform flash device: 00400000 at 20000000

physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank. Manufacturer ID 0x000020 Chip ID 0x008815

Intel/Sharp Extended Query Table at 0x0039

Intel/Sharp Extended Query Table at 0x0039

Intel/Sharp Extended Query Table at 0x0039

Intel/Sharp Extended Query Table at 0x0039

Intel/Sharp Extended Query Table at 0x0039

cfi_cmdset_0001: Erase suspend on write enabled

Using physmap partition information

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

0x000000000000-0x000000040000 : "bootloader(nor)"

0x000000040000-0x000000200000 : "linux kernel(nor)"

0x000000200000-0x000000400000 : "file system(nor)"

m25p80 spi0.1: sst25wf040 (512 Kbytes)

Creating 2 MTD partitions on "m25p80":

0x000000000000-0x000000040000 : "bootloader(spi)"

0x000000040000-0x000000080000 : "linux kernel(spi)"

bfin_mii_bus: probed

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

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

TCP cubic registered

NET: Registered protocol family 17

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

IP-Config: Complete:

     device=eth0, addr=10.100.4.50, mask=255.255.255.0, gw=10.100.4.174,

     host=bf526-ezbrd, domain=, nis-domain=(none),

...

BusyBox v1.18.4 (2012-01-09 23:57:38 CST) hush - the humble shell

 

root:/> versiPHY: 0:01 - Link is Up - 100/Full

on

kernel:    Linux release 3.1.0-ADI-2012R1-pre-svn10275, build #54 Tue Jan 10 16:31:00 CST 2012

toolchain: bfin-uclinux-gcc release gcc version 4.3.5 (ADI-2011R1-RC4)

user-dist: release svn-10617, build #637 Tue Jan 10 16:30:09 CST 2012

root:/> successful boot attempt

************** STEP 3: MTD test

 

cat /proc/mtd

dev:    size   erasesize  name

mtd0: 00040000 00010000 "bootloader(nor)"

mtd1: 001c0000 00010000 "linux kernel(nor)"

mtd2: 00200000 00010000 "file system(nor)"

mtd3: 00040000 00001000 "bootloader(spi)"

mtd4: 00040000 00001000 "linux kernel(spi)"

root:/>

Case 1 ...PASS

 

Case 1 ...PASS

 

************** STEP 4: Mount MTD

 

mount -t jffs2 /dev/mtdblock4 /mnt

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000000: 0xe10e instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000004: 0xe14e instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000008: 0xe10d instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000000c: 0xe14d instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000010: 0x6190 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000014: 0x6001 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000018: 0x3629 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000001c: 0x3639 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000020: 0x3c19 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000024: 0xe300 instead

Further such events for this erase block will not be printed

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00001000: 0x9709 instead

...Further such events for this erase block will not be printed^M

Empty flash at 0x00033508 ends at 0x0003350c^M

Empty flash at 0x00033918 ends at 0x0003391c^M

Empty flash at 0x00033924 ends at 0x00033928^M

Empty flash at 0x00033980 ends at 0x00033988^M

Empty flash at 0x0003398c ends at 0x00033994^M

Empty flash at 0x00033998 ends at 0x0003399c^M

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00034000: 0x9178 instead^M

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00034008: 0x92e4 instead^M

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0003400c: 0x0002 instead^M

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00034014: 0x8ad8 instead^M

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00034018: 0x92ec instead^M

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0003401c: 0x9308 instead^M

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00034020: 0xa7a0 instead^M

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00034024: 0x9334 instead^M

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00034028: 0x0010 instead^M

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0003402c: 0x0001 instead^M

Further such events for this erase block will not be printed^M

Cowardly refusing to erase blocks on filesystem with no valid JFFS2 nodes^M

empty_blocks 11, bad_blocks 0, c->nr_blocks 64^M

mount: mounting /dev/mtdblock4 on /mnt failed

Last passed time: 2011_Dec_11_16_22.

Uclinux-dist version: 10570.

Kernel verion: 10259, git-id: de8f67b314312a4bc9e5003ecde6c28a6be607bc

 

Case 2 ...FAIL

 

Case 2 ...FAIL

 

 

Follow-ups

 

--- Mingquan Pan                                             2012-01-17 05:28:51

The flash chip restore back to ok after doing flash erase on it. So close.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes