public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* flash section set to 0x0 on jffs2 filesystem
@ 2009-08-13  7:13 Teun Grinwis
  2009-08-13  7:46 ` Norbert van Bolhuis
  0 siblings, 1 reply; 3+ messages in thread
From: Teun Grinwis @ 2009-08-13  7:13 UTC (permalink / raw)
  To: Mtd List

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.

-- 

Met vriendelijke groeten / With kind regards,

Teun Grinwis

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: flash section set to 0x0 on jffs2 filesystem
  2009-08-13  7:13 flash section set to 0x0 on jffs2 filesystem Teun Grinwis
@ 2009-08-13  7:46 ` Norbert van Bolhuis
  2009-08-14  6:31   ` Teun Grinwis
  0 siblings, 1 reply; 3+ messages in thread
From: Norbert van Bolhuis @ 2009-08-13  7:46 UTC (permalink / raw)
  To: Teun Grinwis; +Cc: Mtd List

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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: flash section set to 0x0 on jffs2 filesystem
  2009-08-13  7:46 ` Norbert van Bolhuis
@ 2009-08-14  6:31   ` Teun Grinwis
  0 siblings, 0 replies; 3+ messages in thread
From: Teun Grinwis @ 2009-08-14  6:31 UTC (permalink / raw)
  To: Norbert van Bolhuis; +Cc: Mtd List

Hi Norbert,
Thanks for your tips.

Norbert van Bolhuis wrote:
> 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.
>
> 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).
> 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/
-- 

Groeten / With kind regards,

Teun Grinwis

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-08-14  6:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-13  7:13 flash section set to 0x0 on jffs2 filesystem Teun Grinwis
2009-08-13  7:46 ` Norbert van Bolhuis
2009-08-14  6:31   ` Teun Grinwis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox