From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-yb1-f174.google.com (mail-yb1-f174.google.com [209.85.219.174]) by mx.groups.io with SMTP id smtpd.web10.7343.1675379816873828346 for ; Thu, 02 Feb 2023 15:16:57 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=eWUsVgBe; spf=pass (domain: gmail.com, ip: 209.85.219.174, mailfrom: mike.maslenkin@gmail.com) Received: by mail-yb1-f174.google.com with SMTP id x4so4315083ybp.1 for ; Thu, 02 Feb 2023 15:16:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=QKw70usTaI4GiQeO/n3q0PO5WoYF/yOsipmU5hWR9PA=; b=eWUsVgBe1wuvKfz6xjsPB9uaUB0agjkNfvKRIfP0o9Vna1J7j7dgSTA226ab0lEylZ IRnwWii/ZN0yEmqobwKYO42MI/7fVwpLcdD/O1Kvbq48DU3iItK6C8ZvmPJgX0iaIVFV WgR8Ji5xtqLtYoR1LNmckkTT9+pOiRJdIDnPFl44Bej9hl+2axGDEbU80zLy7qalWFi+ cROP8IQPHgevYL6KRYjgbGq0Mp2kaboG5S2QX0nLKIBYYoay1rJko5ACotZPreuAIuC8 h9HPMwXLFDzBoLicOTJs9UOlySAiGI77o9Jqd4funXjwWmSztrZ8ErOcXVv6HEigbnX+ iQOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=QKw70usTaI4GiQeO/n3q0PO5WoYF/yOsipmU5hWR9PA=; b=ZehB7z8sPzR5cmEZANGsG2F4E5gdcDXwp8bcVaQMmtwWufFodD8eCv/kySJlydXMgw I3Lrj8cST92qrDNDxydLrBSvvs1BXslttnDvcqzaixML4RcUYDJ3GatKM+hM2xVJyQ9+ OqipxJ6+/77m4Affg3irLlaBCg4SUJfK8x38xhgeOH6GW+Ir78eW7VLn5Ad1Fbd+BZc4 dvg4JBGWQYRG3Cjpbf56iwqcHrsZs36hE4xz+C33MqxoEfBTz6eFmlIzIiGGVQ3XLZ7I z+IgMx+p01M0m3qDtJaYefA46kP8pJnurQ+csB5nlp3w5gK/sySkv003ZbYcJrN9J7Wr 9tbg== X-Gm-Message-State: AO0yUKUeN3NpE4Lt7JzzOpRFUCKW0srVBTqCEku7XvSO8ZzA+8UY44se 2lAqY1Ci2Eopwi//riW8Ux4wEtlK9vm8CqsJQpiibhz2PcE= X-Google-Smtp-Source: AK7set+0mhkGgOuW5MENWGp51JU7+bZ8fcN6qxewik3x+cVAgNfDQknVwxABE89/77mKerQ7mCmSDeUpDh8NWjiLFiU= X-Received: by 2002:a25:2d1c:0:b0:801:525c:6726 with SMTP id t28-20020a252d1c000000b00801525c6726mr998718ybt.152.1675379816028; Thu, 02 Feb 2023 15:16:56 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: "Mike Maslenkin" Date: Fri, 3 Feb 2023 02:16:20 +0300 Message-ID: Subject: Re: [edk2-devel] regarding build uefipayload in debug mode in linux To: devel@edk2.groups.io, ritul.bits@gmail.com Content-Type: text/plain; charset="UTF-8" Hi Ritul Guru. There is a misprint in path to dsc file. The path should be "UefiPayloadPkg/UefiPayloadPkg.dsc" But there is another issue with your command line exists. The instructions you are referred to [1] contain a sentence: "NOTE: Pure 32bit UEFI payload support could be added if required later.", i.e. it won't build. So, you need to build either pure X64 or X64 build with IA32 entry. The command line for the latter is: "build -p UefiPayloadPkg/UefiPayloadPkg.dsc -t GCC5 -a IA32 -a X64" *[1] https://github.com/tianocore/edk2/blob/master/UefiPayloadPkg/BuildAndIntegrationInstructions.txt#L55 Regards, Mike. On Fri, Feb 3, 2023 at 1:37 AM ritul guru wrote: > > > Hi, > I was following below link to build UEfiPayload for coreboot to boot from, > > https://github.com/tianocore/edk2/blob/master/UefiPayloadPkg/BuildAndIntegrationInstructions.txt > > but getting below error, > would appreciate help, thanks. > > > ~/src/opensource/edk2 [master| ] > 03:04 $ build -p UefiPayloadPkg\UefiPayloadPkg.dsc -t GCC5 -a IA32 > Build environment: Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29 > Build start time: 03:04:57, Feb.03 2023 > > WORKSPACE = /home//src/opensource/edk2 > EDK_TOOLS_PATH = /home//src/opensource/edk2/BaseTools > CONF_PATH = /home//src/opensource/edk2/Conf > PYTHON_COMMAND = /usr/bin/python3.8 > > > build.py... > : error C0DE: Unknown fatal error when processing [/home//src/opensource/edk2/UefiPayloadPkgUefiPayloadPkg.dsc] > > (Please send email to devel@edk2.groups.io for help, attaching following call stack trace!) > > (Python 3.8.10 on linux) Traceback (most recent call last): > File "/home//src/opensource/edk2/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py", line 2692, in Main > MyBuild = Build(Target, Workspace, Option,LogQ) > File "/home//src/opensource/edk2/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py", line 815, in __init__ > self.InitPreBuild() > File "/home//src/opensource/edk2/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py", line 1015, in InitPreBuild > self.LoadConfiguration() > File "/home//src/opensource/edk2/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py", line 971, in LoadConfiguration > self.GetToolChainAndFamilyFromDsc (self.PlatformFile) > File "/home//src/opensource/edk2/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py", line 905, in GetToolChainAndFamilyFromDsc > dscobj = self.BuildDatabase[File, BuildArch] > File "/home//src/opensource/edk2/BaseTools/Source/Python/Workspace/WorkspaceDatabase.py", line 104, in __getitem__ > BuildObject = self.CreateBuildObject(FilePath, Arch, Target, Toolchain) > File "/home//src/opensource/edk2/BaseTools/Source/Python/Workspace/WorkspaceDatabase.py", line 120, in CreateBuildObject > MetaFileStorage(self.WorkspaceDb, FilePath, FileType) > File "/home//src/opensource/edk2/BaseTools/Source/Python/Workspace/MetaFileTable.py", line 426, in __new__ > reval = Class._FILE_TABLE_[FileType](*Args) > File "/home//src/opensource/edk2/BaseTools/Source/Python/Workspace/MetaFileTable.py", line 303, in __init__ > MetaFileTable.__init__(self, Cursor, MetaFile, MODEL_FILE_DSC, Temporary, FromItem) > File "/home//src/opensource/edk2/BaseTools/Source/Python/Workspace/MetaFileTable.py", line 39, in __init__ > MetaFile.TimeStamp, > File "/home//src/opensource/edk2/BaseTools/Source/Python/Common/Misc.py", line 1539, in TimeStamp > return os.stat(self.Path)[8] > File "/home//src/opensource/edk2/BaseTools/Source/Python/Common/LongFilePathOs.py", line 51, in stat > return os.stat(LongFilePath(path)) > FileNotFoundError: [Errno 2] No such file or directory: '/home//src/opensource/edk2/UefiPayloadPkgUefiPayloadPkg.dsc' > > > > > > Thanks & Regards > Ritul Guru > +91-9916513186 >