How can I use the JFFS2 filesystem on a CompactFlash or SD card?
You really don’t want to use JFFS2 on a removable flash memory card. Repeat after me, I really don’t want to use JFFS2 on my removable flash memory card. CF/SD cards are presented to the OS as standard IDE devices, not mtd flash devices as required by JFFS2. You can use the blkmtd driver to emulate an mtd device on the card, then use JFFS2 on top of that, but you’re unlikely to get any benefit by doing so. Most flash memory cards have wear-levelling built-in, so you shouldn’t need to use JFFS2 anyway.