Discussion:
jffs2 with mtdblock
Pering, Trevor
2004-12-05 18:26:47 UTC
Permalink
Hello, I'm having trouble mounting jffs2 on a blkmtd device. The
sequence of commands is below -- am I missing anything? This is on a
arm-linux 2.4.19 kernel with jffs2 backported from 2.4.27. In the
sequence below, I also try to mount ext2 on the mtd block device just to
see if it works (and it does). And, we use jffs2 successfully on other
mtd partitions in the same system.

Any thoughts? (There are no significant messages in /var/log/messages).
Any way to tell what's going on?

Thanks,
Trevor

*** CF card is inserted and mounted on /dev/hda1 ***
stargate5:root/ # modprobe blkmtd device=/dev/hda1
stargate5:root/ # cat /proc/mtd
dev: size erasesize name
mtd0: 00040000 00040000 "bootldr"
mtd1: 00040000 00040000 "params"
mtd2: 000c0000 00040000 "kernel"
mtd3: 00ec0000 00040000 "filesys"
mtd4: 00140000 00040000 "config"
mtd5: 00ec0000 00040000 "local"
mtd6: 1e83c000 00020000 "blkmtd: /dev/hda1"
stargate5:root/ # mkfs.ext2 /dev/mtdblock/6 # just to test if it works
mke2fs 1.25 (20-Sep-2001)
.... # stuff deleted
This filesystem will be automatically checked every 33 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
stargate5:root/ # mount -t ext2 /dev/mtdblock/6 /mnt/cf1
stargate5:root/ # umount /mnt/cf1
stargate5:root/ # mkfs.jffs2 --output=/dev/mtdblock/6
--eraseblock=0x20000 --pad=0x1e83c000

stargate5:root/ # mount -t jffs2 /dev/mtdblock/6 /mnt/cf1
mount: wrong fs type, bad option, bad superblock on /dev/mtdblock/6,
or too many mounted file systems
stargate5:root/ # mount -t ext2 /dev/mtdblock/6 /mnt/cf1
mount: wrong fs type, bad option, bad superblock on /dev/mtdblock/6,
or too many mounted file systems



To unsubscribe from this list: send the line "unsubscribe jffs-dev" in
the body of a message to ***@axis.com

Loading...