Submodule cloned failed in EDK2 SIMICS Platform BIOS Tutorial
I am following the tutorial EDK2 SIMICS Platform BIOS Tutorial. But in edk2 repository, the command git submodule update --init failed with the following messages:
Cloning into '/home/nelson/test/edk2/UnitTestFrameworkPkg/Library/SubhookLib/subhook'...
Missing or invalid credentials.
Error: connect ECONNREFUSED /run/user/1000/vscode-git-ff3363b2ad.sock
at PipeConnectWrap.afterConnect [as oncomplete] (node:net:1611:16) {
errno: -111,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '/run/user/1000/vscode-git-ff3363b2ad.sock'
}
Missing or invalid credentials.
Error: connect ECONNREFUSED /run/user/1000/vscode-git-ff3363b2ad.sock
at PipeConnectWrap.afterConnect [as oncomplete] (node:net:1611:16) {
errno: -111,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '/run/user/1000/vscode-git-ff3363b2ad.sock'
}
remote: Repository not found.
fatal: Authentication failed for 'https://github.com/Zeex/subhook.git/'
fatal: clone of 'https://github.com/Zeex/subhook.git' into submodule path '/home/nelson/test/edk2/UnitTestFrameworkPkg/Library/SubhookLib/subhook' failed
Failed to clone 'UnitTestFrameworkPkg/Library/SubhookLib/subhook'. Retry scheduled
Cloning into '/home/nelson/test/edk2/UnitTestFrameworkPkg/Library/SubhookLib/subhook'...
Missing or invalid credentials.
Error: connect ECONNREFUSED /run/user/1000/vscode-git-ff3363b2ad.sock
at PipeConnectWrap.afterConnect [as oncomplete] (node:net:1611:16) {
errno: -111,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '/run/user/1000/vscode-git-ff3363b2ad.sock'
}
Missing or invalid credentials.
Error: connect ECONNREFUSED /run/user/1000/vscode-git-ff3363b2ad.sock
at PipeConnectWrap.afterConnect [as oncomplete] (node:net:1611:16) {
errno: -111,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '/run/user/1000/vscode-git-ff3363b2ad.sock'
}
remote: Repository not found.
fatal: Authentication failed for 'https://github.com/Zeex/subhook.git/'
fatal: clone of 'https://github.com/Zeex/subhook.git' into submodule path '/home/nelson/test/edk2/UnitTestFrameworkPkg/Library/SubhookLib/subhook' failed
Failed to clone 'UnitTestFrameworkPkg/Library/SubhookLib/subhook' a second time, aborting
Then I checked out the repository https://github.com/Zeex/subhook.git, found out that the repository can't be touched now.
Is there any solution for this? Or any other tutorial for BIOS fuzzing.
Hi @bosswnx !
Please look at this commit merged a few weeks ago: https://github.com/intel/tsffs/commit/aaeafa3dd3c91e59e2ae2a65f407f3264fc82286
The changes wasn't reflected in the docs, i'll make a note to update the tutorial when i can.
Thanks for the issue !
Thank you for your help! I tried the new hash and then fixed this issue. But I met a new issue when doing compiling:
2.253 ----------------------------------------------------------------------
2.253 Ran 303 tests in 1.435s
2.253
2.253 OK
2.268 make[1]: Leaving directory '/home/nelson/test/project/workspace/edk2/BaseTools/Tests'
2.269 make: Leaving directory '/home/nelson/test/project/workspace/edk2/BaseTools'
2.272 make -C FitGen
2.273 make[1]: Entering directory '/home/nelson/test/project/workspace/edk2-platforms/Silicon/Intel/Tools/FitGen'
2.274 Attempting to detect HOST_ARCH from 'uname -m': x86_64
2.279 Detected HOST_ARCH of X64 using uname.
2.285 gcc -c -I /home/nelson/test/project/workspace/edk2/BaseTools/Source/C -I /home/nelson/test/project/workspace/edk2/BaseTools/Source/C/Include/Common -I /home/nelson/test/project/workspace/edk2/BaseTools/Source/C/Include/ -I /home/nelson/test/project/workspace/edk2/BaseTools/Source/C/Include/IndustryStandard -I /home/nelson/test/project/workspace/edk2/BaseTools/Source/C/Common/ -I .. -I . -I /home/nelson/test/project/workspace/edk2/BaseTools/Source/C/../../../MdePkg/Include/X64/ -I /home/nelson/test/project/workspace/edk2/BaseTools/Source/C/../../../MdePkg/Include -MD -fshort-wchar -fno-strict-aliasing -fwrapv -fno-delete-null-pointer-checks -Wall -Werror -Wno-deprecated-declarations -Wno-stringop-truncation -Wno-restrict -Wno-unused-result -nostdlib -g -O2 FitGen.c -o FitGen.o
3.231 gcc -o /home/nelson/test/project/workspace/edk2/BaseTools/Source/C/bin/FitGen FitGen.o -L/home/nelson/test/project/workspace/edk2/BaseTools/Source/C/libs -lCommon
3.250 make[1]: Leaving directory '/home/nelson/test/project/workspace/edk2-platforms/Silicon/Intel/Tools/FitGen'
3.377 Build environment: Linux-5.15.167.4-microsoft-standard-WSL2-x86_64-with-glibc2.36
3.377 Build start time: 17:16:30, Mar.17 2025
3.377
3.385 WORKSPACE = /home/nelson/test/project/workspace
3.391 PACKAGES_PATH = /home/nelson/test/project/workspace/edk2-platforms/Platform/Intel:/home/nelson/test/project/workspace/edk2-platforms/Silicon/Intel:/home/nelson/test/project/workspace/edk2-non-osi/Silicon/Intel:/home/nelson/test/project/workspace/edk2-platforms/Features:/home/nelson/test/project/workspace/edk2-platforms/Features/Intel:/home/nelson/test/project/workspace/edk2-platforms/Features/Intel/UserInterface:/home/nelson/test/project/workspace/edk2-platforms/Features/Intel/Debugging:/home/nelson/test/project/workspace/edk2-platforms/Features/Intel/Network:/home/nelson/test/project/workspace/edk2-platforms/Features/Intel/PowerManagement:/home/nelson/test/project/workspace/edk2-platforms/Features/Intel/SystemInformation:/home/nelson/test/project/workspace/edk2-platforms/Features/Intel/OutOfBandManagement:/home/nelson/test/project/workspace/edk2-platforms/Drivers:/home/nelson/test/project/workspace/FSP:/home/nelson/test/project/workspace/edk2:/home/nelson/test/project/workspace:/home/nelson/test/project/workspace/edk2-non-osi/Platform/Intel
3.391 EDK_TOOLS_PATH = /home/nelson/test/project/workspace/edk2/BaseTools
3.392 CONF_PATH = /home/nelson/test/project/workspace/Conf
3.392 PYTHON_COMMAND = python3
3.524
3.559
3.559 Processing meta-data .
3.575 Architecture(s) = X64 IA32
3.575 Build target = DEBUG
3.576 Toolchain = GCC
3.577
3.577 Active Platform = /home/nelson/test/project/workspace/edk2-platforms/Platform/Intel/SimicsOpenBoardPkg/BoardX58Ich10/OpenBoardPkg.dsc
4.589 .
4.881
4.881 build.py...
4.881 /home/nelson/test/project/workspace/edk2-platforms/Platform/Intel/SimicsOpenBoardPkg/BoardX58Ich10/OpenBoardPkg.dsc(...): error 4000: Instance of library class [AmdSvsmLib] is not found
4.881 in [/home/nelson/test/project/workspace/edk2/UefiCpuPkg/Library/MpInitLib/PeiMpInitLib.inf] [X64]
4.881 consumed by module [/home/nelson/test/project/workspace/edk2/UefiCpuPkg/CpuMpPei/CpuMpPei.inf]
5.091
5.092
5.092 - Failed -
5.092 Build end time: 17:16:31, Mar.17 2025
5.093 Build total time: 00:00:02
5.093
5.154 Set WORKSPACE as: /home/nelson/test/project/workspace
5.154 Calling /usr/bin/python -c import edk2basetools
5.154 Calling make -C /home/nelson/test/project/workspace/edk2/BaseTools
5.154 Calling make
5.154 ==============================================
5.154 BIOS_SIZE_OPTION = -DBIOS_SIZE_OPTION=SIZE_70
5.154 EFI_SOURCE = edk2
5.154 TARGET = DEBUG
5.154 TARGET_ARCH = IA32 X64
5.154 TOOL_CHAIN_TAG = GCC
5.154 WORKSPACE = /home/nelson/test/project/workspace
5.154 WORKSPACE_CORE = edk2
5.154 EXT_BUILD_FLAGS = -D PEI_ARCH=X64
5.154 ==========================================
5.154 User Selected build options:
5.154 SILENT_MODE = FALSE
5.154 REBUILD_MODE =
5.154 BUILD_ROM_ONLY =
5.154 BINARY_CACHE_CMD_LINE = None
5.154 ==========================================
5.154 Calling build -n 0 -D PEI_ARCH=X64 --log=Build.log --report-file=BuildReport.log
5.154 The EDKII BIOS Build has failed!
------
It seems that library class [AmdSvsmLib] cannot be found on my machine. I asked GPT and it said it is an AMD platform library. But I'm using Intel 10400F CPU.
Hi @bosswnx
I updated edk2 and edk2-platforms repos, the issue that you raised seems like an upstream bug and is gone now. Can you retry with this PR ? https://github.com/intel/tsffs/pull/168
Closing this since #168 has been merged.