All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nishanth Menon <menon.nishanth@gmail.com>
To: z l <zql@glomationinc.com>
Cc: tglx@linutronix.de, linux-mtd@lists.infradead.org
Subject: Re: Problem with developing Samsung K9F1G08U0A MTD driver
Date: Fri, 06 Oct 2006 00:13:49 -0500	[thread overview]
Message-ID: <4525E60D.1030006@gmail.com> (raw)
In-Reply-To: <20061005220807.86730.qmail@web212.biz.mail.re2.yahoo.com>

z l stated on 10/5/2006 1:35 PM:
> driver for Samsung K9F1G08U0A chip on the board.  We
<snip>
>
> 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
>
z l stated on 10/5/2006 5:08 PM:
<snip>
> http://lists.infradead.org/pipermail/linux-mtd/2006-July/016159.html.
> and interesting enough it fixed one of our problems. 
> So it was the nandwriite that was doing the bad thing
> by writing things where "not suppose to" and made good
> blocks into "bad".  After applying the fix, at least
> we can write to the NAND without making lots of new
I have hardly looked at the nand mtd code, but maybe the data sheet
(http://www.samsung.com/Products/Semiconductor/NANDFlash/SLC_LargeBlock/1Gbit/K9F1G08U0A/ds_k9f1g08x0a_rev10.pdf#search=%22K9F1G08U0A%20%20data%20sheet%22)
might help, on the R1 device is 128M, the U device is 256M(so am not too
sure abt ur mtd.size param), on this device, page1,page2 offset 0 had
badblock info, so am not sure if mtd is putting ecc over there..

> "bad" blocks.  And the JFFS2 copied over is somewhat
> working.  Still got lot's of "nand_read_ecc: Failed
> ECC read, page 0xXXXXXXXXX" when doing normal file
> access.  So we are looking into that to see what is
> the cause of this problem.
mebbe u can try this: (dunno if it works): flash_eraseall mtd and mount
and umount the same, let jffs2 maintain the bad blocks - remount should
not show any jffs2 errors.
another issue is possibly that ur host based mkfs.jffs2 might not have
been given the right params..

Just my guesses.. but then.. I can be completely wrong...

Regards,
Nishanth Menon

  parent reply	other threads:[~2006-10-06  5:13 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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     ` Nishanth Menon [this message]
2006-10-06 14:05       ` Problem with developing Samsung K9F1G08U0A MTD driver z l
2006-10-06 19:32         ` nishanth menon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4525E60D.1030006@gmail.com \
    --to=menon.nishanth@gmail.com \
    --cc=linux-mtd@lists.infradead.org \
    --cc=tglx@linutronix.de \
    --cc=zql@glomationinc.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.