Unpack and repack boot.img