[edk2] Error about building OVMF on Fedora 8

Subject: [edk2] Error about building OVMF on Fedora 8

From: Bei Guan <gbtju85@gmail.com>

To: edk2-devel@lists.sourceforge.net

Date: 2011-03-24 05:15:47

Hi guys,

I am trying to be familiar with OVMF these days. I can run OVMF successfully on Fedora 8 platform according to the instructions at http://sourceforge.net/apps/mediawiki/tianocore/index.php?title=How_to_run_OVMF

I also can build the HelloWorld.efisuccessfully according tohttp://sourceforge.net/apps/mediawiki/tianocore/index.php?title=How_to_build_OVMF.

However, when I try to build x64 OVMF, there are some error. How to deal with that?

My building process is as following.

1. update the Conf/target.txt according to the section "BUILDING OVMF" on webpage https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2/OvmfPkg/README

ACTIVE_PLATFORM = OvmfPkg/OvmfPkgX64.dsc
TARGET = DEBUG
TARGET_ARCH = X64
TOOL_CHAIN_CONF = Conf/tools_def.txt
TOOL_CHAIN_TAG = UNIXGCC

2. Build in the src directory, then error occurs.
[root@localhost src]# build
... ...

GenFds -f /root/src/edk2/OvmfPkg/OvmfPkgX64.fdf -o /root/src/edk2/Build/OvmfX64/DEBUG_UNIXGCC -t UNIXGCC -b DEBUG -p /root/src/edk2/OvmfPkg/OvmfPkgX64.dsc -a X64 -D "EFI_SOURCE=/root/src/edk2/EdkCompatibilityPkg" -D "EDK_SOURCE=/root/src/edk2/EdkCompatibilityPkg" -D "PLATFORM_VERSION=0.1" -D "TARGET=DEBUG" -D "PLATFORM_GUID=5a9e7754-d81b-49ea-85ad-69eaa7b1539b" -D "SKUID_IDENTIFIER=DEFAULT" -D "SUPPORTED_ARCHITECTURES=X64" -D "BUILD_TARGETS=DEBUG|RELEASE" -D "OUTPUT_DIRECTORY=Build/OvmfX64" -D "PLATFORM_NAME=Ovmf" -D "FLASH_DEFINITION=OvmfPkg/OvmfPkgX64.fdf" -D "DSC_SPECIFICATION=0x00010005"
Fd File Name:MEMFD

Generate Region at Offset 0x0
Region Size = 0x400000
Region Name = FV

Generating MAINFV FV
################
Generating DXEFV FV
########################
########################################
########################################
########################################
#######Return Value = 2
GenFv: ERROR 3000: Invalid
the required fv image size 0x40dda0 exceeds the set fv image size 0x400000


### ['GenFv', '-a', '/root/src/edk2/Build/OvmfX64/DEBUG_UNIXGCC/FV/Ffs/MAINFV.inf', '-o', '/root/src/edk2/Build/OvmfX64/DEBUG_UNIXGCC/FV/MAINFV.Fv', '-i', '/root/src/edk2/Build/OvmfX64/DEBUG_UNIXGCC/FV/MAINFV.inf']


GenFds.py...
: error 7000: Failed to generate FV

make: *** [fds] Error 1


build.py...
: error 7000: Failed to execute command
make fds [/root/src/edk2/Build/OvmfX64/DEBUG_UNIXGCC]

- Failed -
Build end time: 08:39:50, Mar.24 2011
Build total time: 01:34



Any reply will be appreciated. Thank you.

Yours sincerely,
Bei Guan