From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ej1-f44.google.com (mail-ej1-f44.google.com [209.85.218.44]) by mx.groups.io with SMTP id smtpd.web11.12966.1675436890758335241 for ; Fri, 03 Feb 2023 07:08:11 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=OPUm0HYQ; spf=pass (domain: gmail.com, ip: 209.85.218.44, mailfrom: ritul.bits@gmail.com) Received: by mail-ej1-f44.google.com with SMTP id mf7so16136804ejc.6 for ; Fri, 03 Feb 2023 07:08:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=GlQLQ1F6VAIfUAPDEUEsg1ZfKRaX/CeHMnIJaGX7tek=; b=OPUm0HYQqyldVfNbHT7nRt3U0glGhitxRGzF37ZZ1fhiLWNSlAYiwofnUh8WfwAw33 DppunL1FZxT0UZ8IWAw3ClRddzmJYxcKEaOpU5jSHigypJ0cQjB7gzGLv06cl/JFhM/+ NUT+YcLFJu6RPizCNoYggNaD8rsQHlXyDrKKJxe3F/cIHuwcKJwqmMON9sVYfc4kRoJj RlNISuDynGPMsPXHO28psF7VOGK5qCA7G+qcSmxpt/zeVflOc99aTALCx6jK36/bUFih hS9qFmndUFtsVFPKE2Cssu0tIEy+AQ8qjoxjkLFsodU8WdpsX1P9XeUl281fdVeT3ULf aPjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc: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=GlQLQ1F6VAIfUAPDEUEsg1ZfKRaX/CeHMnIJaGX7tek=; b=ZuqOzToQi6iOz3KXuShfanDkF2ar7dfh545EakrCyK9vDw8GZY0za0ctMxvTkXFZZK e9d7bRd3TnEcm0fEi7nRksQ4ghXpfhBfqrBatT4Gk2v1eyPq9UlB37NUhItCHk/Fg+U1 LukYunBo1VEFI+yb/04XVDk8SzgK8oVPwDyKMPYpnDJVSfFdPQ/Y7okB4sRyyoZH7+1P d1XkJuTxTMvQGRHwvNndqAnQHaZLRuWMsPUYrjy35Z47un3mG4DitmkW75COxbY0+2Xr 07WBuXb2mPosuHQOzeLzj2ZLV24K0drSILQsYLQb/L9jcyzuarsJvAuoUp/XFExFP/4b DHPw== X-Gm-Message-State: AO0yUKXTeRR3U0rBVkV71w3QN74RMvfIHZdUpXBVvZaH590iYRYjqAgX Aak0fhwmPW+10/3YKUgR4q1Ei/MFdr0GT/CWthw= X-Google-Smtp-Source: AK7set8BwBHChG9WSD96EyVoOEB0/3u+rAIh13fshFba2fJwNR7TDhLHCIokfuTvCdAteItk9GQGs90eTOlrGbu2HAQ= X-Received: by 2002:a17:906:2693:b0:88f:58:f04f with SMTP id t19-20020a170906269300b0088f0058f04fmr1986649ejc.267.1675436889074; Fri, 03 Feb 2023 07:08:09 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: ritul guru Date: Fri, 3 Feb 2023 20:37:57 +0530 Message-ID: Subject: Re: [edk2-devel] regarding build uefipayload in debug mode in linux To: Mike Maslenkin Cc: devel@edk2.groups.io Content-Type: multipart/alternative; boundary="0000000000009df18d05f3cd0cd8" --0000000000009df18d05f3cd0cd8 Content-Type: text/plain; charset="UTF-8" Thanks, build -p "UefiPayloadPkg/UefiPayloadPkg.dsc" *-b DEBUG* -t GCC5 -a IA32 -a X64 -D COREBOOT I used above cmd, added DEBUG option by seeing NO debug messages coming from uefipayload. any idea how to enable debug messages coming from uefipayload built with above cmd? *Thanks & RegardsRitul Guru+91-9916513186* On Fri, Feb 3, 2023 at 4:46 AM Mike Maslenkin wrote: > 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 > > > --0000000000009df18d05f3cd0cd8 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks,

build -p "UefiPayloadPkg/UefiP= ayloadPkg.dsc" -b DEBUG -t GCC5 -a IA32 -a X64 -D COREBOOT
<= /div>

I used ab= ove cmd, added DEBUG option by seeing NO debug messages coming from uefipay= load.
any idea how to enable debug messages c= oming from uefipayload built with above cmd?
=


<= /div>

T= hanks & Regards
Ritul Guru
+91-9916513186=


On Fri, Feb 3, 2023 at 4:46 AM Mike= Maslenkin <mike.maslenkin@g= mail.com> wrote:
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]=C2=A0 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&quo= t;

*[1] https://github.com/tianocore/edk2/blob/master/UefiPayloadPkg/BuildAndI= ntegrationInstructions.txt#L55

Regards,
Mike.



