public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* Problem with developing Samsung K9F1G08U0A MTD driver
@ 2006-10-05 18:35 z l
  2006-10-05 21:38 ` Thomas Gleixner
  0 siblings, 1 reply; 13+ messages in thread
From: z l @ 2006-10-05 18:35 UTC (permalink / raw)
  To: linux-mtd

We have ARM (Cirrus Logic EP93XX) based systems
running Linux 2.6.8.1.  We are trying to add NAND
driver for Samsung K9F1G08U0A chip on the board.  We
are able to have the driver read the MTD and register
the device.  However writing to the chip using
nandwrite seem to write some bytes in the OOB area and
mark the block bad.  Checking with mtd_debug program,
the information returned as following,

mtd.type = NAND FLASH
mtd.flags = MTD_CLEAR_BITS | MTD_ERASEABLE | MTD_OOB |
MTD_ECC
mtd.size = 134217728 (128M)
mtd.erasesize = 131072 (128K)
mtd.oobblock = 2048 (2K)
mtd.oobsize = 64 
mtd.ecctype = MTD_ECC_NONE
regions = 0

The mtd.flags shows the MTD_ECC is set but the
mtd.ecctype is set to MTD_ECC_NONE.  We have the
following line in the driver code,

this->eccmode = NAND_ECC_SOFT;

Does this set the mtd.flags or set the mtd.ecctype?

What should be the right setting for the Samsung chip?

Thanks in advance.

ZL

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2006-10-06 19:38 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-05 18:35 Problem with developing Samsung K9F1G08U0A MTD driver z l
2006-10-05 21:38 ` Thomas Gleixner
2006-10-05 22:08   ` z l
2006-10-05 22:55     ` Thomas Gleixner
2006-10-05 23:28       ` z l
2006-10-06  8:18         ` Lennert Buytenhek
2006-10-06  9:22         ` Thomas Gleixner
2006-10-06 11:46           ` z l
2006-10-06 15:25             ` Nicolas Pitre
2006-10-06 17:32               ` Bug in edb7312.c ? z l
2006-10-06  5:13     ` Problem with developing Samsung K9F1G08U0A MTD driver Nishanth Menon
2006-10-06 14:05       ` z l
2006-10-06 19:32         ` nishanth menon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox