create_bbt — [GENERIC] Create a bad block table by scanning the device
int create_bbt
(struct mtd_info * mtd, uint8_t * buf, struct nand_bbt_descr * bd, int chip);
MTD device structure
temporary buffer
descriptor for the good/bad block search pattern
create the table for a specific chip, -1 read all chips. Applies only if NAND_BBT_PERCHIP option is set
Create a bad block table by scanning the device for the given good/bad block identify pattern