[#5871] No mtdblock is generated on bf533-stamp during xip test

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

[#5871] No mtdblock is generated on bf533-stamp during xip test

Submitted By: Vivi Li

Open Date

2010-01-28 01:22:15     Close Date

2010-03-23 23:55:05

Priority:

Medium     Assignee:

Barry Song

Status:

Closed     Fixed In Release:

N/A

Found In Release:

2010R1     Release:

Category:

N/A     Board:

STAMP

Processor:

BF533     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Rejected

Uboot version or rev.:

    Toolchain version or rev.:

gcc4.3_trunk3771

App binary format:

N/A     

Summary: No mtdblock is generated on bf533-stamp during xip test

Details:

 

No mtdblock is generated on bf533-stamp during xip test.

Other platform is OK.

 

Bellow is the log:

--

Linux version 2.6.32.6-ADI-2010R1-pre-svn8230 (test@uclinux77-533stamp-ad1836-spi) (gcc version 4.3.4 (ADI-trunk/svn-3771) ) #61 Wed Jan 27 22:06:59 GMT+6 2010

register early platform devices

bootconsole [early_shadow0] enabled

bootconsole [early_BFuart0] enabled

early printk enabled on early_BFuart0

Limiting kernel memory to 56MB due to anomaly 05000263

Board Memory: 128MB

Kernel Managed Memory: 128MB

Memory map:

  fixedcode = 0x00000400-0x00000490

  text      = 0x00001000-0x00114eb0

  rodata    = 0x00114eb0-0x0016eb7c

  bss       = 0x0016f000-0x0017faec

  data      = 0x0017faec-0x00190000

    stack   = 0x0018e000-0x00190000

  init      = 0x00190000-0x0062b000

  available = 0x0062b000-0x03800000

  DMA Zone  = 0x07f00000-0x08000000

Hardware Trace Active and Enabled

Boot Mode: 0

Reset caused by Software reset

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

Compiled for ADSP-BF533 Rev 0.3

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

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

Kernel command line: root=/dev/mtdblock0 rw ip=10.100.4.50 earlyprintk=serial,uart0,57600 console=ttyBF0,57600 ip=10.100.4.50:10.100.4.174:10.100.4.174:255.255.255.0:bf533-stamp: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: 50460k/131072k RAM, (4716k init code, 1103k kernel code, 493k data, 1024k dma, 73276k reserved)

Hierarchical RCU implementation.

NR_IRQS:81

Configuring Blackfin Priority Driven Interrupts

console [ttyBF0] enabled, bootconsole disabled

console [ttyBF0] enabled, bootconsole disabled

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

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

Blackfin L1 Instruction SRAM: 64 KB (52 KB free)

NET: Registered protocol family 16

Blackfin DMA Controller

stamp_init(): registering device resources

bio: create slab <bio-0> at 0

Switching to clocksource bfin_cs_cycles

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

ROMFS MTD (C) 2007 Red Hat, Inc.

msgmni has been set to 98

io scheduler noop registered

io scheduler anticipatory registered (default)

io scheduler cfq registered

bfin-uart: Blackfin serial driver

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

brd: module loaded

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

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

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

eth0: Ethernet addr: 00:e0:22:fe:07:5b

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

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

TCP cubic registered

NET: Registered protocol family 17

rtc-bfin rtc-bfin: setting system clock to 1973-05-08 15:39:55 UTC (105723595)

eth0: link down

IP-Config: Complete:

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

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

     bootserver=10.100.4.174, rootserver=10.100.4.174, rootpath=

Freeing unused kernel memory: 4716k freed

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

                           _____________________________________

        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...

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

 

 

BusyBox v1.15.3 (2010-01-27 21:54:17 GMT+6) hush - the humble shell

 

root:/> version

kernel:    Linux release 2.6.32.6-ADI-2010R1-pre-svn8230, build #61 Wed Jan 27 22:06:59 GMT+6 2010

toolchain: bfin-uclinux-gcc release gcc version 4.3.4 (ADI-trunk/svn-3771)

user-dist: release svn-9413, build #774 Wed Jan 27 22:03:40 GMT+6 2010

root:/>

root:/> ls /dev/

console             null                ram15               rtc0

cpu_dma_latency     ptmx                ram2                stderr

fd                  pts                 ram3                stdin

full                ram0                ram4                stdout

kmsg                ram1                ram5                tty

log                 ram10               ram6                ttyBF0

mdev.seq            ram11               ram7                urandom

mem                 ram12               ram8                watchdog

network_latency     ram13               ram9                zero

network_throughput  ram14               random

root:/>

--

 

Follow-ups

 

--- Barry Song                                               2010-03-22 02:06:22

For bf533 stamp, nor flash use async map driver:

#if defined(CONFIG_MTD_BFIN_ASYNC) || defined(CONFIG_MTD_BFIN_ASYNC_MODULE)

static struct mtd_partition stamp_partitions[] = {

        {  

                .name   = "bootloader(nor)",

                .size   = 0x40000,

                .offset = 0,

        }, {

                .name   = "linux kernel(nor)",

                .size   = 0x180000,

                .offset = MTDPART_OFS_APPEND,

        }, {

                .name   = "file system(nor)",

                .size   = MTDPART_SIZ_FULL,

                .offset = MTDPART_OFS_APPEND,

        }  

};

 

static struct physmap_flash_data stamp_flash_data = {

        .width    = 2,

        .parts    = stamp_partitions,

        .nr_parts = ARRAY_SIZE(stamp_partitions),

};

 

...

So CONFIG_MTD_BFIN_ASYNC should be selected.

 

And i think we can't test XIP on bf533 stamp board since it is sharing bus with

Ethernet. To support XIP, we must set bus to be always used by NOR since the NOR

access will not use filesystem and have no chance to switch the pin feature.

 

 

--- Vivi Li                                                  2010-03-23 23:53:48

Disable xip test for bf533-stamp.

Close this bug.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

config.linux.xip_userspace.fdpic    application/octet-stream    29083    Vivi Li

Outcomes