From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=134.134.136.100; helo=mga07.intel.com; envelope-from=jaben.carsey@intel.com; receiver=edk2-devel@lists.01.org Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) (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 8E81522568630 for ; Thu, 8 Mar 2018 07:31:10 -0800 (PST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 Mar 2018 07:37:27 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.47,441,1515484800"; d="scan'208";a="181022700" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga004.jf.intel.com with ESMTP; 08 Mar 2018 07:37:26 -0800 Received: from fmsmsx124.amr.corp.intel.com (10.18.125.39) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 8 Mar 2018 07:37:26 -0800 Received: from fmsmsx103.amr.corp.intel.com ([169.254.2.34]) by fmsmsx124.amr.corp.intel.com ([169.254.8.91]) with mapi id 14.03.0319.002; Thu, 8 Mar 2018 07:37:26 -0800 From: "Carsey, Jaben" To: Meenakshi Aggarwal , "edk2-devel@lists.01.org" Thread-Topic: ShellPkg: reconnect command resulted in hang Thread-Index: AdO2wMDVPz7L8T7dQPy5y+iSTMsyhgAMAzUgAAA+1sAAAA5rEA== Date: Thu, 8 Mar 2018 15:37:25 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiYTBhMThhODQtNTc3OS00YzllLWI4YzgtZDdmOTAxNzM2Mjk3IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE2LjUuOS4zIiwiVHJ1c3RlZExhYmVsSGFzaCI6InpCTldJTXgzYXF4WHVTaFdVSXFuYktMcnk4R0h4NHc2Ync4c0huOVZJVlU9In0= x-ctpclassification: CTP_NT x-originating-ip: [10.1.200.107] MIME-Version: 1.0 Subject: Re: ShellPkg: reconnect command resulted in hang X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Mar 2018 15:31:12 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable The rest of the drivers needed for console input are not connecting. =20 The shell is dependent on the devices in the system table it was initialize= d with for console functionality. Only when everything was disconnected do= es it know to force those to reconnect. Otherwise you have to get it right= yourself. If you look at the connect command you see the "-c" option to force EFI var= iable consoles to be reconnected properly. That doesn't exist in reconnect= , but you can get around that with a script file. You probably want to do = something like: Disconnect 20 Connect 20 -c -Jaben > -----Original Message----- > From: Meenakshi Aggarwal [mailto:meenakshi.aggarwal@nxp.com] > Sent: Thursday, March 08, 2018 7:27 AM > To: Carsey, Jaben ; edk2-devel@lists.01.org > Subject: RE: ShellPkg: reconnect command resulted in hang > Importance: High >=20 > Yes, i am connected to the device using this serial port. >=20 > > -----Original Message----- > > From: Carsey, Jaben [mailto:jaben.carsey@intel.com] > > Sent: Thursday, March 08, 2018 8:50 PM > > To: Meenakshi Aggarwal ; edk2- > > devel@lists.01.org > > Subject: RE: ShellPkg: reconnect command resulted in hang > > > > Are you using this serial port? Are you connected to the device via thi= s > serial > > port? > > > > > -----Original Message----- > > > From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf O= f > > > Meenakshi Aggarwal > > > Sent: Thursday, March 08, 2018 1:35 AM > > > To: edk2-devel@lists.01.org > > > Subject: [edk2] ShellPkg: reconnect command resulted in hang > > > Importance: High > > > > > > Hi, > > > > > > > > > I was trying reconnect shell command with UART handle [20] > > > > > > 20 R - - 0 1 1 VenHw(D3987D4B-971A-435F-8CAF- > > > 4967EB627241)/Uart(115200,8,N,1) > > > > > > Shell> reconnect 20 > > > > > > After this reconnect command, shell didnt come back, looks like a han= g. > > > I analyzed further and see that code has executed completely and > reached > > > to shell but console is not coming. > > > > > > > > > In "reconnect -r" , we are calling ConnectAllConsoles() separately > between > > > disconnect and connect calls. > > > > > > Why is this so? > > > > > > Why only connect call is nt sufficient to bring the console up? > > > > > > Please help me in understanding this. > > > > > > > > > Thanks, > > > Meenakshi > > > > > > > > > _______________________________________________ > > > edk2-devel mailing list > > > edk2-devel@lists.01.org > > > > > > https://emea01.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Flist > > s.01.org%2Fmailman%2Flistinfo%2Fedk2- > > > devel&data=3D02%7C01%7Cmeenakshi.aggarwal%40nxp.com%7C230f90d310a > > > 9476a24cc08d585080ef4%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0% > > > 7C636561192036205272&sdata=3D6pvDPfpdDAvpKVB%2BhD7xRov7Rq6x68NhG > > HeL1XRZoFE%3D&reserved=3D0