Date
1 - 2 of 2
Problems in running EmulatorPkg.
Diego.Marcelino@...
I am facing some struggles trying running EmulatorPkg.
I am using a x86-64 machine using Ubuntu 18.04 and GCC5, install the dependencies libx11-dev libxext-dev according to https://github.com/tianocore/tianocore.github.io/wiki/EmulatorPkg. When directly (./Host in Build folder) running Host I got the following output: EDK II UNIX Host Emulation Environment from http://www.tianocore.org/edk2/ BootMode 0x00 OS Emulator passing in 128 KB of temp RAM at 0x40000000 to SEC FD loaded from ../FV/FV_RECOVERY.fd at 0x102000000 contains SEC Core 0x102000400 Loading /home/diego/Desktop/edk2/Build/Emulator/DEBUG_GCC5/X64/EmulatorPkg/Sec/Sec/DEBUG/EmuSec.dll with entry point 0x10200163f SEC Has Started 0x102002780 Loading /home/diego/Desktop/edk2/Build/Emulator/DEBUG_GCC5/X64/MdeModulePkg/Core/Pei/PeiMain/DEBUG/PeiCore.dll with entry point 0x10200c4cf 0x102014200 Loading /home/diego/Desktop/edk2/Build/Emulator/DEBUG_GCC5/X64/MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei/DEBUG/ReportStatusCodeRouterPei.dll with entry point 0x102014fdb 0x102015c80 Loading /home/diego/Desktop/edk2/Build/Emulator/DEBUG_GCC5/X64/MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei/DEBUG/StatusCodeHandlerPei.dll with entry point 0x10201767a PROGRESS CODE: V03020003 I0 0x10200ed00 Loading /home/diego/Desktop/edk2/Build/Emulator/DEBUG_GCC5/X64/MdeModulePkg/Universal/PCD/Pei/Pcd/DEBUG/PcdPeim.dll with entry point 0x102012c0a Loading PEIM at 0x0010200EAC0 EntryPoint=0x00102012C0A PcdPeim.efi PROGRESS CODE: V03020002 I0 Install PPI: 06E81C58-4AD7-44BC-8390-F10265F72480 Install PPI: 01F34D25-4DE2-23AD-3FF3-36353FF323F1 Install PPI: 4D8B155B-C059-4C8F-8926-06FD4331DB8A Install PPI: A60C6B59-E459-425D-9C69-0BCC9CB27D81 Register PPI Notify: 605EA650-C65C-42E1-BA80-91A52AB618C6 PROGRESS CODE: V03020003 I0 0x102018800 Loading /home/diego/Desktop/edk2/Build/Emulator/DEBUG_GCC5/X64/EmulatorPkg/BootModePei/BootModePei/DEBUG/BootModePei.dll with entry point 0x10201908b Loading PEIM at 0x001020185C0 EntryPoint=0x0010201908B BootModePei.efi PROGRESS CODE: V03020002 I0 Emu Boot Mode PEIM Loaded Install PPI: 7408D748-FC8C-4EE6-9288-C4BEC092A410 PROGRESS CODE: V03020003 I0 0x102019b00 Loading /home/diego/Desktop/edk2/Build/Emulator/DEBUG_GCC5/X64/EmulatorPkg/AutoScanPei/AutoScanPei/DEBUG/AutoScanPei.dll with entry point 0x10201a4b3 Loading PEIM at 0x001020198C0 EntryPoint=0x0010201A4B3 AutoScanPei.efi PROGRESS CODE: V03020002 I0 Emu Autoscan PEIM Loaded PeiInstallPeiMemory MemoryBegin 0x41000000, MemoryLength 0x4000000 PROGRESS CODE: V03020003 I0 Temp Stack : BaseAddress=0x40000000 Length=0x10000 Temp Heap : BaseAddress=0x40010000 Length=0x10000 Total temporary memory: 131072 bytes. temporary memory stack ever used: 65532 bytes. temporary memory heap used for HobList: 5240 bytes. temporary memory heap occupied by memory pages: 0 bytes. Old Stack size 65536, New stack size 131072 Stack Hob: BaseAddress=0x41000000 Length=0x20000 Heap Offset = 0x1010000 Stack Offset = 0x1010000 0x44ff2240 Loading /home/diego/Desktop/edk2/Build/Emulator/DEBUG_GCC5/X64/MdeModulePkg/Core/Pei/PeiMain/DEBUG/PeiCore.dll with entry point 0x44ffbf8f Segmentation fault (core dumped) ------------------------------------------------------------------------------------------------------------------------------------------- When running using EmulatorPkg/build.sh run, it opens gdb terminal and the application is not running: Initializing workspace /home/diego/Desktop/edk2/BaseTools Loading previous configuration from /home/diego/Desktop/edk2/Conf/BuildEnv.sh WORKSPACE: /home/diego/Desktop/edk2 EDK_TOOLS_PATH: /home/diego/Desktop/edk2/BaseTools CONF_PATH: /home/diego/Desktop/edk2/Conf using prebuilt tools Reading symbols from /home/diego/Desktop/edk2/Build/Emulator/DEBUG_GCC5/X64/Host...(no debugging symbols found)...done. /home/diego/Desktop/edk2/EmulatorPkg/Unix/GdbRun:79: Error in sourced command file: No symbol table is loaded. Use the "file" command. (gdb) c The program is not being run. (gdb) ------------------------------------------------------------------------------------------------------------------------------------------- I tried in both master branch and tag vUDK2018. |
|
Lin, Derek (HPS SW)
This seems like an old thread. https://edk2.groups.io/g/devel/topic/30916071
I remember I also saw segmentation fault as well. Disabling optimization works for me. EmulatorPkg.dsc MdeModulePkg/Core/Pei/PeiMain.inf { <BuildOptions> GCC:*_*_*_CC_FLAGS = -O0 } |
|