Michael D Kinney 2d907e4971 Vlv2TbltDevicePkg/PlatformPei: Add boot mode detection il y a 4 ans
..
AcpiPlatform 6a728b4b7d Vlv2TbltDevicePkg: Add GCC IA32 build support il y a 4 ans
Application 31a2b7d34b Platform/Vlv2TbltDevicePkg: Import Vlv2TbltDevicePkg from edk2 il y a 5 ans
Feature a761f83dae Vlv2TbltDevicePkg/GenerateCapsule: Fix the bash scripts il y a 4 ans
FvInfoPei 31a2b7d34b Platform/Vlv2TbltDevicePkg: Import Vlv2TbltDevicePkg from edk2 il y a 5 ans
FvbRuntimeDxe 31a2b7d34b Platform/Vlv2TbltDevicePkg: Import Vlv2TbltDevicePkg from edk2 il y a 5 ans
Include 3326c46733 Vlv2TbltDevicePkg: Clean up all build scripts il y a 4 ans
IntelGopDepex 31a2b7d34b Platform/Vlv2TbltDevicePkg: Import Vlv2TbltDevicePkg from edk2 il y a 5 ans
Library 6a728b4b7d Vlv2TbltDevicePkg: Add GCC IA32 build support il y a 4 ans
Logo 31a2b7d34b Platform/Vlv2TbltDevicePkg: Import Vlv2TbltDevicePkg from edk2 il y a 5 ans
MonoStatusCode 6a728b4b7d Vlv2TbltDevicePkg: Add GCC IA32 build support il y a 4 ans
PciPlatform 0fb81280a3 Vlv2TbltDevicePkg: Switch to CPU I/O 2 Protocol il y a 4 ans
PcuSio 8a0a748aec Vlv2TbltDevicePkg: Switch from ISA to SIO modules il y a 4 ans
PlatformCpuInfoDxe 0fb81280a3 Vlv2TbltDevicePkg: Switch to CPU I/O 2 Protocol il y a 4 ans
PlatformDxe e286c36ae4 Vlv2TbltDevicePkg: Re-enable BIOS ID feature il y a 4 ans
PlatformGopPolicy 0fb81280a3 Vlv2TbltDevicePkg: Switch to CPU I/O 2 Protocol il y a 4 ans
PlatformInfoDxe 31a2b7d34b Platform/Vlv2TbltDevicePkg: Import Vlv2TbltDevicePkg from edk2 il y a 5 ans
PlatformInitPei 6a728b4b7d Vlv2TbltDevicePkg: Add GCC IA32 build support il y a 4 ans
PlatformPei 2d907e4971 Vlv2TbltDevicePkg/PlatformPei: Add boot mode detection il y a 4 ans
PlatformSetupDxe 6a728b4b7d Vlv2TbltDevicePkg: Add GCC IA32 build support il y a 4 ans
PlatformSmm 4cf750e42e Vlv2TbltDevicePkg/PlatformSmm: Switch to PI SMM Protocols il y a 4 ans
PpmPolicy 6a728b4b7d Vlv2TbltDevicePkg: Add GCC IA32 build support il y a 4 ans
SaveMemoryConfig 31a2b7d34b Platform/Vlv2TbltDevicePkg: Import Vlv2TbltDevicePkg from edk2 il y a 5 ans
SmBiosMiscDxe 6a728b4b7d Vlv2TbltDevicePkg: Add GCC IA32 build support il y a 4 ans
Stitch d9c8486b80 Vlv2TbltDevicePkg: Remove unused modules/libraries il y a 4 ans
VlvPlatformInitDxe cf23baaeb5 Vlv2TbltDevicePkg: Remove use of Data Hub Protocol il y a 4 ans
BfmLib.exe 31a2b7d34b Platform/Vlv2TbltDevicePkg: Import Vlv2TbltDevicePkg from edk2 il y a 5 ans
Build_IFWI.bat 3326c46733 Vlv2TbltDevicePkg: Clean up all build scripts il y a 4 ans
Build_IFWI.sh 3326c46733 Vlv2TbltDevicePkg: Clean up all build scripts il y a 4 ans
FCE.exe 31a2b7d34b Platform/Vlv2TbltDevicePkg: Import Vlv2TbltDevicePkg from edk2 il y a 5 ans
FmpBlueSampleDevice.dsc 31a2b7d34b Platform/Vlv2TbltDevicePkg: Import Vlv2TbltDevicePkg from edk2 il y a 5 ans
FmpCertificate.dsc 31a2b7d34b Platform/Vlv2TbltDevicePkg: Import Vlv2TbltDevicePkg from edk2 il y a 5 ans
FmpGreenSampleDevice.dsc 31a2b7d34b Platform/Vlv2TbltDevicePkg: Import Vlv2TbltDevicePkg from edk2 il y a 5 ans
FmpMinnowMaxSystem.dsc 31a2b7d34b Platform/Vlv2TbltDevicePkg: Import Vlv2TbltDevicePkg from edk2 il y a 5 ans
FmpRedSampleDevice.dsc 31a2b7d34b Platform/Vlv2TbltDevicePkg: Import Vlv2TbltDevicePkg from edk2 il y a 5 ans
PlatformCapsule.dsc 31a2b7d34b Platform/Vlv2TbltDevicePkg: Import Vlv2TbltDevicePkg from edk2 il y a 5 ans
PlatformCapsule.fdf 31a2b7d34b Platform/Vlv2TbltDevicePkg: Import Vlv2TbltDevicePkg from edk2 il y a 5 ans
PlatformCapsuleGcc.dsc 31a2b7d34b Platform/Vlv2TbltDevicePkg: Import Vlv2TbltDevicePkg from edk2 il y a 5 ans
PlatformCapsuleGcc.fdf 31a2b7d34b Platform/Vlv2TbltDevicePkg: Import Vlv2TbltDevicePkg from edk2 il y a 5 ans
PlatformPkg.dec b304ab2a09 Vlv2TbltDevicePkg: Remove redundant gEfiSpiProtocolGuid il y a 4 ans
PlatformPkg.fdf e286c36ae4 Vlv2TbltDevicePkg: Re-enable BIOS ID feature il y a 4 ans
PlatformPkgConfig.dsc 3326c46733 Vlv2TbltDevicePkg: Clean up all build scripts il y a 4 ans
PlatformPkgGcc.fdf e286c36ae4 Vlv2TbltDevicePkg: Re-enable BIOS ID feature il y a 4 ans
PlatformPkgGccIA32.dsc 3326c46733 Vlv2TbltDevicePkg: Clean up all build scripts il y a 4 ans
PlatformPkgGccX64.dsc 3326c46733 Vlv2TbltDevicePkg: Clean up all build scripts il y a 4 ans
PlatformPkgIA32.dsc 3326c46733 Vlv2TbltDevicePkg: Clean up all build scripts il y a 4 ans
PlatformPkgX64.dsc 3326c46733 Vlv2TbltDevicePkg: Clean up all build scripts il y a 4 ans
Readme.md 0aed7db096 Vlv2TbltDevicePkg: Update Readme.md for multiple repos il y a 4 ans
bld_vlv.bat b5b9165908 Vlv2TbltDevicePkg: Only build capsules for X64 il y a 4 ans
bld_vlv.sh b5b9165908 Vlv2TbltDevicePkg: Only build capsules for X64 il y a 4 ans

Readme.md

EDK II firmware for Minnowboard Max/Turbot which is based on Intel Valleyview2 SoC (Byatrail platform)


Windows Pre-requisites

  • GIT client: Available from https://git-scm.com/downloads

  • Microsoft Visual Studio.

    • Visual Studio 2015 recommended and is used in the examples below. Visual Studio 2013 is also supported.
  • WINDDK

    • Download Microsoft Windows Driver Development Kit 3790.1830 and install it to C:\WINDDK\3790.1830.
  • Python 3

  • Install iASL

    • Install the iasl compiler by downloading iasl-win-20160527.zip from the following location: «https://acpica.org/downloads/" and place the unzipped content («iasl.exe») into the directory «C:\ASL» on your local hard drive (create the folder «C:\ASL» if it does not exist).
  • Install the NASM* assembly language compiler

  • Install Openssl

    • Download a pre-compiled Openssl Windows binary from https://wiki.openssl.org/index.php/Binaries. Search for a Windows binary in the list of «Third Party OpenSSL Related Binary Distributions». Go to the third party site to download the latest version. Download and extract to C:\Openssl, add the path of openssl.exe («C:\openssl») to system environment variable OPENSSL_PATH.

Download and Build MinnowMax using Windows/Visual Studio

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
path=%path%;%WORKSPACE%\openssl-1.0.2r-x64_86-win64
set NASM_PREFIX=%WORKSPACE%\nasm-2.13.03\

cd edk2-platforms\Platform\Intel\Vlv2TbltDevicePkg

Build_IFWI.bat /m 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 PACKAGES_PATH=%WORKSPACE%\edk2;%WORKSPACE%\edk2-platforms\Silicon\Intel;%WORKSPACE%\edk2-platforms\Platform\Intel;%WORKSPACE%\edk2-non-osi\Silicon\Intel
path=%path%;%WORKSPACE%\openssl-1.0.2r-x64_86-win64
set NASM_PREFIX=%WORKSPACE%\nasm-2.13.03\

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

    cd edk2-platforms\Platform\Intel\Vlv2TbltDevicePkg
    Build_IFWI.bat /m /y MNW2 Debug
    
  • Build X64 Release Image with build log

    cd edk2-platforms\Platform\Intel\Vlv2TbltDevicePkg
    Build_IFWI.bat /m /l MNW2 Release
    
  • Build IA32 Debug Image

    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

Linux Pre-requisites

Download and Build MinnowMax using Linux/GCC

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

cd edk2-platforms/Platform/Intel/Vlv2TbltDevicePkg

./Build_IFWI.sh /m 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

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

    cd edk2-platforms/Platform/Intel/Vlv2TbltDevicePkg
    ./Build_IFWI.sh /m /y MNW2 Debug
    
  • Build X64 Release Image with build log

    cd edk2-platforms/Platform/Intel/Vlv2TbltDevicePkg
    ./Build_IFWI.sh /m /l MNW2 Release
    
  • Build IA32 Debug Image

    cd edk2-platforms/Platform/Intel/Vlv2TbltDevicePkg
    ./Build_IFWI.sh /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_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

Build/Vlv2TbltDevicePkg/Capsules

Use DediProg to update FLASH image on a MinnowBoard MAX Target

Update MinnowBoard MAX Firmware from UEFI Capsules

  • Copy the Build/Vlv2TbltDevicePkg/Capsules directory to a USB FLASH drive
  • Connect USB FLASH Drive to MinnowBoard MAX
  • Boot MinnowBoard MAX to the Boot Manager
  • Boot the EFI Internal Shell boot option
  • Mount the USB FLASH Drive (usually FS1)
  • Use cd command to go to Capsules/TestCert directory
  • Run 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.

Generate and Test a UX BitMap Capsule

  • Use bitmap editor to generate a BMP file. Recommend resolution of 600 wide by 100 tell and either 24 or 32 bits per pixel.
  • Save BMP file to USB FLASH drive
  • 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.