From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-in23.apple.com (mail-out23.apple.com [17.171.2.33]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id EF9FE21C9E7B7 for ; Tue, 4 Jul 2017 14:29:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; d=apple.com; s=mailout2048s; c=relaxed/simple; q=dns/txt; i=@apple.com; t=1499203843; h=From:Sender:Reply-To:Subject:Date:Message-id:To:Cc:MIME-version:Content-type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-reply-to:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=dQ0PFnwqAApgIWEGwLZfFbzNI/Gehniq/OehGgmReVQ=; b=pT0ltn0Vi/7SuZ1Cw7f5UqwTx0rwawPgqNgY4/QRUxnvtIwcYTP9t2iD40j5PyLK WZwPhjQXjbyZvlSmlzbuY7uBngbrKNh4EhvRW+Q8vCiTOuZaV4YmW/K13wHM8hrM z77c+bUOsMDUJYdfr4nmDprsCqWiq5TCsWQGZATVUCZVSS7sDR6C6JyVlyzxacNA 1gsL0D2Gd3fuknivm5bMsdjs3nbur90mXy18Z9sLRjLY27NTZmth7IE8KUPmfhXo koT71OdwwQXDSbwoqYe5R/ZHJP4cyn83468UaAdJdt8fc7PTb3ldU/e+5ZnS4wUU QPgMwAsj8yCPuSS5TLzBeA==; Received: from relay5.apple.com (relay5.apple.com [17.128.113.88]) (using TLS with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mail-in23.apple.com (Apple Secure Mail Relay) with SMTP id 98.CE.08001.3090C595; Tue, 4 Jul 2017 14:30:43 -0700 (PDT) X-AuditID: 11ab0217-0ed229c000001f41-3d-595c090388d4 Received: from nwk-mmpp-sz10.apple.com (nwk-mmpp-sz10.apple.com [17.128.115.122]) by relay5.apple.com (Apple SCV relay) with SMTP id DA.6E.10385.2090C595; Tue, 4 Jul 2017 14:30:42 -0700 (PDT) MIME-version: 1.0 Received: from [17.235.19.156] by nwk-mmpp-sz10.apple.com (Oracle Communications Messaging Server 8.0.1.2.20170210 64bit (built Feb 10 2017)) with ESMTPSA id <0OSL00MQZ534AO60@nwk-mmpp-sz10.apple.com>; Tue, 04 Jul 2017 14:30:42 -0700 (PDT) Sender: afish@apple.com From: Andrew Fish Message-id: <8A90E2C6-B073-4DD2-B548-31275871C706@apple.com> Date: Tue, 04 Jul 2017 14:30:40 -0700 In-reply-to: Cc: =?utf-8?Q?Marvin_H=C3=A4user?= , "edk2-devel@lists.01.org" To: Amit kumar References: X-Mailer: Apple Mail (2.3273) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrALMWRmVeSWpSXmKPExsUi2FAYocvMGRNpcOebgcW+1zuZLPYcOsps 8fb/VXYHZo/HPWfYPLpn/2Px2Pz6BXMAcxSXTUpqTmZZapG+XQJXxvXzU5kL3lxiqXjbu4el gfFIL0sXIyeHhICJxPy3TUxdjFwcQgJrmCQuPv7PCpO483ItG4gtJHCIUeLJBzEQm1dAUOLH 5HtgzcwCYRJnX/5hhKj5yiixfZkViC0sIC7x7swmZhCbTUBZYsX8D+wQvTYSU/f8YoKoMZc4 eeIY2HwWAVWJzR+ugc3kFIiXmPrmGiPE/DKJLa9+g/WKANX0t09hhzj0L7NEx8xbTBCHykrc mn2JGSQhIXCCTeLq2TaWCYxCs5AcOwvJsbMYOYBsdYkpU3IhwtoST95dYIWw1SQW/l7EhCy+ gJFtFaNwbmJmjm5mnpGxXmJBQU6qXnJ+7iZGUJSsZhLfwfj5teEhRgEORiUeXo+r0ZFCrIll xZW5hxilOViUxHm/PQiLFBJITyxJzU5NLUgtii8qzUktPsTIxMEp1cDIzCkdta39Q/Z1L4nc +ZPl7jZobl1+2CFC8KlQaM63ws9WEgUL/lyPyelP5hez2W53t9XiTe6vmb/m32+JETNdG/vt xNfZ7JoMe6Pm/PrSubjDlHHHnfNzNXbdKdhyM85FVKm5yOhC7G4X+dSsZUVXJp43VLwmpKZX 35vzvHWbwJbsrF/hzycosRRnJBpqMRcVJwIAVV8dyXMCAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrJIsWRmVeSWpSXmKPExsUi2FBcpcvEGRNpMOuQlcW+1zuZLPYcOsps 8fb/VXYHZo/HPWfYPLpn/2Px2Pz6BXMAcxSXTUpqTmZZapG+XQJXxvXzU5kL3lxiqXjbu4el gfFIL0sXIyeHhICJxJ2Xa9lAbCGBQ4wSTz6Igdi8AoISPybfA6thFgiTOPvyDyNEzVdGie3L rEBsYQFxiXdnNjGD2GwCyhIr5n9gh+i1kZi65xcTRI25xMkTx8DmswioSmz+cA1sJqdAvMTU N9cYIeaXSWx59RusVwSopr99CpDNBbTrL7NEx8xbTBCHykrcmn2JeQIj/ywk981Cct8sRg4g W11iypRciLC2xJN3F1ghbDWJhb8XMSGLL2BkW8UoUJSak1hpqpdYUJCTqpecn7uJERzShRE7 GP8vszrEKMDBqMTD++FSdKQQa2JZcWUuMIw4mJVEeJnYYiKFeFMSK6tSi/Lji0pzUosPMU5k BPpyIrOUaHI+MOLySuINTUwMTIyNzYyNzU3MaSmsJM6bdz8iUkggPbEkNTs1tSC1COYoJg5O qQbGVIUvHzqLb07wbtJLa5dP/np10y29oE+n017pSxxtUpNjuvl/4pIdrAvK+5v/8yztC9M7 OGFLY1VwSb9Hp+bNG4W359yIqDtUsGzqkQDLKv4pmjKflwlfCll8+8pZpY6+reyX+4XWPOfg S7my1/hW0PSHkTb3UpW9rR08nP3q9zRMjHjRfr1OiaU4I9FQi7moOBEAPsMgodwCAAA= X-Content-Filtered-By: Mailman/MimeDel 2.1.22 Subject: Re: writing EDK compatible application. X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Jul 2017 21:29:06 -0000 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable > On Jul 4, 2017, at 11:13 AM, Amit kumar wrote: >=20 > Hey, > I just can find any spec on ConsoleControl protocol, can you tell = what/where to refer ? Amit, It was defined as part of the Tiano stuff, so that is Intel Framework, = and it did not make it to the PI spec or edk2 open source.=20 The definition of the protocol is here. That should be enough = documentation.=20 = https://github.com/tianocore/edk2/blob/master/EdkCompatibilityPkg/Foundati= on/Protocol/ConsoleControl/ConsoleControl.h The entry point has never changed for (U)EFI, but remember in the edk2 = the AutoGen.c code (build generated in the build output) actually calls = library constructors and then calls your entry point. The issue I've = seen trying to run edk2 code on older machines is the library = constructor will error out and the App will not launch.=20 If you want to make an Application that does not call the library = constructors you need to name the entry point _ModuleEntryPoint, and = don't list UefiApplicationEntryPoint in the [LibraryClasses] section of = the INF file. Not to mention I'd leave off PcdLib too as that is an edk2 = open source concept originally.=20 Thanks, Andrew Fish > Amit > On Jul 4, 2017, at 11:25 PM, Amit kumar >> wrote: >=20 > Thanks for the suggestion Marvin, I will try switching to text mode. > Amit > On Jul 4, 2017, at 11:21 PM, Marvin H=C3=A4user = >> wrote: >=20 > Well, if EFI Shell 1.0 works, why not use it? > Mac EFI exposes the ConsoleControl protocol, which lets you switch = between text and graphics mode. > That might be the reason your text outputs don't show, because = graphics is the default mode on Mac EFI, > though I could never test this myself as I lack the hardware. >=20 > Regards, > Marvin. >=20 > -----Original Message----- > From: Amit kumar [mailto:akamit91@hotmail.com = ] > Sent: Tuesday, July 4, 2017 7:46 PM > To: Marvin H?user >> > Cc: edk2-devel@lists.01.org = > > Subject: Re: [edk2] writing EDK compatible application. >=20 > Hi, > Yes intact it=E2=80=99s MacBook, but is there another way to do it = without UEFI shell. > In edk2/shellpkgbin are 2.2+, even shell fails to execute on Mac. > Although efi shell 1.0 works. Is there a to do it without shell ? > Thanks > Amit > On Jul 4, 2017, at 11:05 PM, Marvin H?user > >> wrote: >=20 > Hey, >=20 > The entry point declarations and the calling conventions have not = changed > since EFI 1.10, though X64 was not a supported platform for 1.10 if I > remember correctly. > To be honest, I never saw an x64 EFI 1.10 implementation other than > Apple's, though even if it still signals that version, it's actually = more UEFI by > now. > I don't own a Mac, so if it's the platform you tested your app on, I = can't tell > you why it didn't work, but I would suggest you to run the app from an = EFI > Shell. >=20 > Regards, > Marvin. >=20 > -----Original Message----- > From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org = ] On Behalf > Of Amit kumar > Sent: Tuesday, July 4, 2017 7:21 PM > To: edk2-devel@lists.01.org = > > Subject: [edk2] writing EDK compatible application. >=20 >=20 > HI, >=20 > I have written a code (say helloworld program ) using edk2 framework, > named the output efi file as BOOTx64.efi and placed it on a removable > media in EFI/BOOT/ directory so that the application is listed in one = time > boot menu. > When selected from boot menu it prints "Hello World". > Which works as expected when tested on UEFI 2.3 and above platforms. > But the same code fails to execute on EFI 1.10 platforms. Which i > suppose is the problem with application entry point. > Can somebody suggest me a way so that the application entry function > can be compatible to both the platform. Even when written according > to UEFI 2.5+ Spec ? >=20 > Thanks > Amit > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org = > > https://lists.01.org/mailman/listinfo/edk2-devel = >=20 >=20 > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org = > > https://lists.01.org/mailman/listinfo/edk2-devel = >=20 > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel =