<div>Hi all,</div>
<div> </div>
<div>I am a newbie to JFFS2 flash file system. On my Intel IXP425 wireless board, I am have severe issue with JFFS2. The onboard 8MB flash has</div>
<div>the following partitions and flashed with OpenWRT linux kernels and jffs2 rootfs and Config data images.</div>
<div> </div>
<div><a href="mailto:root@OpenWRT">root@OpenWRT</a>:~# cat /proc/mtd<br>dev: size erasesize name<br>mtd0: 00060000 00020000 "RedBoot"<br>mtd1: 00140000 00020000 "kernel1"<br>mtd2: 00500000 00020000 "rootfs1"<br>
mtd3: 00140000 00020000 "kernel2"<br>mtd4: 00500000 00020000 "rootfs2"<br>mtd5: 00100000 00020000 "Config" </div>
<div>mtd6: 00020000 00020000 "RedBoot config"<br>mtd7: 00020000 00020000 "FIS directory"</div>
<div> </div>
<div><a href="mailto:root@OpenWRT">root@OpenWRT</a>:~# mount<br>rootfs on / type rootfs (rw)<br>/dev/root on / type jffs2 (rw)<br>proc on /proc type proc (rw)<br>sysfs on /sys type sysfs (rw)<br>tmpfs on /tmp type tmpfs (rw,nosuid,nodev)<br>
tmpfs on /dev type tmpfs (rw)<br>devpts on /dev/pts type devpts (rw,mode=600)<br>/dev/mtdblock5 on /mnt/rw type jffs2 (rw)<br></div>
<div>When the board is up and running for the first time, on updating the Config (mtd5) parition from GUI web, and on next reboot the system gets </div>
<div>failed to mount the Config jffs2 (mtd5) partition and throws the following error</div>
<div>......</div>
<div> Intel/Sharp Extended Query Table at 0x010A<br>Using buffer write method<br>Using auto-unlock on power-up/resume<br>cfi_cmdset_0001: Erase suspend on write enabled<br>Searching for RedBoot partition table in IXP4XX-Flash.0 at offset 0xfe0000<br>
8 RedBoot partitions found on MTD device IXP4XX-Flash.0<br>Creating 8 MTD partitions on "IXP4XX-Flash.0":<br>0x00000000-0x00060000 : "RedBoot"<br>0x00060000-0x001a0000 : "kernel1"<br>0x001a0000-0x006a0000 : "rootfs1"<br>
0x006a0000-0x007e0000 : "kernel2"<br>0x007e0000-0x00ce0000 : "rootfs2"<br><strong>0x00ce0000-0x00de0000 : "config"</strong><br>0x00fc0000-0x00fe0000 : "RedBoot config"<br>0x00fe0000-0x01000000 : "FIS directory"<br>
i2c /dev entries driver<br>i2c-gpio i2c-gpio.0: using pins 9 (SDA) and 10 (SCL)<br>IXP4xx Watchdog Timer: heartbeat 60 sec<br>Registered led device: pronghorn:green:status<br>nf_conntrack version 0.5.0 (1024 buckets, 4096 max)<br>
ip_tables: (C) 2000-2006 Netfilter Core Team<br>TCP westwood registered<br>NET: Registered protocol family 17<br>Bridge firewalling registered<br>802.1Q VLAN Support v1.8 Ben Greear <<a href="mailto:greearb@candelatech.com">greearb@candelatech.com</a>><br>
All bugs added by David S. Miller <<a href="mailto:davem@redhat.com">davem@redhat.com</a>><br>XScale DSP coprocessor detected.<br>drivers/rtc/hctosys.c: unable to open rtc device (rtc0)<br>VFS: Mounted root (jffs2 filesystem) readonly.<br>
Freeing init memory: 100K<br>Please be patient, while OpenWrt loads ...<br><strong>JFFS2 error: (1863) jffs2_link_node_ref: Adding new ref c3d992f0 at (0x00000000-0x00000030) not immediately after previo<br>us (0x00000000-0x00000000)<br>
Unable to handle kernel NULL pointer dereference at virtual address 00000000<br>pgd = c3cf8000<br></strong>[00000000] *pgd=03e13031, *pte=00000000, *ppte=00000000<br>Internal error: Oops: 817 [#1]<br>Modules linked in:<br>
CPU: 0 Not tainted (2.6.26.2 #17)<br>pc : [<c00c0d54>] lr : [<c020630c>] psr: 60000013<br>sp : c3df5be4 ip : c020630c fp : c3df5c14<br>r10: c3df7800 r9 : 00000006 r8 : c3cfd0a8<br>r7 : 00000030 r6 : c3df7200 r5 : c3d992f0 r4 : c3df7800<br>
r3 : 00000000 r2 : a0000013 r1 : 00000001 r0 : 00000096<br>Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user<br>Control: 000039ff Table: 03cf8000 DAC: 00000015<br>Process mount (pid: 1863, stack limit = 0xc3df4260)<br>
Stack: (0xc3df5be4 to 0xc3df6000)<br>5be0: 00000000 00000030 00000000 00000000 00000030 c3df7800 00000000 <br>5c00: c3df7200 c3df7200 c3df5c38 c3df5c18 c00cd5c8 c00c0c60 c3cfd0a8 00000000 <br>5c20: c3e18020 00000000 c3d7be00 c3df5c90 c3df5c3c c00cda1c c00cd574 c3cfd0a8 <br>
5c40: c3d7be15 c3e18038 c3e18000 00020000 00005024 00000000 c3cfd0a8 19852006 <br>5c60: 00005024 c3df5c90 00000008 c3df7200 00005024 c3e18000 c3df7800 c3d92ff8 <br>5c80: 00000000 c3df5d14 c3df5c94 c00c5e38 c00cd6c8 c0220ae4 000000d2 ffffffff <br>
5ca0: 000000ef 00000000 00000000 00000000 00001000 c3d7bd40 00000000 c006e188 <br>5cc0: c3d92000 000000d2 00000000 00000000 c3df7200 c3df72dc c3df72c4 c3df5cfc <br>5ce0: c3df5cec c006e3b0 c3d92000 c3df72b4 c3df72bc c3df72dc c3df72c4 c3df72cc <br>
5d00: c3df7200 00000000 c3df5d4c c3df5d18 c00c8b4c c00c5b48 c3df5d4c c3df5d28 <br>5d20: 00000000 00020000 00100000 c3df7200 c3df7400 c3c59d00 c00caf10 c3c19a00 <br>5d40: c3df5d6c c3df5d50 c00caa10 c00c89c8 c3df7200 c3df7400 00000001 c3e14000 <br>
5d60: c3df5d8c c3df5d70 c00cafac c00ca8e4 c3df7400 c3df7400 00008000 c3e14000 <br>5d80: c3df5db4 c3df5d90 c01125cc c00caf1c c3d02000 c3e14000 c020a2d8 00008000 <br>5da0: c020a2d8 c3e14000 c3df5de0 c3df5db8 c0112690 c0112578 c3c19a00 c00caf10 <br>
5dc0: c3c59d00 01f00005 c3d02000 c3df5df0 00008000 c3df5e6c c3df5de4 c011280c <br>5de0: c011263c 00000005 c00caf10 c3c59d00 c3c59d80 c38c245c c3df5e50 c3df5e08 <br>5e00: c00e1810 00000001 00000001 00000000 00000000 c021ca58 000000d0 c3c59d00 <br>
5e20: 00008000 c3df5e48 00008000 c3df5e60 c3df5e3c c00738b4 c0073634 c3d74000 <br>5e40: 0000000f c3c59d00 c3d02000 c020a2d8 00008000 c3e14000 c3d74000 c3e14000 <br>5e60: c3df5e84 c3df5e70 c00cadd8 c01126ac c00caf10 c3c59d00 c3df5eac c3df5e88 <br>
5e80: c0077dcc c00cadc0 c3c59d00 00008000 c3d02000 c3e14000 c3d74000 c020a2d8 <br>5ea0: c3df5ed0 c3df5eb0 c0077e6c c0077d80 00008000 c3d74000 c3df5efc 00000000 <br>5ec0: c3d02000 c3df5ef0 c3df5ed4 c008dbc0 c0077e3c 00008000 00000000 c3df5efc <br>
5ee0: c3d91000 c3df5f74 c3df5ef4 c008dd60 c008db70 c3d02000 c3e14000 c3d66180 <br>5f00: c38fc7c0 c0021620 c0021194 c3e14fe8 00000001 00000001 00000000 00001000 <br>5f20: 0006a018 00000018 c3e14000 c3df5f84 c3df4000 00000000 c3df5f74 00000000 <br>
5f40: c3df5f54 00000000 c01bb46c 00000000 c3d91000 beabff9f 00008000 c0021be4 <br>5f60: c3df4000 00000000 c3df5fa4 c3df5f78 c008de14 c008dbfc c3e14000 c3d02000 <br>5f80: c3d74000 c3e14000 0006a018 beabfdd0 4009b608 00000015 00000000 c3df5fa8 <br>
5fa0: c0021a40 c008dd94 0006a018 beabfdd0 beabff9f beabffae beabff99 00008000 <br>5fc0: 0006a018 beabfdd0 4009b608 0006a018 00000042 beabfee0 00000000 00000000 <br>5fe0: 40051ed4 beabfa50 0002c15c 40051ee0 20000010 beabff9f 00000000 00000000 <br>
Backtrace: <br>Function entered at [<c00c0c54>] from [<c00cd5c8>]<br> r8:c3df7200 r7:c3df7200 r6:00000000 r5:c3df7800 r4:00000030<br>Function entered at [<c00cd568>] from [<c00cda1c>]<br> r7:c3d7be00 r6:00000000 r5:c3e18020 r4:00000000<br>
Function entered at [<c00cd6bc>] from [<c00c5e38>]<br>Function entered at [<c00c5b3c>] from [<c00c8b4c>]<br>Function entered at [<c00c89bc>] from [<c00caa10>]<br>Function entered at [<c00ca8d8>] from [<c00cafac>]<br>
r7:c3e14000 r6:00000001 r5:c3df7400 r4:c3df7200<br>Function entered at [<c00caf10>] from [<c01125cc>]<br> r7:c3e14000 r6:00008000 r5:c3df7400 r4:c3df7400<br>Function entered at [<c011256c>] from [<c0112690>]<br>
Function entered at [<c0112630>] from [<c011280c>]<br> r7:00008000 r6:c3df5df0 r5:c3d02000 r4:01f00005<br>Function entered at [<c01126a0>] from [<c00cadd8>]<br>Function entered at [<c00cadb4>] from [<c0077dcc>]<br>
Function entered at [<c0077d74>] from [<c0077e6c>]<br> r8:c020a2d8 r7:c3d74000 r6:c3e14000 r5:c3d02000 r4:00008000<br>Function entered at [<c0077e30>] from [<c008dbc0>]<br> r8:c3d02000 r7:00000000 r6:c3df5efc r5:c3d74000 r4:00008000<br>
Function entered at [<c008db64>] from [<c008dd60>]<br> r7:c3d91000 r6:c3df5efc r5:00000000 r4:00008000<br>Function entered at [<c008dbf0>] from [<c008de14>]<br>Function entered at [<c008dd88>] from [<c0021a40>]<br>
r7:00000015 r6:4009b608 r5:beabfdd0 r4:0006a018<br>Code: e59f00bc e59f20bc ebfdc884 e3a03000 (e5833000) <br>---[ end trace eefb6b43ebe2bec4 ]---<br>- init -<br></div>
<div>Can anyboy tell me how the changes to the jffs2 Config (mtd5) parition affects the bootup ?</div>