Latest mtd snapshot

Zoltan Sogor
2006-01-06T14:29:42Z

Dear All,

we have a problem with the latest mtd snapshot and nandsim. (kernel
version is 2.6.14.3 (x86))

We run the following commands, but it doesn't work.
# modprobe nandsim
# flash_eraseall -j /dev/mtd0
# mount /mnt/flash/
# cp /boot/vmlinuz-2.6.14.3 /mnt/flash/
# umount /mnt/flash/
# mount /mnt/flash/
mount: /dev/mtd0: can't read superblock

kern.log:
kernel: NAND device: Manufacturer ID: 0x98, Chip ID: 0x39 (Toshiba NAND
8MiB 1,8V 8-bit)
kernel: flash size: 8 MiB
kernel: page size: 512 bytes
kernel: OOB area size: 16 bytes
kernel: sector size: 8 KiB
kernel: pages number: 16384
kernel: pages per sector: 16
kernel: bus width: 8
kernel: bits in sector size: 13
kernel: bits in page size: 9
kernel: bits in OOB size: 4
kernel: flash size with OOB: 8448 KiB
kernel: page address bytes: 3
kernel: sector address bytes: 2
kernel: options: 0x62
kernel: Scanning device for bad blocks
kernel: Creating 1 MTD partitions on "NAND 8MiB 1,8V 8-bit":
kernel: 0x00000000-0x00800000 : "NAND simulator partition"
kernel: JFFS2 version 2.2. (NAND) (C) 2001-2003 Red Hat, Inc.
kernel: Node at 0x00529b64 with length 0x000006ba would run over the end
of the erase block
kernel: Perhaps the file system was created with the wrong erase size?
Reject to mount.

Has somebody get the same effect on a real NAND device on recent snapshot ?

It works on mtdram.

Any idea ???

Zoltan