iPXE discussion forum
Error building ISO - Printable Version

+- iPXE discussion forum (https://forum.ipxe.org)
+-- Forum: iPXE user forums (/forumdisplay.php?fid=1)
+--- Forum: General (/forumdisplay.php?fid=2)
+--- Thread: Error building ISO (/showthread.php?tid=8080)



Error building ISO - pxe_curious - 2016-05-25 18:43

I was trying to build an ISO image using
Code:
make bin/ipxe.iso

But I got an error as follows:
Code:
[BUILD] bin/hvm.ids.o
  [BUILD] bin/undi.ids.o
  [AR] bin/blib.a
ar: creating bin/blib.a
  [HOSTCC] util/zbin
  [VERSION] bin/version.ipxe.lkrn.o
  [LD] bin/ipxe.lkrn.tmp
  [BIN] bin/ipxe.lkrn.bin
  [ZINFO] bin/ipxe.lkrn.zinfo
  [ZBIN] bin/ipxe.lkrn.zbin
  [FINISH] bin/ipxe.lkrn
  [GENISO] bin/ipxe.iso
cp: missing destination file operand after ‘bin/iso.dir.CtH7Ki’
Try 'cp --help' for more information.
genisoimage: Uh oh, I cant find the boot image 'isolinux.bin' !
rm bin/ipxe.lkrn.zinfo bin/ipxe.lkrn.zbin bin/version.ipxe.lkrn.o bin/ipxe.lkrn.bin

Any idea what I'm doing wrong?


RE: Error building ISO - pxe_curious - 2016-05-25 21:37

(2016-05-25 18:43)pxe_curious Wrote:  I was trying to build an ISO image using
Code:
make bin/ipxe.iso

But I got an error as follows:
Code:
[BUILD] bin/hvm.ids.o
  [BUILD] bin/undi.ids.o
  [AR] bin/blib.a
ar: creating bin/blib.a
  [HOSTCC] util/zbin
  [VERSION] bin/version.ipxe.lkrn.o
  [LD] bin/ipxe.lkrn.tmp
  [BIN] bin/ipxe.lkrn.bin
  [ZINFO] bin/ipxe.lkrn.zinfo
  [ZBIN] bin/ipxe.lkrn.zbin
  [FINISH] bin/ipxe.lkrn
  [GENISO] bin/ipxe.iso
cp: missing destination file operand after ‘bin/iso.dir.CtH7Ki’
Try 'cp --help' for more information.
genisoimage: Uh oh, I cant find the boot image 'isolinux.bin' !
rm bin/ipxe.lkrn.zinfo bin/ipxe.lkrn.zbin bin/version.ipxe.lkrn.o bin/ipxe.lkrn.bin

Any idea what I'm doing wrong?

Solved it, I was missing the isolinux package. I had installed the Syslinux package, thinking that was all I needed.

Thanks for looking.


RE: Error building ISO - attila123 - 2018-03-28 15:51

I had exactly the same problem, I just tried to 'make bin/ipxe.iso' as per http://ipxe.org/download .

I debugged the make process (make SHELL="/bin/bash -x" bin/ipxe.iso), and found that ISOLINUX_BIN and LDLINUX_C32 were not set.
I managed to build the ipxe.iso (based on http://www.syslinux.org/wiki/index.php?title=ISOLINUX) the following way:
Code:
wget https://mirrors.edge.kernel.org/pub/linux/utils/boot/syslinux/syslinux-6.03.zip
mkdir syslinux-6.03
unzip  ../syslinux-6.03.zip
Then in the ipxe/src dir:
Code:
rm bin/ipxe.iso # need to delete this, if it already generated a wrong iso
make -j 4 ISOLINUX_BIN=/path/to/syslinux-6.03/bios/core/isolinux.bin LDLINUX_C32=/path/to/syslinux-6.03/bios/com32/elflink/ldlinux/ldlinux.c32 bin/ipxe.iso