From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from sonic302-21.consmr.mail.ir2.yahoo.com (sonic302-21.consmr.mail.ir2.yahoo.com [87.248.110.84]) by mx.groups.io with SMTP id smtpd.web10.1820.1667937129533887567 for ; Tue, 08 Nov 2022 11:52:09 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@yahoo.es header.s=s2048 header.b=H0+eDP69; spf=neutral (domain: yahoo.es, ip: 87.248.110.84, mailfrom: joaquin_conobolillo@yahoo.es) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.es; s=s2048; t=1667937127; bh=GOmzg2ERs4JRXQ2Lbv/PH64RHRe0sA0aGYvaD7tc5Ls=; h=Date:From:To:In-Reply-To:References:Subject:From:Subject:Reply-To; b=H0+eDP69EmFPUayy+ZZ/ZEhFVV7E82sGxE9GXBvNaWhWf4HuCRhlI4pBwLHpwMOYhov6kVm5HR9cieI+X34x3m3QtZPOctaMH4ZbmkCNkq0mm6Wt+OWamuR4fTRfxPoJtl6nxbEmNCSrEakChmN58MqpxVxfamtM3pjv4VmjrhKVlx4Z1kWKsrFQF9a7jogi778j17ARmOOIu/w5/xlN0O7DWWotEH9RpcyxW6wFuL1Rw/4ciJLJkU3D42xFiCIHj+L0aKJaO5Nil5VjUXAvvoe2HICXL1Joq2L/kX5tG+Aqd0rLUkqORqz24ITTnIcZ9DPcbhdxBKI9TtdmYSNPxA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1667937127; bh=IOAJEGjpxUvbvAcllH8Pol+eJDasBcJEeDFcOmi1vWF=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=Ih3j8JbNc8qcFhQEanQHXYm2frcFZl7Exy5leaMkkfFK0oNPltmkFlGdjXUTgDI/csfo7ebCSgNoht/LTm2wH0kSJC57seEJQUNZeNlVY+E5vn9BiVEfsDXGR5oDVa/ylt7Y8BP83PnetAljBV0GmfiBiY2Z5c63l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qnaKxOPTeRMlKToMtTotneawM_9DFYa6xvB2.I2n7vVRIy l2EVMt4P7tkb3B5vNX3nwaosryzWiI3wYpg7YTCmJ_6KKWXPW.bF3T7mKpvTR24ElnFQ83nfRojp yvOsDXp.FyOq3DlNXUtHe10iN3OItGgUsVMhgFs6khrXBlvG9jfSmkFKmVLUtkWaDGjuYOyfK_ja DKrkVpaeO4lbjo0mfNRoVhsRrN7ycch89yERQQ_kHcGsTVnfhVX2nVjWB.LWR1XKMlR9SeNuRpmz 79FekhWQTOdQLrtzxPplQ0Lw5Rta7mYGmhsLKo15rid_og_xk_yCK.fxd7S1Q30s9xu.PIEySgPS C14_dmg.Q.AJl3xJcQLL.WrE5zJMg.A-- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic302.consmr.mail.ir2.yahoo.com with HTTP; Tue, 8 Nov 2022 19:52:07 +0000 Date: Tue, 8 Nov 2022 19:52:02 +0000 (UTC) From: =?UTF-8?B?Sm9hcXXDr8K/wr0gQ29ubyBCb2xpbGxv?= To: Edk2-devel-groups-io , "Michael D. Kinney" , rebecca@quicinc.com, Joaquin_ConoBolillo@yahoo.es Message-ID: <111049427.763170.1667937122914@mail.yahoo.com> In-Reply-To: <172552160C64E29E.4995@groups.io> References: <369835914.808190.1667765918175.ref@mail.yahoo.com> <172552160C64E29E.4995@groups.io> Subject: Re: [edk2-devel] edk2-libc fopen() fails MIME-Version: 1.0 X-Mailer: WebService/1.1.20847 YMailNodin Content-Type: multipart/alternative; boundary="----=_Part_763169_1475863119.1667937122912" ------=_Part_763169_1475863119.1667937122912 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Rebecca Cran, in addition to my former email: We have the same issue with on a LINUX Buildmachine (latest UBUNTU, GNU5 to= olchain) 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=C3=AF=C2=BF=C2= =BD Cono Bolillo via groups.io e= scribi=C3=B3: =20 =20 Hi Rebecca, to my knowledge, you are the maintainer of the AppPkg, that my team is curr= ently 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=C2=A0 implementing, before=C2=A0 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 fa= ils: Our configuration: * commit ba0e0e4c6a174b71b18ccd6e47319cc45878893c (HEAD, tag: edk2-stable20= 2208) * latest =C2=A0 - AppPkg =C2=A0 - StdLib =C2=A0 - StdLibPrivateInternalFiles * target.txt: =C2=A0 - ACTIVE_PLATFORM=C2=A0 =C2=A0 =C2=A0 =3D AppPkg\AppPkg.dsc =C2=A0 - TARGET=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =3D = RELEASE =C2=A0 - TARGET_ARCH=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =3D X64 =C2=A0 - TOOL_CHAIN_CONF=C2=A0 =C2=A0 =C2=A0 =3D Conf/tools_def.txt =C2=A0 - TOOL_CHAIN_TAG=C2=A0 =C2=A0 =C2=A0 =C2=A0 =3D 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. =C2=A0 =C2=A0 FILE fp =3D fopen("test.txt", "w"); or open an existing file for reading: =C2=A0 =C2=A0 FILE fp =3D 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). =20 ------=_Part_763169_1475863119.1667937122912 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Rebecca Cran,

in addition to my former email= :
We have the same issue with on a LINUX Buildmachine (latest UBUNTU, GN= U5 toolchain)

fopen() always fail.


Any suggestions on ope= ning files in C.
Is there a special trick on UEFI???

Thanks in ad= vance for your time and advice,
JC
En lunes, 7 de= noviembre de 2022, 14:58:13 CET, Joaqu=C3=AF=C2=BF=C2=BD Cono Bolillo via = groups.io <joaquin_conobolillo=3Dyahoo.es@groups.io> escribi=C3=B3: =

Hi Rebecca,

to my knowledge, you are the maintainer= of the AppPkg, that my team is currently
using t= o 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, i= t is safe to boot
to UEFI Shell first, analyse th= e 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 faci= ng problems
using edk2-libc to refine the test pr= ogram for our needs: fopen() always fails:

Our configuration:
* commit = ba0e0e4c6a174b71b18ccd6e47319cc45878893c (HEAD, tag: edk2-stable202208)
=
* latest
  - AppPkg
  - StdLib
  -= StdLibPrivateInternalFiles
* target.txt:
  - ACTIVE_PLATFORM      =3D AppPkg\= AppPkg.dsc
  - TARGET      &n= bsp;         =3D RELEASE
&nbs= p; - TARGET_ARCH          =3D X64
  - TOOL_CHAIN_CONF      =3D Conf/tools_def.t= xt
  - TOOL_CHAIN_TAG      &n= bsp; =3D 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 =3D fopen("t= est.txt", "w");
or open an existing file for read= ing:
    FILE fp =3D fopen("test.txt", = "r");

How can we do fi= le access as specified by the Standard C Specification,
with edk2-libc?

Thanks in advance for your time and advice,
JC=

PS: To doublecheck th= e problem on a Linux system, we ran the above
pro= cedure on a WSL (Windows Subsystem for Linux) build environment with
the same result (TOOL_CHAIN_TAG set to GCC5).
=



=


=
------=_Part_763169_1475863119.1667937122912--