linux-mtd.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: Matthieu CASTET <matthieu.castet@parrot.com>
To: Linux mtd <linux-mtd@lists.infradead.org>
Subject: mtdchar : writing image with oob and NOP=1
Date: Mon, 2 Aug 2010 10:21:49 +0200	[thread overview]
Message-ID: <4C56801D.3040300@parrot.com> (raw)

Hi,

We need to write our bootloader with a special ecc (use by cpu rom).

For that we use MTD_MODE_RAW, write and MEMWRITEOOB. This work fine, but 
from my understanding this will do a first page program with oob set to 
0xff and then program again oob.

But some recent nand support only 1 program per page (NOP=1).
How can we program nand with NOP=1 with a custom ecc ?

 From what I see in mtdchar either datbuf is set (and oobbuf is null) or 
oobbuf is set (and datbuf is null).

So this mean we need to add an ioctl to do that ?

Matthieu

             reply	other threads:[~2010-08-02  8:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-02  8:21 Matthieu CASTET [this message]
2010-08-04 15:07 ` mtdchar : writing image with oob and NOP=1 Matthieu CASTET
2010-08-24  8:02 ` Artem Bityutskiy

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=4C56801D.3040300@parrot.com \
    --to=matthieu.castet@parrot.com \
    --cc=linux-mtd@lists.infradead.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).