public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: ritul guru <ritul.bits@gmail.com>
To: Mike Maslenkin <mike.maslenkin@gmail.com>
Cc: devel@edk2.groups.io
Subject: Re: [edk2-devel] regarding build uefipayload in debug mode in linux
Date: Fri, 3 Feb 2023 20:37:57 +0530	[thread overview]
Message-ID: <CAHHF-2+De_tpEka1WeH8HSgu7wRZnBjdErufXGzQQO-EwN_xzg@mail.gmail.com> (raw)
In-Reply-To: <CAL77WPBCLNuYX7TE3Smor2aL5GjTvhu=x0gQ2rysFzKJy+3+jw@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 4551 bytes --]

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 <mike.maslenkin@gmail.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]  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 <ritul.bits@gmail.com> 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
> > 
>

[-- Attachment #2: Type: text/html, Size: 7140 bytes --]

  reply	other threads:[~2023-02-03 15:08 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-02 21:39 regarding build uefipayload in debug mode in linux ritul guru
2023-02-02 23:16 ` [edk2-devel] " Mike Maslenkin
2023-02-03 15:07   ` ritul guru [this message]
2023-02-06  0:53     ` Guo, Gua
2023-02-06 11:37       ` ritul guru
2023-02-06 11:47         ` Guo, Gua
2023-02-06 14:21           ` ritul guru
2023-02-06 14:26             ` Guo, Gua
2023-02-06 14:53               ` ritul guru
2023-02-06 14:55                 ` Guo, Gua
2023-02-06 15:12                 ` ritul guru
2023-02-06 15:13                   ` Guo, Gua
2023-02-06 16:51                     ` ritul guru
2023-02-06 17:52                       ` ritul guru
2023-02-06 18:02                         ` ritul guru
2023-02-06 23:08                   ` Guo, Gua

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAHHF-2+De_tpEka1WeH8HSgu7wRZnBjdErufXGzQQO-EwN_xzg@mail.gmail.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox