Problem with MTD + RPXLite
Hi
I am trying to install an JFFS2 filesystem on a RPXLite board. It doesn't work..... (I have also a TQM8xxL Board with a working JFFS2 filesystem :-) )
Here are the logs:
Linux version 2.4.4 (zwl@w0012) (gcc version 2.95.3 20010315 (release/MontaVista)) #87 Fre Jan 18 08:45:54 CET 2002
.....
JFFS2 version 2.1. (C) 2001 Red Hat, Inc., designed by Axis Communications AB.
loop: loaded (max 8 devices)
zwl: init_rpxlite: chip probing count 0
Amd/Fujitsu Extended Query Table v1.1 at 0x0040
number of CFI chips: 1
zwl: init_rpxlite: bank1, name:zwl: RPX0, size:16777216bytes
zwl: mtd_size >= flash_size
zwl: RPX flash0: Using Static image partition definition Creating 2 MTD partitions on "zwl: RPX0":
0x00000000-0x00040000 : "small"
mtd: Giving out device 0 to small 0x00040000-0x00440000 : "big"
mtd: Giving out device 1 to big
Mounting and unmount the jffs2.....
mtdblock_open
ok
jffs2: read_super for device 1f:01jffs2_scan_eraseblock(): Scanning block at 0x0 jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000000:0x6064 instead
Found empty flash at 0x4
Empty flash detected from 0x00000004 to 0x00040000
Block at 0x00000000: free 0x0003fffc, dirty 0x00000004, used 0x00000000
JFFS2: Erase block at 0x00000000 is not formatted. It will be erased jffs2_scan_eraseblock(): Scanning block at 0x40000
Found empty flash at 0x40000
Empty flash detected from 0x00040000 to 0x00080000
Block at 0x00040000: free 0x00040000, dirty 0x00000000, used 0x00000000
JFFS2: Erase block at 0x00040000 is not formatted. It will be erased
.......
jffs2_scan_eraseblock(): Scanning block at 0x340000
Found empty flash at 0x340000
Empty flash detected from 0x00340000 to 0x00380000
Block at 0x00340000: free 0x00040000, dirty 0x00000000, used 0x00000000
JFFS2: Erase block at 0x00340000 is not formatted. It will be erased jffs2_scan_eraseblock(): Scanning block at 0x380000 jffs2_scan_eraseblock(): Node at 0x00380000 {0x1985, 0x20ff, 0xffffffff) has invalid CRC 0xffffffff (calculated 0xaaa90d0c)
Found empty flash at 0x380004
Empty flash detected from 0x00380004 to 0x003c0000
Block at 0x00380000: free 0x0003fffc, dirty 0x00000004, used 0x00000000
JFFS2: Erase block at 0x00380000 is not formatted. It will be erased jffs2_scan_eraseblock(): Scanning block at 0x3c0000 jffs2_scan_eraseblock(): Node at 0x003c0000 {0x1985, 0x20ff, 0xffffffff) has invalid CRC 0xffffffff (calculated 0xaaa90d0c)
Found empty flash at 0x3c0004
Empty flash detected from 0x003c0004 to 0x00400000
Block at 0x003c0000: free 0x0003fffc, dirty 0x00000004, used 0x00000000
JFFS2: Erase block at 0x003c0000 is not formatted. It will be erased Scanned flash completely
Pass 1 complete
Pass 2 (re)starting
Pass 2 complete
Pass 3 completejffs2_read_super(): Getting root inodejffs2_read_inode(): inode->i_ino == 1
getting inocachejffs2_get_ino_cache(): ino 1jffs2_get_ino_cache found 00000000 for ino 1 jffs2_read_inode(): Got inocache at 00000000
Allocated inocache at c0bd82c0jffs2_read_inode(): Creating inocache for root inodejffs2_add_ino_cache: Add c0bd82c0 (ino #1) jffs2_read_inode(): ino #1 nlink is 1 jffs2_get_inode_nodes(): ino #1jffs2_read_inode() returningjffs2_read_super(): d_alloc_root()
JFFS2: Garbage collect thread is pid 22 thread_should_wake(): nr_free_blocks 0, nr_erasing_blocks 16, dirty_size 0xcjffs2_garbage_collect_thread sleeping... thread_should_wake(): nr_free_blocks 0, nr_erasing_blocks 16, dirty_size 0xc
Starting erase of pending block 0x003c0000
Freeing all node refs for eraseblock offset 0x003c0000
Erase completed successfully at 0x00400000
Starting erase of pending block 0x00380000
.............
Erase completed successfully at 0x000c0000
Starting erase of pending block 0x00040000
Freeing all node refs for eraseblock offset 0x00040000
Erase completed successfully at 0x00080000
Starting erase of pending block 0x00000000
Freeing all node refs for eraseblock offset 0x00000000
Erase completed successfully at 0x00040000 jffs2_erase_pending_blocks completed
Verifying erase at 0x003c0000
Writing erased marker to block at 0x003c0000
Last[2] is 198520ff, datum is 19852003
Write clean marker to block at 0x003c0000 failed: -5 thread_should_wake(): nr_free_blocks 0, nr_erasing_blocks 15, dirty_size 0x0jffs2_erase_pending_blocks completed
Verifying erase at 0x00380000
Writing erased marker to block at 0x00380000
Last[2] is 198520ff, datum is 19852003
Write clean marker to block at 0x00380000 failed: -5
jffs2: jffs2_put_super()
jffs2: Killing GC task 22jffs2_free_ino_caches: Freeing ino #1 at c0bd82c0
Freeing inocache at c0bd82c0jffs2_put_super returningjffs2_clear_inode(): ino #1 mode 40755mtdblock_release
okjffs2_garbage_collect_thread(): SIGKILL received.
I receive always the message "Write clean marker to block at XX failed:
-5".
Has anybody an idea what's wrong or some experience with an RPXLite board?
Any help would be greatly appreciated.
Thanks,
Daniel
Quoted 2 lines · [email protected] said:
Last[2] is
198520ff, datum is 19852003
Write clean marker to block at0x003c0000failed: -5
One of your flash chips isn't accepting the write commands. Can you erase it and write to use directly through the /dev/mtd devices, of from the bootloader? Is is protected or is Vpen missing?
--
dwmw2