jffs2 scanning

David Woodhouse dwmw2 at infradead.org
Thu May 22 08:22:09 EDT 2003


On Thu, 2003-05-22 at 13:12, Marc Neiger wrote:
> Hi,
> 
> is it possible to tell (from command line ?) jffs2 not to scan some MTD
> devices ?

JFFS2 will only scan those MTD devices which you explicitly ask it to
mount. You can tell it not to by simply refraining from trying to mount
the device :)

> I have some mtd partitions in NOR flash which are to be accessed as raw
> devices and a NAND flash which is JFFS2. With debugging enabled JFFS2
> reports pages and pages of messages regarding what it found in NOR,
> moreover, it could eventually understand something wrong !

That's odd. Are you mounting the NOR device as root and just specifying
it with 'root=/dev/mtdblock$n' on the kernel command line? If so, try
also adding 'rootfstype=cramfs' (or whatever fs it is). The kernel will
try all available file systems in the order they were linked into the
kernel image, so it's that or hack fs/Makefile to link them in the other
order. Or make JFFS2 a loadable module and load it once the rootfs is
mounted, I suppose.

-- 
dwmw2





More information about the linux-mtd mailing list