JFFS2 on Lite5200
Hi all!
First let me thank you all for your quick and kind help... I was out for a few days so I take the time to reply only now.
Quoted 1 line · Andrey Volkov
OMG, again same question,
Sorry Andrey for my too superficial search in the ml archive... Anyway it seems this issue is somehow still open. ;-)
At moment I'm going with Andrey's patch (it works!) but I'd like to understand better and maybe to help solving the problem. I see that patching include/asm-ppc/io.h may not be the right way... I'm pretty new to kernel hacking/developing so I got confused by your discussion about the right place to patch things.
So a few questions arise. Do we need to change the physmap driver? Is this somehow dependent on the target platform. If so can we put some changes for Lite5200 only?
Quoted 7 lines · Andrey Volkov
There are two modes of operation for JFFS2 scan. Either it can use the MTD device's
read()function to read from the flash into memory and scan
from there, or -- IF the flash can be accessed as if it were normal memory -- it can use thepoint()method and skip theread()call by using a pointer directly into the flash.
Quoted 8 lines
In your case, the flash cannot be accessed directly as if it were normal
memory. So your map driver probably shouldn't be allowingpoint()to succeed.Having said that, I'm not entirely sure we have the code set up so that
'simple' map drivers _can_ preventpoint(). We may need to fix that.
Looking at David's explanation about mapping driver... What does exacly mean preventing point()/unpoint() to succeed? As a simple MTD _user_ (never digged inside the code) I don't see any hook to these functions in drivers/mtd/maps/physmap.c so no easy way to set them to NULL.
Signature · 1 line
Andrea Galbusera <[email protected]>