I was able to fix my problem by adding the following code to nandmtd2_write_chunk_tags() function: struct yaffs_dev *dev_copy; dev_copy = kmalloc(sizeof(struct yaffs_dev), GFP_KERNEL); if (dev_copy) { memcpy(dev_copy, dev, sizeof(struct yaffs_dev)); yaffs_trace(YAFFS_TRACE_OS, "made a copy of device structure"); } . . . . kfree(dev_copy); I am not sure why this worked. Jacob On 2012-01-12 15:17, Gorelik, Jacob (335F) wrote: > Hello, > > I am trying to use yaffs2 on my board's nand flash and having some problems. > I am using linux kernel 2.6.39.3. I've attached a sample screen capture. > Is there something I am missing in my kernel's configuration? > > Thank you, > Jacob > > ~ # /mtd/sbin/flash_erase /dev/mtd0 0 0 >