BTW, talking about generalization, that mtd->eraseregions stuff is as bad as OOB. IMO, it is better to treat different regions as different partitions or as different MTD devices. -- Best Regards, Artem B. Bityutskiy, St.-Petersburg, Russia.