Rewritten bootimginfo.c