* MTD tools
@ 2003-12-11 8:43 Michele Cimenti
2003-12-12 12:44 ` Jörn Engel
0 siblings, 1 reply; 2+ messages in thread
From: Michele Cimenti @ 2003-12-11 8:43 UTC (permalink / raw)
To: mtd-mailing-list
I'am working on a project that make intensive use of Flash device. For that
reason a tool that can report info about Flash residual life will be
usefull. I'm thinking about a inode record (JFFS2) that is written every
time the sector is erased. This record contains the number of times the
sector has been erased.
Did someone develop such a tool/patch or similar?
Michele
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: MTD tools
2003-12-11 8:43 MTD tools Michele Cimenti
@ 2003-12-12 12:44 ` Jörn Engel
0 siblings, 0 replies; 2+ messages in thread
From: Jörn Engel @ 2003-12-12 12:44 UTC (permalink / raw)
To: Michele Cimenti; +Cc: mtd-mailing-list
On Thu, 11 December 2003 09:43:24 +0100, Michele Cimenti wrote:
>
> I'am working on a project that make intensive use of Flash device. For that
> reason a tool that can report info about Flash residual life will be
> usefull. I'm thinking about a inode record (JFFS2) that is written every
> time the sector is erased. This record contains the number of times the
> sector has been erased.
> Did someone develop such a tool/patch or similar?
The approach depends on good faith. If anyone ever erases the flash
outside of jffs2, writes a new image to the fs or similar, your
information is gone. But if that is not a problem, such a patch to
jffs2 should be trivial, grep for the erase marker, add a counter
field to it, read the old counter before erase and write the
incremented into the new erase marker. Done.
Jörn
--
My second remark is that our intellectual powers are rather geared to
master static relations and that our powers to visualize processes
evolving in time are relatively poorly developed.
-- Edsger W. Dijkstra
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-12-12 12:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-12-11 8:43 MTD tools Michele Cimenti
2003-12-12 12:44 ` Jörn Engel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox