Fix get wrong serial number.
add badlock.c to get badblock position