ipxe: update pxe boot roms for qemu
cover ipxe: update pxe boot roms for qemu
Hi,
This patch series updates the ipxe submodule in qemu to latest ipxe git, adds some patches needed to work correctly on efi (ovmf), applies some smaller tweaks to the build process and finally updates the prebuilt binaries shipped in pc-bios/efi-*.rom
This is also available in the git repository at:
git://git.kraxel.org/qemu rebase/roms-next
cheers,
Gerd
Gerd Hoffmann (7):
ipxe: update from 35c53797 to dc795b9
ipxe: rm local config in cleanup
ipxe: add local patches
ipxe: disable load file protocol
ipxe: add qemu branding
ipxe: don't override GITVERSION
ipxe: update binaries
pc-bios/efi-e1000.rom | Bin 197120 -> 190464 bytes pc-bios/efi-eepro100.rom | Bin 197632 -> 191488 bytes pc-bios/efi-ne2k_pci.rom | Bin 195584 -> 189952 bytes pc-bios/efi-pcnet.rom | Bin 195584 -> 189952 bytes pc-bios/efi-rtl8139.rom | Bin 200192 -> 193024 bytes pc-bios/efi-virtio.rom | Bin 194048 -> 187904 bytes roms/Makefile | 15 +- roms/config.ipxe.branding.h | 2 + roms/config.ipxe.general.h | 1 + roms/ipxe | 2 +- ...rove-compliance-with-the-EFI_SIMPLE_NETWO.patch | 160 +++++++++++++++++++++ ...0002-efi-make-load-file-protocol-optional.patch | 102 +++++++++++++ 12 files changed, 277 insertions(+), 5 deletions(-) create mode 100644 roms/config.ipxe.branding.h create mode 100644 roms/ipxe-patches/0001-efi_snp-improve-compliance-with-the-EFI_SIMPLE_NETWO.patch create mode 100644 roms/ipxe-patches/0002-efi-make-load-file-protocol-optional.patch
Signature · 1 line
1.8.3.1
PATCH 1/7 ipxe: update from 35c53797 to dc795b9
git shortlog 35c53797..dc795b9
==============================
Alex Williamson (1):
[dhcp] Extract timing parameters out to config/dhcp.h
Michael Brown (144):
[device] Provide a driver-private data field for root devices [iobuf] Add iob_split() to split an I/O buffer into portions [rndis] Add generic RNDIS device abstraction
[hyperv] Add support for Hyper-V hypervisor
[hyperv] Add support for VMBus devices
[hyperv] Add support for NetVSC paravirtual network devices [rndis] Send RNDIS_INITIALISE_MSG
[rndis] Send RNDIS_HALT_MSG
[hyperv] Tear down NetVSC RX buffer GPADL after closing VMBus device [rndis] Clear receive filter when closing the device
[hyperv] Receive all VMBus messages in a poll
[hyperv] Increase TX ring size
[hyperv] Assume that VMBus xfer page ranges correspond to RNDIS messages [rndis] Ignore start-of-day RNDIS_INDICATE_STATUS_MSG with status 0x40020006 [hyperv] Tidy up debug output
[hyperv] Require support for VMBus version 3.0 or newer
[build] Include Hyper-V driver in the all-drivers build
[pci] Allow drivers to specify a PCI class
[romprefix] Ensure UNDI loader can be included by all ROM types [usb] Add basic support for USB devices
[usb] Add basic support for USB hubs
[usb] Add support for xHCI host controllers
[ncm] Add support for CDC-NCM USB Ethernet devices
[usb] Report xHCI host controller events
[ncm] Use large multi-packet buffers by default
[tftp] Explicitly abort connection whenever parent interface is closed [uri] Allow tftp_uri() to construct a URI with a custom port [pxe] Use tftp_uri() to construct PXE TFTP URIs
[pxe] Maintain a queue for received PXE UDP packets
[ncm] Reserve headroom in received packets
[usb] Try multiple USB device configurations
[usb] Handle CDC union functional descriptors
[usb] Parse endpoint descriptor bInterval field
[usb] Allow usb_stream() to enforce a terminating short packet [ecm] Add support for CDC-ECM USB Ethernet devices
[xhci] Delay after (possibly) forcing port link state to RxDetect [build] Move branding information to config/branding.h
[build] Use PRODUCT_SHORT_NAME for end-user visible strings [build] Allow product URI to be customised via config/branding.h [build] Allow error message URI to be customised via config/branding.h [build] Allow command help text URI to be customised via config/branding.h [build] Allow setting help text URI to be customised via config/branding.h [build] Allow product tag line to be customised via config/branding.h [rndis] Add rndis_rx_err()
[usb] Handle port status changes received after failing to find a driver [efi] Disallow R_X86_64_32 relocations
[build] Apply the "-fno-PIE -nopie" workaround only to i386 builds [usb] Provide generic framework for refilling receive endpoints [usb] Use generic refill framework for USB hub interrupt endpoints [ecm] Use generic refill framework for bulk IN and interrupt endpoints [ncm] Use generic refill framework for bulk IN and interrupt endpoints [libc] Remove unused string functions
[libc] Rewrite string functions
[test] Add self-tests for more string functions
[test] Add constant-length memset() self-tests
[libc] Reduce size of memset()
[usb] Add generic USB network device framework
[ecm] Use generic USB network device framework
[ncm] Use generic USB network device framework
[timer] Rewrite the 8254 Programmable Interval Timer support [xhci] Leak memory if controller fails to disable slot
[xhci] Abort commands on timeout
[test] Add IPv4 self-tests
[legal] Add missing copyright header to net/ipv4.c
[ipv4] Rewrite inet_aton()
[libc] Rewrite strtoul()
[hyperv] Check for required features
[prefix] Use .bss16 as temporary stack space for calls to install_block [zbin] Use LZMA compression
[zbin] Perform extra normalisation after completing decompression [prefix] Call decompressor in flat real mode when DEBUG=libprefix is enabled [zbin] Allow decompressor to generate debug output via BIOS console [zbin] Fix check for existence of most recent output byte
[zbin] Remove now-unused unnrv2b.S decompressor
[legal] Update GPLv2 licence text
[legal] Include full licence text for all GPL2_OR_LATER files [mucurses] Add missing FILE_LICENCE declarations
[legal] Add support for the Unmodified Binary Distribution Licence [legal] Add UBDL relicensing tool
[legal] Relicense files under GPL2_OR_LATER_OR_UBDL
[legal] Relicense files under GPL2_OR_LATER_OR_UBDL
[legal] Relicense files under GPL2_OR_LATER_OR_UBDL
[legal] Relicense files under GPL2_OR_LATER_OR_UBDL
[libc] Rewrite unrelicensable portions of stddef.h
[libc] Rewrite unrelicensable portions of ctype.h
[libc] Rewrite setjmp() and longjmp()
[libc] Rewrite byte-swapping code
[elf] Rewrite ELF header
[list] Relicense list.h
[iscsi] Rewrite unrelicensable portions of iscsi.c
[pci] Remove outdated and mostly-unused pci_ids.h file
[pci] Rewrite unrelicensable portions of pci.h
[settings] Use list_first_entry() when unregistering child settings [settings] Rewrite unrelicensable portions of settings.c
[menu] Abstract out the generic concept of a jump scroller [settings] Use generic jump scrolling abstraction
[malloc] Move valgrind headers out of arch/x86
[malloc] Rewrite unrelicensable portions of malloc.c
[build] Remove unused IMPORT_SYMBOL() and EXPORT_SYMBOL() macros [build] Remove unused __keepme macro
[pxe] Remove obsolete references to pxeparent_dhcp
[build] Remove obsolete and unused portions of config.c
[build] Use REQUIRE_OBJECT() to drag in per-object configuration [build] Fix the REQUIRE_SYMBOL mechanism
[i386] Move real_to_user() to realmode.h
[linux] Rewrite headers included in all builds
[retry] Rewrite unrelicensable portions of retry.c
[retry] Colourise debug output
[legal] Relicense files under GPL2_OR_LATER_OR_UBDL
[xhci] Enable USB3 ports on Intel PCH8/PCH9 controllers
[xhci] Undo PCH-specific quirk fixes when removing device
[xen] Set the "feature-rx-notify" flag for netfront devices [http] Abstract out HTTP Digest hash algorithm operations
[http] Support MD5-sess Digest authentication
[dm96xx] Add driver for Davicom DM96xx USB Ethernet NICs
[legal] Relicense Davicom DM96xx drivers
[mii] Add generic mii_check_link() function
[smsc75xx] Add driver for SMSC/Microchip LAN75xx USB Ethernet NICs [legal] Relicense files under GPL2_OR_LATER_OR_UBDL
[tcp] Implement support for TCP Selective Acknowledgements (SACK) [smsc75xx] Move RX FIFO overflow message to DBGLVL_EXTRA
[tcpip] Fix dubious calculation of min_port
[libc] Add ffs(), ffsl(), and ffsll()
[usb] Add the concept of a USB bus maximum transfer size
[ncm] Respect maximum transfer size of the bus
[usb] Add functions for manual device address assignment
[xhci] Forcibly disable SMIs if BIOS fails to release ownership [autoboot] Match against parent devices when matching by bus type and location [usb] Add config/usb.h for USB configuration options
[xhci] Do not release ownership back to BIOS when booting an OS [ehci] Add support for EHCI host controllers
[netdevice] Add missing bus types to netdev_fetch_bustype() [usb] Fix USB timeouts to match specification
[libprefix] Fix building on 64-bit FreeBSD 8.4
[xhci] Ring doorbell as part of endpoint reset
[usb] Reset endpoints without waiting for a new transfer to be enqueued [usb] Add clear_tt() hub method to clear transaction translator buffer [usb] Clear transaction translator buffers when applicable [ehci] Support USB1 devices attached via transaction translators [usb] Improve debug messages for failed control transactions [xhci] Support USB1 devices attached via transaction translators [libc] Fix typo in longjmp()
[libc] Add x86_64 versions of setjmp() and longjmp()
[test] Add setjmp()/longjmp() self-tests
Olaf Hering (1):
[build] Sort objects in blib.a
Robin Smidsrød (1):
[vbox] Enable some more features now that we have LZMA compression
Thomas Miletich (1):
[intel] Add PCI ID for I218-LM
--- roms/ipxe | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
roms/ipxe +1 -1
@@ -1 +1 @@ -Subproject commit 35c5379760aa1fea5e38f7a78b090f92bb7813ee +Subproject commit dc795b9fefebc5988ecbebd3ed034aa5dc661524
Signature · 1 line
1.8.3.1
PATCH 2/7 ipxe: rm local config in cleanup
In reply to Gerd Hoffmannipxe build now generates empty local header files in case they are not preset. Let's remove them on cleanup to make sure we store a fresh copy on the next build.
--- roms/Makefile | 1 + 1 file changed, 1 insertion(+)
roms/Makefile +1 -0
@@ -148,5 +148,6 @@ clean: $(MAKE) -C sgabios clean rm -f sgabios/.depend $(MAKE) -C ipxe/src veryclean + (cd ipxe; rm -f src/config/local/*.h) $(MAKE) -C SLOF clean rm -rf u-boot/build.e500
Signature · 1 line
1.8.3.1
PATCH 3/7 ipxe: add local patches
In reply to Gerd HoffmannThere are two ipxe patches needed to make efi pxe boots work. They didn't made it upstream yet, and I don't want to wait any longer with updating qemu. So add them here, with some logic to apply them before building ipxe.
/me still hopes I can revert that patch some day.
--- roms/Makefile | 12 +- ...rove-compliance-with-the-EFI_SIMPLE_NETWO.patch | 160 +++++++++++++++++++++ ...0002-efi-make-load-file-protocol-optional.patch | 102 +++++++++++++ 3 files changed, 271 insertions(+), 3 deletions(-) create mode 100644 roms/ipxe-patches/0001-efi_snp-improve-compliance-with-the-EFI_SIMPLE_NETWO.patch create mode 100644 roms/ipxe-patches/0002-efi-make-load-file-protocol-optional.patch
roms/Makefile +9 -3
@@ -115,12 +115,12 @@ efi-rom-%: build-pxe-roms build-efi-roms -ec ipxe/src/bin-x86_64-efi/$(VID)$(DID).efidrv \ -o ../pc-bios/efi-$*.rom -build-pxe-roms: ipxe/src/config/local/general.h +build-pxe-roms: ipxe/qemu-patches ipxe/src/config/local/general.h $(MAKE) -C ipxe/src GITVERSION="" \ CROSS_COMPILE=$(x86_64_cross_prefix) \ $(patsubst %,bin/%.rom,$(pxerom_targets)) -build-efi-roms: build-pxe-roms ipxe/src/config/local/general.h +build-efi-roms: ipxe/qemu-patches build-pxe-roms ipxe/src/config/local/general.h $(MAKE) -C ipxe/src GITVERSION="" \ CROSS_COMPILE=$(x86_64_cross_prefix) \ $(patsubst %,bin-i386-efi/%.efidrv,$(pxerom_targets)) \
@@ -129,6 +129,12 @@ build-efi-roms: build-pxe-roms ipxe/src/config/local/general.h ipxe/src/config/local/%: config.ipxe.% cp $< $@ +ipxe/qemu-patches: + for patch in ipxe-patches/*; do \ + echo "# applying $$patch"; \ + cat $$patch | (cd ipxe; patch -p1); \ + done + touch $@ slof: $(MAKE) -C SLOF CROSS=$(powerpc64_cross_prefix) qemu
@@ -148,6 +154,6 @@ clean: $(MAKE) -C sgabios clean rm -f sgabios/.depend $(MAKE) -C ipxe/src veryclean - (cd ipxe; rm -f src/config/local/*.h) + (cd ipxe; git reset --hard; rm -f qemu-patches src/config/local/*.h) $(MAKE) -C SLOF clean rm -rf u-boot/build.e500
roms/ipxe-patches/0001-efi_snp-improve-compliance-with-the-EFI_SIMPLE_NETWO.patch new file +160 -0
160 lines not on this page · raw message
roms/ipxe-patches/0002-efi-make-load-file-protocol-optional.patch new file +102 -0
102 lines not on this page · raw message
Signature · 1 line
1.8.3.1
Re: [Qemu-devel] [PATCH 3/7] ipxe: add local patches
Am 10.04.2015 um 16:17 schrieb Gerd Hoffmann:
Quoted 36 lines
There are two ipxe patches needed to make efi pxe boots work. They didn't made it upstream yet, and I don't want to wait any longer with updating qemu. So add them here, with some logic to apply them before building ipxe.
/me still hopes I can revert that patch some day.
Signed-off-by Gerd Hoffmann <[email protected]>--- roms/Makefile | 12 +- ...rove-compliance-with-the-EFI_SIMPLE_NETWO.patch | 160 +++++++++++++++++++++ ...0002-efi-make-load-file-protocol-optional.patch | 102 +++++++++++++ 3 files changed, 271 insertions(+), 3 deletions(-) create mode 100644 roms/ipxe-patches/0001-efi_snp-improve-compliance-with-the-EFI_SIMPLE_NETWO.patch create mode 100644 roms/ipxe-patches/0002-efi-make-load-file-protocol-optional.patchroms/Makefile +2
-2@@ -115,12 +115,12 @@ efi-rom-%: build-pxe-roms build-efi-roms -ec ipxe/src/bin-x86_64-efi/$(VID)$(DID).efidrv \ -o ../pc-bios/efi-$*.rom -build-pxe-roms: ipxe/src/config/local/general.h +build-pxe-roms: ipxe/qemu-patches ipxe/src/config/local/general.h $(MAKE) -C ipxe/src GITVERSION="" \ CROSS_COMPILE=$(x86_64_cross_prefix) \ $(patsubst %,bin/%.rom,$(pxerom_targets)) -build-efi-roms: build-pxe-roms ipxe/src/config/local/general.h +build-efi-roms: ipxe/qemu-patches build-pxe-roms ipxe/src/config/local/general.h $(MAKE) -C ipxe/src GITVERSION="" \ CROSS_COMPILE=$(x86_64_cross_prefix) \ $(patsubst %,bin-i386-efi/%.efidrv,$(pxerom_targets)) \
roms/Makefile build-efi-roms: build-pxe-roms ipxe/src/config/local/general.h · line 132
Quoted 4 lines
roms/Makefile +1
-0@@ -129,6 +129,12 @@ build-efi-roms: build-pxe-roms ipxe/src/config/local/general.h ipxe/src/config/local/%: config.ipxe.% cp $< $@ +ipxe/qemu-patches:
Looks like this is only ever removed by clean? Should depend on the patch files, in case they change with an update.
But why are you adding patch files in the first place? Can't we just push the commits to a branch on git.qemu-project.org and update the submodule config accordingly?
Regards,
Andreas
Quoted 16 lines
roms/Makefile +6
-1+ for patch in ipxe-patches/*; do \ + echo "# applying $$patch"; \ + cat $$patch | (cd ipxe; patch -p1); \ + done + touch $@ slof: $(MAKE) -C SLOF CROSS=$(powerpc64_cross_prefix) qemu@@ -148,6 +154,6 @@ clean: $(MAKE) -C sgabios clean rm -f sgabios/.depend $(MAKE) -C ipxe/src veryclean - (cd ipxe; rm -f src/config/local/*.h) + (cd ipxe; git reset --hard; rm -f qemu-patches src/config/local/*.h) $(MAKE) -C SLOF clean rm -rf u-boot/build.e500
[snip]
Signature · 3 lines
SUSE Linux GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Felix Imendörffer, Jane Smithard, Jennifer Guild, Dilip Upmanyu, Graham Norton; HRB 21284 (AG Nürnberg)
Re: [Qemu-devel] [PATCH 3/7] ipxe: add local patches
Hi,
Quoted 5 lines
Quoted 2 lines
+ipxe/qemu-patches:
Looks like this is only ever removed by clean? Should depend on the patch files, in case they change with an update.
Indeed.
Quoted 3 lines
But why are you adding patch files in the first place? Can't we just push the commits to a branch on git.qemu-project.org and update the submodule config accordingly?
I hope this is just temporary, so I didn't want go through the administrative to setup a qemu ipxe branch @ git.qemu-project.org.
Just resent the patches to the ipxe list.
Assuming that doesn't work out: How we are going to maintain ipxe.git @ qemu-project.org? Should I just send patches to the list? Can I get commit access for ipxe.git? The later would certainly simplify things, especially when it comes to rebasing the qemu patches to pickup upstream fixes ...
cheers,
Gerd
Re: [Qemu-devel] [PATCH 3/7] ipxe: add local patches
Hi Gerd,
+ Stefan, - ipxe-devel
Am 14.04.2015 um 09:36 schrieb Gerd Hoffmann:
Quoted 8 lines
Quoted 3 lines
But why are you adding patch files in the first place? Can't we just push the commits to a branch on git.qemu-project.org and update the submodule config accordingly?
I hope this is just temporary, so I didn't want go through the administrative to setup a qemu ipxe branch @ git.qemu-project.org.
Just resent the patches to the ipxe list.
Can't judge how quickly things move there, obviously...
Quoted 5 lines
Assuming that doesn't work out: How we are going to maintain ipxe.git @ qemu-project.org? Should I just send patches to the list? Can I get commit access for ipxe.git? The later would certainly simplify things, especially when it comes to rebasing the qemu patches to pickup upstream fixes ...
Either push access might be possible, or maybe our mirroring could be changed/extended to fetch from your git server?
Cheers,
Andreas
Signature · 3 lines
SUSE Linux GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Felix Imendörffer, Jane Smithard, Jennifer Guild, Dilip Upmanyu, Graham Norton; HRB 21284 (AG Nürnberg)
PATCH 4/7 ipxe: disable load file protocol
In reply to Gerd HoffmannActivate the opt-out added by one ipxe patch.
--- roms/config.ipxe.general.h | 1 + 1 file changed, 1 insertion(+)
roms/config.ipxe.general.h +1 -0
@@ -2,3 +2,4 @@#define BANNER_TIMEOUT 30#undef ROM_BANNER_TIMEOUT#define ROM_BANNER_TIMEOUT 0 +#undef EFI_PROTO_LOAD_FILE
Signature · 1 line
1.8.3.1
PATCH 5/7 ipxe: add qemu branding
In reply to Gerd HoffmannApply qemu-project.org branding, so the official builds can easily be identified in the banner.
--- roms/Makefile | 4 ++-- roms/config.ipxe.branding.h | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 roms/config.ipxe.branding.h
roms/Makefile +2 -2
@@ -115,12 +115,12 @@ efi-rom-%: build-pxe-roms build-efi-roms -ec ipxe/src/bin-x86_64-efi/$(VID)$(DID).efidrv \ -o ../pc-bios/efi-$*.rom -build-pxe-roms: ipxe/qemu-patches ipxe/src/config/local/general.h +build-pxe-roms: ipxe/qemu-patches ipxe/src/config/local/general.h ipxe/src/config/local/branding.h $(MAKE) -C ipxe/src GITVERSION="" \ CROSS_COMPILE=$(x86_64_cross_prefix) \ $(patsubst %,bin/%.rom,$(pxerom_targets)) -build-efi-roms: ipxe/qemu-patches build-pxe-roms ipxe/src/config/local/general.h +build-efi-roms: ipxe/qemu-patches build-pxe-roms ipxe/src/config/local/general.h ipxe/src/config/local/branding.h $(MAKE) -C ipxe/src GITVERSION="" \ CROSS_COMPILE=$(x86_64_cross_prefix) \ $(patsubst %,bin-i386-efi/%.efidrv,$(pxerom_targets)) \
roms/config.ipxe.branding.h new file +2 -0
@@ -0,0 +1,2 @@ +#undef PRODUCT_NAME +#define PRODUCT_NAME "iPXE for qemu-project.org"
Signature · 1 line
1.8.3.1
PATCH 6/7 ipxe: don't override GITVERSION
In reply to Gerd HoffmannWe had build problems due to the git version checking in the ipxe build system in the past. Don't remember the details, but the problem seems to be gone now, so lets remove the workaround.
--- roms/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
roms/Makefile +2 -2
@@ -116,12 +116,12 @@ efi-rom-%: build-pxe-roms build-efi-roms -o ../pc-bios/efi-$*.rom build-pxe-roms: ipxe/qemu-patches ipxe/src/config/local/general.h ipxe/src/config/local/branding.h - $(MAKE) -C ipxe/src GITVERSION="" \ + $(MAKE) -C ipxe/src \ CROSS_COMPILE=$(x86_64_cross_prefix) \ $(patsubst %,bin/%.rom,$(pxerom_targets)) build-efi-roms: ipxe/qemu-patches build-pxe-roms ipxe/src/config/local/general.h ipxe/src/config/local/branding.h - $(MAKE) -C ipxe/src GITVERSION="" \ + $(MAKE) -C ipxe/src \ CROSS_COMPILE=$(x86_64_cross_prefix) \ $(patsubst %,bin-i386-efi/%.efidrv,$(pxerom_targets)) \ $(patsubst %,bin-x86_64-efi/%.efidrv,$(pxerom_targets))
Signature · 1 line
1.8.3.1
PATCH 7/7 ipxe: update binaries
In reply to Gerd Hoffmann--- pc-bios/efi-e1000.rom | Bin 197120 -> 190464 bytes pc-bios/efi-eepro100.rom | Bin 197632 -> 191488 bytes pc-bios/efi-ne2k_pci.rom | Bin 195584 -> 189952 bytes pc-bios/efi-pcnet.rom | Bin 195584 -> 189952 bytes pc-bios/efi-rtl8139.rom | Bin 200192 -> 193024 bytes pc-bios/efi-virtio.rom | Bin 194048 -> 187904 bytes 6 files changed, 0 insertions(+), 0 deletions(-)
pc-bios/efi-e1000.rom binary +0 -0
[ ... snipped to not spam the mailing list ... ]
pc-bios/efi-eepro100.rom binary +0 -0
[ ... snipped to not spam the mailing list ... ]
pc-bios/efi-ne2k_pci.rom binary +0 -0
[ ... snipped to not spam the mailing list ... ]
pc-bios/efi-pcnet.rom binary +0 -0
[ ... snipped to not spam the mailing list ... ]
pc-bios/efi-rtl8139.rom binary +0 -0
[ ... snipped to not spam the mailing list ... ]
pc-bios/efi-virtio.rom binary +0 -0
[ ... snipped to not spam the mailing list ... ]
Signature · 1 line
1.8.3.1