From nobody Sat Apr 20 00:52:28 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+43522+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+43522+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1562785525; cv=none; d=zoho.com; s=zohoarc; b=iDI/ADgWbCmqpsUSeDmC9VRiooWMOjRrBGSXkyty2u06kApFCDAFEdlrlfFRNiR0FH/ApaS43tx1CsQeXG+hFS+u8Dndge9bigNqqSh9pS4AgIf4xE7oJmTGQPDAy0zX7hp1SA45EVK0E5686TGhIj+uCBqoOvPRlb9iM75rYNo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1562785525; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To:ARC-Authentication-Results; bh=QFNuw3SvJ3eUaeNJSW+RPtxuBb8CY69yN8rx4pkNK+Q=; b=f2luvJSLpfgsj7al38xuVj40viuVBP98tAmPL0N/POufTLI467xSDfZPIpFeS2RI4P5g1hH3OQD80NnrAiM8y+fKvhfdtzgGaA7/0C/pab1GlNHYHjdt9evAAytg2GQ59ji+hTste+f4DXDqYw/VtXg5Cn5vHW74L1iMOn0VMb8= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+43522+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1562785525046112.71662882480393; Wed, 10 Jul 2019 12:05:25 -0700 (PDT) Return-Path: X-Received: from mga04.intel.com (mga04.intel.com []) by groups.io with SMTP; Wed, 10 Jul 2019 12:05:23 -0700 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Jul 2019 12:05:22 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,475,1557212400"; d="scan'208";a="171008240" X-Received: from mdkinney-mobl2.amr.corp.intel.com ([10.241.98.74]) by orsmga006.jf.intel.com with ESMTP; 10 Jul 2019 12:05:21 -0700 From: "Michael D Kinney" To: devel@edk2.groups.io Cc: Zailiang Sun , Yi Qian , Gary Lin Subject: [edk2-devel] [edk2-platforms Patch 28/28] Vlv2TbltDevicePkg: Update Readme.md for multiple repos Date: Wed, 10 Jul 2019 12:05:16 -0700 Message-Id: <20190710190516.6012-29-michael.d.kinney@intel.com> In-Reply-To: <20190710190516.6012-1-michael.d.kinney@intel.com> References: <20190710190516.6012-1-michael.d.kinney@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,michael.d.kinney@intel.com Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1562785524; bh=rxc1RmwjOZ6OQijzYoC3Egb8yLOMV6y5/Mn0lHtvCkI=; h=Cc:Date:From:Reply-To:Subject:To; b=vZeIvCyXfcQ2ipPUTL9Xjdsnec0aVXZDs/OZLiudoz9JvMN3qznNA3WmKTPpWyzR7/+ Jr9aB0bQjVBMmYSBqO00UBuQDRQrCXxeYGR/M9wGKsvt8LNajEnrk9JZ4Y1js2JViWPCr w07cyWuzWPysfj0IAnnbZvI9fpSQbNV8lQ4= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" 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. Cc: Zailiang Sun Cc: Yi Qian Cc: Gary Lin Signed-off-by: Michael D Kinney Reviewed-By: Zailiang Sun --- Platform/Intel/Vlv2TbltDevicePkg/Readme.md | 145 ++++++++++----------- 1 file changed, 69 insertions(+), 76 deletions(-) diff --git a/Platform/Intel/Vlv2TbltDevicePkg/Readme.md b/Platform/Intel/Vl= v2TbltDevicePkg/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 Capsule= s 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.Securi= tyProtocolType]::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.Securi= tyProtocolType]::Tls12; Invoke-WebRequest -Uri "https://firmware.intel.com/= sites/default/files/MinnowBoardMax-Development190216.zip -OutFile MinnowBoa= rdMax-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.Securi= tyProtocolType]::Tls12; Invoke-WebRequest -Uri "https://www.nasm.us/pub/nas= m/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\In= tel;%WORKSPACE%\edk2-platforms\Platform\Intel;%WORKSPACE%\edk2-non-osi\Sili= con\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 followi= ng @@ -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\In= tel;%WORKSPACE%\edk2-platforms\Platform\Intel;%WORKSPACE%\edk2-non-osi\Sili= con\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 c= an 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/Vlv2TbltDe= vicePkg/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 insta= lled. - 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 Capsu= les 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-Develop= ment190216.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 commands= 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 c= an 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 --=20 2.21.0.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#43522): https://edk2.groups.io/g/devel/message/43522 Mute This Topic: https://groups.io/mt/32419755/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-