* [U-Boot-Users] Problem with JFFS2 summary on NOR-flash
@ 2006-04-11 12:53 Anders Grafstrom
0 siblings, 0 replies; only message in thread
From: Anders Grafstrom @ 2006-04-11 12:53 UTC (permalink / raw)
To: u-boot
Hello,
I tried to use the summary feature of JFFS2 on NOR-flash and ended up
with U-boot failing to read the filesystem. The reason for this turned
out to be that the JFFS2 scanning code in U-boot makes a write to the
flash memory area.
Unlinked dirents are not marked obsolete when summary is enabled and
this leads U-Boot to the line "jOld->ino = 0;" in compare_dirents().
jOld points to flash memory in the case of NOR-flash.
Without dcache this problem is not noticed as 0x00 seems to be a NOOP.
But with dcache you get either an exception if you have ROM protection
enabled or the flash chip might flip into read query mode when the cache
line is written. The latter happened for me.
I tried implementing get_fl_mem() with malloc() similar to the NAND code
but this made things VERY slow. I'm guessing that removing the
problematic line and making the code somehow sort out the highest
version of the dirents is better?
Regards, Anders
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-04-11 12:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-11 12:53 [U-Boot-Users] Problem with JFFS2 summary on NOR-flash Anders Grafstrom
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox