* [edk2-devel] [OvmfPkg] Build fails due to insufficient FV size in edk2-stable202502
@ 2025-03-11 6:45 Richard Lyu via groups.io
2025-03-11 6:54 ` memristor2 via groups.io
2025-03-11 7:03 ` Ard Biesheuvel via groups.io
0 siblings, 2 replies; 8+ messages in thread
From: Richard Lyu via groups.io @ 2025-03-11 6:45 UTC (permalink / raw)
To: devel
I built OVMF with the following options
build -D TPM2_ENABLE -D TPM2_CONFIG_ENABLE -D NETWORK_IP6_ENABLE -D NETWORK_HTTP_BOOT_ENABLE -D BUILD_SHELL=FALSE -a X64 -b DEBUG -t GCC5 -p OvmfPkg/OvmfPkgX64.dsc -D FD_SIZE_2MB -D SECURE_BOOT_ENABLE
However, I encountered an insufficient FV size issue. This issue did not occur in edk2-stable202411, but it appears in edk2-stable202502.
GenFv: ERROR 3000: Invalid
the required fv image size 0x1affc8 exceeds the set fv image size 0x1ac000
Is there any way to resolve this?
Best Regards
Richard Lyu
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#121177): https://edk2.groups.io/g/devel/message/121177
Mute This Topic: https://groups.io/mt/111635652/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [edk2-devel] [OvmfPkg] Build fails due to insufficient FV size in edk2-stable202502
2025-03-11 6:45 [edk2-devel] [OvmfPkg] Build fails due to insufficient FV size in edk2-stable202502 Richard Lyu via groups.io
@ 2025-03-11 6:54 ` memristor2 via groups.io
2025-03-11 7:03 ` Ard Biesheuvel via groups.io
1 sibling, 0 replies; 8+ messages in thread
From: memristor2 via groups.io @ 2025-03-11 6:54 UTC (permalink / raw)
To: devel
Change the FD_SIZE_*MB directive to a bigger size. for further information please check the *.fdf files in OvmfPkg to get a grasp of how the file is created and how much size each FV is using.
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#121178): https://edk2.groups.io/g/devel/message/121178
Mute This Topic: https://groups.io/mt/111635652/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [edk2-devel] [OvmfPkg] Build fails due to insufficient FV size in edk2-stable202502
2025-03-11 6:45 [edk2-devel] [OvmfPkg] Build fails due to insufficient FV size in edk2-stable202502 Richard Lyu via groups.io
2025-03-11 6:54 ` memristor2 via groups.io
@ 2025-03-11 7:03 ` Ard Biesheuvel via groups.io
2025-03-11 7:16 ` Richard Lyu via groups.io
1 sibling, 1 reply; 8+ messages in thread
From: Ard Biesheuvel via groups.io @ 2025-03-11 7:03 UTC (permalink / raw)
To: devel, richard.lyu
On Tue, 11 Mar 2025 at 07:46, Richard Lyu via groups.io
<richard.lyu=suse.com@groups.io> wrote:
>
> I built OVMF with the following options
>
> build -D TPM2_ENABLE -D TPM2_CONFIG_ENABLE -D NETWORK_IP6_ENABLE -D NETWORK_HTTP_BOOT_ENABLE -D BUILD_SHELL=FALSE -a X64 -b DEBUG -t GCC5 -p OvmfPkg/OvmfPkgX64.dsc -D FD_SIZE_2MB -D SECURE_BOOT_ENABLE
>
>
> However, I encountered an insufficient FV size issue. This issue did not occur in edk2-stable202411, but it appears in edk2-stable202502.
>
> GenFv: ERROR 3000: Invalid
> the required fv image size 0x1affc8 exceeds the set fv image size 0x1ac000
>
>
> Is there any way to resolve this?
>
Using FD_SIZE_4MB instead of FD_SIZE_2MB should help.
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#121179): https://edk2.groups.io/g/devel/message/121179
Mute This Topic: https://groups.io/mt/111635652/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [edk2-devel] [OvmfPkg] Build fails due to insufficient FV size in edk2-stable202502
2025-03-11 7:03 ` Ard Biesheuvel via groups.io
@ 2025-03-11 7:16 ` Richard Lyu via groups.io
2025-03-11 7:30 ` memristor2 via groups.io
2025-03-11 12:14 ` Gerd Hoffmann via groups.io
0 siblings, 2 replies; 8+ messages in thread
From: Richard Lyu via groups.io @ 2025-03-11 7:16 UTC (permalink / raw)
To: devel
Hi memristor2, ardb,
Thank you for your suggestions, but since there is a requirement to use a 2MB size, I need to maintain the size at FD_SIZE_2MB. So, is there any other way to reduce the size, such as by modifying the fdf file?
Would this method be worth trying?
Best Regards,
Richard Lyu
On 2025/03/11 08:03, Ard Biesheuvel wrote:
> On Tue, 11 Mar 2025 at 07:46, Richard Lyu via groups.io
> <richard.lyu=suse.com@groups.io> wrote:
> >
> > I built OVMF with the following options
> >
> > build -D TPM2_ENABLE -D TPM2_CONFIG_ENABLE -D NETWORK_IP6_ENABLE -D NETWORK_HTTP_BOOT_ENABLE -D BUILD_SHELL=FALSE -a X64 -b DEBUG -t GCC5 -p OvmfPkg/OvmfPkgX64.dsc -D FD_SIZE_2MB -D SECURE_BOOT_ENABLE
> >
> >
> > However, I encountered an insufficient FV size issue. This issue did not occur in edk2-stable202411, but it appears in edk2-stable202502.
> >
> > GenFv: ERROR 3000: Invalid
> > the required fv image size 0x1affc8 exceeds the set fv image size 0x1ac000
> >
> >
> > Is there any way to resolve this?
> >
>
> Using FD_SIZE_4MB instead of FD_SIZE_2MB should help.
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#121180): https://edk2.groups.io/g/devel/message/121180
Mute This Topic: https://groups.io/mt/111635652/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [edk2-devel] [OvmfPkg] Build fails due to insufficient FV size in edk2-stable202502
2025-03-11 7:16 ` Richard Lyu via groups.io
@ 2025-03-11 7:30 ` memristor2 via groups.io
2025-03-11 7:47 ` Richard Lyu via groups.io
2025-03-11 12:14 ` Gerd Hoffmann via groups.io
1 sibling, 1 reply; 8+ messages in thread
From: memristor2 via groups.io @ 2025-03-11 7:30 UTC (permalink / raw)
To: devel
Yes you could do this manually. one way is to extend the size of the FD that is small and reduce the size of other FDs if they have unused space so the overall size wouldn't change. Look into the FDF specification for a better understanding and it's not that complicated you'd resolve this quickly.
Sent with Proton Mail secure email.
On Tuesday, March 11th, 2025 at 10:46 AM, Richard Lyu via groups.io <richard.lyu=suse.com@groups.io> wrote:
> Hi memristor2, ardb,
>
> Thank you for your suggestions, but since there is a requirement to use a 2MB size, I need to maintain the size at FD_SIZE_2MB. So, is there any other way to reduce the size, such as by modifying the fdf file?
> Would this method be worth trying?
>
> Best Regards,
> Richard Lyu
>
> On 2025/03/11 08:03, Ard Biesheuvel wrote:
>
> > On Tue, 11 Mar 2025 at 07:46, Richard Lyu via groups.io
> > richard.lyu=suse.com@groups.io wrote:
> >
> > > I built OVMF with the following options
> > >
> > > build -D TPM2_ENABLE -D TPM2_CONFIG_ENABLE -D NETWORK_IP6_ENABLE -D NETWORK_HTTP_BOOT_ENABLE -D BUILD_SHELL=FALSE -a X64 -b DEBUG -t GCC5 -p OvmfPkg/OvmfPkgX64.dsc -D FD_SIZE_2MB -D SECURE_BOOT_ENABLE
> > >
> > > However, I encountered an insufficient FV size issue. This issue did not occur in edk2-stable202411, but it appears in edk2-stable202502.
> > >
> > > GenFv: ERROR 3000: Invalid
> > > the required fv image size 0x1affc8 exceeds the set fv image size 0x1ac000
> > >
> > > Is there any way to resolve this?
> >
> > Using FD_SIZE_4MB instead of FD_SIZE_2MB should help.
>
>
>
>
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#121181): https://edk2.groups.io/g/devel/message/121181
Mute This Topic: https://groups.io/mt/111635652/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [edk2-devel] [OvmfPkg] Build fails due to insufficient FV size in edk2-stable202502
2025-03-11 7:30 ` memristor2 via groups.io
@ 2025-03-11 7:47 ` Richard Lyu via groups.io
0 siblings, 0 replies; 8+ messages in thread
From: Richard Lyu via groups.io @ 2025-03-11 7:47 UTC (permalink / raw)
To: devel
Thanks! It's good for me, and I will try it.
On 2025/03/11 07:30, memristor2 via groups.io wrote:
> Yes you could do this manually. one way is to extend the size of the FD that is small and reduce the size of other FDs if they have unused space so the overall size wouldn't change. Look into the FDF specification for a better understanding and it's not that complicated you'd resolve this quickly.
>
>
>
>
> Sent with Proton Mail secure email.
>
> On Tuesday, March 11th, 2025 at 10:46 AM, Richard Lyu via groups.io <richard.lyu=suse.com@groups.io> wrote:
>
> > Hi memristor2, ardb,
> >
> > Thank you for your suggestions, but since there is a requirement to use a 2MB size, I need to maintain the size at FD_SIZE_2MB. So, is there any other way to reduce the size, such as by modifying the fdf file?
> > Would this method be worth trying?
> >
> > Best Regards,
> > Richard Lyu
> >
> > On 2025/03/11 08:03, Ard Biesheuvel wrote:
> >
> > > On Tue, 11 Mar 2025 at 07:46, Richard Lyu via groups.io
> > > richard.lyu=suse.com@groups.io wrote:
> > >
> > > > I built OVMF with the following options
> > > >
> > > > build -D TPM2_ENABLE -D TPM2_CONFIG_ENABLE -D NETWORK_IP6_ENABLE -D NETWORK_HTTP_BOOT_ENABLE -D BUILD_SHELL=FALSE -a X64 -b DEBUG -t GCC5 -p OvmfPkg/OvmfPkgX64.dsc -D FD_SIZE_2MB -D SECURE_BOOT_ENABLE
> > > >
> > > > However, I encountered an insufficient FV size issue. This issue did not occur in edk2-stable202411, but it appears in edk2-stable202502.
> > > >
> > > > GenFv: ERROR 3000: Invalid
> > > > the required fv image size 0x1affc8 exceeds the set fv image size 0x1ac000
> > > >
> > > > Is there any way to resolve this?
> > >
> > > Using FD_SIZE_4MB instead of FD_SIZE_2MB should help.
> >
> >
> >
> >
>
>
>
>
>
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#121182): https://edk2.groups.io/g/devel/message/121182
Mute This Topic: https://groups.io/mt/111635652/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [edk2-devel] [OvmfPkg] Build fails due to insufficient FV size in edk2-stable202502
2025-03-11 7:16 ` Richard Lyu via groups.io
2025-03-11 7:30 ` memristor2 via groups.io
@ 2025-03-11 12:14 ` Gerd Hoffmann via groups.io
2025-03-12 5:44 ` Richard Lyu via groups.io
1 sibling, 1 reply; 8+ messages in thread
From: Gerd Hoffmann via groups.io @ 2025-03-11 12:14 UTC (permalink / raw)
To: devel, richard.lyu
On Tue, Mar 11, 2025 at 03:16:29PM +0800, Richard Lyu via groups.io wrote:
> Hi memristor2, ardb,
>
> Thank you for your suggestions, but since there is a requirement to use a 2MB size, I need to maintain the size at FD_SIZE_2MB. So, is there any other way to reduce the size, such as by modifying the fdf file?
> Would this method be worth trying?
There are a bunch of options you can set via -D to exclude some
features, for example NETWORK_ISCSI_ENABLE=FALSE turns off iscsi
support, or NETWORK_TLS_ENABLE=FALSE turns of TLS (https) support.
HTH,
Gerd
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#121184): https://edk2.groups.io/g/devel/message/121184
Mute This Topic: https://groups.io/mt/111635652/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [edk2-devel] [OvmfPkg] Build fails due to insufficient FV size in edk2-stable202502
2025-03-11 12:14 ` Gerd Hoffmann via groups.io
@ 2025-03-12 5:44 ` Richard Lyu via groups.io
0 siblings, 0 replies; 8+ messages in thread
From: Richard Lyu via groups.io @ 2025-03-12 5:44 UTC (permalink / raw)
To: kraxel, devel
Hi Gerd,
I will also try this method. Thank you for your suggestions.
Best Regards
Richard Lyu
On 2025/03/11 13:14, Gerd Hoffmann wrote:
> On Tue, Mar 11, 2025 at 03:16:29PM +0800, Richard Lyu via groups.io wrote:
> > Hi memristor2, ardb,
> >
> > Thank you for your suggestions, but since there is a requirement to use a 2MB size, I need to maintain the size at FD_SIZE_2MB. So, is there any other way to reduce the size, such as by modifying the fdf file?
> > Would this method be worth trying?
>
> There are a bunch of options you can set via -D to exclude some
> features, for example NETWORK_ISCSI_ENABLE=FALSE turns off iscsi
> support, or NETWORK_TLS_ENABLE=FALSE turns of TLS (https) support.
>
> HTH,
> Gerd
>
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#121187): https://edk2.groups.io/g/devel/message/121187
Mute This Topic: https://groups.io/mt/111635652/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2025-03-12 5:44 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-11 6:45 [edk2-devel] [OvmfPkg] Build fails due to insufficient FV size in edk2-stable202502 Richard Lyu via groups.io
2025-03-11 6:54 ` memristor2 via groups.io
2025-03-11 7:03 ` Ard Biesheuvel via groups.io
2025-03-11 7:16 ` Richard Lyu via groups.io
2025-03-11 7:30 ` memristor2 via groups.io
2025-03-11 7:47 ` Richard Lyu via groups.io
2025-03-11 12:14 ` Gerd Hoffmann via groups.io
2025-03-12 5:44 ` Richard Lyu via groups.io
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox