2008-06-03 16:41:52     JFFS2 error empty flash at... BF548 ezkit

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

2008-06-03 16:41:52     JFFS2 error empty flash at... BF548 ezkit

Erick Hemphill (UNITED STATES)

Message: 56640   

 

I can't seem to beat this one. I've erased the entire jffs2 partition as it is defined in the default BF548 folder in linux-2.6.x/arch/blackfin/mach-bf548/boards/ezkit.c (from 0x20200000 to 0x21FFFFFF). I've got the bootloader at 0x20000000, my vmImage offset 40000 at 0x20040000, and my rootfs.jffs2 at 0x20200000. The kernel decomresses and kicks off fine, but the jffs2 filesystem is unhappy about something.

 

Kernel command line: root=/dev/mtdblock2 rootfstype=jffs2 rw earlyprintk=serial,uart1,57600 console=tty0 console=ttyBF0,57600

 

 

physmap platform flash device: 01000000 at 20000000

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

NOR chip too large to fit in mapping. Attempting to cope...

Intel/Sharp Extended Query Table at 0x010A

Intel/Sharp Extended Query Table at 0x010A

Intel/Sharp Extended Query Table at 0x010A

Intel/Sharp Extended Query Table at 0x010A

Intel/Sharp Extended Query Table at 0x010A

Using buffer write method

Using auto-unlock on power-up/resume

cfi_cmdset_0001: Erase suspend on write enabled

Reducing visibility of 32768KiB chip to 16384KiB

RedBoot partition parsing not available

Using physmap partition information

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

0x00000000-0x00040000 : "Bootloader"

0x00040000-0x00200000 : "Kernel"

0x00200000-0x01000000 : "RootFS"

 

 

Empty flash at 0x0000fffc ends at 0x00010000

Empty flash at 0x0002fffc ends at 0x00030000

Empty flash at 0x0004fffc ends at 0x00050000

Empty flash at 0x0006fffc ends at 0x00070000

Empty flash at 0x0008ff70 ends at 0x00090000

Empty flash at 0x000afffc ends at 0x000b0000

Empty flash at 0x000cfffc ends at 0x000d0000

Empty flash at 0x000efffc ends at 0x000f0000

Empty flash at 0x0010fffc ends at 0x00110000

Empty flash at 0x0012fffc ends at 0x00130000

Empty flash at 0x0016fffc ends at 0x00170000

Empty flash at 0x001afffc ends at 0x001b0000

Empty flash at 0x001cfffc ends at 0x001d0000

Empty flash at 0x001efffc ends at 0x001f0000

Empty flash at 0x0020fffc ends at 0x00210000

Empty flash at 0x0022ff64 ends at 0x00230000

Empty flash at 0x0024fffc ends at 0x00250000

Empty flash at 0x0026fffc ends at 0x00270000

Empty flash at 0x0028fffc ends at 0x00290000

Empty flash at 0x002afffc ends at 0x002b0000

Empty flash at 0x002cfffc ends at 0x002d0000

Empty flash at 0x0030fffc ends at 0x00310000

Empty flash at 0x0032fffc ends at 0x00330000

Empty flash at 0x0034fffc ends at 0x00350000

Empty flash at 0x0036fffc ends at 0x00370000

Empty flash at 0x0038fffc ends at 0x00390000

Empty flash at 0x003afffc ends at 0x003b0000

Empty flash at 0x003cfffc ends at 0x003d0000

Empty flash at 0x003efffc ends at 0x003f0000

Empty flash at 0x0040fffc ends at 0x00410000

Empty flash at 0x0042ffb0 ends at 0x00430000

Empty flash at 0x0044fffc ends at 0x00450000

Empty flash at 0x0046fffc ends at 0x00470000

Empty flash at 0x0048fffc ends at 0x00490000

Empty flash at 0x004afffc ends at 0x004b0000

Empty flash at 0x004cfffc ends at 0x004d0000

JFFS2 notice: (1) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.

VFS: Mounted root (jffs2 filesystem).

Freeing unused kernel memory: 164k freed

init started: BusyBox v1.10.1 (2008-06-03 13:57:40 CDT)

Bad inittab entry: tty0:linux:-/bin/sh

 

 

 

fsinfo can find the filesystem ok...

 

bfin> fsinfo

### filesystem type is JFFS2

Scanning JFFS2 FS: ..... done.

Compression: NONE

    frag count: 226

    compressed sum: 29635

    uncompressed sum: 29635

Compression: ZERO

    frag count: 0

    compressed sum: 0

    uncompressed sum: 0

Compression: RTIME

    frag count: 1

    compressed sum: 16

    uncompressed sum: 28

Compression: RUBINMIPS

    frag count: 0

    compressed sum: 0

    uncompressed sum: 0

Compression: COPY

    frag count: 0

    compressed sum: 0

    uncompressed sum: 0

Compression: DYNRUBIN

    frag count: 0

    compressed sum: 0

    uncompressed sum: 0

Compression: ZLIB

    frag count: 2326

    compressed sum: 4854938

    uncompressed sum: 8708245

 

I can view everything in the jffs2 filesystem fine with the ls command in u-boot. I've enabled everything in my kernel config and userspace config that the jffs2 docu wiki said to enable. I must be missing something.

 

 

 

Erick

 

QuoteReplyEditDelete

 

 

2008-06-03 16:55:09     Re: JFFS2 error empty flash at... BF548 ezkit

Mike Frysinger (UNITED STATES)

Message: 56643   

 

looks to me like it was able to mount your filesystem just fine

QuoteReplyEditDelete

 

 

2008-06-03 17:07:38     Re: JFFS2 error empty flash at... BF548 ezkit

Erick Hemphill (UNITED STATES)

Message: 56644   

 

Ok... good. Then I did make some progress with my last round of changes. I must have angered my filesystem while I was trying to get rid of duplicate applications that were already included by busybox. What's the deal with the string of empty flash entries? Should I just ignore that? It kinda rubs my ocd against the grain hehe.

 

 

 

thanks,

 

Erick

QuoteReplyEditDelete

 

 

2008-06-03 17:21:08     Re: JFFS2 error empty flash at... BF548 ezkit

Mike Frysinger (UNITED STATES)

Message: 56646   

 

it means jffs2 read a block that was marked as empty, but it wasnt set to all 0xFF's.  this may happen if you didnt prefill the source memory region correctly before copying a chunk of memory to flash.  jffs2 will warn the first time and then recover, so i wouldnt sweat it.

 

i see you're using the busybox init ... this is not the default in the uclinux distribution (simpleinit is).  that means you'll need to adjust the /etc/inittab to the style busybox expects.

QuoteReplyEditDelete

 

 

2008-06-04 09:35:58     Re: JFFS2 error empty flash at... BF548 ezkit

Erick Hemphill (UNITED STATES)

Message: 56680   

 

Ah.. beautiful. I probably would have spent 2 hours on that this morning. Thanks Mike.

 

 

 

Erick

Attachments

    Outcomes