From: "Joaqu� Cono Bolillo" <Joaquin_ConoBolillo@yahoo.es>
To: Edk2-devel-groups-io <devel@edk2.groups.io>,
"Michael D. Kinney" <michael.d.kinney@intel.com>,
rebecca@quicinc.com, Joaquin_ConoBolillo@yahoo.es
Subject: Re: [edk2-devel] edk2-libc fopen() fails
Date: Tue, 8 Nov 2022 19:52:02 +0000 (UTC) [thread overview]
Message-ID: <111049427.763170.1667937122914@mail.yahoo.com> (raw)
In-Reply-To: <172552160C64E29E.4995@groups.io>
[-- Attachment #1: Type: text/plain, Size: 2139 bytes --]
Hi Rebecca Cran,
in addition to my former email:
We have the same issue with on a LINUX Buildmachine (latest UBUNTU, GNU5 toolchain)
fopen() always fail.
Any suggestions on opening files in C.
Is there a special trick on UEFI???
Thanks in advance for your time and advice,
JC En lunes, 7 de noviembre de 2022, 14:58:13 CET, Joaqu� Cono Bolillo via groups.io <joaquin_conobolillo=yahoo.es@groups.io> escribió:
Hi Rebecca,
to my knowledge, you are the maintainer of the AppPkg, that my team is currently
using to analyse a very sporadic reboot failure
(stuck, about 5 failures out of 100 reboots) on a x86-64 platform that
our company is going to ship soon.
Since the failure appears while Windows boots, it is safe to boot
to UEFI Shell first, analyse the register settings of the platform
using an UEFI Shell application, we are currently implementing,
before booting to Windows.
We are familiar with GIT and EDK2, but regrettably facing problems
using edk2-libc to refine the test program for our needs: fopen() always fails:
Our configuration:
* commit ba0e0e4c6a174b71b18ccd6e47319cc45878893c (HEAD, tag: edk2-stable202208)
* latest
- AppPkg
- StdLib
- StdLibPrivateInternalFiles
* target.txt:
- ACTIVE_PLATFORM = AppPkg\AppPkg.dsc
- TARGET = RELEASE
- TARGET_ARCH = X64
- TOOL_CHAIN_CONF = Conf/tools_def.txt
- TOOL_CHAIN_TAG = VS2015x86
We are able to adjust, build and run AppPkg/Applications/Hello/Hello.c
on the target platform.
Regrettably fopen() always returns NULL.
ERRNO is always 0.
E.g.
FILE fp = fopen("test.txt", "w");
or open an existing file for reading:
FILE fp = fopen("test.txt", "r");
How can we do file access as specified by the Standard C Specification,
with edk2-libc?
Thanks in advance for your time and advice,
JC
PS: To doublecheck the problem on a Linux system, we ran the above
procedure on a WSL (Windows Subsystem for Linux) build environment with
the same result (TOOL_CHAIN_TAG set to GCC5).
[-- Attachment #2: Type: text/html, Size: 4010 bytes --]
prev parent reply other threads:[~2022-11-08 19:52 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <369835914.808190.1667765918175.ref@mail.yahoo.com>
2022-11-06 20:18 ` edk2-libc fopen() fails Joaqu� Cono Bolillo
[not found] ` <172552160C64E29E.4995@groups.io>
2022-11-08 19:52 ` Joaqu� Cono Bolillo [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=111049427.763170.1667937122914@mail.yahoo.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