apt install -y git gcc binutils make perl liblzma-dev libz-dev mtools genisoimage syslinux isolinux
2.取得原始程式 git clone git://git.ipxe.org/ipxe.git3.編輯設定檔案
src/config/general.h
相關檔案及指令
make bin-x86_64-efi/ipxe.efi
make bin/undionly.kpxe
./bin/ipxe.dsk
./bin/ipxe.lkrn
./bin/ipxe.iso
./bin/ipxe.usb
./bin/ipxe.pxe
EFI編譯參考
/* Command-line commands to include */
//#define PXE_CMD /* PXE commands */
/** Image types
* Etherboot supports various image formats. Select whichever ones
* you want to use. */
//#define IMAGE_NBI /* NBI image support */
//#define IMAGE_ELF /* ELF image support */
//#define IMAGE_MULTIBOOT /* MultiBoot image support */
//#define IMAGE_PXE /* PXE image support */
#define IMAGE_SCRIPT /* iPXE script image support */
//#define IMAGE_BZIMAGE /* Linux bzImage image support */
//#define IMAGE_COMBOOT /* SYSLINUX COMBOOT image support */
#define IMAGE_EFI /* EFI image support */
//#define IMAGE_SDI /* SDI image support */
#define IMAGE_PNM /* PNM image support */
#define IMAGE_PNG /* PNG image support */
#define IMAGE_DER /* DER image support */
#define IMAGE_PEM /* PEM image support */
#define IMAGE_ZLIB /* ZLIB image support */
#define IMAGE_GZIP /* GZIP image support */
#define IMAGE_UCODE /* Microcode update image support */
PXE編譯參考
/* Image types
* Etherboot supports various image formats. Select whichever ones
* you want to use. */
#define IMAGE_NBI /* NBI image support */
#define IMAGE_ELF /* ELF image support */
#define IMAGE_MULTIBOOT /* MultiBoot image support */
#define IMAGE_PXE /* PXE image support */
#define IMAGE_SCRIPT /* iPXE script image support */
#define IMAGE_BZIMAGE /* Linux bzImage image support */
#define IMAGE_COMBOOT /* SYSLINUX COMBOOT image support */
//#define IMAGE_EFI /* EFI image support */
#define IMAGE_SDI /* SDI image support */
#define IMAGE_PNM /* PNM image support */
#define IMAGE_PNG /* PNG image support */
#define IMAGE_DER /* DER image support */
#define IMAGE_PEM /* PEM image support */
#define IMAGE_ZLIB /* ZLIB image support */
#define IMAGE_GZIP /* GZIP image support */
#define IMAGE_UCODE /* Microcode update image support */
沒有留言:
張貼留言