Find the bad blocks for each partition.

During kernel init, the BBT is scanned and the bad block is mapped to
corresponding MTD partitions. This information is posted in
/proc/sys/dev/repartition/bbinfo. The information can be used later for
purposes like non-bb check of kernel partition during manufacturing,
diagnostics and statistics.

Change-Id: I3a7e0129b1b48bb611647f08b9baf68c7cf26480
5 files changed