From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) (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 B7AD181C1C for ; Thu, 12 Jan 2017 08:49:52 -0800 (PST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga105.fm.intel.com with ESMTP; 12 Jan 2017 08:49:51 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,219,1477983600"; d="scan'208";a="29585506" Received: from orsmsx101.amr.corp.intel.com ([10.22.225.128]) by orsmga002.jf.intel.com with ESMTP; 12 Jan 2017 08:49:51 -0800 Received: from orsmsx152.amr.corp.intel.com (10.22.226.39) by ORSMSX101.amr.corp.intel.com (10.22.225.128) with Microsoft SMTP Server (TLS) id 14.3.248.2; Thu, 12 Jan 2017 08:49:51 -0800 Received: from orsmsx113.amr.corp.intel.com ([169.254.9.27]) by ORSMSX152.amr.corp.intel.com ([169.254.8.156]) with mapi id 14.03.0248.002; Thu, 12 Jan 2017 08:49:51 -0800 From: "Kinney, Michael D" To: "Iddamsetty, Aravind (Artesyn)" , "Kinney, Michael D" CC: "edk2-devel@lists.01.org" Thread-Topic: update capsule image on Quark SoC x1000 Gen2 Thread-Index: AdJqdYaXfCKo9kCMTmyXl7N+We/XRQB0Qe8wABlb4pAAEewAMA== Date: Thu, 12 Jan 2017 16:49:50 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ctpclassification: CTP_IC x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMTYyMzkyYWUtYTU2My00M2U3LWI2MWYtZGE4MWRmNWUzODU2IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6IlZjZmJ6Sjd2bWN4ZFdVY1wvV0h0V1ZpUTM5UjJwVm5SUXVDVUxcL0FJTkRKaz0ifQ== x-originating-ip: [10.22.254.140] MIME-Version: 1.0 Subject: Re: update capsule image on Quark SoC x1000 Gen2 X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jan 2017 16:49:52 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Aravind, What is the instruction before and at EIP? The exception dump you provided below says: IA32 Exception Type - 00(#DE - Divide Error) So we need to find the instruction that generated that=20 exception type. Mike > -----Original Message----- > From: Iddamsetty, Aravind (Artesyn) [mailto:Aravind.Iddamsetty@Artesyn.co= m] > Sent: Thursday, January 12, 2017 12:30 AM > To: Kinney, Michael D > Cc: edk2-devel@lists.01.org > Subject: RE: update capsule image on Quark SoC x1000 Gen2 >=20 > Hi Mike, >=20 > Thank you for your response. >=20 > The issue that I am facing is not on Galileo Gen2 but on our custom board= which > has Quark Soc x1000 same as that on Galileo Gen2. I am able to do a Capsu= le > update on Galileo Gen2, but when I try on our custom board it throws me t= he error > that I have shared earlier. >=20 > I have connected a flyswatter2 debugger and analyzed the EIP (EIP - 3F8E= E1DC) > when the exception occurred, this is pointing to below line from the file > MdeModulePkg/Library/BaseSerialPortLib16550/BaseSerialPortLib16550.c line= 639 >=20 > while ((SerialPortReadRegister (SerialRegisterBase, R_UART_LSR) & > B_UART_LSR_TEMT) =3D=3D 0); >=20 > Thanks & Regards, > Aravind. >=20 > -----Original Message----- > From: Kinney, Michael D [mailto:michael.d.kinney@intel.com] > Sent: Thursday, January 12, 2017 1:54 AM > To: Iddamsetty, Aravind [ENGINEERING/IN]; edk2-devel@lists.01.org; Kinney= , > Michael D > Subject: RE: update capsule image on Quark SoC x1000 Gen2 >=20 > Aravind, >=20 > I am trying to reproduce this issue and so far everything works for me. >=20 > I pulled the sources this morning (df3f02df1bde40c2a0d486d3ca6bd529c36540= 49) >=20 > I did the following build command (I am using VS2015x86 by default) >=20 > build -a IA32 -n 5 -t VS2015x86 -p QuarkPlatformPkg\Quark.dsc -D > CAPSULE_ENABLE >=20 > After the build, I copied the following 2 files to the root of a USB flas= h drive: >=20 > CapsuleApp.efi > QUARKFIRMWAREUPDATECAPSULEFMPPKCS7.Cap >=20 > I booted Galileo Gen2 to the UEFI Shell, and selected FS1: for my USB fla= sh drive > and ran the following command: >=20 > FS1:> CapsuleApp.efi QUARKFIRMWAREUPDATECAPSULEFMPPKCS7.Cap >=20 > I do not have VS2010 installed. I did try VS2008 and that worked as well= . >=20 > Please verify that you have the latest VS2010 service packs installed. >=20 > Best regards, >=20 > Mike >=20 >=20 >=20 > > -----Original Message----- > > From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of > > Iddamsetty, Aravind (Artesyn) > > Sent: Monday, January 9, 2017 4:40 AM > > To: edk2-devel@lists.01.org > > Subject: [edk2] update capsule image on Quark SoC x1000 Gen2 > > > > Hello, > > > > I am trying to update Bios flash from UEFI shell. I get the following e= rror. > > Kindly need help on this. > > > > Evaluate DXE DEPEX for FFS(378D7B65-8DA9-4773-B6E4-A47826A833E1) > > PUSH GUID(1E5668E2-8481-11D4-BCF1-0080C73C8881) =3D FALSE > > PUSH GUID(6441F818-6362-4E44-B!!!! IA32 Exception Type - 00(#DE - > > Divide Error) CPU Apic ID - 00000000 !!!! > > EIP - 3F8EE1DC, CS - 00000010, EFLAGS - 00000246 EAX - 9000B000, > > ECX - 00000042, EDX - 00000010, EBX - 0000003B ESP - 3F8DADD4, EBP - > > 3F8DAEE4, ESI - 3F8DAE04, EDI - 0000001B > > DS - 00000008, ES - 00000008, FS - 00000008, GS - 00000008, SS - 0= 0000008 > > CR0 - 00000013, CR2 - 00000000, CR3 - 00000000, CR4 - 00000000 > > DR0 - 00000000, DR1 - 00000000, DR2 - 00000000, DR3 - 00000000 > > DR6 - FFFF0FF0, DR7 - 00000400 > > GDTR - 3F839E90 00000047, IDTR - 3F577010 000007FF LDTR - 00000000, TR > > - 00000000 FXSAVE_STATE - 3F8DAB10 !!!! Find PE image > > c:\sspro\build\Build\SSPRO- > > MINI\DEBUG_VS2010x86\IA32\MdeModulePkg\Core\Dxe\DxeMain\DEBUG\DxeCore. > > pdb (ImageBase=3D3F8DB000, EntryPoint=3D3F8DB260) !!!! > > > > > > > > Command used : CapsuleApp QUARKFIRMWAREUPDATECAPSULEFMPPKCS7.Cap > > > > > > Thanks & Regards, > > Aravind > > _______________________________________________ > > edk2-devel mailing list > > edk2-devel@lists.01.org > > https://lists.01.org/mailman/listinfo/edk2-devel