Skip to contentSkip to conversation

nandwrite problem

DISCUSSION Sridhar C.R 1 participant 1 message Feb 25, 2009 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

Hi,

I am using an 8Gbit ST Micro NAND flash. I am using the cross compiled mtd utils (mtd-utils-05.07.23) for mips 64.
The flash eraseall is working. But when I try to write an image (jffs2 / any other), I am getting the following error

# ./nandwrite -p /dev/mtd0 rootfs.jffs2
Writing data to block 0
pwrite: Input/output error
Data did not fit into device, due to bad blocks
: Illegal seek

The block 0 of this partition is a good block. This is verified by the boot up info as well as the flash_eraseall utility.
Also the partition is large enough to hold the image in spite of few bad blocks in the partition.

Can anybody have any ideas?

Thanks,
Sridhar

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments contained in it.