Adapted unpackbootimg.c to bootimginfo.h