Liming Gao 1d0e294298 Vlv2TbltDevicePkg: Update Platform dsc to remove unnecessary Network libs | před 5 roky | |
---|---|---|
.. | ||
AcpiPlatform | před 5 roky | |
Application | před 5 roky | |
BootScriptSaveDxe | před 5 roky | |
Feature | před 5 roky | |
FspAzaliaConfigData | před 5 roky | |
FspSupport | před 5 roky | |
FvInfoPei | před 5 roky | |
FvbRuntimeDxe | před 5 roky | |
Include | před 5 roky | |
IntelGopDepex | před 5 roky | |
Library | před 5 roky | |
Logo | před 5 roky | |
Metronome | před 5 roky | |
MonoStatusCode | před 5 roky | |
Override | před 5 roky | |
PciPlatform | před 5 roky | |
PlatformCpuInfoDxe | před 5 roky | |
PlatformDxe | před 5 roky | |
PlatformGopPolicy | před 5 roky | |
PlatformInfoDxe | před 5 roky | |
PlatformInitPei | před 5 roky | |
PlatformPei | před 5 roky | |
PlatformSetupDxe | před 5 roky | |
PlatformSmm | před 5 roky | |
PpmPolicy | před 5 roky | |
SaveMemoryConfig | před 5 roky | |
SmBiosMiscDxe | před 5 roky | |
SmmSwDispatch2OnSmmSwDispatchThunk | před 5 roky | |
SmramSaveInfoHandlerSmm | před 5 roky | |
Stitch | před 5 roky | |
UiApp | před 5 roky | |
VlvPlatformInitDxe | před 5 roky | |
Wpce791 | před 5 roky | |
.gitignore | před 5 roky | |
BfmLib.exe | před 5 roky | |
BiosIdD.env | před 5 roky | |
BiosIdR.env | před 5 roky | |
BiosIdx64D.env | před 5 roky | |
BiosIdx64R.env | před 5 roky | |
Build_IFWI.bat | před 5 roky | |
Build_IFWI.sh | před 5 roky | |
FCE.exe | před 5 roky | |
FmpBlueSampleDevice.dsc | před 5 roky | |
FmpCertificate.dsc | před 5 roky | |
FmpGreenSampleDevice.dsc | před 5 roky | |
FmpMinnowMaxSystem.dsc | před 5 roky | |
FmpRedSampleDevice.dsc | před 5 roky | |
GenBiosId | před 5 roky | |
GenBiosId.exe | před 5 roky | |
PlatformCapsule.dsc | před 5 roky | |
PlatformCapsule.fdf | před 5 roky | |
PlatformCapsuleGcc.dsc | před 5 roky | |
PlatformCapsuleGcc.fdf | před 5 roky | |
PlatformPkg.dec | před 5 roky | |
PlatformPkg.fdf | před 5 roky | |
PlatformPkgConfig.dsc | před 5 roky | |
PlatformPkgGcc.fdf | před 5 roky | |
PlatformPkgGccX64.dsc | před 5 roky | |
PlatformPkgIA32.dsc | před 5 roky | |
PlatformPkgX64.dsc | před 5 roky | |
Readme.md | před 5 roky | |
bld_vlv.bat | před 5 roky | |
bld_vlv.sh | před 5 roky | |
cln.sh | před 5 roky |
GIT client: Available from https://git-scm.com/downloads
Microsoft Visual Studio.
WINDDK
Python 3
Install iASL
Install the NASM* assembly language compiler
Install Openssl
Run the script below from an empty directory. The script clones the EDK II repository from GitHub and downloads and unzips the binary support files for the MinnowBoard MAX. It then sets up the environment for EDK II builds and builds the MinnowBoard MAX firmware and generates UEFI Capsules that can be used to update the MinnowBoard MAX firmware and three sample devices.
git clone --recurse-submodules https://github.com/tianocore/edk2.git
powershell "& {[Net.ServicePointManager]::SecurityProtocol = [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
powershell "& {[Net.ServicePointManager]::SecurityProtocol = [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 = [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 .
mkdir Conf
set WORKSPACE=%CD%
set EDK_TOOLS_PATH=%WORKSPACE%\edk2\BaseTools
set EDK_TOOLS_BIN=%EDK_TOOLS_PATH%\BinWrappers\WindowsLike
set PACKAGES_PATH=%WORKSPACE%\edk2;%WORKSPACE%\Vlv2Binaries
path=%path%;%EDK_TOOLS_PATH%\Bin\Win32;%WORKSPACE%\openssl-1.0.2r-x64_86-win64
set NASM_PREFIX=%WORKSPACE%\nasm-2.13.03\
cd %WORKSPACE%\edk2
call edkSetup.bat Rebuild
cd Vlv2TbltDevicePkg
Build_IFWI.bat /m /y MNW2 Debug
Once all the code and tools are downloaded and installed, only the following commands are required to setup the environment. Run these from the same directory used to install the source and binaries.
set WORKSPACE=%CD%
set EDK_TOOLS_PATH=%WORKSPACE%\edk2\BaseTools
set EDK_TOOLS_BIN=%EDK_TOOLS_PATH%\BinWrappers\WindowsLike
set PACKAGES_PATH=%WORKSPACE%\edk2;%WORKSPACE%\Vlv2Binaries
path=%path%;%EDK_TOOLS_PATH%\Bin\Win32;%WORKSPACE%\openssl-1.0.2r-x64_86-win64
set NASM_PREFIX=%WORKSPACE%\nasm-2.13.03\
cd %WORKSPACE%\edk2
call edkSetup.bat Rebuild
Once the environment is setup, the MinnowBoard MAX firmware and capsules can be rebuilt using the following commands.
Build Debug Image
cd Vlv2TbltDevicePkg
Build_IFWI.bat /m /y MNW2 Debug
Build Release Image
cd Vlv2TbltDevicePkg
Build_IFWI.bat /m /y MNW2 Release
The generated firmware image is the newest .bin
file in edk2/Vlv2TbltDevicePkg/Stitch
.
The file is in the form MNW2MAX1.X64.0084.D01.<DATE>.bin
.
The CapsuleApp and generated UEFI Capsules are in Build/Vlv2TbltDevicePkg/Capsules
The tool GenBiosId has a dependency on libc.so.6. Make sure it is installed. Here are a few example installation commands:
sudo dnf install libc.so.6
apt-get install libc:i386
Run the script below from an empty directory. The script clones the EDK II repository from GitHub and downloads and unzips the binary support files for the MinnowBoard MAX. It then sets up the environment for EDK II builds and builds the MinnowBoard MAX firmware and generates UEFI Capsules that can be used to update the MinnowBoard MAX firmware and three sample devices.
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=$PWD/edk2
export PACKAGES_PATH=$PWD/Vlv2Binaries
export EDK_TOOLS_PATH=$WORKSPACE/BaseTools
cd edk2
cd Vlv2TbltDevicePkg
. Build_IFWI.sh MNW2 Debug
Once all the code is downloaded and installed, only the following commands are required to setup the environment. Run these from the same directory used to install the source and binaries.
export WORKSPACE=$PWD/edk2
export PACKAGES_PATH=$PWD/Vlv2Binaries
export EDK_TOOLS_PATH=$WORKSPACE/BaseTools
cd edk2
cd Vlv2TbltDevicePkg
Once the environment is setup, the MinnowBoard MAX firmware and capsules can be rebuilt using the following commands.
Build Debug Image
cd Vlv2TbltDevicePkg
./Build_IFWI.sh MNW2 Debug
Build Release Image
cd Vlv2TbltDevicePkg
./Build_IFWI.sh MNW2 Release
The generated firmware image is the MNW2MAX_X64_D_0084_01_GCC.bin
file in
edk2\Vlv2TbltDevicePkg\Stitch
The CapsuleApp and generated UEFI Capsules are in Build\Vlv2TbltDevicePkg\Capsules
Build/Vlv2TbltDevicePkg/Capsules
directory to a USB FLASH driveEFI Internal Shell
boot optionFS1
)cd
command to go to Capsules/TestCert
directoryRun the following command to apply all four capsules
CapsuleApp.efi Red.cap Green.cap Blue.cap MinnowMax.cap
The MinnowBoard MAX should reboot and the four capsules are applied in the order listed. The progress bar matches the color name of the capsule. MinnowMax.cap uses the color purple. Once all capsules are processed, the MinnowBoard MAX should reboot again using the new firmware images.
Use CapsuleApp.efi to convert BMP file to a UX Capsule
CapsuleApp.efi -G MyImage.bmp -O MyImage.cap
When updating firmware using capsules, add UX capsule to the list of capsules passed into CapsuleApp.efi.
CapsuleApp.efi MyImage.cap Red.cap Green.cap Blue.cap MinnowMax.cap
When the capsules are processed the UX bitmap image should be displayed at the bottom of the screen.