GuoMinJ 8eb3b2f8be Platform/Intel: Remove All UGA Support | hace 2 años | |
---|---|---|
.. | ||
AcpiPlatform | hace 4 años | |
Application | hace 3 años | |
Feature | hace 3 años | |
FvInfoPei | hace 5 años | |
FvbRuntimeDxe | hace 5 años | |
Include | hace 4 años | |
IntelGopDepex | hace 5 años | |
Library | hace 2 años | |
Logo | hace 5 años | |
MonoStatusCode | hace 4 años | |
PciPlatform | hace 4 años | |
PcuSio | hace 5 años | |
PlatformCpuInfoDxe | hace 5 años | |
PlatformDxe | hace 4 años | |
PlatformGopPolicy | hace 5 años | |
PlatformInfoDxe | hace 5 años | |
PlatformInitPei | hace 3 años | |
PlatformPei | hace 4 años | |
PlatformSetupDxe | hace 3 años | |
PlatformSmm | hace 5 años | |
PpmPolicy | hace 4 años | |
SaveMemoryConfig | hace 5 años | |
SmBiosMiscDxe | hace 3 años | |
Stitch | hace 4 años | |
VlvPlatformInitDxe | hace 3 años | |
FmpBlueSampleDevice.dsc | hace 3 años | |
FmpCertificate.dsc | hace 5 años | |
FmpGreenSampleDevice.dsc | hace 3 años | |
FmpMinnowMaxSystem.dsc | hace 3 años | |
FmpRedSampleDevice.dsc | hace 3 años | |
PlatformPkg.dec | hace 4 años | |
PlatformPkg.fdf | hace 4 años | |
PlatformPkgConfig.dsc | hace 4 años | |
PlatformPkgIA32.dsc | hace 3 años | |
PlatformPkgX64.dsc | hace 3 años | |
PlatformSetupDefaults.dsc | hace 4 años | |
PreBuild.py | hace 4 años | |
Readme.md | hace 4 años |
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 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
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://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 .
set WORKSPACE=%CD%
set PACKAGES_PATH=%WORKSPACE%\edk2;%WORKSPACE%\edk2-platforms\Silicon\Intel;%WORKSPACE%\edk2-platforms\Platform\Intel;%WORKSPACE%\edk2-non-osi\Silicon\Intel
set EDK_TOOLS_PATH=%WORKSPACE%\edk2\BaseTools
path=%path%;%WORKSPACE%\openssl-1.0.2r-x64_86-win64
set NASM_PREFIX=%WORKSPACE%\nasm-2.13.03\
cd %WORKSPACE%\edk2
edksetup.bat Rebuild
build -a IA32 -a X64 -n 5 -t VS2015x86 -b DEBUG -p Vlv2TbltDevicePkg\PlatformPkgX64.dsc
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 PACKAGES_PATH=%WORKSPACE%\edk2;%WORKSPACE%\edk2-platforms\Silicon\Intel;%WORKSPACE%\edk2-platforms\Platform\Intel;%WORKSPACE%\edk2-non-osi\Silicon\Intel
set EDK_TOOLS_PATH=%WORKSPACE%\edk2\BaseTools
path=%path%;%WORKSPACE%\openssl-1.0.2r-x64_86-win64
set NASM_PREFIX=%WORKSPACE%\nasm-2.13.03\
cd %WORKSPACE%\edk2
edksetup.bat Rebuild
Once the environment is setup, the MinnowBoard MAX firmware and capsules can be rebuilt using the following commands.
Build X64 Debug Image with report file
build -a IA32 -a X64 -n 5 -t VS2015x86 -b DEBUG -p Vlv2TbltDevicePkg\PlatformPkgX64.dsc -y Vlv.report
Build X64 Release Image with build log
build -a IA32 -a X64 -n 5 -t VS2015x86 -b RELEASE Vlv2TbltDevicePkg\PlatformPkgX64.dsc -j Vlv.log
Build IA32 Debug Image
build -a IA32 -n 5 -t VS2015x86 -b DEBUG -p Vlv2TbltDevicePkg\PlatformPkgIA32.dsc
The generated firmware image is the build output directory below WORKSPACE. For exampple, the X64 Debug Image is at:
Build\Vlv2TbltDevicePkgX64\DEBUG_VS2015x86\FV\Vlv.fd
And the IA32 Release image is at:
Build\Vlv2TbltDevicePkgIA32\RELEASE_VS2015x86\FV\Vlv.fd
The X64 CapsuleApp and generated UEFI Capsules are in the directory
Build\Vlv2TbltDevicePkgX64\Capsules
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 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
export WORKSPACE=$PWD
export PACKAGES_PATH=$WORKSPACE/edk2:$WORKSPACE/edk2-platforms/Silicon/Intel:$WORKSPACE/edk2-platforms/Platform/Intel:$WORKSPACE/edk2-non-osi/Silicon/Intel
cd $WORKSPACE/edk2
. edksetup.sh
build -a IA32 -a X64 -n 5 -t GCC5 -b DEBUG -p Vlv2TbltDevicePkg/PlatformPkgX64.dsc
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
export PACKAGES_PATH=$WORKSPACE/edk2:$WORKSPACE/edk2-platforms/Silicon/Intel:$WORKSPACE/edk2-platforms/Platform/Intel:$WORKSPACE/edk2-non-osi/Silicon/Intel
cd $WORKSPACE/edk2
. edksetup.sh
Once the environment is setup, the MinnowBoard MAX firmware and capsules can be rebuilt using the following commands.
Build X64 Debug Image with report file
build -a IA32 -a X64 -n 5 -t GCC5 -b DEBUG -p Vlv2TbltDevicePkg/PlatformPkgX64.dsc -y Vlv.report
Build X64 Release Image with build log
build -a IA32 -a X64 -n 5 -t GCC5 -b RELEASE -p Vlv2TbltDevicePkg/PlatformPkgX64.dsc -j Vlv.log
Build IA32 Debug Image
build -a IA32 -n 5 -t GCC5 -b DEBUG -p Vlv2TbltDevicePkg/PlatformPkgIA32.dsc
The generated firmware image is the build output directory below WORKSPACE. For exampple, the X64 Debug Image is at:
Build/Vlv2TbltDevicePkgX64/DEBUG_GCC5/FV/Vlv.fd
And the IA32 Release image is at:
Build/Vlv2TbltDevicePkgIA32/RELEASE_GCC5/FV/Vlv.fd
The X64 CapsuleApp and generated UEFI Capsules are in the directory
Build/Vlv2TbltDevicePkgX64/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.