Thanks for your reply, Jeff.
It turns out there are a couple things stopping MTD, and subsequently JFFS2, from being enabled in UML, and when I tweak things to enable MTD, sure enough the build fails.
First, arch/um/Kconfig has
so I need BROKEN set so I can enable MTD and subsequently JFFS2. BROKEN is defined in init/Kconfig and as far as I can tell requires an edit to that file to change it. Also, "BROKEN" is to be taken seriously.
Second, arch/um/Kconfig has
and then in lib/Kconfig:
depends on !NO_IOMEM
and then in drivers/mtd/Kconfig:
tristate "Memory Technology Device (MTD) support"
depends on HAS_IOMEM
and since HAS_IOMEM is false, MTD can't be enabled.
I guess something has changed since JFFS2 apparently worked on 2.4.18-21um in 2002:
Oh well. UML was really useful for another project I did, but I'll find another way for this one.
On Thu, Sep 27, 2007 at 09:18:53PM -0700, atom ota wrote:
> I need to do some experiments with JFFS2 on a recent Linux kernel (220.127.116.11)
> and was hoping to use UML, with block2mtd or nandsim as my MTD, but either
> MTD configuration and consequently JFFS2 configuration isn't available in
> "make ARCH=um menuconfig", or I just can't find it.
Searching for JFFS2_FS in menuconfig gives me this:
Symbol: JFFS2_FS [=n]
Prompt: Journalling Flash File System v2 (JFFS2) support
Defined at fs/Kconfig:1222
Depends on: MTD
-> File systems
-> Miscellaneous filesystems
Work email - jdike at linux dot intel dot com