From 8148c970fbb6ba31e93423406383bf828cdc3b9f Mon Sep 17 00:00:00 2001 From: Trammell hudson Date: Wed, 20 Sep 2017 18:59:24 -0400 Subject: [PATCH] expand the NERF volume to fill all available space in the ROM (issue #242) --- Makefile.nerf | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/Makefile.nerf b/Makefile.nerf index abade388..0833fde0 100644 --- a/Makefile.nerf +++ b/Makefile.nerf @@ -105,16 +105,23 @@ RuntimeDxe.ffs: RuntimeDxe-pe.sec RuntimeDxe-name.sec RuntimeDxe-version.sec nop $(addprefix -i ,$^) \ -o $@ \ -# For now we generate a FV that matches the existing UEFI image in size. -# This will change once we modify the image +# If you have to fit within the normal UEFI image, the volume is +# limited to 0x47 blocks. +# +# But you can also replace the entire region from 0x310000 +# up to PEI at 0xE40000, which leaves us almost 11 MB of space. nerf.vol: DxeCore.ffs RuntimeDxe.ffs linux.ffs $(EDK2_DIR)/GenFv \ - --numberblock 0x47 \ + --numberblock 0xB3 \ --blocksize 0x10000 \ --FvNameGuid 4652454e-482f-6165-6473-2f4c696e7578 \ -o $@ \ $(addprefix -f ,$^) \ +# You must provide your own r630.rom as input +nerf-r630.rom: nerf.vol + dd if=$< of=$@ conv=notrunc seek=$$[0x31] bs=$$[0x10000] -nerf.intermediate: nerf.vol + +nerf.intermediate: nerf-r630.rom