From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=192.55.52.115; helo=mga14.intel.com; envelope-from=liming.gao@intel.com; receiver=edk2-devel@lists.01.org Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) (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 75E3720961854 for ; Fri, 18 May 2018 01:50:12 -0700 (PDT) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 18 May 2018 01:50:11 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,413,1520924400"; d="scan'208";a="229701387" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by fmsmga006.fm.intel.com with ESMTP; 18 May 2018 01:50:11 -0700 Received: from fmsmsx157.amr.corp.intel.com (10.18.116.73) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.319.2; Fri, 18 May 2018 01:50:11 -0700 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by FMSMSX157.amr.corp.intel.com (10.18.116.73) with Microsoft SMTP Server (TLS) id 14.3.319.2; Fri, 18 May 2018 01:50:11 -0700 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.240]) by SHSMSX101.ccr.corp.intel.com ([169.254.1.40]) with mapi id 14.03.0319.002; Fri, 18 May 2018 16:50:09 +0800 From: "Gao, Liming" To: "methavanitpong.pipat@socionext.com" , "edk2-devel@lists.01.org" CC: "ard.biesheuvel@linaro.org" Thread-Topic: How to retrieve HII form's default value Thread-Index: AdPuTR9od8F9KC78QkObOIS+yPIygQAN4aLA Date: Fri, 18 May 2018 08:50:08 +0000 Message-ID: <4A89E2EF3DFEDB4C8BFDE51014F606A14E22C278@SHSMSX104.ccr.corp.intel.com> References: In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: How to retrieve HII form's default value X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 May 2018 08:50:14 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Intel provides FCE tool. It can parse the generated BIOS image and output t= he default value for every HII question. You can try it.=20 Here is the latest version https://firmware.intel.com/sites/default/files/2= 018-WW13-FCE.34-Release.zip >-----Original Message----- >From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of >methavanitpong.pipat@socionext.com >Sent: Friday, May 18, 2018 10:09 AM >To: edk2-devel@lists.01.org >Cc: ard.biesheuvel@linaro.org >Subject: [edk2] How to retrieve HII form's default value > >Hi, > >I'm working on changing SynQuacer/PlatformDxe initial HII configuration. > >In the current implementation, SynQuacerPlatformSettings HII variable >doesn't set its initial value from PcdPlatfromSettings. > >* PcdPlatformSettings is initially set with value in dsc at build time > > * https://github.com/tianocore/edk2- >platforms/blob/master/Platform/Socionext/DeveloperBox/DeveloperBox.dsc >#L439 > >* SynQuacerPlatformSettings is initially set to zeros at run time > > * https://github.com/tianocore/edk2- >platforms/blob/master/Silicon/Socionext/SynQuacer/Drivers/PlatformDxe/Pl >atformDxe.c#L246 > >They are unsync, but are both initially assigned to 0 independently. > >What I want to do with this issue is > >* Set initial SynQuacerPlatformSettings value from its > SYNQUACER_PLATFORM_FORMSET_GUID form's default value >* Set initial PcdPlatformSettings value from its > SYNQUACER_PLATFORM_FORMSET_GUID form's default value > >Could anyone give me an advice on retrieving default value from a HII form >and assign in C and DSC files? > > >Thanks, >-- >Pipat Methavanitpong >Software Developer, S-Project 3 >Socionext Inc. >_______________________________________________ >edk2-devel mailing list >edk2-devel@lists.01.org >https://lists.01.org/mailman/listinfo/edk2-devel