* Nand Flash write fails
@ 2006-09-22 15:39 Ajay Jain
2006-09-28 0:20 ` Thomas Gleixner
0 siblings, 1 reply; 2+ messages in thread
From: Ajay Jain @ 2006-09-22 15:39 UTC (permalink / raw)
To: linux-mtd
Hi,
I have set up a JFFS2 partition on my NAND flash. The board driver in
question is my own. I can successfully 'mkfs' & 'mount' that partition.
However when I start copying any file to it, it gives the following
error.
nand_write_ecc: vectored attempt to write not page aligned data: to =
20b9e4, total_len = 44
Write of 68 bytes at 0x0000b9e4 failed. returned -22, retlen 0
Not marking the space at 0x0000b9e4 as dirty because the flash driver
returned retlen zero
I was looking up the code of the mtd nand layer. I see that in case the
data is not alligned on the page boundary, it returns back giving this
error. Therefore my question is that is it the responsibility of the
"jffs2 layer" or "mtd" layer to issue writes that are aligned to page
boundary.
ANY suggestions are welcome.
Thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Nand Flash write fails
2006-09-22 15:39 Nand Flash write fails Ajay Jain
@ 2006-09-28 0:20 ` Thomas Gleixner
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Gleixner @ 2006-09-28 0:20 UTC (permalink / raw)
To: ajain; +Cc: linux-mtd
On Fri, 2006-09-22 at 21:09 +0530, Ajay Jain wrote:
> Hi,
>
> I have set up a JFFS2 partition on my NAND flash. The board driver in
> question is my own. I can successfully 'mkfs' & 'mount' that partition.
> However when I start copying any file to it, it gives the following
> error.
>
> nand_write_ecc: vectored attempt to write not page aligned data: to =
> 20b9e4, total_len = 44
> Write of 68 bytes at 0x0000b9e4 failed. returned -22, retlen 0
> Not marking the space at 0x0000b9e4 as dirty because the flash driver
> returned retlen zero
>
> I was looking up the code of the mtd nand layer. I see that in case the
> data is not alligned on the page boundary, it returns back giving this
> error. Therefore my question is that is it the responsibility of the
> "jffs2 layer" or "mtd" layer to issue writes that are aligned to page
> boundary.
> ANY suggestions are welcome.
Update to a recent kernel.
tglx
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-09-28 0:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-22 15:39 Nand Flash write fails Ajay Jain
2006-09-28 0:20 ` Thomas Gleixner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox