Mouting JFFS2 parition
Greetings all,
Hi, I'm a novice at using flash chips and MTD, so please bear with me if this is a trivial question.
I am able to mount my completely erased parition, "without" copying an image on to it. The memory dump of the partition after umounting the same, shows some data being written to this parition. I have a couple of questions in this regard.
Is it a necessary to copy an JFFS2 image to an MTD parition before using the same? Is this an acceptable way of using the parition?
Thanks and Regards,
-raghav-
--------------------------------------------
Purpose is everything, purpose is all.
Quoted 11 lines · Raghav K
Greetings all,
Hi, I'm a novice at using flash chips and MTD, so please bear with me if this is a trivial question.
I am able to mount my completely erased parition, "without" copying an image on to it. The memory dump of the partition after umounting the same, shows some data being written to this parition. I have a couple of questions in this regard.
Is it a necessary to copy an JFFS2 image to an MTD parition before using the same? Is this an acceptable way of using the parition?
As long as the partition is "empty" (i.e. freshly erased) on the _first_ mount, you do not need to copy a JFFS2 image to it. Subsequent mounts on that partition will also work because JFFS2 will have written valid data to it during it's mount lifetime (eraseblock headers, etc).
Seems to be perfectly valid to use the partition this way, if you are going to just use it as storage. Cases like using JFFS2 as a root filesystem would require writing an image to it before hand (obviously).
And that was a pretty good question for a novice ;).
josh