Default need tool to unpack/repack boot.img

need tool to unpack/repack boot.img

because im getting error

"magic header not found in he kernel"