From: "Piotr Król" <piotr.krol@3mdeb.com>
To: Laszlo Ersek <lersek@redhat.com>, edk2-devel@lists.01.org
Subject: Re: CorebootPayloadPkg: redirect UEFI Shell to serial
Date: Sat, 5 Aug 2017 02:13:51 +0200 [thread overview]
Message-ID: <04ef8e4a-2935-fe7d-5842-752e0530098e@3mdeb.com> (raw)
In-Reply-To: <6be56212-9e83-7485-076f-e26e71838adf@redhat.com>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
On 07/25/2017 11:16 AM, Laszlo Ersek wrote:
> On 07/15/17 15:00, Piotr Król wrote:
Hi Laszlo,
>
>> 2. There are 2 minor typos like gUEfi instead of gUefi and
>> entrhy instead of entry, does it make sense to send patches for
>> that ? In various places I saw more typos like that.
>
> Typo corrections are welcome.
Patch sent.
>
>> 4. I had to move some PCDs to PcdsFixedAtBuild section.
>
> Why?
After reading your post I know I made mistake by taking your reference
to PlatformBootManagerLib in ArmVirtPkg without rewriting it
correctly. They use FixedAtBuild, but CorebootPayloadPkg provide the
same parameters as dynamic PCDs - this is some inconsistency that I
wanted to address.
I resolve my issue by using const value when mSerialConsole is
created, the druing runtime I use PcdGet calls family to get correct
values.
>
>> This seems to makes difference for PcdSet64S. After that I'm
>> getting error from that function. Where I can read about
>> difference between normal PCD and FixedAtBuild
>
> As their name says, fixed-at-build PCDs can't be set at runtime. -
> The .dec file declares the possible storage types for a given PCD
> that any platform can assign to the PCD. The .dec file also sets a
> default value. - in the platform .dsc file, the platform can omit
> the PCD completely. In this case modules built into the platform
> will get the default value from the .dec, and they won't be able to
> set the PCD. - the platform .dsc can also spell out the PCD. This
> determines the actual storage the platform assigns to the PCD (such
> as dynamic, dynamic-ex, dynamic-hii, fixed-at-build) and also lets
> the platform set its own default for the PCD. Modules built into
> the platform will see the following values for the PCD: - if the
> PCD is fixed-at-build, then they'll get the value set in the DSC.
> The PCD cannot be set by modules. - if the PCD is dynamic or
> dynamic-ex, then the initial value is the one set in the DSC.
> Modules can overwrite the PCD, and later "get"s will return that
> value. - if the PCD is dynamic-hii, then it is backed by a
> non-volatile UEFI variable.
>
> ... This is quite a bit of hand-waving, but should be good enough
> for now. The way fixed-at-build PCDs seem to work for you is by
> design; I'd rather try to understand why you had to change a
> dynamic PCD into a fixed one.
Thanks for this explanation.
>
> The rest of your questions should be directly addressed to the
> maintainers of those packages / modules (see Maintainers.txt).
I will send that in coming days.
Best Regards,
- --
Piotr Król
Embedded Systems Consultant
https://3mdeb.com | @3mdeb_com
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCAAdFiEE4DCbLYWmfoRjKeNLsu5x6WeqnkwFAlmFDb8ACgkQsu5x6Weq
nkxJ6w/7BWXNDvE/svknuasRds4m8mtask1dkEeq/2VFlivHMffb+s9Cz6um5fOj
xjtOdZxtQBfjUHG6dW34v1wThq9qnpr1550WJaXv4gum2zMc2G40ffkq5Hluko8s
0qEGyVknZMu5+Z5rEbxirV38UudjO8+onZb4FQE26RiaLPr0TjmrgZUhWtTdXlq9
TbuGFSVe0u3RcASehreRB11dpCuDEknlBIyLqISlw065uchGMnBBVtkrxv4yf/fk
vh+INY7ja/Ap2sKHp4/+7lQ5e+bk0WcdfjCGwbnszqB307sncHIm2Xx33aBktolS
NcHuIh3SVbfsHZ2SiwOEDClLd4UFuW5qvwnkXXVytBFHOIHpdAhLwpNM8+rvFw3t
6T/cajO0MyWaBzOcT5wK4N1PxKtgRWHc2iTbjENTdSUFK0CiX0wjVRoPtJdBjxGS
WdP7NnXoDP0GLkdvMf+1FvamJHLwgP/3p5rwZ/WXGR8ySWrkOfE8h7O00VlRHdf4
OcXcf3ZmLCSZFpxstv3b/V5pK4EDISAu5VeoUbamwsnZQhaaDALvqNcf80Kp/7Yi
eyVYLP+mQWnptzvPc1tqbF/Pb4tDPTGPHZXSDKYbfd0LXwyUaHkwwGr/0VKTD1r/
B2O1H1tVSIWSMW3atEUUCitidGSscxOGDmRJP6g2H6wuuoP9C2k=
=kE52
-----END PGP SIGNATURE-----
prev parent reply other threads:[~2017-08-05 0:11 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-10 21:31 CorebootPayloadPkg: redirect UEFI Shell to serial Piotr Król
2017-07-11 18:01 ` Laszlo Ersek
2017-07-13 23:53 ` Piotr Król
2017-07-14 1:06 ` Laszlo Ersek
2017-07-15 13:00 ` Piotr Król
2017-07-25 9:16 ` Laszlo Ersek
2017-08-05 0:13 ` Piotr Król [this message]
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=04ef8e4a-2935-fe7d-5842-752e0530098e@3mdeb.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