Added mtd and JFFS2 support.