NAND flash write goes wrong

Josh Boyer jwboyer at linux.vnet.ibm.com
Thu May 10 15:16:32 EDT 2007


On Thu, 2007-05-10 at 21:50 +0300, borasah at gmail.com wrote:
> Hi,
> 
> I have a MIPS based board and want to use its NAND flash for storage. NAND 
> chip is a Samsung part: K9F1208UDA. It has 16KB erase block size and 512 byte 
> page size.
> 	cat /proc/mtd
> 	dev:    size   erasesize  name
> 	mtd0: 02000000 00020000 "mtdram test device"
> 	mtd1: 00800000 00004000 "NAND FS 0"
> 	mtd2: 03800000 00004000 "NAND FS 1"
> 
> As you see there are two partitions on it. I want to use "NAND FS 1"(56MB) for 
> rootFS storage. I obtained mtd-utils from the site and compiled them for both  
> the host and the target. I am using "mkfs.jffs2 command on the host" to 
> generate a jffs2 image.
> 	./mkfs.jffs2 -p 0x3800000 -s 0x200 -e 0x4000 -r rootfs -o img -l
> Then on the target I do
> 	flash_eraseall -j /dev/mtd

Could you try without the -j and see if it fares any better?

josh





More information about the linux-mtd mailing list