From: "Kilian Kegel" <KILIAN_KEGEL@OUTLOOK.COM>
To: "devel@edk2.groups.io" <devel@edk2.groups.io>,
Maciej Rabeda <maciej.rabeda@linux.intel.com>
Cc: Rebecca Cran <rebecca@nuviainc.com>,
"tim.lewis@insyde.com" <tim.lewis@insyde.com>,
Mike Kinney <michael.d.kinney@intel.com>,
"afish@apple.com" <afish@apple.com>,
Leif Lindholm <leif@nuviainc.com>
Subject: Re: [edk2-devel] "StdLibPkg" branch on edk2-staging
Date: Wed, 11 Aug 2021 13:19:33 +0000 [thread overview]
Message-ID: <AM8P190MB094570A1068816C6F41858C7EBF89@AM8P190MB0945.EURP190.PROD.OUTLOOK.COM> (raw)
In-Reply-To: <16984DDFBF70DC40.16396@groups.io>
[-- Attachment #1.1: Type: text/plain, Size: 8065 bytes --]
Hi Maciej,
I have updated and fixed build errors in branch CdePkg (https://github.com/tianocore/edk2-staging.git).
Also a POST trace is recorded on my MinnowBoard and stored here:
https://raw.githubusercontent.com/tianocore/edk2-staging/CdePkg/UEFIBinaries/RELEASE.log
All implemented Standard-C-functions from CdePkg/Torito C Library demonstrates
its basic behavior.
There are also a lot of WCHAR.H- and WCTYPE.H-functions.
For the wide-functions I just perform the characters 0..0x1FF instead of all 65536
different wchar_t characters due to runtime regards…
Regrettably the MinnowBoard is deprecated https://www.silicom-usa.com/pr/eol/minnowboard-turbot<https://www.silicom-usa.com/pr/eol/minnowboard-turbot/>
but the CdePkg also runs in the EMULATOR: https://github.com/tianocore/edk2-staging/tree/CdePkg#howto
Best Regards,
Kilian
From: Kilian Kegel<mailto:kilian_kegel@outlook.com>
Sent: Thursday, August 5, 2021 06:14 AM
To: devel@edk2.groups.io<mailto:devel@edk2.groups.io>; afish@apple.com<mailto:afish@apple.com>; Leif Lindholm<mailto:leif@nuviainc.com>
Cc: Rebecca Cran<mailto:rebecca@nuviainc.com>; tim.lewis@insyde.com<mailto:tim.lewis@insyde.com>; maciej.rabeda@linux.intel.com<mailto:maciej.rabeda@linux.intel.com>; Mike Kinney<mailto:michael.d.kinney@intel.com>
Subject: Re: [edk2-devel] "StdLibPkg" branch on edk2-staging
Hi all,
I plan to come back with the https://github.com/tianocore/edk2-staging/tree/CdePkg end of this year
and to unroll the source code of fundamental parts of my C Library and discuss that along
the 30. anniversary of “The C Book” https://publications.gbdirect.co.uk/c_book/chapter9
Additionally I will discuss the details you need to know:
1. about the differences C90/C95/C99 in language and library
2. how to get HOSTED ENVIRONMENT for UEFI POST drivers
3. how to get Intel/AMD TimeStampCounter based precise time calibration - platform,
processor and chipset independent for x86 UEFI platforms
1. how to arrange space optimization for UEFI FW as an embedded platform
2. how to test and verify the compatibility of a Standard C Library implementation,
since “CI“ won’t help at all in this regards
1. how to implement a printf-core that performs narrow and wide mode at once for space optimization
2. how to implement a scanf-core that performs narrow and wide mode at once for space optimization
3. how to implement realloc() sub-allocator on UEFI memory management functions for PEI and DXE
Note: If UEFI is going to provide Standard-C-Functions for all drivers, you will have soon e.g. “sprintf()”
in all drivers. The amount of code for a proper sprintf() + scanf() + wscanf() + strtok() + wcstok() + malloc() … implementation
that is not tailored for embedded FW, will overrun the BIOS FLASH space instantly.
I consider commercial BIOS implementations that runs really many drivers (> 100) to start a platform.
Currently I implement more feature to CdePkg/Torito C Library:
1. Improve UEFI driver cross development for VisualStudio and EDK2
2. substitution of “DEBUG” traces by CdePkg-traces
that allows usage of predefined DEBUG-messages to run in a CdePkg-based driver.
Sole purpose is to have DEBUG/RELEASE mode _NOT_ globally, but locally to get
trace messages selectively for specific drivers only.
(to speed up POST with traces, that consumes a significant amount of time during
working hours of a BIOS developer)
1. add SMM support.
Shell, DXE, PEI (pre and post memory) is already available for 2 years:
https://edk2.groups.io/g/devel/message/51562?p=,,,20,0,0,0::Created,,CdePkg,20,2,0,65191785
1. get ACPICA tools https://acpica.org/ to UEFI Shell
I need to implement some non-standard / Microsoft specific C functions
to get that running for Andrew Fish.
That time links from https://github.com/KilianKegel are under construction and are
not necessarily up-to-date.
Same for https://github.com/tianocore/edk2-staging/tree/CdePkg that is not used for long …
But https://github.com/KilianKegel/CdePkg.git driver set and sample set runs instantly
on the latest BIOS of a commercial vendor on a Intel IOTG TGL-H (Tiger Lake H) board using the Microsoft
build environment.
@Tim: I’d really appreciate if CdePkg could hold additionally Insyde BIOS support. Regrettably
I do not have access to Insyde source code.
@Maciej
I can not see any “wide” functions here. https://github.com/DevSolar/pdclib<https://github.com/DevSolar/pdclib%20from%20WCHAR.H>
from WCHAR.H or WCTYPE.H. That is a serious limitation in the UEFI environment.
To create UEFI-Shell programs for Personal Computers this link can be used.
https://github.com/KilianKegel/Visual-ANSI-C-for-UEFI-Shell#visual-ansi-c-for-uefi-shell
Best regards,
Kilian
From: Andrew Fish via groups.io<mailto:afish=apple.com@groups.io>
Sent: Thursday, August 5, 2021 05:35 AM
To: edk2-devel-groups-io<mailto:devel@edk2.groups.io>; Leif Lindholm<mailto:leif@nuviainc.com>
Cc: Rebecca Cran<mailto:rebecca@nuviainc.com>; tim.lewis@insyde.com<mailto:tim.lewis@insyde.com>; maciej.rabeda@linux.intel.com<mailto:maciej.rabeda@linux.intel.com>; Mike Kinney<mailto:michael.d.kinney@intel.com>
Subject: Re: [edk2-devel] "StdLibPkg" branch on edk2-staging
I’d guess I’d also ask the why not NewLib? Especially since Red Hat helps out with edk2….
Thanks,
Andrew Fish
> On Aug 4, 2021, at 4:03 AM, Leif Lindholm <leif@nuviainc.com> wrote:
>
> Hi Rebecca,
>
> I think the truth is we're a bit resigned about edk2-libc in general.
> My view is it should be either maintained or deprecated (or replaced).
>
> And maintainership *should* mean at least keeping it up to date with
> security fixes.
>
> I personally have no enthusiasm for the topic, but if there existed:
> - An up-to-date codebase.
> - A plan for keeping the coodbase up-to-date (as opposed to a plan to
> keep the codebase up-to-date).
> - At least a couple of maintainers.
> I would have no objection to that existing under the TianoCore
> umbrella.
>
> Best Regards,
>
> Leif
>
> On Wed, Jul 28, 2021 at 16:44:02 -0600, Rebecca Cran wrote:
>> CC'ing the Tianocore stewards.
>>
>>
>> I've had problems getting a recent patch committed just to make edk2-libc
>> work against current edk2 master.
>>
>> Tianocore stewards: do we need new or additional maintainers for edk2-libc,
>> or is there a plan to deprecate it?
>>
>>
>> The current maintainers are listed as:
>>
>> StdLib, StdLibPrivateInternalFiles
>> W: https://github.com/tianocore/tianocore.github.io/wiki/StdLib
>> M: Daryl McDaniel <edk2-lists@mc2research.org>
>> M: Jaben Carsey <jaben.carsey@intel.com>
>>
>>
>> --
>> Rebecca Cran
>>
>>
>> On 7/28/21 4:25 PM, tim.lewis@insyde.com wrote:
>>> I would point out that there was significant work on libc in the
>> past (see https://github.com/andreiw/UefiToolsPkg) but never any
>> help to upstream these fixes, including making sure that many Linux
>> tools can easily be ported. I myself have used it to port several
>> BSD utilities over, but each time there will little nits with the
>> existing port and even small patches were returned with "no current
>> maintainer"
>>>
>>> In terms of making other projects use libc, I think the other
>>> objection was that it was never optimized for non-shell
>>> usage. Other projects (lie
>>> https://github.com/tianocore/edk2-staging/tree/CdePkg ) have tried
>>> to remedy this, but never with source checked in. But it allows
>>> support under PEI, DXE, etc.
>>>
>>> Tim
>>>
>>> -----Original Message-----
>>> From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of Rebecca Cran
>>> Sent: Wednesday, July 28, 2021 8:34 AM
>>> To: devel@edk2.groups.io; maciej.rabeda@linux.intel.com
>>> Subject: Re: [edk2-devel] "StdLibPkg" branch on edk2-staging
>>>
>>> Are you aware of the edk2-libc project at https://github.com/tianocore/edk2-libc ?
>>>
>>>
>
>
>
>
>
[-- Attachment #1.2: Type: text/html, Size: 19181 bytes --]
[-- Attachment #2: 91D6A18A388446A38691886DAE994FEF.png --]
[-- Type: image/png, Size: 132 bytes --]
next prev parent reply other threads:[~2021-08-11 13:19 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-27 15:48 "StdLibPkg" branch on edk2-staging Maciej Rabeda
2021-07-28 15:34 ` [edk2-devel] " Rebecca Cran
2021-07-28 15:45 ` Maciej Rabeda
2021-07-28 15:59 ` Rebecca Cran
2021-07-28 22:25 ` Tim Lewis
2021-07-28 22:44 ` Rebecca Cran
2021-08-04 11:03 ` Leif Lindholm
2021-08-05 3:35 ` Andrew Fish
2021-08-05 4:14 ` Kilian Kegel
[not found] ` <16984DDFBF70DC40.16396@groups.io>
2021-08-11 13:19 ` Kilian Kegel [this message]
2021-11-14 19:51 ` CdePkgBlog 2021-11-14 Kilian Kegel
2021-11-22 16:31 ` [edk2-devel] " Maciej Rabeda
2021-11-24 20:21 ` Kilian Kegel
2021-11-24 22:50 ` Pedro Falcato
2021-11-28 20:35 ` CdePkgBlog 2021-11-18 Kilian Kegel
[not found] ` <16BBD01DEB5EF921.4083@groups.io>
2021-12-12 20:02 ` CdePkgBlog 2021-12-12 Kilian Kegel
2021-12-19 20:51 ` CdePkgBlog 2021-12-19 Kilian Kegel
2022-01-16 20:01 ` CdePkgBlog 2022-01-16 -- Introduction of the ACPICA port to UEFI Kilian Kegel
2021-11-30 10:09 ` [edk2-devel] CdePkgBlog 2021-11-14 Maciej Rabeda
[not found] ` <16BC4B25BB307B73.14741@groups.io>
2021-11-30 20:15 ` Maciej Rabeda
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=AM8P190MB094570A1068816C6F41858C7EBF89@AM8P190MB0945.EURP190.PROD.OUTLOOK.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