Thanks Thomas for your tips. Here a second try, does it look fine? I attached the file instead of inline to avoid tab/space replacement by email client. however can I ask you where I find prototype/usage for mtd->block_is_bad()? And against which tree I need to build it? Be patient, please. Signed-off-by: Claudio Lanconelli