2009-04-01 11:57:51     bf527 EZKit jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000

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

2009-04-01 11:57:51     bf527 EZKit jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000

Stefan Wanja (GERMANY)

Message: 71967   

 

Heya,

 

I'm trying to boot uClinux 2008R1.5 with rootfs on parallel flash (M29W320EB) on a bf527 EZKit.

 

But at the time when it's trying to mount the root filesystem I get only read errors:

 

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.

3 cmdlinepart partitions found on MTD device physmap-flash.0

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

0x00000000-0x00030000 : "boot"

0x00030000-0x00130000 : "kernel"

0x00130000-0x00400000 : "root"

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

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

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 1970-01-01 02:54:20 (10460)

jffs2_get_sb_mtd(): New superblock for device 2 ("root")

[JFFS2 DBG] (1) jffs2_build_filesystem: build FS data structures

Allocating readbuf of 4096 bytes

jffs2_scan_eraseblock : bufsize=4096 buf=002d8000

jffs2_scan_eraseblock(): Scanning block at 0x0

[JFFS2 DBG] (1) jffs2_scan_eraseblock: no summary found in jeb 0x00000000. Apply original scan.

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block @0x00000000

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Allocating new refblock linked from 03ecf02c

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserved 2 refs for block @0x00000000, last_node is 002d9e20 (fffffffe,00000000)

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

[JFFS2 DBG] (1) jffs2_link_node_ref: Last node at 002d9e20 is (fffffffe,00000000)

[JFFS2 DBG] (1) jffs2_link_node_ref: New ref is 002d9e20 (fffffffe becomes 00000001,00000000) len 0x4

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block @0x00000000

...

 

I flashed uboot, it works. Then I flashed my kernel and my rootfs.jffs2 at their positions according to the partition map. I checked the rootfs by executing 'md.b 0x20130000 0x02' in uboot and got the wanted 85 19.

 

I edited the partition map in arch/blackfin/mach-bf527/boards/ezkit.c like that:

 

static struct mtd_partition ezkit_partitions[] = {

    {

        .name       = "Bootloader",

        .size       = 0x30000,

        .offset     = 0,

    }, {

        .name       = "Kernel",

        .size       = 0x100000,

        .offset     = 0x30000,

    }, {

        .name       = "RootFS",

        .size       = 0x400000 - 0x30000 - 0x100000,

        .offset     = 0x30000 + 0x100000 ,

    }

};

 

My Kernel config for MTD is:

 

#

# Connector - unified userspace <-> kernelspace linker

#

# CONFIG_CONNECTOR is not set

CONFIG_MTD=y

# CONFIG_MTD_DEBUG is not set

# CONFIG_MTD_CONCAT is not set

CONFIG_MTD_PARTITIONS=y

# CONFIG_MTD_REDBOOT_PARTS is not set

CONFIG_MTD_CMDLINE_PARTS=y

 

 

#

# User Modules And Translation Layers

#

CONFIG_MTD_CHAR=y

CONFIG_MTD_BLKDEVS=y

CONFIG_MTD_BLOCK=y

# CONFIG_FTL is not set

# CONFIG_NFTL is not set

# CONFIG_INFTL is not set

# CONFIG_RFD_FTL is not set

# CONFIG_SSFDC is not set

 

#

# RAM/ROM/Flash chip drivers

#

CONFIG_MTD_CFI=y

CONFIG_MTD_JEDECPROBE=y

CONFIG_MTD_GEN_PROBE=y

# CONFIG_MTD_CFI_ADV_OPTIONS is not set

CONFIG_MTD_MAP_BANK_WIDTH_1=y

CONFIG_MTD_MAP_BANK_WIDTH_2=y

CONFIG_MTD_MAP_BANK_WIDTH_4=y

# CONFIG_MTD_MAP_BANK_WIDTH_8 is not set

# CONFIG_MTD_MAP_BANK_WIDTH_16 is not set

# CONFIG_MTD_MAP_BANK_WIDTH_32 is not set

CONFIG_MTD_CFI_I1=y

CONFIG_MTD_CFI_I2=y

# CONFIG_MTD_CFI_I4 is not set

# CONFIG_MTD_CFI_I8 is not set

CONFIG_MTD_CFI_INTELEXT=y

CONFIG_MTD_CFI_AMDSTD=y

CONFIG_MTD_CFI_STAA=y

CONFIG_MTD_CFI_UTIL=y

CONFIG_MTD_RAM=y

CONFIG_MTD_ROM=y

CONFIG_MTD_ABSENT=y

 

#

# Mapping drivers for chip access

#

CONFIG_MTD_COMPLEX_MAPPINGS=y

CONFIG_MTD_PHYSMAP=y

CONFIG_MTD_PHYSMAP_START=0x20000000

CONFIG_MTD_PHYSMAP_LEN=0

CONFIG_MTD_PHYSMAP_BANKWIDTH=2

# CONFIG_MTD_UCLINUX is not set

# CONFIG_MTD_PLATRAM is not set

 

#

# Self-contained MTD device drivers

#

# CONFIG_MTD_DATAFLASH is not set

# CONFIG_MTD_M25P80 is not set

# CONFIG_MTD_SLRAM is not set

# CONFIG_MTD_PHRAM is not set

# CONFIG_MTD_MTDRAM is not set

# CONFIG_MTD_BLOCK2MTD is not set

 

#

# Disk-On-Chip Device Drivers

#

# CONFIG_MTD_DOC2000 is not set

# CONFIG_MTD_DOC2001 is not set

# CONFIG_MTD_DOC2001PLUS is not set

# CONFIG_MTD_NAND is not set

# CONFIG_MTD_ONENAND is not set

 

#

# UBI - Unsorted block images

#

# CONFIG_MTD_UBI is not set

 

and for JFFS2:

 

CONFIG_JFFS2_FS=y

CONFIG_JFFS2_FS_DEBUG=2

CONFIG_JFFS2_FS_WRITEBUFFER=y

# CONFIG_JFFS2_SUMMARY is not set

# CONFIG_JFFS2_FS_XATTR is not set

CONFIG_JFFS2_COMPRESSION_OPTIONS=y

CONFIG_JFFS2_ZLIB=y

# CONFIG_JFFS2_RTIME is not set

# CONFIG_JFFS2_RUBIN is not set

# CONFIG_JFFS2_CMODE_NONE is not set

CONFIG_JFFS2_CMODE_PRIORITY=y

# CONFIG_JFFS2_CMODE_SIZE is not set

 

It seams as if the read is reading from the wrong address or the returned data is incorrect, although everything is correct on the flash.

 

 

 

Can anyone help me solving this?

 

QuoteReplyEditDelete

 

 

2009-04-01 12:04:06     Re: bf527 EZKit jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000

Mike Frysinger (UNITED STATES)

Message: 71968   

 

post the entire kernel boot log

QuoteReplyEditDelete

 

 

2009-04-02 12:51:38     Re: bf527 EZKit jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000

Stefan Wanja (GERMANY)

Message: 72067   

 

Ok, here it is. The end is missing, but it keeps just going on like that and some time later it gives up.

 

 

 

## Booting image at 01000000 ...

   Image Name:   Linux-2.6.22.19-ADI-2008R1.5-svn

   Created:      2009-04-01  14:00:44 UTC

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    920780 Bytes = 899.2 kB

   Load Address: 00001000

   Entry Point:  00186000

   Verifying Checksum ... OK

   Uncompressing Kernel Image ... OK

Starting Kernel at = 186000

Linux version 2.6.22.19-ADI-2008R1.5-svn (user@debby) (gcc version 4.1.2

(ADI svn)) #69 Wed Apr 1 16:00:40 CEST 2009

Hardware Trace Active and Enabled

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-0x0011ba60

  rodata    = 0x0011c000-0x001730e8

  data      = 0x00174000-0x00186000

    stack   = 0x00174000-0x00176000

  init      = 0x00186000-0x0019f000

  bss       = 0x0019f000-0x001ae8d0

  available = 0x001ae8d0-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

NOMPU: setting up cplb tables for global access

Instruction Cache Enabled

Data Cache Enabled (write-through)

Built 1 zonelists.  Total pages: 16002

Kernel command line:

mtdparts=physmap-flash.0:192k(boot),1M(kernel),-(root) root=mtd2 rw

rootfstype=jffs2 loglevel=8

Configuring Blackfin Priority Driven Interrupts

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

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: 62208k/65536k RAM, (100k init code, 1130k kernel code,

488k 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. �© 2001-2006 Red Hat, Inc.

Allocated 267964 bytes for deflate workspace

Allocated 42284 bytes for inflate workspace

Registering JFFS2 compressor "zlib"

Compressor "zlib", prio 60

JFFS2: default compression mode: priority

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:01,

irq=-1, mdc_clk=2500000Hz(mdc_div=25)@sclk=131MHz)

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

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.

3 cmdlinepart partitions found on MTD device physmap-flash.0

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

0x00000000-0x00030000 : "boot"

0x00030000-0x00130000 : "kernel"

0x00130000-0x00400000 : "root"

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

i2c-bfin-twi i2c-bfin-twi.0: Blackfin BF5xx on-chip I2C TWI Contoller

Driver, Version 1.8, regs_base@ffc01400

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 1970-01-01 01:20:37 (4837)

jffs2_get_sb_mtd(): New superblock for device 2 ("root")

[JFFS2 DBG] (1) jffs2_build_filesystem: build FS data structures

Allocating readbuf of 4096 bytes

jffs2_scan_eraseblock(): Scanning block at 0x0

[JFFS2 DBG] (1) jffs2_scan_eraseblock: no summary found in jeb

0x00000000. Apply original scan.

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block

@0x00000000

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Allocating new refblock

linked from 03ecf02c

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserved 2 refs for block

@0x00000000, last_node is 002d9e20 (fffffffe,00000000)

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

0x6ff9 instead

[JFFS2 DBG] (1) jffs2_link_node_ref: Last node at 002d9e20 is

(fffffffe,00000000)

[JFFS2 DBG] (1) jffs2_link_node_ref: New ref is 002d9e20 (fffffffe

becomes 00000001,00000000) len 0x4

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block

@0x00000000

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserved 2 refs for block

@0x00000000, last_node is 002d9e20 (00000001,00000000)

Dirty bitmask at 0x00000004

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block

@0x00000000

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserved 2 refs for block

@0x00000000, last_node is 002d9e20 (00000001,00000000)

Dirty bitmask at 0x00000008

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block

@0x00000000

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserved 2 refs for block

@0x00000000, last_node is 002d9e20 (00000001,00000000)

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

0xe001 instead

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block

@0x00000000

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserved 2 refs for block

@0x00000000, last_node is 002d9e20 (00000001,00000000)

Dirty bitmask at 0x00000010

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block

@0x00000000

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserved 2 refs for block

@0x00000000, last_node is 002d9e20 (00000001,00000000)

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

0x7d26 instead

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block

@0x00000000

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserved 2 refs for block

@0x00000000, last_node is 002d9e20 (00000001,00000000)

Dirty bitmask at 0x00000018

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block

@0x00000000

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserved 2 refs for block

@0x00000000, last_node is 002d9e20 (00000001,00000000)

Dirty bitmask at 0x0000001c

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block

@0x00000000

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserved 2 refs for block

@0x00000000, last_node is 002d9e20 (00000001,00000000)

Dirty bitmask at 0x00000020

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block

@0x00000000

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserved 2 refs for block

@0x00000000, last_node is 002d9e20 (00000001,00000000)

Dirty bitmask at 0x00000024

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block

@0x00000000

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserved 2 refs for block

@0x00000000, last_node is 002d9e20 (00000001,00000000)

Dirty bitmask at 0x00000028

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block

@0x00000000

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserved 2 refs for block

@0x00000000, last_node is 002d9e20 (00000001,00000000)

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000002c:

0x8752 instead

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block

@0x00000000

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserved 2 refs for block

@0x00000000, last_node is 002d9e20 (00000001,00000000)

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000030:

0xe823 instead

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block

@0x00000000

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserved 2 refs for block

@0x00000000, last_node is 002d9e20 (00000001,00000000)

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000034:

0xff72 instead

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block

@0x00000000

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserved 2 refs for block

@0x00000000, last_node is 002d9e20 (00000001,00000000)

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000038:

0xe002 instead

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block

@0x00000000

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserved 2 refs for block

@0x00000000, last_node is 002d9e20 (00000001,00000000)

Dirty bitmask at 0x0000003c

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block

@0x00000000

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserved 2 refs for block

@0x00000000, last_node is 002d9e20 (00000001,00000000)

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000040:

0x98f7 instead

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block

@0x00000000

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserved 2 refs for block

@0x00000000, last_node is 002d9e20 (00000001,00000000)

Dirty bitmask at 0x00000044

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block

@0x00000000

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserved 2 refs for block

@0x00000000, last_node is 002d9e20 (00000001,00000000)

Dirty bitmask at 0x00000048

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block

@0x00000000

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserved 2 refs for block

@0x00000000, last_node is 002d9e20 (00000001,00000000)

Dirty bitmask at 0x0000004c

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block

@0x00000000

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserved 2 refs for block

@0x00000000, last_node is 002d9e20 (00000001,00000000)

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000050:

0x03e8 instead

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block

@0x00000000

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserved 2 refs for block

@0x00000000, last_node is 002d9e20 (00000001,00000000)

Dirty bitmask at 0x00000054

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block

@0x00000000

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserved 2 refs for block

@0x00000000, last_node is 002d9e20 (00000001,00000000)

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000058:

0x49d2 instead

Further such events for this erase block will not be printed

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block

@0x00000000

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserved 2 refs for block

@0x00000000, last_node is 002d9e20 (00000001,00000000)

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block

@0x00000000

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserved 2 refs for block

@0x00000000, last_node is 002d9e20 (00000001,00000000)

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block

@0x00000000

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserved 2 refs for block

@0x00000000, last_node is 002d9e20 (00000001,00000000)

Dirty bitmask at 0x00000064

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block

@0x00000000

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserved 2 refs for block

@0x00000000, last_node is 002d9e20 (00000001,00000000)

Dirty bitmask at 0x00000068

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block

@0x00000000

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserved 2 refs for block

@0x00000000, last_node is 002d9e20 (00000001,00000000)

Dirty bitmask at 0x0000006c

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block

@0x00000000

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserved 2 refs for block

@0x00000000, last_node is 002d9e20 (00000001,00000000)

Dirty bitmask at 0x00000070

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block

@0x00000000

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserved 2 refs for block

@0x00000000, last_node is 002d9e20 (00000001,00000000)

Dirty bitmask at 0x00000074

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block

@0x00000000

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserved 2 refs for block

@0x00000000, last_node is 002d9e20 (00000001,00000000)

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block

@0x00000000

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserved 2 refs for block

@0x00000000, last_node is 002d9e20 (00000001,00000000)

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block

@0x00000000

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserved 2 refs for block

@0x00000000, last_node is 002d9e20 (00000001,00000000)

Dirty bitmask at 0x00000080

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block

@0x00000000

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserved 2 refs for block

@0x00000000, last_node is 002d9e20 (00000001,00000000)

Dirty bitmask at 0x00000084

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block

@0x00000000

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserved 2 refs for block

@0x00000000, last_node is 002d9e20 (00000001,00000000)

Dirty bitmask at 0x00000088

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block

@0x00000000

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserved 2 refs for block

@0x00000000, last_node is 002d9e20 (00000001,00000000)

Dirty bitmask at 0x0000008c

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block

@0x00000000

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserved 2 refs for block

@0x00000000, last_node is 002d9e20 (00000001,00000000)

Dirty bitmask at 0x00000090

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block

@0x00000000

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserved 2 refs for block

@0x00000000, last_node is 002d9e20 (00000001,00000000)

Dirty bitmask at 0x00000094

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block

@0x00000000

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserved 2 refs for block

@0x00000000, last_node is 002d9e20 (00000001,00000000)

Dirty bitmask at 0x00000098

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block

@0x00000000

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserved 2 refs for block

@0x00000000, last_node is 002d9e20 (00000001,00000000)

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block

@0x00000000

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserved 2 refs for block

@0x00000000, last_node is 002d9e20 (00000001,00000000)

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block

@0x00000000

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserved 2 refs for block

@0x00000000, last_node is 002d9e20 (00000001,00000000)

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block

@0x00000000

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserved 2 refs for block

@0x00000000, last_node is 002d9e20 (00000001,00000000)

Dirty bitmask at 0x000000a8

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block

@0x00000000

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserved 2 refs for block

@0x00000000, last_node is 002d9e20 (00000001,00000000)

Dirty bitmask at 0x000000ac

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block

@0x00000000

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserved 2 refs for block

@0x00000000, last_node is 002d9e20 (00000001,00000000)

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block

@0x00000000

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserved 2 refs for block

@0x00000000, last_node is 002d9e20 (00000001,00000000)

Dirty bitmask at 0x000000b4

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block

@0x00000000

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserved 2 refs for block

@0x00000000, last_node is 002d9e20 (00000001,00000000)

Dirty bitmask at 0x000000b8

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block

@0x00000000

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserved 2 refs for block

@0x00000000, last_node is 002d9e20 (00000001,00000000)

Dirty bitmask at 0x000000bc

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block

@0x00000000

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserved 2 refs for block

@0x00000000, last_node is 002d9e20 (00000001,00000000)

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block

@0x00000000

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserved 2 refs for block

@0x00000000, last_node is 002d9e20 (00000001,00000000)

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block

@0x00000000

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserved 2 refs for block

@0x00000000, last_node is 002d9e20 (00000001,00000000)

Dirty bitmask at 0x000000c8

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block

@0x00000000

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserved 2 refs for block

@0x00000000, last_node is 002d9e20 (00000001,00000000)

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block

@0x00000000

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserved 2 refs for block

@0x00000000, last_node is 002d9e20 (00000001,00000000)

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block

@0x00000000

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserved 2 refs for block

@0x00000000, last_node is 002d9e20 (00000001,00000000)

Dirty bitmask at 0x000000d4

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block

@0x00000000

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserved 2 refs for block

@0x00000000, last_node is 002d9e20 (00000001,00000000)

Dirty bitmask at 0x000000d8

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block

@0x00000000

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserved 2 refs for block

@0x00000000, last_node is 002d9e20 (00000001,00000000)

Dirty bitmask at 0x000000dc

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block

@0x00000000

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserved 2 refs for block

@0x00000000, last_node is 002d9e20 (00000001,00000000)

Dirty bitmask at 0x000000e0

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block

@0x00000000

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserved 2 refs for block

@0x00000000, last_node is 002d9e20 (00000001,00000000)

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block

@0x00000000

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserved 2 refs for block

@0x00000000, last_node is 002d9e20 (00000001,00000000)

Dirty bitmask at 0x000000e8

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block

@0x00000000

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserved 2 refs for block

@0x00000000, last_node is 002d9e20 (00000001,00000000)

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block

@0x00000000

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserved 2 refs for block

@0x00000000, last_node is 002d9e20 (00000001,00000000)

Dirty bitmask at 0x000000f0

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block

@0x00000000

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserved 2 refs for block

@0x00000000, last_node is 002d9e20 (00000001,00000000)

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block

@0x00000000

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserved 2 refs for block

@0x00000000, last_node is 002d9e20 (00000001,00000000)

Dirty bitmask at 0x000000f8

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block

@0x00000000

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserved 2 refs for block

@0x00000000, last_node is 002d9e20 (00000001,00000000)

Dirty bitmask at 0x000000fc

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block

@0x00000000

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserved 2 refs for block

@0x00000000, last_node is 002d9e20 (00000001,00000000)

Dirty bitmask at 0x00000100

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block

@0x00000000

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserved 2 refs for block

@0x00000000, last_node is 002d9e20 (00000001,00000000)

Dirty bitmask at 0x00000104

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block

@0x00000000

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserved 2 refs for block

@0x00000000, last_node is 002d9e20 (00000001,00000000)

Dirty bitmask at 0x00000108

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block

@0x00000000

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserved 2 refs for block

@0x00000000, last_node is 002d9e20 (00000001,00000000)

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block

@0x00000000

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserved 2 refs for block

@0x00000000, last_node is 002d9e20 (00000001,00000000)

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block

@0x00000000

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserved 2 refs for block

@0x00000000, last_node is 002d9e20 (00000001,00000000)

Dirty bitmask at 0x00000114

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block

@0x00000000

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserved 2 refs for block

@0x00000000, last_node is 002d9e20 (00000001,00000000)

Dirty bitmask at 0x00000118

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block

@0x00000000

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserved 2 refs for block

@0x00000000, last_node is 002d9e20 (00000001,00000000)

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block

@0x00000000

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserved 2 refs for block

@0x00000000, last_node is 002d9e20 (00000001,00000000)

Dirty bitmask at 0x00000120

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block

@0x00000000

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserved 2 refs for block

@0x00000000, last_node is 002d9e20 (00000001,00000000)

Dirty bitmask at 0x00000124

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block

@0x00000000

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserved 2 refs for block

@0x00000000, last_node is 002d9e20 (00000001,00000000)

Dirty bitmask at 0x00000128

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block

@0x00000000

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserved 2 refs for block

@0x00000000, last_node is 002d9e20 (00000001,00000000)

Dirty bitmask at 0x0000012c

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block

@0x00000000

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserved 2 refs for block

@0x00000000, last_node is 002d9e20 (00000001,00000000)

Dirty bitmask at 0x00000130

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block

@0x00000000

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserved 2 refs for block

@0x00000000, last_node is 002d9e20 (00000001,00000000)

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block

@0x00000000

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserved 2 refs for block

@0x00000000, last_node is 002d9e20 (00000001,00000000)

Dirty bitmask at 0x00000138

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block

@0x00000000

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserved 2 refs for block

@0x00000000, last_node is 002d9e20 (00000001,00000000)

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

 

QuoteReplyEditDelete

 

 

2009-04-03 07:52:48     Re: bf527 EZKit jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000

Stefan Wanja (GERMANY)

Message: 72103   

 

Actually it doesn't stop. It seems to repeat the end forever

QuoteReplyEditDelete

 

 

2009-04-03 09:12:35     Re: bf527 EZKit jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000

Mike Frysinger (UNITED STATES)

Message: 72107   

 

your command line is wrong.  root=mtd2 should not be used, it isnt a block device.  that certainly isnt what the documentation tells you to do.

 

  docs.blackfin.uclinux.org/doku.php?id=linux-kernel:jffs

 

also, using mtdparts= on the command line tells the kernel to ignore whatever you put into the board resources ...

QuoteReplyEditDelete

 

 

2009-04-03 10:26:40     Re: bf527 EZKit jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000

Stefan Wanja (GERMANY)

Message: 72116   

 

Ok, we tried the root=mtd2 option because we had a look into the code and it seemed as if this would be the preferred way. Anyway, when using root=/dev/mtdblock2 as in the documentation the result is the same (see below).

 

Concerning the mtd command line, we know it overwrites the board specific partition map. We tried this only to be more flexible in testing around with the partition map.

 

We added some printks (which I removed here) which showed, that ioremap in drivers/mtd/maps/physmap.c: physmap_flash_probe returns 0x20000000 as virtual address. Is that correct?

 

## Booting image at 01000000 ...

   Image Name:   Linux-2.6.22.19-ADI-2008R1.5-svn

   Created:      2009-04-03  14:10:29 UTC

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    927507 Bytes = 905.8 kB

   Load Address: 00001000

   Entry Point:  0018a000

   Verifying Checksum ... OK

   Uncompressing Kernel Image ... OK

Starting Kernel at = 18a000

Linux version 2.6.22.19-ADI-2008R1.5-svn (user@debby) (gcc version 4.1.2 (ADI svn)) #74 Fri Apr 3 16:10:25 CEST 2009

Hardware Trace Active and Enabled

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-0x0011e0c0

  rodata    = 0x0011f000-0x00177294

  data      = 0x00178000-0x0018a000

    stack   = 0x00178000-0x0017a000

  init      = 0x0018a000-0x001a3000

  bss       = 0x001a3000-0x001b2830

  available = 0x001b2830-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

NOMPU: setting up cplb tables for global access

Instruction Cache Enabled

Data Cache Enabled (write-through)

Built 1 zonelists.  Total pages: 16002

Kernel command line: mtdparts=physmap-flash.0:192k(boot),1M(kernel),-(root) root=/dev/mtdblock2 rw rootfstype=jffs2 loglevel=8

Configuring Blackfin Priority Driven Interrupts

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

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: 62192k/65536k RAM, (100k init code, 1140k kernel code, 494k 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.

Allocated 267964 bytes for deflate workspace

Allocated 42284 bytes for inflate workspace

Registering JFFS2 compressor "zlib"

Compressor "zlib", prio 60

JFFS2: default compression mode: priority

io scheduler noop registered

io scheduler anticipatory registered (default)

io scheduler cfq registered

bfin-otp: initialized

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:01, irq=-1, mdc_clk=2500000Hz(mdc_div=25)@sclk=131MHz)

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

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.

3 cmdlinepart partitions found on MTD device physmap-flash.0

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

0x00000000-0x00030000 : "boot"

0x00030000-0x00130000 : "kernel"

0x00130000-0x00400000 : "root"

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

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

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 1970-01-01 03:24:21 (12261)

jffs2_get_sb_mtd(): New superblock for device 2 ("root")

[JFFS2 DBG] (1) jffs2_build_filesystem: build FS data structures

jffs2_scan_eraseblock(): Scanning block at 0x0

[JFFS2 DBG] (1) jffs2_scan_eraseblock: no summary found in jeb 0x00000000. Apply original scan.

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block @0x00000000

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Allocating new refblock linked from 0025302c

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserved 2 refs for block @0x00000000, last_node is 002d8e20 (fffffffe,00000000)

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

[JFFS2 DBG] (1) jffs2_link_node_ref: Last node at 002d8e20 is (fffffffe,00000000)

[JFFS2 DBG] (1) jffs2_link_node_ref: New ref is 002d8e20 (fffffffe becomes 00000001,00000000) len 0x4

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block @0x00000000

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserved 2 refs for block @0x00000000, last_node is 002d8e20 (00000001,00000000)

Dirty bitmask at 0x00000004

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block @0x00000000

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserved 2 refs for block @0x00000000, last_node is 002d8e20 (00000001,00000000)

....

 

 

 

 

QuoteReplyEditDelete

 

 

2009-04-03 10:36:01     Re: bf527 EZKit jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000

Mike Frysinger (UNITED STATES)

Message: 72119   

 

there is no virtual memory support, so virtual address always has to be the same as the physical address

 

can you post the output of running 'md.b 0x20130000' in u-boot

QuoteReplyEditDelete

 

 

2009-04-03 10:44:40     Re: bf527 EZKit jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000

Stefan Wanja (GERMANY)

Message: 72120   

 

Ok, here is uboots view of the flash - seems to be correct.

 

 

 

U-Boot 1.1.6 (ADI-2008R1) (Mar 24 2009 - 18:02:12)

 

CPU:   ADSP bf527-0.0 (Detected Rev: 0.0)

Board: ADI BF527 EZ-Kit board

       Support:   blackfin.uclinux.org/

Clock: VCO: 525 MHz, Core: 525 MHz, System: 131 MHz

RAM:   64 MB

Flash:  4 MB

In:    serial

Out:   serial

Err:   serial

Net:   Blackfin EMAC

MAC:   96:94:77:35:17:01

I2C:   ready

Hit any key to stop autoboot:  0

bfin> md.b 0x20130000

20130000: 85 19 01 e0 2b 00 00 00 e6 6e 26 7d 01 00 00 00    ....+....n&}....

20130010: 00 00 00 00 02 00 00 00 46 23 d2 49 03 04 00 00    ........F#.I....

20130020: 9c cd 52 87 9e 90 23 e8 75 73 72 ff 85 19 02 e0    ..R...#.usr.....

20130030: 44 00 00 00 1d fb f7 98 02 00 00 00 01 00 00 00    D...............

bfin>

 

QuoteReplyEditDelete

 

 

2009-04-03 10:54:50     Re: bf527 EZKit jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000

Mike Frysinger (UNITED STATES)

Message: 72121   

 

well at this point, i would erase the flash completely starting at 20130000 and reflash it with the jffs2 ... i dont know what trying to use mtd2 as the root would do to the flash

QuoteReplyEditDelete

 

 

2009-04-03 12:08:02     Re: bf527 EZKit jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000

Stefan Wanja (GERMANY)

Message: 72130   

 

Ok, I did two things now. I erased the whole flash except for the uboot part and checked it in uboot which says it is all 'ff's. The first read by jffs2 doesn't find its magic bitmask, ok, but it doesn't even find 'ffff' instead. This is the output including my printk (those with !!!!!..)

 

---------------------------------------------------------------------------------------------------------------------------------------

 

jffs2_get_sb_mtd(): New superblock for device 2 ("root")

[JFFS2 DBG] (1) jffs2_build_filesystem: build FS data structures

!!!!!!!! jffs_scan_medium: mtd->point 00000000

Allocating readbuf of 4096 bytes

!!!!!!!! jffs2_scan_eraseblock : bufsize=4096 buf=002d7000

jffs2_scan_eraseblock(): Scanning block at 0x0

!!!!!!!!!jffs2_fill_scan_buf: bufstart BEFORE flash_read: 0x 7070010

!!!!!!!!!jffs2_fill_scan_buf: bufstart AFTER flash_read: 0xffff0010

[JFFS2 DBG] (1) jffs2_scan_eraseblock: no summary found in jeb 0x00000000. Apply original scan.

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block @0x00000000

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Allocating new refblock linked from 0025302c

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserved 2 refs for block @0x00000000, last_node is 002d8e20 (fffffffe,00000000)

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

-----------------------------------------------------------------------------------------------------------------------------------------

 

And the equivalent after reflashing rootfs.jffs2 to the same address:

 

-----------------------------------------------------------------------------------------------------------------------------------------

 

jffs2_get_sb_mtd(): New superblock for device 2 ("root")

[JFFS2 DBG] (1) jffs2_build_filesystem: build FS data structures

!!!!!!!! jffs_scan_medium: mtd->point 00000000

Allocating readbuf of 4096 bytes

!!!!!!!! jffs2_scan_eraseblock : bufsize=4096 buf=002d7000

jffs2_scan_eraseblock(): Scanning block at 0x0

!!!!!!!! jffs2_fill_scan_buf: bufstart BEFORE flash_read: 0x      10

!!!!!!!! jffs2_fill_scan_buf: bufstart AFTER flash_read: 0xe0010010

[JFFS2 DBG] (1) jffs2_scan_eraseblock: no summary found in jeb 0x00000000. Apply original scan.

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: 2

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserving 2 refs for block @0x00000000

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Allocating new refblock linked from 0025302c

[JFFS2 DBG] (1) jffs2_prealloc_raw_node_refs: Reserved 2 refs for block @0x00000000, last_node is 002d8e20 (fffffffe,00000000)

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

-----------------------------------------------------------------------------------------------------------------------------------------

 

 

 

What is interesting here is that after jffs2_flash_read in jffs2_fill_scan_buf the beginning of the buffer contains 0xffff0010 (1st case) and 0xe0010010 (2nd case). The value has been casted as int.

 

The ffff and e001 bits seem to come from the flash, wheres 0010's source is not clear to me.

 

The e001 Bytes are those of the jffs2 fs header, directly after the magic bitmask, but in reverse order, but the magic bitmask check is reverse as well, so thats no problem.

 

So to me it seems, that the function is somehow reading the first 2 bytes from somewhere, but not from the needed position in flash, whereas the next bytes are read from the correct positions.

 

Any idea on this?

 

 

 

 

 

 

QuoteReplyEditDelete

 

 

2009-04-03 12:39:15     Re: bf527 EZKit jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000

Mike Frysinger (UNITED STATES)

Message: 72134   

 

did you enable summary support but then not actually generate a filesystem image with summary support ?

QuoteReplyEditDelete

 

 

2009-04-03 13:21:18     Re: bf527 EZKit jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000

Stefan Wanja (GERMANY)

Message: 72135   

 

No, Kernel config is in the first post. Summary support is not enabled. Shouldn't the magic bitmask be the first thing to check anyways?

QuoteReplyEditDelete

 

 

2009-04-15 04:02:39     SOLVED: bf527 EZKit jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000

Stefan Wanja (GERMANY)

Message: 72662   

 

The problem was in the default settings of the memory banks. They are:

 

#

# EBIU_AMBCTL Control

#

CONFIG_BANK_0=0x7BB0

CONFIG_BANK_1=0x5554

CONFIG_BANK_2=0x7BB0

CONFIG_BANK_3=0xFFC0

 

When I set CONFIG_BANK_1 also to 0x7BB0 it works. Seems to be a timing problem. I didn't check but assume that bank 3 needs the same setting.

 

The related file is linux-2.6.x/arch/blackfin/configs/BF527-EZKIT_defconfig and it should contain:

 

#

# EBIU_AMBCTL Control

#

CONFIG_BANK_0=0x7BB0

CONFIG_BANK_1=0x7BB0

CONFIG_BANK_2=0x7BB0

CONFIG_BANK_3=0x7BB0

 

Can someone confirm this?

Attachments

    Outcomes