Skip to content

Commit

Permalink
Merge pull request #197 from open-power/master-next
Browse files Browse the repository at this point in the history
Merge v1.4 content back to master.
  • Loading branch information
williamspatrick committed Jul 2, 2015
2 parents 79f79c4 + 04f1598 commit aa3de96
Show file tree
Hide file tree
Showing 20 changed files with 306 additions and 284 deletions.
1 change: 1 addition & 0 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Building on *64-bit* Ubuntu/Debian systems
1. Install Ubuntu 14.04 or Debian 7.5 64-bit.
2. Install the packages necessary for the build:
> sudo apt-get install cscope ctags libz-dev libexpat-dev \
python language-pack-en \
build-essential g++ git bison flex unzip \
libxml-simple-perl libxml-sax-perl libxml2-dev libxml2-utils xsltproc
3. Continue with the clone, environment setup, and build as noted above.
Expand Down
59 changes: 59 additions & 0 deletions openpower/configs/garrison_defconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
BR2_powerpc64=y
BR2_powerpc_power8=y
BR2_OPENPOWER_PLATFORM=y

BR2_OPENPOWER_CONFIG_NAME="garrison"
BR2_OPENPOWER_XML_PACKAGE="garrison-xml"
BR2_HOSTBOOT_CONFIG_FILE="garrison.config"

BR2_HOSTBOOT_BINARY_SBE_FILENAME="venice_sbe.img.ecc"
BR2_HOSTBOOT_BINARY_SBEC_FILENAME="centaur_sbec_pad.img.ecc"
BR2_HOSTBOOT_BINARY_WINK_FILENAME="n1.ref_image.hdr.bin.ecc"

BR2_OCC_BIN_FILENAME="occ.bin"

BR2_GARRISON_SYSTEM_XML_FILENAME="GARRISON_hb.system.xml"
BR2_GARRISON_MRW_XML_FILENAME="GARRISON_hb.mrw.xml"
BR2_GARRISON_BIOS_XML_FILENAME="GARRISON_bios.xml"

BR2_OPENPOWER_TARGETING_BIN_FILENAME="GARRISON_HB.targeting.bin"
BR2_OPENPOWER_TARGETING_ECC_FILENAME="GARRISON_HB.targeting.bin.ecc"
BR2_CAPP_UCODE_BIN_FILENAME="cappucode.bin"

BR2_OPENPOWER_PNOR_XML_LAYOUT_FILENAME="defaultPnorLayoutWithGoldenSide.xml"
BR2_OPENPOWER_PNOR_FILENAME="garrison.pnor"
BR2_OPENPOWER_PNOR_UPDATE_FILENAME="garrison_update.pnor"

# skiboot requirements
BR2_TARGET_SKIBOOT=y
BR2_TARGET_SKIBOOT_EMBED_PAYLOAD=n

# petitboot requirements
BR2_ENABLE_LOCALE_PURGE=y
BR2_ENABLE_LOCALE_WHITELIST="C en_US"
BR2_GENERATE_LOCALE="en_US.UTF-8"
BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y
BR2_TARGET_GENERIC_GETTY_PORT="hvc0"
BR2_ROOTFS_OVERLAY="overlay"
BR2_LINUX_KERNEL=y
BR2_LINUX_KERNEL_CUSTOM_GIT=y
BR2_LINUX_KERNEL_CUSTOM_REPO_URL="git://github.com/open-power/linux.git"
BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="d0ff068a9962ba96d4e6ddfba2a4e9fd8bc9a763"
BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="$(BR2_EXTERNAL)/configs/linux/skiroot_defconfig"
BR2_LINUX_KERNEL_ZIMAGE_EPAPR=y
BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y
BR2_PACKAGE_LINUX_FIRMWARE=y
BR2_PACKAGE_LINUX_FIRMWARE_BNX2X=y
BR2_PACKAGE_LINUX_FIRMWARE_CXGB4=y
BR2_PACKAGE_I2C_TOOLS=y
BR2_PACKAGE_NCURSES_WCHAR=y
BR2_PACKAGE_DROPBEAR=y
# BR2_PACKAGE_DROPBEAR_SERVER is not set
BR2_PACKAGE_ETHTOOL=y
BR2_PACKAGE_NETCAT=y
BR2_PACKAGE_RSYNC=y
BR2_PACKAGE_PETITBOOT=y
BR2_PACKAGE_IPMITOOL=y
BR2_TARGET_ROOTFS_CPIO_XZ=y
BR2_TARGET_ROOTFS_INITRAMFS=y
19 changes: 16 additions & 3 deletions openpower/configs/hostboot/firestone.config
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,23 @@ set BMC_AST2400
set KINGSTON_1_35_VOLT

set NO_DMI_EREPAIR
set DISABLE_HOSTBOOT_RUNTIME
unset HTMGT
unset START_OCC_DURING_BOOT
unset DISABLE_HOSTBOOT_RUNTIME

# Compile in hostboot runtime PRD
set HBRT_PRD
set HTMGT
set START_OCC_DURING_BOOT

#PNOR flags
set PNOR_TWO_SIDE_SUPPORT

set BMC_BT_LPC_IPMI

# Enable Checktop Analysis
set ENABLE_CHECKSTOP_ANALYSIS

# Hostboot will detect hardware changes
set HOST_HCDB_SUPPORT

# set for trace debug to console
unset CONSOLE_OUTPUT_TRACE
61 changes: 61 additions & 0 deletions openpower/configs/hostboot/garrison.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# The Serial Flash Controller is the AST2400 BMC.
set SFC_IS_AST2400
set BMC_DOES_SFC_INIT
unset SFC_IS_IBM_DPSS
set ALLOW_MICRON_PNOR
set ALLOW_MACRONIX_PNOR

# VPD options.
set MVPD_READ_FROM_HW
set MVPD_WRITE_TO_HW
set MVPD_READ_FROM_PNOR
set MVPD_WRITE_FROM_PNOR
set DJVPD_READ_FROM_HW
set DJVPD_WRITE_TO_HW
set DJVPD_READ_FROM_PNOR
set DJVPD_WRITE_TO_PNOR
set CVPD_READ_FROM_HW
set CVPD_WRITE_TO_HW
set CVPD_READ_FROM_PNOR
set CVPD_WRITE_TO_PNOR
set PVPD_READ_FROM_HW
set PVPD_WRITE_TO_HW
set PVPD_READ_FROM_PNOR
set PVPD_WRITE_TO_PNOR
set SKIP_RESTRICT_EX_UNITS
unset CDIMM_FORMAT_FOR_CVPD

# gpio config
set GPIODD
set PALMETTO_VDDR

# disable sbe updates
set NO_SBE_UPDATES

unset PCIE_HOTPLUG_CONTROLLER

# turn on console output
set CONSOLE
set BMC_AST2400

# Enable Kingston dimm voltage workaround
set KINGSTON_1_35_VOLT

set NO_DMI_EREPAIR
set DISABLE_HOSTBOOT_RUNTIME
unset HTMGT
unset START_OCC_DURING_BOOT

#PNOR flags
set PNOR_TWO_SIDE_SUPPORT

set BMC_BT_LPC_IPMI

# Enable Checktop Analysis
set ENABLE_CHECKSTOP_ANALYSIS

# Hostboot will detect hardware changes
set HOST_HCDB_SUPPORT

# set for trace debug to console
unset CONSOLE_OUTPUT_TRACE
3 changes: 3 additions & 0 deletions openpower/configs/hostboot/habanero.config
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,8 @@ set BMC_BT_LPC_IPMI
# Enable Checktop Analysis
set ENABLE_CHECKSTOP_ANALYSIS

# Hostboot will detect hardware changes
set HOST_HCDB_SUPPORT