On Fri, Feb 3, 2023 at 1:37 AM ritul guru <ritul.bits@gmail.com> wrote:
>
>
> Hi,
> I was following below link to build UEfiPayload for coreboot to boot f= rom,
>
> https://github.com/tianocore/edk2/blob/master/UefiPayloadPkg/BuildAndInteg= rationInstructions.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-wit= h-glibc2.29
> Build start time: 03:04:57, Feb.03 2023
>
> WORKSPACE=C2=A0 =C2=A0 =C2=A0 =C2=A0 =3D /home//src/opensource/edk2 > EDK_TOOLS_PATH=C2=A0 =C2=A0=3D /home//src/opensource/edk2/BaseTools > CONF_PATH=C2=A0 =C2=A0 =C2=A0 =C2=A0 =3D /home//src/opensource/edk2/Co= nf
> PYTHON_COMMAND=C2=A0 =C2=A0=3D /usr/bin/python3.8
>
>
> build.py...
>=C2=A0 : error C0DE: Unknown fatal error when processing [/home//src/op= ensource/edk2/UefiPayloadPkgUefiPayloadPkg.dsc]
>
> (Please send email to devel@edk2.groups.io for help, attaching following call sta= ck trace!)
>
> (Python 3.8.10 on linux) Traceback (most recent call last):
>=C2=A0 =C2=A0File "/home//src/opensource/edk2/BaseTools/BinWrapper= s/PosixLike/../../Source/Python/build/build.py", line 2692, in Main >=C2=A0 =C2=A0 =C2=A0MyBuild =3D Build(Target, Workspace, Option,LogQ) >=C2=A0 =C2=A0File "/home//src/opensource/edk2/BaseTools/BinWrapper= s/PosixLike/../../Source/Python/build/build.py", line 815, in __init__=
>=C2=A0 =C2=A0 =C2=A0self.InitPreBuild()
>=C2=A0 =C2=A0File "/home//src/opensource/edk2/BaseTools/BinWrapper= s/PosixLike/../../Source/Python/build/build.py", line 1015, in InitPre= Build
>=C2=A0 =C2=A0 =C2=A0self.LoadConfiguration()
>=C2=A0 =C2=A0File "/home//src/opensource/edk2/BaseTools/BinWrapper= s/PosixLike/../../Source/Python/build/build.py", line 971, in LoadConf= iguration
>=C2=A0 =C2=A0 =C2=A0self.GetToolChainAndFamilyFromDsc (self.PlatformFil= e)
>=C2=A0 =C2=A0File "/home//src/opensource/edk2/BaseTools/BinWrapper= s/PosixLike/../../Source/Python/build/build.py", line 905, in GetToolC= hainAndFamilyFromDsc
>=C2=A0 =C2=A0 =C2=A0dscobj =3D self.BuildDatabase[File, BuildArch]
>=C2=A0 =C2=A0File "/home//src/opensource/edk2/BaseTools/Source/Pyt= hon/Workspace/WorkspaceDatabase.py", line 104, in __getitem__
>=C2=A0 =C2=A0 =C2=A0BuildObject =3D self.CreateBuildObject(FilePath, Ar= ch, Target, Toolchain)
>=C2=A0 =C2=A0File "/home//src/opensource/edk2/BaseTools/Source/Pyt= hon/Workspace/WorkspaceDatabase.py", line 120, in CreateBuildObject >=C2=A0 =C2=A0 =C2=A0MetaFileStorage(self.WorkspaceDb, FilePath, FileTyp= e)
>=C2=A0 =C2=A0File "/home//src/opensource/edk2/BaseTools/Source/Pyt= hon/Workspace/MetaFileTable.py", line 426, in __new__
>=C2=A0 =C2=A0 =C2=A0reval =3D Class._FILE_TABLE_[FileType](*Args)
>=C2=A0 =C2=A0File "/home//src/opensource/edk2/BaseTools/Source/Pyt= hon/Workspace/MetaFileTable.py", line 303, in __init__
>=C2=A0 =C2=A0 =C2=A0MetaFileTable.__init__(self, Cursor, MetaFile, MODE= L_FILE_DSC, Temporary, FromItem)
>=C2=A0 =C2=A0File "/home//src/opensource/edk2/BaseTools/Source/Pyt= hon/Workspace/MetaFileTable.py", line 39, in __init__
>=C2=A0 =C2=A0 =C2=A0MetaFile.TimeStamp,
>=C2=A0 =C2=A0File "/home//src/opensource/edk2/BaseTools/Source/Pyt= hon/Common/Misc.py", line 1539, in TimeStamp
>=C2=A0 =C2=A0 =C2=A0return os.stat(self.Path)[8]
>=C2=A0 =C2=A0File "/home//src/opensource/edk2/BaseTools/Source/Pyt= hon/Common/LongFilePathOs.py", line 51, in stat
>=C2=A0 =C2=A0 =C2=A0return os.stat(LongFilePath(path))
> FileNotFoundError: [Errno 2] No such file or directory: '/home//sr= c/opensource/edk2/UefiPayloadPkgUefiPayloadPkg.dsc'
>
>
>
>
>
> Thanks & Regards
> Ritul Guru
> +91-9916513186
--0000000000009df18d05f3cd0cd8--