* Re: Nand read/write
[not found] <B7803DC652E2F9458758AEBB6A5FD60FF88DB0@ZMY16EXM67.ds.mot.com>
@ 2006-07-13 9:48 ` Vitaly Wool
2006-07-13 9:58 ` Thomas Gleixner
0 siblings, 1 reply; 5+ messages in thread
From: Vitaly Wool @ 2006-07-13 9:48 UTC (permalink / raw)
To: M Sudharshana-A18475; +Cc: linux-mtd
M Sudharshana-A18475 wrote:
> It is a flash partition where no file system is defined for that
> mount-able partition. Read/write operations are performed on /dev/mtd0
> (place where memory partition is mounted
Ok, then the answer is yes, unless your board driver selects
NAND_ECC_NONE for ECC calculation.
I'd also expect to hear a lection on top-posting if I were you.
Vitaly
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: Nand read/write
2006-07-13 9:48 ` Nand read/write Vitaly Wool
@ 2006-07-13 9:58 ` Thomas Gleixner
0 siblings, 0 replies; 5+ messages in thread
From: Thomas Gleixner @ 2006-07-13 9:58 UTC (permalink / raw)
To: Vitaly Wool; +Cc: M Sudharshana-A18475, linux-mtd
At Thu, 13 Jul 2006 13:48:32 +0400,
Vitaly Wool wrote:
>
> M Sudharshana-A18475 wrote:
> > It is a flash partition where no file system is defined for that
> > mount-able partition. Read/write operations are performed on /dev/mtd0
> > (place where memory partition is mounted
> Ok, then the answer is yes, unless your board driver selects
> NAND_ECC_NONE for ECC calculation.
>
> I'd also expect to hear a lection on top-posting if I were you.
And you get a lesson for the wrong answer. :)
The question was if bad blocks are handled when he accesses
the FLASH via /dev/mtdX. The answer is:
It's not possible to write / erase bad blocks.
But there is no bad block replacement functionality when you
access the FLASH through the raw MTD interface. Neither MTD
nor NAND provide anything like this. Raw access has to take
care of this itself. Therefor we require that images are
written with nandwrite instead of dd or cp. nandwrite has
the simplest form of bad block handling (skip it).
tglx
^ permalink raw reply [flat|nested] 5+ messages in thread
* Nand read/write
@ 2006-07-13 9:14 M Sudharshana-A18475
2006-07-13 9:19 ` Vitaly Wool
2006-07-17 10:32 ` dedekind
0 siblings, 2 replies; 5+ messages in thread
From: M Sudharshana-A18475 @ 2006-07-13 9:14 UTC (permalink / raw)
To: linux-mtd
I have the following scenario on an embedded Linux application.
There is a partition in the NAND flash memory (with RAW type, no file
system), which will be mounted and used for read/write. As an
application which performs "read"/"write" on this partition after
mounting, should it be assumed that "bad block algorithm" is covered? Or
application has to handle the same?
Thanks for your help
Sudharshana
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Nand read/write
2006-07-13 9:14 M Sudharshana-A18475
@ 2006-07-13 9:19 ` Vitaly Wool
2006-07-17 10:32 ` dedekind
1 sibling, 0 replies; 5+ messages in thread
From: Vitaly Wool @ 2006-07-13 9:19 UTC (permalink / raw)
To: M Sudharshana-A18475; +Cc: linux-mtd
M Sudharshana-A18475 wrote:
> I have the following scenario on an embedded Linux application.
>
> There is a partition in the NAND flash memory (with RAW type, no file
> system), which will be mounted and used for read/write. As an
> application which performs "read"/"write" on this partition after
> mounting, should it be assumed that "bad block algorithm" is covered? Or
> application has to handle the same?
>
Can you please explain the term "mounted" for raw flash case you're
talking about?
Thx,
Vitaly
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Nand read/write
2006-07-13 9:14 M Sudharshana-A18475
2006-07-13 9:19 ` Vitaly Wool
@ 2006-07-17 10:32 ` dedekind
1 sibling, 0 replies; 5+ messages in thread
From: dedekind @ 2006-07-17 10:32 UTC (permalink / raw)
To: sudharshana; +Cc: linux-mtd
>I have the following scenario on an embedded Linux application.
>
>There is a partition in the NAND flash memory (with RAW type, no file
>system), which will be mounted and used for read/write. As an
>application which performs "read"/"write" on this partition after
>mounting, should it be assumed that "bad block algorithm" is covered? Or
>application has to handle the same?
Nope. But UBI can do a lot. Try to look at it.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2006-07-17 10:32 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <B7803DC652E2F9458758AEBB6A5FD60FF88DB0@ZMY16EXM67.ds.mot.com>
2006-07-13 9:48 ` Nand read/write Vitaly Wool
2006-07-13 9:58 ` Thomas Gleixner
2006-07-13 9:14 M Sudharshana-A18475
2006-07-13 9:19 ` Vitaly Wool
2006-07-17 10:32 ` dedekind
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox