public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] U-Boot-1.2.0 - NAND bad block management
@ 2007-10-03 13:13 Vaibhav Hiremath
  2007-10-10  4:03 ` Vaibhav Hiremath
  2007-10-10  7:11 ` Stefan Roese
  0 siblings, 2 replies; 3+ messages in thread
From: Vaibhav Hiremath @ 2007-10-03 13:13 UTC (permalink / raw)
  To: u-boot

Hi,

I have ported  U-Boot-1.2.0 to ARM11176 core, which supports NAND
booting (big page NAND device).

I have one query -
How U-boot-1.2.0 handles bad block?
As I understand at the booting time U-Boot-1.2.0 scans whole NAND
device and maintains BBT. This absolutely fine with me, but what will
happen if read operation fails after that, say page read has generated
ECC error. U-Boot-1.2.0 doesn't mark this block as a bad block.

Is this some kind of loop hole in U-Boot NAND support? Since there is
no other cause appart from Write and Erase fail which will mark the
blcok as a bad.
Ideally it should mark that block as a bad for ECC error, since it's
failing of read operation.

Thanks in advance.

Thanks,
Vaibhav

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot-Users] U-Boot-1.2.0 - NAND bad block management
  2007-10-03 13:13 [U-Boot-Users] U-Boot-1.2.0 - NAND bad block management Vaibhav Hiremath
@ 2007-10-10  4:03 ` Vaibhav Hiremath
  2007-10-10  7:11 ` Stefan Roese
  1 sibling, 0 replies; 3+ messages in thread
From: Vaibhav Hiremath @ 2007-10-10  4:03 UTC (permalink / raw)
  To: u-boot

Hi,


Can any one help me out in this issue?

Thanks in advance.


Thanks,
Vaibhav

On 10/3/07, Vaibhav Hiremath <hvaibhav@gmail.com> wrote:
> Hi,
>
> I have ported  U-Boot-1.2.0 to ARM11176 core, which supports NAND
> booting (big page NAND device).
>
> I have one query -
> How U-boot-1.2.0 handles bad block?
> As I understand at the booting time U-Boot-1.2.0 scans whole NAND
> device and maintains BBT. This absolutely fine with me, but what will
> happen if read operation fails after that, say page read has generated
> ECC error. U-Boot-1.2.0 doesn't mark this block as a bad block.
>
> Is this some kind of loop hole in U-Boot NAND support? Since there is
> no other cause appart from Write and Erase fail which will mark the
> blcok as a bad.
> Ideally it should mark that block as a bad for ECC error, since it's
> failing of read operation.
>
> Thanks in advance.
>
> Thanks,
> Vaibhav
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot-Users] U-Boot-1.2.0 - NAND bad block management
  2007-10-03 13:13 [U-Boot-Users] U-Boot-1.2.0 - NAND bad block management Vaibhav Hiremath
  2007-10-10  4:03 ` Vaibhav Hiremath
@ 2007-10-10  7:11 ` Stefan Roese
  1 sibling, 0 replies; 3+ messages in thread
From: Stefan Roese @ 2007-10-10  7:11 UTC (permalink / raw)
  To: u-boot

Hi Vaibhav,

On Wednesday 03 October 2007, Vaibhav Hiremath wrote:
> I have ported  U-Boot-1.2.0 to ARM11176 core, which supports NAND
> booting (big page NAND device).
>
> I have one query -
> How U-boot-1.2.0 handles bad block?
> As I understand at the booting time U-Boot-1.2.0 scans whole NAND
> device and maintains BBT. This absolutely fine with me, but what will
> happen if read operation fails after that, say page read has generated
> ECC error. U-Boot-1.2.0 doesn't mark this block as a bad block.

Correct. AFAIK, current U-Boot NAND code, doesn't support bad block marking at 
all.

> Is this some kind of loop hole in U-Boot NAND support? Since there is
> no other cause appart from Write and Erase fail which will mark the
> blcok as a bad.
> Ideally it should mark that block as a bad for ECC error, since it's
> failing of read operation.

Yes, from my understanding this missing bad block marking is a problem that 
should be fixed.

Thanks for bringing this issue up. Now all we need is a patch to support this 
bad block management. ;)

Best regards,
Stefan

=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-10-10  7:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-03 13:13 [U-Boot-Users] U-Boot-1.2.0 - NAND bad block management Vaibhav Hiremath
2007-10-10  4:03 ` Vaibhav Hiremath
2007-10-10  7:11 ` Stefan Roese

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox