From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-in25.apple.com (mail-out25.apple.com [17.171.2.35]) (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 CD05C21A09105 for ; Mon, 5 Jun 2017 08:27:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; d=apple.com; s=mailout2048s; c=relaxed/simple; q=dns/txt; i=@apple.com; t=1496676496; 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=zObcL+nHYHc+DNK/FukAT6dq+zk1cZWU1kmzIWAUMYo=; b=rxbPZZZ95oR+PSpBMre8+rmCBfChimCpGtkuiKKTJCjv7yw4HKr5BFVO1KG38jY0 aF9MaIWgWsB81LNrMDzEe/HNjJmY0HnUBHQ0XXPkFk/J6JO25Mt6sqcXijMGkj0o N3K6RqKhTnNVtdqOxsrK+MyBGG5Y3g1xr6Xqb08cMgn2WK6M13qtqNwLutU80Snd sxaMFS+/QFk977V+mF42+w9idMoIDD6OjMKapUuKG/Zomd1DT5sznDLY3wkVLwZ/ wYuL9tqeUXJXcpk3p0MRGwi11iq53RgiWHDRXncTmJpQBLb24x3H4n1kC4AmwKMz iDOlqFcvE2JkOvTjTtLEfQ==; Received: from relay8.apple.com (relay8.apple.com [17.128.113.102]) (using TLS with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mail-in25.apple.com (Apple Secure Mail Relay) with SMTP id E9.0B.02110.09875395; Mon, 5 Jun 2017 08:28:16 -0700 (PDT) X-AuditID: 11ab0219-4546b9a00000083e-41-5935789016f4 Received: from nwk-mmpp-sz13.apple.com (nwk-mmpp-sz13.apple.com [17.128.115.216]) by relay8.apple.com (Apple SCV relay) with SMTP id 50.8B.21490.F8875395; Mon, 5 Jun 2017 08:28:16 -0700 (PDT) MIME-version: 1.0 Received: from [17.153.22.207] (unknown [17.153.22.207]) by nwk-mmpp-sz13.apple.com (Oracle Communications Messaging Server 8.0.1.2.20170210 64bit (built Feb 10 2017)) with ESMTPSA id <0OR200AJ7YZ2EO10@nwk-mmpp-sz13.apple.com>; Mon, 05 Jun 2017 08:28:15 -0700 (PDT) Sender: afish@apple.com From: Andrew Fish Message-id: <6525C3C0-AA65-46AF-8A7A-A57CABDFAF6C@apple.com> Date: Mon, 05 Jun 2017 08:28:14 -0700 In-reply-to: Cc: "edk2-devel@lists.01.org" To: Amit kumar References: X-Mailer: Apple Mail (2.3273) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrKLMWRmVeSWpSXmKPExsUi2FCYpjuhwjTSYOZaU4t9r3cyWew5dJTZ gcnjcc8ZNo/u2f9YApiiuGxSUnMyy1KL9O0SuDLWb/7MVjDNoGLO7a3MDYzzNLsYOTkkBEwk Jh1axNzFyMUhJLCWSaJzxU4WmMS39x9ZIRKHGCV2/tnIDpLgFRCU+DH5HlgRs0CYxJ6DnewQ RROZJJaumcIGkhAWEJd4d2YTM4jNJqAssWL+B6hmG4kz/SsZIWrCJWZO3swEYrMIqEr0bbkP NpRTIF7i8c3prBALzCVmXPgCViMCVNPfPgVsjpBAnMSnHSfZIC6Vlbg1+xLYCxICe9gktrV2 Mk5gFJqF5NhZSI6FsLUkvj9qBYpzANnyEgfPy0KENSWe3fsEVaIt8eTdBdYFjGyrGIVzEzNz dDPzjEz1EgsKclL1kvNzNzGC4mE1k+QOxq+vDQ8xCnAwKvHw3ogxjRRiTSwrrsw9xCjNwaIk zvv5oVGkkEB6YklqdmpqQWpRfFFpTmrxIUYmDk6pBsYEqbq/eUKndj6/5nXSYFk+5zWZzLrn /zzFnLa9NLzpUB52+vAKexnXyox8EX/j05P3r7nL8/T4M863FUWcO8KDTsd+3V8mul70nBGj X47fhUlZR3dc2uYckRN1xXdtkvU9tmv726RFJDSnezprc/Ec7RB4wfxVUZqJ50rQmQcVW2pC HWasuKvEUpyRaKjFXFScCACoZGPlaAIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrHIsWRmVeSWpSXmKPExsUi2FB8Q3dChWmkwaH7Ahb7Xu9ksthz6Ciz A5PH454zbB7ds/+xBDBFcdmkpOZklqUW6dslcGWs3/yZrWCaQcWc21uZGxjnaXYxcnJICJhI fHv/kbWLkYtDSOAQo8TOPxvZQRK8AoISPybfYwGxmQXCJPYc7GSHKJrIJLF0zRQ2kISwgLjE uzObmEFsNgFliRXzP0A120ic6V/JCFETLjFz8mYmEJtFQFWib8t9sKGcAvESj29OZ4VYYC4x 48IXsBoRoJr+9ilgc4QE4iQ+7TjJBnGprMSt2ZeYJzDyz0Jy3ywk90HYWhLfH7UCxTmAbHmJ g+dlIcKaEs/ufYIq0ZZ48u4C6wJGtlWMAkWpOYmVFnqJBQU5qXrJ+bmbGMHBW5i2g7FpudUh RgEORiUe3oYo00gh1sSy4spcYCBxMCuJ8GqBhHhTEiurUovy44tKc1KLDzFOZAR6ciKzlGhy PjC28kriDU1MDEyMjc2Mjc1NzGkprCTOa7HfKFJIID2xJDU7NbUgtQjmKCYOTqkGxhXfefOP dmgHTI9d+tnTzOhxiMIk7Y9/2T+mXq8XqqzNDj/UHuDqscLsMvfLR3OO+V/+X5LeUaJpeur8 vPpV4pLfy4+5/HxwK3K3yMd3t7+qm7IdmH1kf8L/V34qImHs6z5YWjWUSryM+R9ucq9xq7ez BqPNh21yTlbfRRofZTlvSAjnMMw8osRSnJFoqMVcVJwIAFsuqu/RAgAA X-Content-Filtered-By: Mailman/MimeDel 2.1.22 Subject: Re: How to make my application automatically launch like uefi shell ? 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: Mon, 05 Jun 2017 15:27:12 -0000 Content-Type: text/plain; CHARSET=US-ASCII Content-Transfer-Encoding: 7BIT > On Jun 5, 2017, at 4:42 AM, Amit kumar wrote: > > > Hi, > > I have created a uefi application and i want to directly launch from the Pen Drive, just like uefi shell. > I made a EFI/BOOT directory in USB and copied my application in this director and name it BOOTX64.efi it seems to works in some PCs, > But there are some PCs where it doesn't work even in boot menu i can see no entry. > Can somebody help me ? > Amit, Is your test case edk2 Shell at EFI\BOOT\BOOTX64.efi vs. your App on the same USB Key. If not try that. Some of the edk2 libraries don't like to run on older systems, so it would be good to make sure that is not the issue. You can write an UEFI App without any edk2 libraries by using this as a template: https://github.com/tianocore/edk2/tree/master/MdeModulePkg/Application/HelloWorld In HelloWorld.c replace the code with. #include EFI_STATUS EFIAPI _ModuleEntryPoint ( IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable ) { return SystemTable->ConOut->OutputString (SystemTable->ConOut, L"Hello World\r\n"); } In HelloWorld.inf comment out all the library classes listed under [LibraryClasses] If the issue is specific to your App, and you know the App entry point C code is not getting called then you need to look at the library constructor. This code is auto generated by the build system in the Build results output as AutoGen.c. You can look at the ProcessLibraryConstructorList() and that will show you the code that is going be running before your entry point gets called. You could also try a release build of your App as that would remove the ASSERT macros in ProcessLibraryConstructorList() from the equation. Thanks, Andrew Fish