[#3916] spi flash boot up with jffs2_scan_eraseblock on bf533

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

[#3916] spi flash boot up with jffs2_scan_eraseblock on bf533

Submitted By: Mingquan Pan

Open Date

2008-02-20 01:58:03     Close Date

2008-02-21 03:57:24

Priority:

Medium     Assignee:

Bryan Wu

Status:

Closed     Fixed In Release:

N/A

Found In Release:

N/A     Release:

Category:

N/A     Board:

N/A

Processor:

N/A     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Rejected

Uboot version or rev.:

    Toolchain version or rev.:

08r1-8

App binary format:

N/A     

Summary: spi flash boot up with jffs2_scan_eraseblock on bf533

Details:

 

spi flash boot up with jffs2_scan_eraseblock error on bf533.

 

U-Boot 1.1.6-svn1129 (ADI-2008R1) (Jan 28 2008 - 16:38:58)

 

CPU:   ADSP bf533-0.3 (Detected Rev: 0.3)

Board: ADI BF533 Stamp board

       Support:   blackfin.uclinux.org/

Clock: VCO: 398 MHz, Core: 398 MHz, System: 79 MHz

RAM:   128 MB

Flash:  4 MB

In:    serial

Out:   serial

Err:   serial

Net:   SMC91111 at 0x20300300

MAC:   00:E0:22:FE:07:59

I2C:   ready

Hit any key to stop autoboot:  0

bfin> set bootargs root=/dev/mtdblock2 rw rootfstype=jffs2 earlyprintk=serial,uart0,57600

bfin> save

Saving Environment to Flash...

Un-Protected 1 sectors

Erasing Flash...

. done

Erased 1 sectors

Writing to Flash... done

Protected 1 sectors

bfin> mw.b 0x1000000 0xff 0x6e0000

bfin> eeprom write 0x1000000 0x120000 0x6e0000

 

EEPROM @0x0 write: addr 01000000  off 120000  count 7208960 ... ............................................................................................................................................................................................................................done

bfin> tftp 0x1000000 vmImage

TFTP from server 10.100.4.174; our IP address is 10.100.4.50

Filename 'vmImage'.

Load address: 0x1000000

Loading: #################################################################

         #################################################################

         #####################################

done

Bytes transferred = 850187 (cf90b hex)

Image size is cf90b

bfin> eeprom write 0x1000000 0x40000 0xcf90b

 

EEPROM @0x0 write: addr 01000000  off 40000  count 850187 ... ..........................done

bfin> eeprom read 0x2000000 0x40000 0xcf90b

 

EEPROM @0x0 read: addr 02000000  off 40000  count 850187 ... ............done

bfin> cmp.b 0x1000000 0x2000000 0xcf90b

Total of 850187 bytes were the same

bfin> tftp 0x1000000 rootfs.jffs2

TFTP from server 10.100.4.174; our IP address is 10.100.4.50

Filename 'rootfs.jffs2'.

Load address: 0x1000000

Loading: #################################################################

         #################################################################

         #################################################################

         #################################################################

         #################################################################

         #################################################################

         #############T ####################################################

         #################################################################

         #################################################################

         #################################################################

         #################################################################

         #################################################################

         ##########

done

Bytes transferred = 4040144 (3da5d0 hex)

Image size is 3da5d0

bfin> eeprom write 0x1000000 0x120000 0x3da5d0

 

EEPROM @0x0 write: addr 01000000  off 120000  count 4040144 ... ............................................................................................................................done

bfin> bootm 0x2000000

## Booting image at 02000000 ...

   Image Name:   Linux-2.6.22.18-ADI-2008R1-svn42

   Created:      2008-02-19   0:22:22 UTC

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    850123 Bytes = 830.2 kB

   Load Address: 00001000

   Entry Point:  00162000

   Verifying Checksum ... OK

   Uncompressing Kernel Image ... OK

Starting Kernel at = 162000

Linux version 2.6.22.18-ADI-2008R1-svn4263 (test@Linux54-ADV7393-AD1981) (gcc version 4.1.2 (ADI svn)) #25 Tue Feb 19 08:22:19 CST 2008

early printk enabled on early_BFuart0

Hardware Trace Active and Enabled

Warning: limiting memory to 56MB due to hardware anomaly 05000263

Reset caused by Software reset

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

Compiled for ADSP-BF533 Rev 0.3

Blackfin Linux support by   blackfin.uclinux.org/

Processor Speed: 398 MHz core clock and 79 MHz System Clock

Board Memory: 128MB

Kernel Managed Memory: 128MB

Memory map:

  text      = 0x00001000-0x00107650

  rodata    = 0x00108000-0x00151fac

  data      = 0x00152000-0x00162000

    stack   = 0x00152000-0x00154000

  init      = 0x00162000-0x00177000

  bss       = 0x00177000-0x00185f50

  available = 0x00185f50-0x037ff000

  DMA Zone  = 0x07f00000-0x08000000

Instruction Cache Enabled

Data Cache Enabled (write-through)

Built 1 zonelists.  Total pages: 14224

Kernel command line: root=/dev/mtdblock2 rw rootfstype=jffs2 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)

Memory available: 55204k/131072k RAM, (84k init code, 1049k kernel code, 422k data, 1024k dma, 73292k 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: 64 KB (55 KB free)

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

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

Dynamic Power Management Controller Driver v0.1: major=10, minor = 254

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

Serial: Blackfin serial driver

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

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

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

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

eth0: Ethernet addr: 00:e0:22:fe:07:59

m25p80 spi0.2: m25p64 (8192 Kbytes)

Creating 3 MTD partitions on "m25p80":

0x00000000-0x00020000 : "bootloader"

0x00020000-0x00100000 : "kernel"

0x00100000-0x00800000 : "file system"

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

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

TCP cubic registered

NET: Registered protocol family 1

NET: Registered protocol family 17

rtc-bfin rtc-bfin: setting the system clock to 1970-01-01 01:11:05 (4265)

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

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

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

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

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

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

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

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

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

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

Further such events for this erase block will not be printed

VFS: Mounted root (jffs2 filesystem).

Freeing unused kernel memory: 84k freed

dma_alloc_init: dma_page @ 0x00170000 - 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|            -   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.4.1 (2008-02-18 16:09:46 CST) Built-in shell (msh)

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

 

root:/>

Case 1 ...PASS

Boot from spi flash success

 

root:/> reboot

Restarting system.

 

U-Boot 1.1.6-svn1129 (ADI-2008R1) (Jan 28 2008 - 16:38:58)

 

CPU:   ADSP bf533-0.3 (Detected Rev: 0.3)

Board: ADI BF533 Stamp board

       Support:   blackfin.uclinux.org/

Clock: VCO: 398 MHz, Core: 398 MHz, System: 79 MHz

RAM:   128 MB

Flash:  4 MB

In:    serial

Out:   serial

Err:   serial

Net:   SMC91111 at 0x20300300

MAC:   00:E0:22:FE:07:59

I2C:   ready

Hit any key to stop autoboot:  0

 

Follow-ups

 

--- Bryan Wu                                                 2008-02-21 01:33:56

this bug should be fixed by Mike's SVN 4270 checkin

 

-Bryan

 

--- Mingquan Pan                                             2008-02-21 03:57:24

Yes,Close.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes