Article [#5206] mtdblock2 on bf518 can't be recognized

[#5206] mtdblock2 on bf518 can't be recognized

Submitted By: Mingquan Pan

Open Date

2009-06-04 03:53:34     Close Date

2009-06-10 06:12:48

Priority:

Medium High     Assignee:

Mingquan Pan

Status:

Closed     Fixed In Release:

N/A

Found In Release:

N/A     Release:

Category:

N/A     Board:

N/A

Processor:

BF518     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Under Debugging

Uboot version or rev.:

    Toolchain version or rev.:

09r1-r6

App binary format:

N/A     

Summary: mtdblock2 on bf518 can't be recognized

Details:

mtdblock2 on bf518 can't be recognized .

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

   Image Name:   Linux-2.6.28.10-ADI-2009R1-svn64

   Created:      2009-05-30   2:28:37 UTC

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    2038858 Bytes =  1.9 MB

   Load Address: 00001000

   Entry Point:  0017c81c

   Verifying Checksum ... OK

   Uncompressing Kernel Image ... OK

Starting Kernel at = 0017c81c

Linux version 2.6.28.10-ADI-2009R1-svn6498 (test@uclinux80-518f) (gcc version 4.1.2 (ADI svn)) #12 Sat May 30 02:28:28 GMT 2009

console [early_BFuart0] enabled

early printk enabled on early_BFuart0

Board Memory: 64MB

Kernel Managed Memory: 64MB

Memory map:

  fixedcode = 0x00000400-0x00000490

  text      = 0x00001000-0x00102040

  rodata    = 0x00102040-0x0014ee7c

  bss       = 0x0014f000-0x0015f75c

  data      = 0x0015f75c-0x00170000

    stack   = 0x0016e000-0x00170000

  init      = 0x00170000-0x00399000

  available = 0x00399000-0x03eff000

  DMA Zone  = 0x03f00000-0x04000000

Hardware Trace Active and Enabled

Boot Mode: 1

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

Compiled for ADSP-BF518 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

Data Cache Enabled for CPU0 (write-back)

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

Kernel command line: root=/dev/mtdblock0 rw earlyprintk=serial,uart0,57600 ip=10.100.4.50:10.100.4.174:10.100.4.174:255.255.255.0:bf518f-ezbrd:eth0:off

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)

Memory available: 60256k/65536k RAM, (2212k init code, 1028k kernel code, 440k data, 1024k dma, 572k reserved)

Calibrating delay loop... 796.67 BogoMIPS (lpj=1593344)

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

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: 00400000 at 20000000

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

Amd/Fujitsu Extended Query Table at 0x0040

number of CFI chips: 1

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

cmdlinepart partition parsing not available

RedBoot partition parsing not available

Using physmap partition information

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

0x00000000-0x00040000 : "bootloader(nor)"

0x00040000-0x00200000 : "linux kernel(nor)"

0x00200000-0x00400000 : "file system(nor)"

i2c /dev entries driver

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

TCP cubic registered

NET: Registered protocol family 17

dma_alloc_init: dma_page @ 0x03cee000 - 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=bf518f-ezbrd, domain=, nis-domain=(none),

     bootserver=10.100.4.174, rootserver=10.100.4.174, rootpath=

Freeing unused kernel memory: 2212k freed

                           _____________________________________

        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-05-29 21:52:28 GMT) built-in shell (msh)

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

root:/> version

kernel:    Linux release 2.6.28.10-ADI-2009R1-svn6498, build #12 Sat May 30 02:28:28 GMT 2009

toolchain: bfin-uclinux-gcc release gcc version 4.1.2 (ADI svn)

user-dist: release svn-8170, build #152 Sat May 30 02:27:40 GMT 2009

root:/>

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

Case 1 ...PASS

Case 1 ...PASS

"file system(nor)"

root:/>

************** STEP 4: Erase MTD

flash_eraseall -j /dev/mtd2

Erasing 64 Kibyte @ 20000 --  6 % complete.Trying 100/FULLitten at 10000.

Erasing 64 Kibyte @ 30000 --  9 % complete.PHY: 0:03 - Link is Up - 100/Full

Erasing 64 Kibyte @ 200000 -- 100 % complete.Cleanmarker written at 1f0000.

root:/>

Case 2 ...PASS

Case 2 ...PASS

************** STEP 5: Make jffs2 image

1)create file system directory

mkdir -p rootfs

root:/>

2)create test file

echo This is test for mtd driver > rootfs/test

root:/>

3)create JFFS2 image

mkfs.jffs2 -r rootfs -o mtd.img

root:/>

************** STEP 6: Writing MTD

cp mtd.img /dev/mtd2

root:/>

Case 3 ...PASS

Case 3 ...PASS

************** STEP 7: Reading MTD

mount -t jffs2 /dev/mtdblock2 /mnt

mount: mounting /dev/mtdblock2 on /mnt failed: No such device

r

Last passed time: 2009_May_23_20_40, ucdist ver: 8099, kernel ver: 6451

Case 4 ...FAIL

Fail version: ucdist ver: 8170, kernel ver: 6494

Follow-ups

--- Graf Yang                                                2009-06-10 04:32:30

This is caused by a testing script bug, Grace will handle it.

--- Mingquan Pan                                             2009-06-10 06:12:48

This is because the board name given to the build kernel script is not exact and

the config is killed in middle. Fixed , so close.

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

File Name     File Type     File Size     Posted By

No Files Were Found

Before You Switch


Switching languages will make ADI Explorer unavailable. Resume your session by switching back to English and reopening ADI Explorer.