* Understanding jffs2 warning message
@ 2005-07-19 12:35 Jean-Philippe Francois
2005-07-19 13:06 ` Artem B. Bityuckiy
2005-07-20 7:30 ` Jean-Philippe Francois
0 siblings, 2 replies; 5+ messages in thread
From: Jean-Philippe Francois @ 2005-07-19 12:35 UTC (permalink / raw)
To: linux-mtd
Hi,
I am doing some test on a JFFS2 file system.
It is installed on a Macronix Flash 29LV320, with top boot block.
The part are cfi probed, and it works (almost) fine.
I am doing some tar/untar loop [1]. Every six or seven loop, I have a
serie of 8 warning messages :
Node totlen on flash (0xffffffff) != totlen in node ref (0x00001040)
Node totlen on flash (0xffffffff) != totlen in node ref (0x00001044)
Node totlen on flash (0xffffffff) != totlen in node ref (0x00001044)
Node totlen on flash (0xffffffff) != totlen in node ref (0x00001044)
Node totlen on flash (0xffffffff) != totlen in node ref (0x00001044)
Node totlen on flash (0xffffffff) != totlen in node ref (0x00001044)
Node totlen on flash (0xffffffff) != totlen in node ref (0x00001044)
Node totlen on flash (0xffffffff) != totlen in node ref (0x00000768)
I looked at the code, but I don't understand what is the meaning of
these messages.
Do you think it can be related to the Top Boot Block layout of this
flash (ie last 64 k sector is replaced by 8 8k sector) ?
I might be wrong, but I think the sector layout and erase size is taken
into account by CFI probing ?
Regards,
JP Francois
[1] : tar/untar loop
#!/bin/sh
i=0
while [ true ]
do
tar -xzf /test.tar.gz
rm /test.tar.gz
sync
echo "pass $i"
md5sum /usr/test/etc/rc3
tar -czf /test.tar.gz /usr/test/
rm -r /usr/test/
sync
let i=i+1
done
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: Understanding jffs2 warning message
2005-07-19 12:35 Understanding jffs2 warning message Jean-Philippe Francois
@ 2005-07-19 13:06 ` Artem B. Bityuckiy
2005-07-19 13:16 ` Jean-Philippe Francois
2005-07-20 7:30 ` Jean-Philippe Francois
1 sibling, 1 reply; 5+ messages in thread
From: Artem B. Bityuckiy @ 2005-07-19 13:06 UTC (permalink / raw)
To: jp.francois; +Cc: linux-mtd
Jean-Philippe Francois wrote:
> I am doing some test on a JFFS2 file system.
> It is installed on a Macronix Flash 29LV320, with top boot block.
> The part are cfi probed, and it works (almost) fine.
>
> I am doing some tar/untar loop [1]. Every six or seven loop, I have a
> serie of 8 warning messages :
>
> Node totlen on flash (0xffffffff) != totlen in node ref (0x00001040)
> Node totlen on flash (0xffffffff) != totlen in node ref (0x00001044)
You don't do unclean reboots? If not, this is wierd. This means that the
node on flash is somehow got corrupted.
--
Best Regards,
Artem B. Bityuckiy,
St.-Petersburg, Russia.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Understanding jffs2 warning message
2005-07-19 13:06 ` Artem B. Bityuckiy
@ 2005-07-19 13:16 ` Jean-Philippe Francois
0 siblings, 0 replies; 5+ messages in thread
From: Jean-Philippe Francois @ 2005-07-19 13:16 UTC (permalink / raw)
To: Artem B. Bityuckiy; +Cc: linux-mtd
On Tue, 2005-07-19 at 15:06, Artem B. Bityuckiy wrote:
> Jean-Philippe Francois wrote:
> > I am doing some test on a JFFS2 file system.
> > It is installed on a Macronix Flash 29LV320, with top boot block.
> > The part are cfi probed, and it works (almost) fine.
> >
> > I am doing some tar/untar loop [1]. Every six or seven loop, I have a
> > serie of 8 warning messages :
> >
> > Node totlen on flash (0xffffffff) != totlen in node ref (0x00001040)
> > Node totlen on flash (0xffffffff) != totlen in node ref (0x00001044)
> You don't do unclean reboots? If not, this is wierd. This means that the
> node on flash is somehow got corrupted.
Well, things happen, so may be there was not so clean reboot :)
What happens to corrupted nodes ? Are they somehow garbage collected ?
If I use a partition without the top block, these warning messages do
not appear.
JP Francois
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Understanding jffs2 warning message
2005-07-19 12:35 Understanding jffs2 warning message Jean-Philippe Francois
2005-07-19 13:06 ` Artem B. Bityuckiy
@ 2005-07-20 7:30 ` Jean-Philippe Francois
2005-07-21 14:24 ` Jean-Philippe Francois
1 sibling, 1 reply; 5+ messages in thread
From: Jean-Philippe Francois @ 2005-07-20 7:30 UTC (permalink / raw)
To: linux-mtd
On Tue, 2005-07-19 at 14:35, Jean-Philippe Francois wrote:
> Hi,
>
> I am doing some test on a JFFS2 file system.
> It is installed on a Macronix Flash 29LV320, with top boot block.
> The part are cfi probed, and it works (almost) fine.
>
> I am doing some tar/untar loop [1]. Every six or seven loop, I have a
> serie of 8 warning messages :
>
> Node totlen on flash (0xffffffff) != totlen in node ref (0x00001040)
> Node totlen on flash (0xffffffff) != totlen in node ref (0x00001044)
> Node totlen on flash (0xffffffff) != totlen in node ref (0x00001044)
> Node totlen on flash (0xffffffff) != totlen in node ref (0x00001044)
> Node totlen on flash (0xffffffff) != totlen in node ref (0x00001044)
> Node totlen on flash (0xffffffff) != totlen in node ref (0x00001044)
> Node totlen on flash (0xffffffff) != totlen in node ref (0x00001044)
> Node totlen on flash (0xffffffff) != totlen in node ref (0x00000768)
>
> I looked at the code, but I don't understand what is the meaning of
> these messages.
> Do you think it can be related to the Top Boot Block layout of this
> flash (ie last 64 k sector is replaced by 8 8k sector) ?
> I might be wrong, but I think the sector layout and erase size is taken
> into account by CFI probing ?
Looking into the archive, I think I am in the case described by [1].
The driver know about the various erase regions, but doesn't transmit
this info to partition level. What is the status of the patch in [1] ?
It is not part of the mtd code in 2.6.12 kernel.
Regards,
JP Francois
[1]
http://lists.infradead.org/pipermail/linux-mtd/2004-December/011320.html
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Understanding jffs2 warning message
2005-07-20 7:30 ` Jean-Philippe Francois
@ 2005-07-21 14:24 ` Jean-Philippe Francois
0 siblings, 0 replies; 5+ messages in thread
From: Jean-Philippe Francois @ 2005-07-21 14:24 UTC (permalink / raw)
To: linux-mtd
On Wed, 2005-07-20 at 09:30, Jean-Philippe Francois wrote:
> On Tue, 2005-07-19 at 14:35, Jean-Philippe Francois wrote:
> > Hi,
> >
> > I am doing some test on a JFFS2 file system.
> > It is installed on a Macronix Flash 29LV320, with top boot block.
> > The part are cfi probed, and it works (almost) fine.
> >
> > I am doing some tar/untar loop [1]. Every six or seven loop, I have a
> > serie of 8 warning messages :
> >
> > Node totlen on flash (0xffffffff) != totlen in node ref (0x00001040)
> > Node totlen on flash (0xffffffff) != totlen in node ref (0x00001044)
> > Node totlen on flash (0xffffffff) != totlen in node ref (0x00001044)
> > Node totlen on flash (0xffffffff) != totlen in node ref (0x00001044)
> > Node totlen on flash (0xffffffff) != totlen in node ref (0x00001044)
> > Node totlen on flash (0xffffffff) != totlen in node ref (0x00001044)
> > Node totlen on flash (0xffffffff) != totlen in node ref (0x00001044)
> > Node totlen on flash (0xffffffff) != totlen in node ref (0x00000768)
> >
> > I looked at the code, but I don't understand what is the meaning of
> > these messages.
> > Do you think it can be related to the Top Boot Block layout of this
> > flash (ie last 64 k sector is replaced by 8 8k sector) ?
> > I might be wrong, but I think the sector layout and erase size is taken
> > into account by CFI probing ?
>
> Looking into the archive, I think I am in the case described by [1].
> The driver know about the various erase regions, but doesn't transmit
> this info to partition level. What is the status of the patch in [1] ?
> It is not part of the mtd code in 2.6.12 kernel.
>
> Regards,
>
> JP Francois
>
> [1]
> http://lists.infradead.org/pipermail/linux-mtd/2004-December/011320.html
>
>
I tested this patch, and it solved my problem, in case anyone is
interested.
JP François
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2005-07-21 14:24 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-19 12:35 Understanding jffs2 warning message Jean-Philippe Francois
2005-07-19 13:06 ` Artem B. Bityuckiy
2005-07-19 13:16 ` Jean-Philippe Francois
2005-07-20 7:30 ` Jean-Philippe Francois
2005-07-21 14:24 ` Jean-Philippe Francois
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox