
On Thu, 2003-07-24 at 16:20, Woodruff, Richard wrote:
Hi,
I had considered doing something similar to support NAND. After reading though Dave's comments as attached below (speed, size, ...) and some other reading I decided from my perspective it wasn't worth it. For the most part memory is abundant at the boot loader so copying a moderately sized kernel partition doesn't seem that bad, especially given the speed cost. In my board I've added a ram entry flash device array and copy data there.
Yes when you have NAND flash an extra partition or two is not going to cost you much. And when you are using NOR flash you probably is going to have a lot more DRAM than flash anyway.
I should mention that most of the work on this patch was done by a summer intern named Michal Cendrowski I just dotted the i's and crossed the t's well actually I freed the mallocs and moved some things out of loops.
It should be possible to change the code in a why that makes it a compile time option to use the callback function or directly map the filesystem. I think that would be the only acceptable change as the overhead otherwise is just to large for situations when copying the whole thing is not a problem.
hmm That should almost be possible now just changing the jffs2copy macro.