Date   

Is there a plan to implement TlsSetCertRevocationList

wenyi,xie
 

Hello everyone,

The function of TlsSetCertRevocationList in TlsConfig.c is unsopported yet. Is there any plan to implemente this function?

Thanks
Wenyi


Re: [EXTERNAL] [edk2-discuss] failure in building unit test locally

Andrew Fish
 

On Jul 27, 2021, at 9:17 AM, Bret Barkelew via groups.io <bret.barkelew=microsoft.com@groups.io> wrote:

Thanks for your follow-up. This is a known limitation that we have worked to resolve but ran into some unknown/unexpected errors. We definitely want to support both traditional and simplified character sets (as well as any other character sets), but if I recall there were some ambiguous OS mechanisms at work.

We would appreciate any help or contributions to get these character sets supported, but I understand if you don’t have the time.
Sean,

So there is no way decode() locale.getpreferredencoding() to UTF-8?

I hit some issues post processing edk2 git-grep output in Python and I fixed that via:
tfile.read().decode(errors='replace’)

Basically just force the errors to be ignored?

Is the problem the data is not encoded with the same default as the OS, so Python can’t figure it out?

Thanks,

Andrew Fish

I thought we already had an issue open to track it, but I couldn’t find it so I created a new one here:
Support non-ASCII character sets in Stuart tools · Issue #267 · tianocore/edk2-pytool-extensions (github.com)<https://github.com/tianocore/edk2-pytool-extensions/issues/267>

We can mark it as a duplicate if I find the original report.

- Bret

From: wenyi,xie via groups.io<mailto:xiewenyi2=huawei.com@groups.io>
Sent: Monday, July 26, 2021 12:53 AM
To: Sean Brogan<mailto:spbrogan@outlook.com>; discuss@edk2.groups.io<mailto:discuss@edk2.groups.io>
Subject: [EXTERNAL] Re: [edk2-discuss] failure in building unit test locally

Hi, everyone

I have found the root cause of failure, it's because the language in my windows is Chinese, and the software not support Unicode will use gbk as the coding format.
After I change the language, the problem is solved.

Thanks
Wenyi

On 2021/7/21 10:56, xiewenyi (A) wrote:
Hi,Sean

I have upload the log to github, link is like below.
https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fleadsama%2FShowLog%2Fblob%2Fmain%2FREADME.md&;data=04%7C01%7Cbret.barkelew%40microsoft.com%7C990acd0e770447c7a28b08d9500a7dea%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637628828276590927%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=cqhTkl5QFXsXwnq%2F0DYHfWieHhOiPsxTRgBKBkJhhsE%3D&amp;reserved=0

Thanks
Wenyi

On 2021/7/20 23:26, Sean Brogan wrote:
In the workspace/build folder there should be some logs .
Can you look at those and/or send the CI Log?

Thanks
Sean



On 7/20/2021 2:08 AM, wenyi,xie via groups.io wrote:
Hello, everyone

I want to build unit test locally, my environment is win10, python 3.9.6, VS2019.
I excute the command according to steps in the ReadMe.
1. stuart_setup -c ./.pytool/CISettings.py TOOL_CHAIN_TAG=VS2019
2. stuart_update -c ./.pytool/CISettings.py TOOL_CHAIN_TAG=VS2019
3. stuart_ci_build -c ./.pytool/CISettings.py TOOL_CHAIN_TAG=VS2019 -t NOOPT -p MdePkg

In step 3, the log is just stopped at "Running Build NOOPT", how do I know the cause of the build failure ?
SECTION - Init SDE
WARNING - Using Pip Tools based BaseTools
SECTION - Loading Plugins
SECTION - Start Invocable Tool
SECTION - Getting Environment
SECTION - Loading plugins
SECTION - Building MdePkg Package
PROGRESS - --Running MdePkg: Host Unit Test Compiler Plugin NOOPT --
WARNING - Allowing Override for key TARGET_ARCH
PROGRESS - Start time: 2021-07-20 16:55:27.953832
PROGRESS - Setting up the Environment
PROGRESS - Running Pre Build
PROGRESS - Running Build NOOPT




.









Re: [EXTERNAL] Re: [edk2-discuss] failure in building unit test locally

wenyi,xie
 

Hi Bret,

It seems no need to change the language of windows, I found that the root cause is that the language of Visual Studio I installed is Chinese. So if any warning or error occured during building,
the VS will output error message in Chinese. This message then is passed to BaseTools, but BaseTools can't decode it using gbk, so UnicodeEncodeError happened like below.

INFO - --- Logging error ---
INFO - Traceback (most recent call last):
INFO - File "C:\Program Files\Python37\lib\logging_init_.py", line 1028, in emit
INFO - stream.write(msg + self.terminator)
INFO - UnicodeEncodeError: 'gbk' codec can't encode character '\u017b' in position 26: illegal multibyte sequence
INFO - Call stack:
INFO - File "C:\Program Files\Python37\lib\threading.py", line 890, in _bootstrap
INFO - self._bootstrap_inner()
INFO - File "C:\Program Files\Python37\lib\threading.py", line 926, in _bootstrap_inner
INFO - self.run()
INFO - File "d:\repository\edkii\ci\lib\site-packages\edk2basetools\AutoGen\AutoGenWorker.py", line 91, in run
INFO - self.InfoLogger_agent.log(log_message.levelno,log_message.getMessage())
INFO - Message: ' x64 Microsoft (R) C/C++ \u017b 19.29.30038.1 '
INFO - Arguments: ()

After I change the language of VS, I can get the real error message as below. The file cmocka.h include some character can't represented.
I try to add # pragma warning (disable:4819) to the first line of cmocka.h, and then building is successful.

ERROR - Compiler #2220 from b'd:\\\\repository\\\\edkii\\\\edk2\\\\UnitTestFrameworkPkg\\\\Library\\\\CmockaLib\\\\cmocka\\\\include\\\\cmocka.h(1849): the following warning is treated as an error'
WARNING - Compiler #4819 from b'd:\\\\repository\\\\edkii\\\\edk2\\\\UnitTestFrameworkPkg\\\\Library\\\\CmockaLib\\\\cmocka\\\\include\\\\cmocka.h(1849): The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss'

Thanks
Wenyi

On 2021/7/28 0:17, Bret Barkelew wrote:
Thanks for your follow-up. This is a known limitation that we have worked to resolve but ran into some unknown/unexpected errors. We definitely want to support both traditional and simplified character sets (as well as any other character sets), but if I recall there were some ambiguous OS mechanisms at work.

 

We would appreciate any help or contributions to get these character sets supported, but I understand if you don’t have the time.

 

I thought we already had an issue open to track it, but I couldn’t find it so I created a new one here:

Support non-ASCII character sets in Stuart tools · Issue #267 · tianocore/edk2-pytool-extensions (github.com) <https://github.com/tianocore/edk2-pytool-extensions/issues/267>

 

We can mark it as a duplicate if I find the original report.

 

- Bret

 

*From: *wenyi,xie via groups.io <mailto:xiewenyi2=huawei.com@groups.io>
*Sent: *Monday, July 26, 2021 12:53 AM
*To: *Sean Brogan <mailto:spbrogan@outlook.com>; discuss@edk2.groups.io <mailto:discuss@edk2.groups.io>
*Subject: *[EXTERNAL] Re: [edk2-discuss] failure in building unit test locally

 

Hi, everyone

I have found the root cause of failure, it's because the language in my windows is Chinese, and the software not support Unicode will use gbk as the coding format.
After I change the language, the problem is solved.

Thanks
Wenyi

On 2021/7/21 10:56, xiewenyi (A) wrote:
Hi,Sean

I have upload the log to github, link is like below.
https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fleadsama%2FShowLog%2Fblob%2Fmain%2FREADME.md&;data=04%7C01%7Cbret.barkelew%40microsoft.com%7C990acd0e770447c7a28b08d9500a7dea%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637628828276590927%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=cqhTkl5QFXsXwnq%2F0DYHfWieHhOiPsxTRgBKBkJhhsE%3D&amp;reserved=0

Thanks
Wenyi

On 2021/7/20 23:26, Sean Brogan wrote:
In the workspace/build folder there should be some logs .
Can you look at those and/or send the CI Log?

Thanks
Sean



On 7/20/2021 2:08 AM, wenyi,xie via groups.io wrote:
Hello, everyone

I want to build unit test locally, my environment is win10, python 3.9.6, VS2019.
I excute the command according to steps in the ReadMe.
1. stuart_setup -c ./.pytool/CISettings.py TOOL_CHAIN_TAG=VS2019
2. stuart_update -c ./.pytool/CISettings.py TOOL_CHAIN_TAG=VS2019
3. stuart_ci_build -c ./.pytool/CISettings.py TOOL_CHAIN_TAG=VS2019 -t NOOPT -p MdePkg

In step 3, the log is just stopped at "Running Build NOOPT", how do I know the cause of the build failure ?
SECTION - Init SDE
WARNING - Using Pip Tools based BaseTools
SECTION - Loading Plugins
SECTION - Start Invocable Tool
SECTION - Getting Environment
SECTION - Loading plugins
SECTION - Building MdePkg Package
PROGRESS - --Running MdePkg: Host Unit Test Compiler Plugin NOOPT --
WARNING - Allowing Override for key TARGET_ARCH
PROGRESS - Start time: 2021-07-20 16:55:27.953832
PROGRESS - Setting up the Environment
PROGRESS - Running Pre Build
PROGRESS - Running Build NOOPT




.



 


Re: Some questions about create own setup sub page

Guomin Jiang
 

It seem that the file-encoding is incorrect.

Are you using UTF-8?

-----Original Message-----
From: discuss@edk2.groups.io <discuss@edk2.groups.io> On Behalf Of
LawrenceGuan
Sent: Thursday, August 5, 2021 2:01 PM
To: discuss@edk2.groups.io
Subject: [edk2-discuss] Some questions about create own setup sub page

Dear members,

I am a newbie for EDK2 and aim to create my own setup subpage as attached
file "102638.jpg". Of course, I referenced all files of "device manager" but still
meet build error as "BuildErrorForMySubPage.png".

Could someone give me some instructions to resolve it?

Many thanks!





Some questions about create own setup sub page

LawrenceGuan
 

Dear members,

I am a newbie for EDK2 and aim to create my own setup subpage as attached file "102638.jpg". Of course, I referenced all files of "device manager" but still meet build error as "BuildErrorForMySubPage.png".

Could someone give me some instructions to resolve it?

Many thanks!


Problem with -kernel (-initrd, -append) qemu options

Christoph Willing
 

I cannot use -kernel, -initrd & -append options with qemu when using the OVMF files of any release from edk2-stable201808 onward, nor from the git master branch. The last release that has usable OVMF files is vUDK2018.

Normal booting (not using -kernel,... options) works fine, perhaps explaining why the problem has gone undetected so long (I guess my use case is not common). I have tested and confirmed to myself on various platforms; Slackware64-14.2, Slackware64-15.0, Clear Linux 34250 and Ubuntu 20.04. The different OSs all have different Qemu versions, namely 4.0.0, 6.0.0, 5.2.0 and 4.2.1 respectively. All OSs & qemu versions show the same problem.

I used git-bisect to find where the problem started and created a patch to resolve it. I opened a bugzilla case and have submitted the patch there.

I wonder whether an OvmfPkg maintainer could take a look at https://bugzilla.tianocore.org/show_bug.cgi?id=3504 and do whatever is needed to progress beyond there please? Hopefully just confirm and push :)

Thanks,
chris


Status of the Ipmi and BMC support

yury.adamov@...
 

Hi guys.

I'm looking through the source code of edk2, edk2-platform and edk2-non-osi and see some libraries intended for support of BMC interaction (e.g. general definitions of Ipmi protocol in edk2/MdeModulePkg, IpmiFeaturePkg in ./edk2-platforms/Features/Intel/OutOfBandManagement/, some support of low level Ipmi libraries in ./edk2-platforms/Platform/Intel/PurleyOpenBoardPkg/Features/. However, a quick scan through the dsc files of the implemented platforms as well as attempt to build them does not show any example of Ipmi feature implemented.

Am I missing something? Is there example of supported board that have implemented ipmi interaction with BMC?

Yury Adamov


Re: May I remove the header file include of uuid.h

wenyi,xie
 

Hello everyone,

Adding more information to make my question more precise.
It seems that the uuid is not used in GenFvternalLib.c. So we try to remove the uuid.h and LIBS += -luuid, the building is successful under Linux with GCC5.
So I wonder if the libuuid is nessary for GenFvternalLib.

Thanks
Wenyi


May I remove the header file include of uuid.h

wenyi,xie
 

Hello everyone,

May I ask one question, what is the uuid.h used for. We remove this include code below in file GenFvternalLib.c and then build EDK2 undec GCC5, the building is successful.
It seems no difference underGCC5.
#if defined(__FreeBSD__)
#include <uuid.h>
#elif defined(__GNUC__)
#include <uuid/uuid.h>
#endif

Thanks
Wenyi


Re: State of the `edk2-libc` project

Rebecca Cran <rebecca@...>
 

By the lack of replies, I suspect we should bring it up as a topic of discussion in the Community Meeting next week.


--
Rebecca Cran

On 7/14/21 1:43 PM, Rebecca Cran wrote:
I submitted a patch to fix it several weeks ago, but it never got committed.

Rebecca Cran
On Jul 14, 2021, at 11:36 AM, Konstantin Aladyshev <aladyshev22@gmail.com> wrote:

Hello!

What is the state of the `edk2-libc` project?

The last commit is dated Apr 29, 2019. I've tried to compile
`edk2-libc` with the master `edk2` and have come to some build issues.

For example this edk2 commit (13 Oct 2020 "MdePkg: Remove code wrapped
by DISABLE_NEW_DEPRECATED_INTERFACES"
https://github.com/tianocore/edk2/commit/9c1f455f5f0ee63ce080940bf974aac4fefe526b)
have dropped support for several functions, but these functions are
still used in `edk2-libs`:
- `StrCpy` and `StrCpy` functions are used in
https://github.com/tianocore/edk2-libc/blob/master/StdLib/LibC/Wchar/Copying.c
- `AsciiStrCat` and `AsciiStrnCat` functions are used in
https://github.com/tianocore/edk2-libc/blob/master/StdLib/LibC/String/Concatenation.c
In the modern `edk2` all these old functions are replaced with their
safe versions (StrCpyS, StrCpyS, AsciiStrCatS, AsciiStrnCatS).

My question is should these unsafe string functions be deprecated in
the `edk2-libc` as well? And more importantly does the tianocore
community have any plans for support of `edk2-libc` project or can it
be counted as obsolete?

Best regards,
Konstantin Aladyshev







Re: [EXTERNAL] Re: [edk2-discuss] failure in building unit test locally

Bret Barkelew
 

Thanks for your follow-up. This is a known limitation that we have worked to resolve but ran into some unknown/unexpected errors. We definitely want to support both traditional and simplified character sets (as well as any other character sets), but if I recall there were some ambiguous OS mechanisms at work.

We would appreciate any help or contributions to get these character sets supported, but I understand if you don’t have the time.

I thought we already had an issue open to track it, but I couldn’t find it so I created a new one here:
Support non-ASCII character sets in Stuart tools · Issue #267 · tianocore/edk2-pytool-extensions (github.com)<https://github.com/tianocore/edk2-pytool-extensions/issues/267>

We can mark it as a duplicate if I find the original report.

- Bret

From: wenyi,xie via groups.io<mailto:xiewenyi2=huawei.com@groups.io>
Sent: Monday, July 26, 2021 12:53 AM
To: Sean Brogan<mailto:spbrogan@outlook.com>; discuss@edk2.groups.io<mailto:discuss@edk2.groups.io>
Subject: [EXTERNAL] Re: [edk2-discuss] failure in building unit test locally

Hi, everyone

I have found the root cause of failure, it's because the language in my windows is Chinese, and the software not support Unicode will use gbk as the coding format.
After I change the language, the problem is solved.

Thanks
Wenyi

On 2021/7/21 10:56, xiewenyi (A) wrote:
Hi,Sean

I have upload the log to github, link is like below.
https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fleadsama%2FShowLog%2Fblob%2Fmain%2FREADME.md&;data=04%7C01%7Cbret.barkelew%40microsoft.com%7C990acd0e770447c7a28b08d9500a7dea%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637628828276590927%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=cqhTkl5QFXsXwnq%2F0DYHfWieHhOiPsxTRgBKBkJhhsE%3D&amp;reserved=0

Thanks
Wenyi

On 2021/7/20 23:26, Sean Brogan wrote:
In the workspace/build folder there should be some logs .
Can you look at those and/or send the CI Log?

Thanks
Sean



On 7/20/2021 2:08 AM, wenyi,xie via groups.io wrote:
Hello, everyone

I want to build unit test locally, my environment is win10, python 3.9.6, VS2019.
I excute the command according to steps in the ReadMe.
1. stuart_setup -c ./.pytool/CISettings.py TOOL_CHAIN_TAG=VS2019
2. stuart_update -c ./.pytool/CISettings.py TOOL_CHAIN_TAG=VS2019
3. stuart_ci_build -c ./.pytool/CISettings.py TOOL_CHAIN_TAG=VS2019 -t NOOPT -p MdePkg

In step 3, the log is just stopped at "Running Build NOOPT", how do I know the cause of the build failure ?
SECTION - Init SDE
WARNING - Using Pip Tools based BaseTools
SECTION - Loading Plugins
SECTION - Start Invocable Tool
SECTION - Getting Environment
SECTION - Loading plugins
SECTION - Building MdePkg Package
PROGRESS - --Running MdePkg: Host Unit Test Compiler Plugin NOOPT --
WARNING - Allowing Override for key TARGET_ARCH
PROGRESS - Start time: 2021-07-20 16:55:27.953832
PROGRESS - Setting up the Environment
PROGRESS - Running Pre Build
PROGRESS - Running Build NOOPT




.


Re: failure in building unit test locally

wenyi,xie
 

Hi, everyone

I have found the root cause of failure, it's because the language in my windows is Chinese, and the software not support Unicode will use gbk as the coding format.
After I change the language, the problem is solved.

Thanks
Wenyi

On 2021/7/21 10:56, xiewenyi (A) wrote:
Hi,Sean

I have upload the log to github, link is like below.
https://github.com/leadsama/ShowLog/blob/main/README.md

Thanks
Wenyi

On 2021/7/20 23:26, Sean Brogan wrote:
In the workspace/build folder there should be some logs .
Can you look at those and/or send the CI Log?

Thanks
Sean



On 7/20/2021 2:08 AM, wenyi,xie via groups.io wrote:
Hello, everyone

I want to build unit test locally, my environment is win10, python 3.9.6, VS2019.
I excute the command according to steps in the ReadMe.
1. stuart_setup -c ./.pytool/CISettings.py TOOL_CHAIN_TAG=VS2019
2. stuart_update -c ./.pytool/CISettings.py TOOL_CHAIN_TAG=VS2019
3. stuart_ci_build -c ./.pytool/CISettings.py TOOL_CHAIN_TAG=VS2019 -t NOOPT -p MdePkg

In step 3, the log is just stopped at "Running Build NOOPT", how do I know the cause of the build failure ?
SECTION - Init SDE
WARNING - Using Pip Tools based BaseTools
SECTION - Loading Plugins
SECTION - Start Invocable Tool
SECTION - Getting Environment
SECTION - Loading plugins
SECTION - Building MdePkg Package
PROGRESS - --Running MdePkg: Host Unit Test Compiler Plugin NOOPT --
WARNING - Allowing Override for key TARGET_ARCH
PROGRESS - Start time: 2021-07-20 16:55:27.953832
PROGRESS - Setting up the Environment
PROGRESS - Running Pre Build
PROGRESS - Running Build NOOPT




.


how to use assert

wenyi,xie
 

Hi everyone

May I ask in what situation we can use assert, is there any rule.

thanks
Wenyi


Change GOP mode runtime

Konstantin Aladyshev
 

Hello!

I have written an UEFI shell application that can set a mode for GOP.
And I try to use this app to increase the resolution of a display on
OVMF under QEMU.
I connect to the QEMU via VNC.

By default resolution is 800x600 (mode 2): https://pasteboard.co/KcponHH.png

If I change it to something bigger (mode 6: 1024x786) the display
changes its size, but the text area doesn't really change:
https://pasteboard.co/KcpowA5.png

My guess it is because the text area is controlled by a different
protocol: EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL. I can see its modes via
internal `mode` command:
```
FS0:\> mode
Available modes for console output device.
Col 80 Row 25 *
Col 100 Row 31
```
But this protocol always has only two modes. So I can't really change
its mode to fill all the display with the bigger resolution.
It looks like both modes were calculated for the default 800x600
screen (with/without padding).

What driver is responsible for this protocol?
Is there a way to somehow recalculate available modes for a console
output device runtime?

Best regards,
Konstantin Aladyshev


Re: Functions for coversion strings to intergers

Konstantin Aladyshev
 

What I meant is there is no difference in the result between the "0"
string, and "hhh" string. Both would get translated to the number
zero.
And something like "16dfgdf" would get translated to 16.

But I think I've found a C library function, that is the base for
these StrDecimalToUintnS/StrDecimalToUint64S functions. It is
`strtol`.

And in the case of strtol it is a caller responsibility to check for
all the possible error cases via comparing first and second argument:
https://stackoverflow.com/questions/26080829/detecting-strtol-failure/26083517

```
CHAR16* End;
UINTN MyVar;
RETURN_STATUS Status = StrDecimalToUintnS(Argv[Index], &End, &MyVar);
if ((Status != RETURN_SUCCESS) || (Argv[Index] == End) || (*End != 0))
Print(L"Error! incorrect number\n");
}
```
So I think that clears my question.
Sorry to bother you.

Best regards,
Konstantin Aladyshev

On Wed, Jul 21, 2021 at 9:23 PM Andrew Fish <afish@apple.com> wrote:



On Jul 21, 2021, at 10:01 AM, Konstantin Aladyshev <aladyshev22@gmail.com> wrote:

Are there any library functions that can convert a string with a
decimal number to a number, and tell if the conversion was successful?


What is your definition of successful?

I've found StrDecimalToUintnS and StrDecimalToUint64S functions in a
https://github.com/tianocore/edk2/blob/master/MdePkg/Library/BaseLib/SafeString.c
But it looks like they always return `RETURN_SUCCESS`, no matter if
the passed string contains a number. In this case the function simply
fills the number value with a 0.

Also why aren't there any functions for conversion of signed numbers?
Something like StrDecimalToIntnS/StrDecimalToInt64S ?


Most of the library functions evolved from code duplication in the firmware. Thus we only pick functions that commonly got used.

Thanks,

Andrew Fish

Best regards,
Konstantin Aladyshev





Re: Functions for coversion strings to intergers

Andrew Fish
 

On Jul 21, 2021, at 10:01 AM, Konstantin Aladyshev <aladyshev22@gmail.com> wrote:

Are there any library functions that can convert a string with a
decimal number to a number, and tell if the conversion was successful?
What is your definition of successful?

I've found StrDecimalToUintnS and StrDecimalToUint64S functions in a
https://github.com/tianocore/edk2/blob/master/MdePkg/Library/BaseLib/SafeString.c
But it looks like they always return `RETURN_SUCCESS`, no matter if
the passed string contains a number. In this case the function simply
fills the number value with a 0.

Also why aren't there any functions for conversion of signed numbers?
Something like StrDecimalToIntnS/StrDecimalToInt64S ?
Most of the library functions evolved from code duplication in the firmware. Thus we only pick functions that commonly got used.

Thanks,

Andrew Fish

Best regards,
Konstantin Aladyshev



Functions for coversion strings to intergers

Konstantin Aladyshev
 

Are there any library functions that can convert a string with a
decimal number to a number, and tell if the conversion was successful?

I've found StrDecimalToUintnS and StrDecimalToUint64S functions in a
https://github.com/tianocore/edk2/blob/master/MdePkg/Library/BaseLib/SafeString.c
But it looks like they always return `RETURN_SUCCESS`, no matter if
the passed string contains a number. In this case the function simply
fills the number value with a 0.

Also why aren't there any functions for conversion of signed numbers?
Something like StrDecimalToIntnS/StrDecimalToInt64S ?

Best regards,
Konstantin Aladyshev


How to build edk2/ovmf with secure boot enabled as done in Fedora with "*CODE.secboot.fd" and "*VARS.secboot.fd" files?

Ks89
 

My env:
-centos8
-qemu 6.0.0

I'm trying to install windows 10 from .iso installation disk in QEMU 6.0.0 with secure boot enabled in UEFI.

If I pass edk2/ovmf files provided by Fedora, I can find the .secboot.fd versions. Passing those files to qemu with:
-global driver=cfi.pflash01,property=secure,value=on \
-drive if=pflash,format=raw,file=/usr/share/edk2/ovmf/OVMF_CODE.secboot.fd,readonly=on \
-drive if=pflash,format=raw,file=./my-writable_OVMF_VARS.secboot.fd \

In this way I can see the option "secure boot" enabled in EUFI.

Ok, but now I want to download edk2/ovmf from sources using the latest stable tag:
git clone https://github.com/tianocore/edk2.git
cd edk2
git checkout edk2-stable202105
git submodule update --init

And finally I want to build it for x64 with secure boot:
./OvmfPkg/build.sh

I tried to use "./OvmfPkg/build.sh -DSECURE_BOOT_ENABLE" but when I run QEMU, the secure boot option in UEFI is disabled.

Which is the right procedure to build edk2/OVMF with secure boot?

Thank you.


Re: failure in building unit test locally

wenyi,xie
 

Hi,Sean

I have upload the log to github, link is like below.
https://github.com/leadsama/ShowLog/blob/main/README.md

Thanks
Wenyi

On 2021/7/20 23:26, Sean Brogan wrote:
In the workspace/build folder there should be some logs .
Can you look at those and/or send the CI Log?

Thanks
Sean



On 7/20/2021 2:08 AM, wenyi,xie via groups.io wrote:
Hello, everyone

I want to build unit test locally, my environment is win10, python 3.9.6, VS2019.
I excute the command according to steps in the ReadMe.
1. stuart_setup -c ./.pytool/CISettings.py TOOL_CHAIN_TAG=VS2019
2. stuart_update -c ./.pytool/CISettings.py TOOL_CHAIN_TAG=VS2019
3. stuart_ci_build -c ./.pytool/CISettings.py TOOL_CHAIN_TAG=VS2019 -t NOOPT -p MdePkg

In step 3, the log is just stopped at "Running Build NOOPT", how do I know the cause of the build failure ?
SECTION - Init SDE
WARNING - Using Pip Tools based BaseTools
SECTION - Loading Plugins
SECTION - Start Invocable Tool
SECTION - Getting Environment
SECTION - Loading plugins
SECTION - Building MdePkg Package
PROGRESS - --Running MdePkg: Host Unit Test Compiler Plugin NOOPT --
WARNING - Allowing Override for key TARGET_ARCH
PROGRESS - Start time: 2021-07-20 16:55:27.953832
PROGRESS - Setting up the Environment
PROGRESS - Running Pre Build
PROGRESS - Running Build NOOPT




.


Re: failure in building unit test locally

Sean
 

In the workspace/build folder there should be some logs .
Can you look at those and/or send the CI Log?

Thanks
Sean

On 7/20/2021 2:08 AM, wenyi,xie via groups.io wrote:
Hello, everyone
I want to build unit test locally, my environment is win10, python 3.9.6, VS2019.
I excute the command according to steps in the ReadMe.
1. stuart_setup -c ./.pytool/CISettings.py TOOL_CHAIN_TAG=VS2019
2. stuart_update -c ./.pytool/CISettings.py TOOL_CHAIN_TAG=VS2019
3. stuart_ci_build -c ./.pytool/CISettings.py TOOL_CHAIN_TAG=VS2019 -t NOOPT -p MdePkg
In step 3, the log is just stopped at "Running Build NOOPT", how do I know the cause of the build failure ?
SECTION - Init SDE
WARNING - Using Pip Tools based BaseTools
SECTION - Loading Plugins
SECTION - Start Invocable Tool
SECTION - Getting Environment
SECTION - Loading plugins
SECTION - Building MdePkg Package
PROGRESS - --Running MdePkg: Host Unit Test Compiler Plugin NOOPT --
WARNING - Allowing Override for key TARGET_ARCH
PROGRESS - Start time: 2021-07-20 16:55:27.953832
PROGRESS - Setting up the Environment
PROGRESS - Running Pre Build
PROGRESS - Running Build NOOPT

81 - 100 of 895