From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 134.134.136.20, mailfrom: zailiang.sun@intel.com) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by groups.io with SMTP; Wed, 10 Jul 2019 21:55:43 -0700 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Jul 2019 21:55:43 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,476,1557212400"; d="scan'208";a="156710531" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by orsmga007.jf.intel.com with ESMTP; 10 Jul 2019 21:55:42 -0700 Received: from fmsmsx152.amr.corp.intel.com (10.18.125.5) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 10 Jul 2019 21:55:42 -0700 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by FMSMSX152.amr.corp.intel.com (10.18.125.5) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 10 Jul 2019 21:55:42 -0700 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.110]) by shsmsx102.ccr.corp.intel.com ([169.254.2.3]) with mapi id 14.03.0439.000; Thu, 11 Jul 2019 12:55:40 +0800 From: "Sun, Zailiang" To: "Kinney, Michael D" , "devel@edk2.groups.io" CC: "Qian, Yi" , Gary Lin Subject: Re: [edk2-platforms Patch 28/28] Vlv2TbltDevicePkg: Update Readme.md for multiple repos Thread-Topic: [edk2-platforms Patch 28/28] Vlv2TbltDevicePkg: Update Readme.md for multiple repos Thread-Index: AQHVN1J/f/AgEe9zx0Cuajalh9AlnabE2xwg Date: Thu, 11 Jul 2019 04:55:39 +0000 Message-ID: <7CB7EF03E15B5D48981329A508747A9850C95EC1@SHSMSX104.ccr.corp.intel.com> References: <20190710190516.6012-1-michael.d.kinney@intel.com> <20190710190516.6012-29-michael.d.kinney@intel.com> In-Reply-To: <20190710190516.6012-29-michael.d.kinney@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Return-Path: zailiang.sun@intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-By: Zailiang Sun > -----Original Message----- > From: Kinney, Michael D > Sent: Thursday, July 11, 2019 3:05 AM > To: devel@edk2.groups.io > Cc: Sun, Zailiang ; Qian, Yi ; > Gary Lin > Subject: [edk2-platforms Patch 28/28] Vlv2TbltDevicePkg: Update > Readme.md for multiple repos >=20 > Update Readme.md with instructions to clone content from the edk2, edk2- > platforms, and edk2-non-osi repositories and build Vlv2TbltDevicePkg for > Windows and Linux. >=20 > Cc: Zailiang Sun > Cc: Yi Qian > Cc: Gary Lin > Signed-off-by: Michael D Kinney > --- > Platform/Intel/Vlv2TbltDevicePkg/Readme.md | 145 ++++++++++----------- > 1 file changed, 69 insertions(+), 76 deletions(-) >=20 > diff --git a/Platform/Intel/Vlv2TbltDevicePkg/Readme.md > b/Platform/Intel/Vlv2TbltDevicePkg/Readme.md > index cbbb465b69..97180ef7af 100644 > --- a/Platform/Intel/Vlv2TbltDevicePkg/Readme.md > +++ b/Platform/Intel/Vlv2TbltDevicePkg/Readme.md > @@ -42,39 +42,27 @@ the MinnowBoard MAX firmware and generates UEFI > Capsules that can be used to update the MinnowBoard MAX firmware and > three sample devices. >=20 > ``` > -git clone --recurse-submodules https://github.com/tianocore/edk2.git > +git clone https://github.com/tianocore/edk2.git > +cd edk2 > +git submodule update --init > +cd .. > +git clone https://github.com/tianocore/edk2-platforms.git > +git clone https://github.com/tianocore/edk2-non-osi.git >=20 > powershell "& {[Net.ServicePointManager]::SecurityProtocol =3D > [Net.SecurityProtocolType]::Tls12; Invoke-WebRequest -Uri > "https://indy.fulgan.com/SSL/openssl-1.0.2r-x64_86-win64.zip -OutFile > openssl-1.0.2r-x64_86-win64.zip"}" > powershell Expand-Archive openssl-1.0.2r-x64_86-win64.zip >=20 > -powershell "& {[Net.ServicePointManager]::SecurityProtocol =3D > [Net.SecurityProtocolType]::Tls12; Invoke-WebRequest -Uri > "https://firmware.intel.com/sites/default/files/MinnowBoardMax- > Development190216.zip -OutFile MinnowBoardMax- > Development190216.zip"}" > -powershell Expand-Archive MinnowBoardMax-Development190216.zip > -sleep 1 > -rename MinnowBoardMax-Development190216 Vlv2Binaries -cd > Vlv2Binaries -powershell Expand-Archive Vlv2SocBinPkg.zip . > -sleep 1 > -cd .. > - > powershell "& {[Net.ServicePointManager]::SecurityProtocol =3D > [Net.SecurityProtocolType]::Tls12; Invoke-WebRequest -Uri > "https://www.nasm.us/pub/nasm/releasebuilds/2.13.03/win64/nasm- > 2.13.03-win64.zip -OutFile nasm-2.13.03-win64.zip"}" > powershell Expand-Archive nasm-2.13.03-win64.zip . >=20 > -mkdir Conf > - > set WORKSPACE=3D%CD% > -set EDK_TOOLS_PATH=3D%WORKSPACE%\edk2\BaseTools > -set EDK_TOOLS_BIN=3D%EDK_TOOLS_PATH%\BinWrappers\WindowsLike > -set PACKAGES_PATH=3D%WORKSPACE%\edk2;%WORKSPACE%\Vlv2Binaries > -path=3D%path%;%EDK_TOOLS_PATH%\Bin\Win32;%WORKSPACE%\openssl- > 1.0.2r-x64_86-win64 > +set > +PACKAGES_PATH=3D%WORKSPACE%\edk2;%WORKSPACE%\edk2- > platforms\Silicon\Intel > +;%WORKSPACE%\edk2-platforms\Platform\Intel;%WORKSPACE%\edk2- > non-osi\Sil > +icon\Intel > +path=3D%path%;%WORKSPACE%\openssl-1.0.2r-x64_86-win64 > set NASM_PREFIX=3D%WORKSPACE%\nasm-2.13.03\ >=20 > -cd %WORKSPACE%\edk2 > +cd edk2-platforms\Platform\Intel\Vlv2TbltDevicePkg >=20 > -call edkSetup.bat Rebuild > - > -cd Vlv2TbltDevicePkg > - > -Build_IFWI.bat /m /y MNW2 Debug > +Build_IFWI.bat /m MNW2 Debug > ``` >=20 > Once all the code and tools are downloaded and installed, only the follo= wing > @@ -83,48 +71,50 @@ directory used to install the source and binaries. >=20 > ``` > set WORKSPACE=3D%CD% > -set EDK_TOOLS_PATH=3D%WORKSPACE%\edk2\BaseTools > -set EDK_TOOLS_BIN=3D%EDK_TOOLS_PATH%\BinWrappers\WindowsLike > -set PACKAGES_PATH=3D%WORKSPACE%\edk2;%WORKSPACE%\Vlv2Binaries > -path=3D%path%;%EDK_TOOLS_PATH%\Bin\Win32;%WORKSPACE%\openssl- > 1.0.2r-x64_86-win64 > +set > +PACKAGES_PATH=3D%WORKSPACE%\edk2;%WORKSPACE%\edk2- > platforms\Silicon\Intel > +;%WORKSPACE%\edk2-platforms\Platform\Intel;%WORKSPACE%\edk2- > non-osi\Sil > +icon\Intel > +path=3D%path%;%WORKSPACE%\openssl-1.0.2r-x64_86-win64 > set NASM_PREFIX=3D%WORKSPACE%\nasm-2.13.03\ > - > -cd %WORKSPACE%\edk2 > - > -call edkSetup.bat Rebuild > ``` >=20 > Once the environment is setup, the MinnowBoard MAX firmware and > capsules can be rebuilt using the following commands. >=20 > -* Build Debug Image > +* Build X64 Debug Image with report file >=20 > ``` > -cd Vlv2TbltDevicePkg > +cd edk2-platforms\Platform\Intel\Vlv2TbltDevicePkg > Build_IFWI.bat /m /y MNW2 Debug > ``` >=20 > -* Build Release Image > +* Build X64 Release Image with build log >=20 > ``` > -cd Vlv2TbltDevicePkg > -Build_IFWI.bat /m /y MNW2 Release > +cd edk2-platforms\Platform\Intel\Vlv2TbltDevicePkg > +Build_IFWI.bat /m /l MNW2 Release > ``` >=20 > -The generated firmware image is the newest `.bin` file in > `edk2/Vlv2TbltDevicePkg/Stitch`. > -The file is in the form `MNW2MAX1.X64.0084.D01..bin`. > +* Build IA32 Debug Image >=20 > -The CapsuleApp and generated UEFI Capsules are in > `Build/Vlv2TbltDevicePkg/Capsules` > +``` > +cd edk2-platforms\Platform\Intel\Vlv2TbltDevicePkg > +Build_IFWI.bat /m /IA32 MNW2 Debug > +``` > + > +The generated firmware image is the build output directory below > +WORKSPACE. For exampple, the X64 Debug Image is at: > + > +`Build\Vlv2TbltDevicePkg\DEBUG_VS2015x86\FV\Vlv.ROM` > + > +And the IA32 Release image is at: > + > +`Build\Vlv2TbltDevicePkgIA32\RELEASE_VS2015x86\FV\Vlv.ROM` > + > +The X64 CapsuleApp and generated UEFI Capsules are in the directory > + > +`Build\Vlv2TbltDevicePkg\Capsules` >=20 > # Linux Pre-requisites >=20 > -* The tool GenBiosId has a dependency on libc.so.6. Make sure it is ins= talled. > - Here are a few example installation commands: > - > - sudo dnf install libc.so.6 > - > - apt-get install libc:i386 > - > # Download and Build MinnowMax using Linux/GCC >=20 > Run the script below from an empty directory. The script clones the EDK= II > @@ -134,24 +124,18 @@ the MinnowBoard MAX firmware and generates > UEFI Capsules that can be used to update the MinnowBoard MAX firmware > and three sample devices. >=20 > ``` > -git clone --recurse-submodules https://github.com/tianocore/edk2.git > - > -mkdir Vlv2Binaries > -cd Vlv2Binaries > -wget https://firmware.intel.com/sites/default/files/MinnowBoardMax- > Development190216.zip > -unzip MinnowBoardMax-Development190216.zip > -unzip Vlv2SocBinPkg.zip > - > -cd .. > -mkdir Conf > - > -export WORKSPACE=3D$PWD/edk2 > -export PACKAGES_PATH=3D$PWD/Vlv2Binaries > -export EDK_TOOLS_PATH=3D$WORKSPACE/BaseTools > - > +git clone https://github.com/tianocore/edk2.git > cd edk2 > -cd Vlv2TbltDevicePkg > -. Build_IFWI.sh MNW2 Debug > +git submodule update --init > +cd .. > +git clone https://github.com/tianocore/edk2-platforms.git > +git clone https://github.com/tianocore/edk2-non-osi.git > + > +export WORKSPACE=3D$PWD > + > +cd edk2-platforms/Platform/Intel/Vlv2TbltDevicePkg > + > +./Build_IFWI.sh /m MNW2 Debug > ``` >=20 > Once all the code is downloaded and installed, only the following comman= ds > are @@ -160,35 +144,44 @@ install the source and binaries. >=20 > ``` > export WORKSPACE=3D$PWD/edk2 > -export PACKAGES_PATH=3D$PWD/Vlv2Binaries > -export EDK_TOOLS_PATH=3D$WORKSPACE/BaseTools > - > -cd edk2 > -cd Vlv2TbltDevicePkg > ``` >=20 > Once the environment is setup, the MinnowBoard MAX firmware and > capsules can be rebuilt using the following commands. >=20 > +* Build X64 Debug Image with report file >=20 > -* Build Debug Image > +``` > +cd edk2-platforms/Platform/Intel/Vlv2TbltDevicePkg > +./Build_IFWI.sh /m /y MNW2 Debug > +``` > + > +* Build X64 Release Image with build log >=20 > ``` > -cd Vlv2TbltDevicePkg > -./Build_IFWI.sh MNW2 Debug > +cd edk2-platforms/Platform/Intel/Vlv2TbltDevicePkg > +./Build_IFWI.sh /m /l MNW2 Release > ``` >=20 > -* Build Release Image > +* Build IA32 Debug Image >=20 > ``` > -cd Vlv2TbltDevicePkg > -./Build_IFWI.sh MNW2 Release > +cd edk2-platforms/Platform/Intel/Vlv2TbltDevicePkg > +./Build_IFWI.sh /m /IA32 MNW2 Debug > ``` >=20 > -The generated firmware image is the > `MNW2MAX_X64_D_0084_01_GCC.bin` file in - > `edk2\Vlv2TbltDevicePkg\Stitch` > +The generated firmware image is the build output directory below > +WORKSPACE. For exampple, the X64 Debug Image is at: > + > +`Build/Vlv2TbltDevicePkg/DEBUG_GCC5/FV/Vlv.ROM` > + > +And the IA32 Release image is at: > + > +`Build/Vlv2TbltDevicePkgIA32/RELEASE_GCC5/FV/Vlv.ROM` > + > +The X64 CapsuleApp and generated UEFI Capsules are in the directory >=20 > -The CapsuleApp and generated UEFI Capsules are in > `Build\Vlv2TbltDevicePkg\Capsules` > +`Build/Vlv2TbltDevicePkg/Capsules` >=20 > # Use DediProg to update FLASH image on a MinnowBoard MAX Target >=20 > -- > 2.21.0.windows.1