* 'nandwrite -o' on MLC NAND
@ 2011-08-02 19:01 Brian Norris
2011-08-15 15:48 ` Artem Bityutskiy
0 siblings, 1 reply; 3+ messages in thread
From: Brian Norris @ 2011-08-02 19:01 UTC (permalink / raw)
To: linux-mtd
Cc: David Woodhouse, Mike Frysinger, Matthew Creech, Artem Bityutskiy
Hi,
For a while, I've been having problems with using `nandwrite -o' on
MLC NAND flash. Nandwrite is never able to write the combined data+OOB
properly and instead leaves the flash filled with junk. This is,
apparently, because `nandwrite -o' writes to the flash twice, once for
the page data and once for the OOB data. This is not allowed on MLC
NAND, which allow only single writes.
This is a problem with the user interface to the kernel as well as
with nandwrite itself, since there is no interface that nandwrite can
use to write data+OOB to flash in a single write. As I see it, we need
to do three things:
1) Support a (new?) ioctl that handles writing data+oob in one go. I'm
not sure if an existing interface can be extended or if this actually
has to be a new one...
2) Update nandwrite (i.e., update the libmtd routines in mtd-utils) to
utilize the new interface when possible.
3) Ensure that the raw/no-ECC options for nandwrite are operational
with the new interface (i.e., `nandwrite -r')
Comments? Has this been tried before?
BTW, I think some of the internal kernel interface is already there
for writing data+OOB; there's just no external user interface.
Thanks,
Brian
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: 'nandwrite -o' on MLC NAND
2011-08-02 19:01 'nandwrite -o' on MLC NAND Brian Norris
@ 2011-08-15 15:48 ` Artem Bityutskiy
2011-08-16 1:51 ` Brian Norris
0 siblings, 1 reply; 3+ messages in thread
From: Artem Bityutskiy @ 2011-08-15 15:48 UTC (permalink / raw)
To: Brian Norris; +Cc: David Woodhouse, linux-mtd, Mike Frysinger, Matthew Creech
On Tue, 2011-08-02 at 12:01 -0700, Brian Norris wrote:
> Hi,
>
> For a while, I've been having problems with using `nandwrite -o' on
> MLC NAND flash. Nandwrite is never able to write the combined data+OOB
> properly and instead leaves the flash filled with junk. This is,
> apparently, because `nandwrite -o' writes to the flash twice, once for
> the page data and once for the OOB data. This is not allowed on MLC
> NAND, which allow only single writes.
>
> This is a problem with the user interface to the kernel as well as
> with nandwrite itself, since there is no interface that nandwrite can
> use to write data+OOB to flash in a single write. As I see it, we need
> to do three things:
>
> 1) Support a (new?) ioctl that handles writing data+oob in one go. I'm
> not sure if an existing interface can be extended or if this actually
> has to be a new one...
> 2) Update nandwrite (i.e., update the libmtd routines in mtd-utils) to
> utilize the new interface when possible.
> 3) Ensure that the raw/no-ECC options for nandwrite are operational
> with the new interface (i.e., `nandwrite -r')
I guess making the old interfaces to be based on the new one internally
is also needed to keep things clean. Then we can declare the old
interfaces "legacy and obsolete", but will have to support anyway, of
course.
--
Best Regards,
Artem Bityutskiy
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: 'nandwrite -o' on MLC NAND
2011-08-15 15:48 ` Artem Bityutskiy
@ 2011-08-16 1:51 ` Brian Norris
0 siblings, 0 replies; 3+ messages in thread
From: Brian Norris @ 2011-08-16 1:51 UTC (permalink / raw)
To: dedekind1; +Cc: David Woodhouse, linux-mtd, Mike Frysinger, Matthew Creech
On Mon, Aug 15, 2011 at 8:48 AM, Artem Bityutskiy <dedekind1@gmail.com> wrote:
> I guess making the old interfaces to be based on the new one internally
> is also needed to keep things clean. Then we can declare the old
> interfaces "legacy and obsolete", but will have to support anyway, of
> course.
OK, I haven't gotten as far as "making the old interfaces to be based
on the new one", but that sounds reasonable. I'll see how nicely the
old interfaces can be merged into the new one tomorrow, and perhaps
I'll send a test patch soon as well.
Brian
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-08-16 1:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-02 19:01 'nandwrite -o' on MLC NAND Brian Norris
2011-08-15 15:48 ` Artem Bityutskiy
2011-08-16 1:51 ` Brian Norris
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox