Skip to contentSkip to conversation

flash section set to 0x0 on jffs2 filesystem

DISCUSSION Teun Grinwis 2 participants 3 messages Aug 13, 2009 – Aug 14, 2009 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

Hello,
I use Freescale Coldfire M5208, uClinux 2.6.21, jffs2 file system. Flash chip: spansion S29GL064A

We store an executable (z-flat) on this file system. After a certain time of successful usage, the exec will not startup anymore and uclinux comes with following error

INFMT_FLAT: reloc outside program 0x6c006800 (0 - 0x54fa14/0x4b0b40), killing OIP-1.2.4! OIP-1.2.4[62] killed because of sig - 11

We upload the exec, and did a hex diff with the original bin file. Discovered that a region (section) in the faulty exec. file has changed to the value 0x00.

My concern, is this an error in the Flash chip or jffs2 file system??

Question:
Are there tools/howto to check a jffs2 partition.

Suggestions are welcome. Thanks in advance for your info.

Signature · 3 lines
Met vriendelijke groeten / With kind regards,

Teun Grinwis
#1 lore raw

Hallo Teun,

Is there no kernel/jffs2 error message or whatsoever ?
I would expect a node CRC error (maybe if you unount and mount jffs2 fs again).

Use jffs2dump to check your jffs2 partition, it's available
in the mtd-utils git repository, see git://git.infradead.org/mtd-utils.git

It's difficult to "reconstruct" the original exec. file though from the jffs2dump info since jffs2 compresses data.

Groetjes,
Norbert.

#2 lore raw

Hi Norbert,
Thanks for your tips.

Quoted 4 lines · Norbert van Bolhuis

Hallo Teun,

Is there no kernel/jffs2 error message or whatsoever ?
I would expect a node CRC error (maybe if you unount and mount jffs2 fs again).

There are no errors with mounting.

Quoted 2 lines

Use jffs2dump to check your jffs2 partition, it's available

What does jffs2dump do ? only dump data, or also check the jffs2 admin consistancy?? I have already uploaded my filesystem to Linux Host. jffs2dump has compile errors on my system (missing uuid.h).

Quoted 12 lines

in the mtd-utils git repository, see git://git.infradead.org/mtd-utils.git

It's difficult to "reconstruct" the original exec. file though from the jffs2dump info since jffs2 compresses data.

Groetjes,
Norbert.

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

Signature · 3 lines
Groeten / With kind regards,

Teun Grinwis