From c7a943397d9ab731f4245c416e6086feec08c2b9 Mon Sep 17 00:00:00 2001 From: Lee Leahy Date: Sat, 20 Feb 2016 17:44:35 -0800 Subject: Documentation/Intel: Update EDK2 CorebootPayloadPkg build instructions Update the build instructions for CorebootPayloadPkg to target the Galileo Gen2 platform. TEST=Build and run on the Galileo Gen2 platform. Change-Id: I9ca8a67811eff988f81f04d4c01c77115356c050 Signed-off-by: Lee Leahy Reviewed-on: https://review.coreboot.org/13756 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer --- Documentation/Intel/SoC/quark.html | 47 ++++++++++++++++++++++++++++++++++---- 1 file changed, 42 insertions(+), 5 deletions(-) (limited to 'Documentation/Intel') diff --git a/Documentation/Intel/SoC/quark.html b/Documentation/Intel/SoC/quark.html index bd32b242ec..ea704a94c5 100644 --- a/Documentation/Intel/SoC/quark.html +++ b/Documentation/Intel/SoC/quark.html @@ -53,21 +53,58 @@ Build Instructions:

  1. Set up build environment
  2. +
  3. For the Galileo Gen 2, replace the following lines in + CorebootPayloadPkg/CorebootPayloadPkgIa32.dsc: +
      gEfiMdeModulePkgTokenSpaceGuid.PcdSerialUseMmio|FALSE
    +  gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterBase|0x03F8
    +
    +with: +
    #
    +# Quark configuration
    +#
    +  gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber|1
    +
    +#
    +# Specify Galileo HSUART1 serial port
    +#
    +[PcdsPatchableInModule.common]
    +  gEfiMdeModulePkgTokenSpaceGuid.PcdSerialPciDeviceInfo|{0xff}
    +  gEfiMdeModulePkgTokenSpaceGuid.PcdSerialUseMmio|TRUE
    +  gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterBase|0xA0019000
    +  gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterStride|4
    +
    +  gEfiMdeModulePkgTokenSpaceGuid.PcdSerialClockRate|44236800
    +  gEfiMdeModulePkgTokenSpaceGuid.PcdSerialBaudRate|921600
    +  gEfiMdeModulePkgTokenSpaceGuid.PcdSerialLineControl|3 # 8-bits, no parity
    +  gEfiMdeModulePkgTokenSpaceGuid.PcdSerialUseHardwareFlowControl|FALSE
    +  gEfiMdeModulePkgTokenSpaceGuid.PcdSerialDetectCable|FALSE
    +  gEfiMdeModulePkgTokenSpaceGuid.PcdSerialFifoControl|1 # Enable FIFO
    +  gEfiMdeModulePkgTokenSpaceGuid.PcdSerialExtendedTxFifoSize|16
    +
    +
  4. Build Instructions:
      -
    • Linux: +
    • Linux (assumes GCC48): +
        +
      1. Edit Conf/tools_def.txt to add " -march=i586" to the IA32_CC_FLAGS + for the GCC compiler being used: +
        *_GCC48_IA32_CC_FLAGS             = DEF(GCC48_IA32_CC_FLAGS) -Os -march=i586
        +
      2. +
      3. build -p CorebootPayloadPkg/CorebootPayloadPkgIa32.dsc  -a IA32  -t GCC48  -b DEBUG  -DDEBUG_PROPERTY_MASK=0x27  -DDEBUG_PRINT_ERROR_LEVEL=0x80000042
        -ls Build/CorebootPayloadPkg/DEBUG_GCC48/FV/UEFIPAYLOAD.fd
        +ls Build/CorebootPayloadPkgIA32/DEBUG_GCC48/FV/UEFIPAYLOAD.fd
         
        +
      4. +
    • Windows:
      build -p CorebootPayloadPkg\CorebootPayloadPkgIa32.dsc  -a IA32  -t VS2012x86  -b DEBUG  -DDEBUG_PROPERTY_MASK=0x27  -DDEBUG_PRINT_ERROR_LEVEL=0x80000042
      -dir Build\CorebootPayloadPkg\DEBUG_VS2012x86\FV\UEFIPAYLOAD.fd
      +dir Build\CorebootPayloadPkgIA32\DEBUG_VS2012x86\FV\UEFIPAYLOAD.fd
       
  5. -
  6. Set the following Kconfig values: +
  7. In the .config for coreboot, set the following Kconfig values:
    • CONFIG_PAYLOAD_ELF=y
    • CONFIG_PAYLOAD_FILE="path to UEFIPAYLOAD.fd"
    • @@ -177,6 +214,6 @@ Documentation:
      -

      Modified: 10 February 2016

      +

      Modified: 20 February 2016

      \ No newline at end of file -- cgit v1.2.3