# set for trace debug to console
unset CONSOLE_OUTPUT_TRACE
3 changes: 3 additions & 0 deletions openpower/configs/hostboot/palmetto.config
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,8 @@ set BMC_BT_LPC_IPMI
# Enable Checktop Analysis
set ENABLE_CHECKSTOP_ANALYSIS

# Hostboot will detect hardware changes
set HOST_HCDB_SUPPORT

# set for trace debug to console
unset CONSOLE_OUTPUT_TRACE
1 change: 1 addition & 0 deletions openpower/package/Config.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ source "$BR2_EXTERNAL/package/hostboot-binaries/Config.in"
source "$BR2_EXTERNAL/package/palmetto-xml/Config.in"
source "$BR2_EXTERNAL/package/habanero-xml/Config.in"
source "$BR2_EXTERNAL/package/firestone-xml/Config.in"
source "$BR2_EXTERNAL/package/garrison-xml/Config.in"
source "$BR2_EXTERNAL/package/openpower-pnor/Config.in"
source "$BR2_EXTERNAL/package/p8-pore-binutils/Config.in"
source "$BR2_EXTERNAL/package/occ/Config.in"
Expand Down
3 changes: 1 addition & 2 deletions openpower/package/firestone-xml/firestone.mk
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
################################################################################

FIRESTONE_XML_VERSION ?= 3383b31643c225f7bcecc8ce08dcbb6803f3e058
FIRESTONE_XML_VERSION ?= 5123184b9f26bc1068afb9b57e796aecaf61b249
FIRESTONE_XML_SITE ?= $(call github,open-power,firestone-xml,$(FIRESTONE_XML_VERSION))

FIRESTONE_XML_LICENSE = Apache-2.0
Expand Down Expand Up @@ -32,7 +32,6 @@ define FIRESTONE_XML_BUILD_CMDS
bash -c 'mkdir -p $(MRW_SCRATCH) && cp -r $(@D)/* $(MRW_SCRATCH)'

# generate the system mrw xml
# Not processing until actaul xml is here
perl -I $(MRW_HB_TOOLS) \
$(MRW_HB_TOOLS)/processMrw.pl -x $(MRW_SCRATCH)/firestone.xml

Expand Down
23 changes: 23 additions & 0 deletions openpower/package/garrison-xml/Config.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
config BR2_PACKAGE_GARRISON_XML
bool "garrison_xml"
default y if (BR2_OPENPOWER_CONFIG_NAME = "garrison")
help
Utilites for building xml and the targeting binary image

config BR2_GARRISON_SYSTEM_XML_FILENAME
string "Garrison targeting system xml filename"
default ""
help
Defines the name of the system XML filename to be used when creating targeting binary image

config BR2_GARRISON_MRW_XML_FILENAME
string "Garrison targeting mrw xml filename"
default ""
help
Defines the name of the mrw XML filename to be used when creating targeting binary image

config BR2_GARRISON_BIOS_XML_FILENAME
string "Garrison BIOS metadata XML filename"
default ""
help
Defines the name of the BIOS XML filename to parse when generating BIOS metadata
75 changes: 75 additions & 0 deletions openpower/package/garrison-xml/garrison.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
################################################################################
#
# garrison_xml
#
################################################################################

GARRISON_XML_VERSION ?= 4f4b2373ff8ef35338c20ab3660a0e4d980aeddd
GARRISON_XML_SITE ?= $(call github,open-power,garrison-xml,$(GARRISON_XML_VERSION))

GARRISON_XML_LICENSE = Apache-2.0
GARRISON_XML_DEPENDENCIES = hostboot-install-images openpower-mrw-install-images common-p8-xml-install-images

GARRISON_XML_INSTALL_IMAGES = YES
GARRISON_XML_INSTALL_TARGET = YES

MRW_SCRATCH=$(STAGING_DIR)/openpower_mrw_scratch
MRW_HB_TOOLS=$(STAGING_DIR)/hostboot_build_images

# Defines for BIOS metadata creation
BIOS_SCHEMA_FILE = $(MRW_HB_TOOLS)/bios.xsd
GARRISON_BIOS_XML_CONFIG_FILE = $(MRW_SCRATCH)/$(BR2_GARRISON_BIOS_XML_FILENAME)
BIOS_XML_METADATA_FILE = \
$(MRW_HB_TOOLS)/$(BR2_OPENPOWER_CONFIG_NAME)_bios_metadata.xml
PETITBOOT_XSLT_FILE = $(MRW_HB_TOOLS)/bios_metadata_petitboot.xslt
PETITBOOT_BIOS_XML_METADATA_FILE = \
$(MRW_HB_TOOLS)/$(BR2_OPENPOWER_CONFIG_NAME)_bios_metadata_petitboot.xml
PETITBOOT_BIOS_XML_METADATA_INITRAMFS_FILE = \
$(TARGET_DIR)/usr/share/bios_metadata.xml

define GARRISON_XML_BUILD_CMDS
# copy the garrison xml where the common lives
bash -c 'mkdir -p $(MRW_SCRATCH) && cp -r $(@D)/* $(MRW_SCRATCH)'

# generate the system mrw xml
perl -I $(MRW_HB_TOOLS) \
$(MRW_HB_TOOLS)/processMrw.pl -x $(MRW_SCRATCH)/garrison.xml

# merge in any system specific attributes, hostboot attributes
$(MRW_HB_TOOLS)/mergexml.sh $(MRW_SCRATCH)/$(BR2_GARRISON_SYSTEM_XML_FILENAME) \
$(MRW_HB_TOOLS)/attribute_types.xml \
$(MRW_HB_TOOLS)/attribute_types_hb.xml \
$(MRW_HB_TOOLS)/target_types_merged.xml \
$(MRW_HB_TOOLS)/target_types_hb.xml \
$(MRW_SCRATCH)/$(BR2_GARRISON_MRW_XML_FILENAME) > $(MRW_HB_TOOLS)/temporary_hb.hb.xml;

# creating the targeting binary
$(MRW_HB_TOOLS)/xmltohb.pl \
--hb-xml-file=$(MRW_HB_TOOLS)/temporary_hb.hb.xml \
--fapi-attributes-xml-file=$(MRW_HB_TOOLS)/fapiattrs.xml \
--src-output-dir=none \
--img-output-dir=$(MRW_HB_TOOLS)/ \
--vmm-consts-file=$(MRW_HB_TOOLS)/vmmconst.h --noshort-enums \
--bios-xml-file=$(GARRISON_BIOS_XML_CONFIG_FILE) \
--bios-schema-file=$(BIOS_SCHEMA_FILE) \
--bios-output-file=$(BIOS_XML_METADATA_FILE)

# Transform BIOS XML into Petitboot specific BIOS XML via the schema
xsltproc -o \
$(PETITBOOT_BIOS_XML_METADATA_FILE) \
$(PETITBOOT_XSLT_FILE) \
$(BIOS_XML_METADATA_FILE)
endef

define GARRISON_XML_INSTALL_IMAGES_CMDS
mv $(MRW_HB_TOOLS)/targeting.bin $(MRW_HB_TOOLS)/$(BR2_OPENPOWER_TARGETING_BIN_FILENAME)
endef

define GARRISON_XML_INSTALL_TARGET_CMDS
# Install Petitboot specific BIOS XML into initramfs's usr/share/ dir
$(INSTALL) -D -m 0644 \
$(PETITBOOT_BIOS_XML_METADATA_FILE) \
$(PETITBOOT_BIOS_XML_METADATA_INITRAMFS_FILE)
endef

$(eval $(generic-package))
43 changes: 0 additions & 43 deletions openpower/package/hostboot/hostboot-0003-mss_thermal_undo.patch

This file was deleted.

This file was deleted.

Loading

0 comments on commit aa3de96

Please sign in to comment.