iPXE discussion forum

Full Version: Building bootable USB thumbdrive on a Mac
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am running Snow Leopard.

I want to build a iPXE bootable USB thumbdrive image and I am following the instructions from http://ipxe.org/download#using_a_boot_cd-rom_or_usb_key

But when I try that, I get an error:

Code:
~/src/ipxe/src $ make bin/ipxe.usb
FATAL:/usr/bin/../libexec/gcc/darwin/x86_64/as: I don't understand '-' flag!
  [BUILD] bin/usbdisk.o
FATAL:/usr/bin/../libexec/gcc/darwin/x86_64/as: I don't understand '-' flag!
make: *** [bin/usbdisk.o] Error 1

Is it possible to build the usb image on a Mac?

Thank you,

-= Stefan
I can't help with the compile issues, but to the best of my knowledge you won't be able to usb boot it with the standard compile. I've been posting in this thread with my research/findings so far relating to iPXE booting Macs.

Jp.
(2012-09-07 08:39)jpwise Wrote: [ -> ]I can't help with the compile issues, but to the best of my knowledge you won't be able to usb boot it with the standard compile. I've been posting in this thread with my research/findings so far relating to iPXE booting Macs.

Thank you. Just to clarify, I won't be booting a mac from the USB drive, but I would be booting iPXE and attempting to netboot Linux and FreeBSD machines. Or, i might try to load a disk image from the same USB thumbdrive. Not sure what I want to do yet, as I am just experimenting. It seems like once I get iPXE loaded, there are many possible options.

iPXE looks to have a ton of potential, but I'm just not sure how to get there.
stefan: Do remember you can get a prebuilt binary from http://rom-o-matic.eu/ while you figure out your compilation issue. I would suggest you try to join us on IRC and we might be able to figure out what's going on. If you try to make V=1 you should be able to see the compilation command that actually fails. My guess is that the xcode assembler (as) is a bit picky on its options.
Reference URL's