check NAND for bad blocks

Borut
any idea how to manually/automatically check NAND memory (mini2440) for bad
blocks and which software does it (mark them as bad) ?

thx