From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=40.107.2.49; helo=eur02-ve1-obe.outbound.protection.outlook.com; envelope-from=udit.kumar@nxp.com; receiver=edk2-devel@lists.01.org Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20049.outbound.protection.outlook.com [40.107.2.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id EB856211944D6 for ; Wed, 28 Nov 2018 19:09:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=MnigyVS7pfK+0ZnriDjhKKMM7iyr2CiZ3Eo5MZ1pc44=; b=WIqtlJcjDcUZtiL4JqALOG8bEZeNYvLHHR/C2ZXPhN7Hd+brMaZrZBP4z6RsaGf5uv8739rLWAvE2n7HycE0Cg73mRLsbXbAU0uOFE+mtmN3D57+wNRl368NXCyMmOwBlLPxoO+uaodFXeGMj473orQ3BBW9OgDmDVSfT3YOG18= Received: from VI1PR04MB4640.eurprd04.prod.outlook.com (20.177.56.27) by VI1PR04MB2973.eurprd04.prod.outlook.com (10.170.228.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1382.18; Thu, 29 Nov 2018 03:09:10 +0000 Received: from VI1PR04MB4640.eurprd04.prod.outlook.com ([fe80::1dd2:4456:83ee:1bd5]) by VI1PR04MB4640.eurprd04.prod.outlook.com ([fe80::1dd2:4456:83ee:1bd5%2]) with mapi id 15.20.1361.019; Thu, 29 Nov 2018 03:09:10 +0000 From: Udit Kumar To: "afish@apple.com" CC: "edk2-devel@lists.01.org" , "Ni, Ruiyu" , "Zeng, Star" Thread-Topic: [edk2] Help on boot manager 'Boot Manager Menu' and direct boot Thread-Index: AdSHg0k7FIdYjvhMTnKhEGKI92+okQAAt0oAAAKqe5A= Date: Thu, 29 Nov 2018 03:09:09 +0000 Message-ID: References: <2EF700E0-AF34-498C-B740-406BE5BA0839@apple.com> In-Reply-To: <2EF700E0-AF34-498C-B740-406BE5BA0839@apple.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=udit.kumar@nxp.com; x-originating-ip: [47.30.100.229] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; VI1PR04MB2973; 6:6TUUWlKtj/juFMidhOiG3GRHtYdSK3FN4/as4zFakeN2nktmGEn9EsYjUAn4bTd6IKKWMLQH53nHwxpeWaMNdchnw3goKkv1T8tJIIFH9GGvhPJSHgDEU50wiVBVwT571Lvq34r0PwnWPiVuDDIlpVh8e27v+LiYwT1KF/b5sSzl3h4ogB5yqGvPr8nIuOO9xap1yfaXCZB+UUqkT+pLDYHLCdj69Gk+Yyayel6omWYMwRDo35yi2iYivpNgcZSDzFZAMdLL6xZuCG6bYJvbrXqn2z/uQaBwclkRXTf0IpdIa5Dlgl//2pQFXIvF/XV0gl8pmoxjTifA9/TZFXVJ3fERnLCsSuLvtaoKnqt+3cw8s1BWGAoKELSnVj46/OT8ilywtxBK4fFWhyX71pDx19Dar8TTuKt/88aGu6b66EjHHRue3Z9qLuMUgJ7nca56FQy6fpUPn52DdaxtoAjneA==; 5:bJV5/ngWwTgN6L0HIqEQw/4OB1jYhSSp9Egd811KcZsoO9mnLtFuXT3DfGwgnKb6/4/18EMhwypQuUdjvknDeB3dAZ8at926ORJYb+nU3pgTluSyzp0scE0LM3QirmkHYvMJdoFZr9XAR0415O6ta3ggpoiq5EsH9Nl2Wo0KpjU=; 7:k400TTOaIZlLSKI3H4up0my1PiHL0jD8gRkIarzoOeZ12HxW8OEUatjrP/iQ2tkahNowor3YYFj1l7uBzgG4VjiAtrI8+5rU4pGVGDvgG8hox3N/QYbR3Rkb/4ZsgQmqdn8ENj4R9gM2UeawCi1fqw== x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: c5cb0e69-a925-46ef-c13a-08d655a80840 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390098)(7020095)(4652040)(8989299)(5600074)(711020)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020); SRVR:VI1PR04MB2973; x-ms-traffictypediagnostic: VI1PR04MB2973: x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(3002001)(3231453)(999002)(944501410)(52105112)(10201501046)(6055026)(148016)(149066)(150057)(6041310)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123558120)(20161123564045)(201708071742011)(7699051); SRVR:VI1PR04MB2973; BCL:0; PCL:0; RULEID:; SRVR:VI1PR04MB2973; x-forefront-prvs: 0871917CDA x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(366004)(376002)(136003)(396003)(39860400002)(346002)(189003)(199004)(13464003)(69234005)(2351001)(229853002)(44832011)(554214002)(476003)(25786009)(45080400002)(186003)(66066001)(102836004)(26005)(99286004)(53546011)(478600001)(316002)(6506007)(68736007)(966005)(81156014)(486006)(11346002)(446003)(4326008)(8676002)(1730700003)(81166006)(14454004)(71200400001)(54906003)(6246003)(2501003)(74316002)(71190400001)(55016002)(6916009)(5660300001)(8936002)(3846002)(6116002)(14444005)(256004)(6436002)(33656002)(86362001)(105586002)(7696005)(106356001)(2906002)(53936002)(7736002)(97736004)(5640700003)(305945005)(6306002)(9686003)(76176011); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR04MB2973; H:VI1PR04MB4640.eurprd04.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: oozFVfErJhTmVvbiLk1HHeqgGDjyfZkcAAJ1TaT9gcS6NJN/8QEF12r3qWN5H+Pgepshr5vEOdM7i9BEJuPrIwkH6ibEip6DHURM2/lwfEGDOIeuQWIYcsPh5YqZirRtVRodWgGcsZGO9KglT5I3ovGGVtuDFW82Bn3JhWrpgUVb+5yZtaWAKYRHZzs9jSo52iJHVXQBywLCIGA+gdWnnP7f/C/uddMmRCucUBtjqydtgkTXp7wrvDfeHLsFWzdr7DjA922h1ZyHtJk9dZe8wCUssSaFHEl8iWC7ewAGrmfr3NI0xl1cOI+NaurQIO8Hf5fx9Hk83qe3heKdrQfMrw== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: c5cb0e69-a925-46ef-c13a-08d655a80840 X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Nov 2018 03:09:09.9738 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB2973 Subject: Re: Help on boot manager 'Boot Manager Menu' and direct boot X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Nov 2018 03:09:15 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Thanks for pointers Andrew But if I use emulated runtime variables or say efi=3Dnoruntime, I am gettin= g same behavior. On device tree, I see device tree same in both cases. In case of direct boot, only user space console is corrupted whereas kernel= space console already prints good characters. FYI,=20 Both user space and kernel space are on same kermit session Regards Udit > -----Original Message----- > From: afish@apple.com > Sent: Thursday, November 29, 2018 7:22 AM > To: Udit Kumar > Cc: edk2-devel@lists.01.org; Ni, Ruiyu ; Zeng, Star > > Subject: Re: [edk2] Help on boot manager 'Boot Manager Menu' and direct b= oot >=20 > Udit, >=20 > Memory map differences would be expected as UiApp.efi is going to allocat= e > memory too. The OS Loader starts off as an EFI Application so it needs to= know > EFI time allocations in addition to what allocations are legal for the OS= to use. >=20 > In general how EFI communicates with the OS is via EFI NVRAM Variables. Y= ou > can look at the Table in section "3.3 Globally Defined Variables" of the = UEFI > Spec. The OSprot will also figure out information about the platform from= ACPI > tables published by the EFI firmware. Also the OS Loader is an EFI App so= it can > access any protocol mentioned in the UEFI Spec. So form example on a Unix= like > OS the OS Loader may construct a Device Tree and pass it up to the kernel= . It is > going to be the code in the OS loader that does all this magic. If your w= orking > with a FOSS OS you may want to try and dump that device tree, and see if > something is different. Then you could try to figure out the code in the = OS > Loader that produces that part of the device tree. >=20 > Thanks, >=20 > Andrew Fish >=20 > > On Nov 28, 2018, at 5:42 PM, Udit Kumar wrote: > > > > Hi , > > I am looking for information/Help. If UEFI passed different > > information to OS, in below boot path > > > > 1. Enter into Setup menu (By pressing Esc key), On display of > > UiApp.efi on console, select device to boot OS 2. Let the boot OS > > without user intervention from same device as of 1 > > > > I could see, UEFI pass different memory map in case of 1 and 2. > > Is there some other/extra information is being shared with OS/OS Loader= . > > > > For me, if I use 1) for booting then OS boots okay, If I use option > > 2) for booting then when user-space prints are printed as garbage. > > Whereas kernel space prints are good on serial console > > > > Thanks > > Udit > > _______________________________________________ > > edk2-devel mailing list > > edk2-devel@lists.01.org > > https://emea01.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fli= s > > ts.01.org%2Fmailman%2Flistinfo%2Fedk2- > devel&data=3D02%7C01%7Cudit.ku > > > mar%40nxp.com%7C2188b5d2f4cb4c3fafbf08d6559d53d7%7C686ea1d3bc2b4c > 6fa92 > > > cd99c5c301635%7C0%7C0%7C636790531534117827&sdata=3DlD8yDYmuqO > hf5co6y > > gkjTV9HTi1Kft8y4xJFOgU6TJE%3D&reserved=3D0