Initial commit
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
owners:
|
||||
- aaelhaj@google.com
|
||||
- osk@google.com
|
||||
@@ -0,0 +1,11 @@
|
||||
# We have a conf and classes directory, add to BBPATH
|
||||
BBPATH .= ":${LAYERDIR}"
|
||||
|
||||
# We have recipes-* directories, add to BBFILES
|
||||
BBFILES += "${LAYERDIR}/meta-common/recipes-*/*/*.bb \
|
||||
${LAYERDIR}/meta-common/recipes-*/*/*.bbappend"
|
||||
|
||||
BBFILE_COLLECTIONS += "tyan-layer"
|
||||
BBFILE_PATTERN_tyan-layer = "^${LAYERDIR}/"
|
||||
LAYERSERIES_COMPAT_tyan-layer = "langdale mickledore"
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
MACHINE_FEATURES += "\
|
||||
obmc-bmc-state-mgmt \
|
||||
obmc-chassis-state-mgmt \
|
||||
obmc-host-ipmi \
|
||||
obmc-host-state-mgmt \
|
||||
obmc-phosphor-chassis-mgmt \
|
||||
obmc-phosphor-fan-mgmt \
|
||||
obmc-phosphor-flash-mgmt \
|
||||
"
|
||||
|
||||
VIRTUAL-RUNTIME_obmc-inventory-manager = "entity-manager"
|
||||
PREFERRED_PROVIDER_virtual/obmc-inventory-data = "entity-manager"
|
||||
|
||||
VIRTUAL-RUNTIME_obmc-host-state-manager ?= "x86-power-control"
|
||||
VIRTUAL-RUNTIME_obmc-chassis-state-manager ?= "x86-power-control"
|
||||
|
||||
PREFERRED_PROVIDER_virtual/obmc-chassis-mgmt = "packagegroup-tyan-apps"
|
||||
PREFERRED_PROVIDER_virtual/obmc-flash-mgmt = "packagegroup-tyan-apps"
|
||||
PREFERRED_PROVIDER_virtual/obmc-host-ipmi-hw ?= "phosphor-ipmi-kcs"
|
||||
PREFERRED_PROVIDER_virtual/obmc-system-mgmt = "packagegroup-tyan-apps"
|
||||
@@ -0,0 +1,3 @@
|
||||
baud = 115200
|
||||
local-tty = ttyS3
|
||||
local-tty-baud = 115200
|
||||
@@ -0,0 +1,2 @@
|
||||
FILESEXTRAPATHS:append := "${THISDIR}/${PN}:"
|
||||
OBMC_CONSOLE_HOST_TTY = "ttyS2"
|
||||
@@ -0,0 +1,8 @@
|
||||
LICENSE = "Apache-2.0"
|
||||
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
|
||||
|
||||
ALLOW_EMPTY_${PN} = "1"
|
||||
|
||||
PROVIDES += "virtual/obmc-fan-mgmt"
|
||||
RPROVIDES:${PN} += "virtual-obmc-fan-mgmt"
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
PACKAGECONFIG:append = " dynamic-sensors"
|
||||
@@ -0,0 +1,39 @@
|
||||
SUMMARY = "OpenBMC for TYAN - Applications"
|
||||
PR = "r1"
|
||||
|
||||
inherit packagegroup
|
||||
|
||||
PROVIDES = "${PACKAGES}"
|
||||
PACKAGES = " \
|
||||
${PN}-chassis \
|
||||
${PN}-flash \
|
||||
${PN}-system \
|
||||
"
|
||||
|
||||
PROVIDES += "virtual/obmc-chassis-mgmt"
|
||||
PROVIDES += "virtual/obmc-flash-mgmt"
|
||||
PROVIDES += "virtual/obmc-system-mgmt"
|
||||
|
||||
RPROVIDES:${PN}-chassis += "virtual-obmc-chassis-mgmt"
|
||||
RPROVIDES:${PN}-flash += "virtual-obmc-flash-mgmt"
|
||||
RPROVIDES:${PN}-system += "virtual-obmc-system-mgmt"
|
||||
|
||||
SUMMARY:${PN}-chassis = "TYAN Chassis"
|
||||
RDEPENDS:${PN}-chassis = " \
|
||||
x86-power-control \
|
||||
"
|
||||
|
||||
SUMMARY:${PN}-flash = "TYAN Flash"
|
||||
RDEPENDS:${PN}-flash = " \
|
||||
phosphor-software-manager \
|
||||
"
|
||||
|
||||
SUMMARY:${PN}-system = "TYAN System"
|
||||
RDEPENDS:${PN}-system = " \
|
||||
dbus-sensors \
|
||||
phosphor-hostlogger \
|
||||
phosphor-sel-logger \
|
||||
ipmitool \
|
||||
phosphor-post-code-manager \
|
||||
phosphor-host-postd \
|
||||
"
|
||||
@@ -0,0 +1,69 @@
|
||||
{
|
||||
"gpio_configs":[
|
||||
{
|
||||
"Name" : "IdButton",
|
||||
"LineName" : "id-button",
|
||||
"Type" : "GPIO",
|
||||
"Polarity" : "ActiveLow"
|
||||
},
|
||||
{
|
||||
"Name" : "NMIButton",
|
||||
"LineName" : "nmi-button",
|
||||
"Type" : "GPIO",
|
||||
"Polarity" : "ActiveLow"
|
||||
},
|
||||
{
|
||||
"Name" : "NMIOut",
|
||||
"LineName" : "nmi-control",
|
||||
"Type" : "GPIO",
|
||||
"Polarity" : "ActiveLow"
|
||||
},
|
||||
{
|
||||
"Name" : "PostComplete",
|
||||
"LineName" : "post-complete",
|
||||
"Type" : "GPIO",
|
||||
"Polarity" : "ActiveLow"
|
||||
},
|
||||
{
|
||||
"Name" : "PowerButton",
|
||||
"LineName" : "power-button",
|
||||
"Type" : "GPIO",
|
||||
"Polarity" : "ActiveLow"
|
||||
},
|
||||
{
|
||||
"Name" : "PowerOk",
|
||||
"LineName" : "power-chassis-good",
|
||||
"Type" : "GPIO",
|
||||
"Polarity" : "ActiveHigh"
|
||||
},
|
||||
{
|
||||
"Name" : "PowerOut",
|
||||
"LineName" : "power-chassis-control",
|
||||
"Type" : "GPIO",
|
||||
"Polarity" : "ActiveLow"
|
||||
},
|
||||
{
|
||||
"Name" : "ResetButton",
|
||||
"LineName" : "reset-button",
|
||||
"Type" : "GPIO",
|
||||
"Polarity" : "ActiveLow"
|
||||
},
|
||||
{
|
||||
"Name" : "ResetOut",
|
||||
"LineName" : "reset-control",
|
||||
"Type" : "GPIO",
|
||||
"Polarity" : "ActiveLow"
|
||||
}
|
||||
],
|
||||
"timing_configs":{
|
||||
"PowerPulseMs": 200,
|
||||
"ForceOffPulseMs": 15000,
|
||||
"ResetPulseMs": 500,
|
||||
"PowerCycleMs": 5000,
|
||||
"SioPowerGoodWatchdogMs": 1000,
|
||||
"PsPowerOKWatchdogMs": 8000,
|
||||
"GracefulPowerOffS": 300,
|
||||
"WarmResetCheckMs": 500,
|
||||
"PowerOffSaveMs": 7000
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
|
||||
SRC_URI:append = " \
|
||||
file://power-config-host0.json \
|
||||
"
|
||||
|
||||
RDEPENDS:${PN}:append = " bash"
|
||||
|
||||
do_install:append() {
|
||||
install -d ${D}${datadir}/${PN}
|
||||
install -m 0644 ${WORKDIR}/power-config-host0.json ${D}${datadir}/${PN}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
# We have a conf and classes directory, add to BBPATH
|
||||
BBPATH .= ":${LAYERDIR}"
|
||||
|
||||
# We have recipes-* directories, add to BBFILES
|
||||
BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \
|
||||
${LAYERDIR}/recipes-*/*/*.bbappend"
|
||||
|
||||
BBFILE_COLLECTIONS += "s7106-layer"
|
||||
BBFILE_PATTERN_s7106-layer = "^${LAYERDIR}/"
|
||||
BBFILE_PRIORITY_s7106-layer = "5"
|
||||
LAYERSERIES_COMPAT_s7106-layer = "langdale mickledore"
|
||||
@@ -0,0 +1,19 @@
|
||||
KMACHINE = "aspeed"
|
||||
KERNEL_DEVICETREE = "${KMACHINE}-bmc-tyan-${MACHINE}.dtb"
|
||||
|
||||
PREFERRED_PROVIDER_virtual/bootloader = "u-boot-aspeed"
|
||||
PREFERRED_PROVIDER_u-boot = "u-boot-aspeed"
|
||||
PREFERRED_PROVIDER_u-boot-fw-utils = "u-boot-fw-utils-aspeed"
|
||||
UBOOT_MACHINE = "ast_g5_phy_config"
|
||||
|
||||
require conf/machine/include/ast2500.inc
|
||||
require conf/machine/include/obmc-bsp-common.inc
|
||||
require conf/machine/include/tyan.inc
|
||||
|
||||
FLASH_SIZE = "32768"
|
||||
|
||||
# We don't have configuration for these components yet, so remove them.
|
||||
PREFERRED_PROVIDER_virtual/obmc-fan-mgmt = "tyan-dummy"
|
||||
IMAGE_FEATURES:remove = "obmc-fan-control"
|
||||
IMAGE_FEATURES:remove = "obmc-fan-mgmt"
|
||||
IMAGE_FEATURES:remove = "obmc-flash-mgmt"
|
||||
@@ -0,0 +1,17 @@
|
||||
# LAYER_CONF_VERSION is increased each time build/conf/bblayers.conf
|
||||
# changes incompatibly
|
||||
LCONF_VERSION = "8"
|
||||
|
||||
BBPATH = "${TOPDIR}"
|
||||
BBFILES ?= ""
|
||||
|
||||
BBLAYERS ?= " \
|
||||
##OEROOT##/meta \
|
||||
##OEROOT##/meta-openembedded/meta-oe \
|
||||
##OEROOT##/meta-openembedded/meta-networking \
|
||||
##OEROOT##/meta-openembedded/meta-python \
|
||||
##OEROOT##/meta-phosphor \
|
||||
##OEROOT##/meta-aspeed \
|
||||
##OEROOT##/meta-tyan \
|
||||
##OEROOT##/meta-tyan/meta-s7106 \
|
||||
"
|
||||
@@ -0,0 +1,2 @@
|
||||
Common targets are:
|
||||
obmc-phosphor-image
|
||||
@@ -0,0 +1,17 @@
|
||||
MACHINE ??= "s7106"
|
||||
DISTRO ?= "openbmc-phosphor"
|
||||
PACKAGE_CLASSES ?= "package_ipk"
|
||||
SANITY_TESTED_DISTROS:append ?= " *"
|
||||
EXTRA_IMAGE_FEATURES = "debug-tweaks"
|
||||
USER_CLASSES ?= "buildstats"
|
||||
PATCHRESOLVE = "noop"
|
||||
BB_DISKMON_DIRS = "\
|
||||
STOPTASKS,${TMPDIR},1G,100K \
|
||||
STOPTASKS,${DL_DIR},1G,100K \
|
||||
STOPTASKS,${SSTATE_DIR},1G,100K \
|
||||
STOPTASKS,/tmp,100M,100K \
|
||||
HALT,${TMPDIR},100M,1K \
|
||||
HALT,${DL_DIR},100M,1K \
|
||||
HALT,${SSTATE_DIR},100M,1K \
|
||||
HALT,/tmp,10M,1K"
|
||||
CONF_VERSION = "2"
|
||||
@@ -0,0 +1,20 @@
|
||||
CONFIG_ASPEED_UART_ROUTING=y
|
||||
CONFIG_DEVMEM=y
|
||||
CONFIG_I2C_MUX_GPIO=y
|
||||
CONFIG_SENSORS_NCT7802=y
|
||||
|
||||
# Support for virtual USB NIC
|
||||
CONFIG_USB_U_ETHER=y
|
||||
CONFIG_USB_F_ECM=y
|
||||
CONFIG_USB_CONFIGFS_ECM=y
|
||||
CONFIG_USB_CONFIGFS_ECM_SUBSET=y
|
||||
|
||||
# Enable PECI
|
||||
CONFIG_PECI=y
|
||||
CONFIG_PECI_CHARDEV=y
|
||||
CONFIG_PECI_ASPEED=y
|
||||
CONFIG_SENSORS_PECI_CPUTEMP=y
|
||||
CONFIG_SENSORS_PECI_DIMMTEMP=y
|
||||
CONFIG_SENSORS_PECI_CPUPOWER=y
|
||||
CONFIG_SENSORS_PECI_DIMMPOWER=y
|
||||
CONFIG_IPMB_DEVICE_INTERFACE=y
|
||||
@@ -0,0 +1,4 @@
|
||||
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
|
||||
SRC_URI:append = " \
|
||||
file://s7106.cfg \
|
||||
"
|
||||
@@ -0,0 +1 @@
|
||||
KCS_DEVICE = "ipmi-kcs1"
|
||||
@@ -0,0 +1,11 @@
|
||||
# We have a conf and classes directory, add to BBPATH
|
||||
BBPATH .= ":${LAYERDIR}"
|
||||
|
||||
# We have recipes-* directories, add to BBFILES
|
||||
BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \
|
||||
${LAYERDIR}/recipes-*/*/*.bbappend"
|
||||
|
||||
BBFILE_COLLECTIONS += "s8036-layer"
|
||||
BBFILE_PATTERN_s8036-layer = "^${LAYERDIR}/"
|
||||
BBFILE_PRIORITY_s8036-layer = "5"
|
||||
LAYERSERIES_COMPAT_s8036-layer = "langdale mickledore"
|
||||
@@ -0,0 +1,19 @@
|
||||
KMACHINE = "aspeed"
|
||||
KERNEL_DEVICETREE = "${KMACHINE}-bmc-tyan-${MACHINE}.dtb"
|
||||
|
||||
PREFERRED_PROVIDER_virtual/bootloader = "u-boot-aspeed"
|
||||
PREFERRED_PROVIDER_u-boot = "u-boot-aspeed"
|
||||
PREFERRED_PROVIDER_u-boot-fw-utils = "u-boot-fw-utils-aspeed"
|
||||
UBOOT_MACHINE = "ast_g5_phy_config"
|
||||
|
||||
require conf/machine/include/ast2500.inc
|
||||
require conf/machine/include/obmc-bsp-common.inc
|
||||
require conf/machine/include/tyan.inc
|
||||
|
||||
FLASH_SIZE = "32768"
|
||||
|
||||
# We don't have configuration for these components yet, so remove them.
|
||||
PREFERRED_PROVIDER_virtual/obmc-fan-mgmt = "tyan-dummy"
|
||||
IMAGE_FEATURES:remove = "obmc-fan-control"
|
||||
IMAGE_FEATURES:remove = "obmc-fan-mgmt"
|
||||
IMAGE_FEATURES:remove = "obmc-flash-mgmt"
|
||||
@@ -0,0 +1,17 @@
|
||||
# LAYER_CONF_VERSION is increased each time build/conf/bblayers.conf
|
||||
# changes incompatibly
|
||||
LCONF_VERSION = "8"
|
||||
|
||||
BBPATH = "${TOPDIR}"
|
||||
BBFILES ?= ""
|
||||
|
||||
BBLAYERS ?= " \
|
||||
##OEROOT##/meta \
|
||||
##OEROOT##/meta-openembedded/meta-oe \
|
||||
##OEROOT##/meta-openembedded/meta-networking \
|
||||
##OEROOT##/meta-openembedded/meta-python \
|
||||
##OEROOT##/meta-phosphor \
|
||||
##OEROOT##/meta-aspeed \
|
||||
##OEROOT##/meta-tyan \
|
||||
##OEROOT##/meta-tyan/meta-s8036 \
|
||||
"
|
||||
@@ -0,0 +1,2 @@
|
||||
Common targets are:
|
||||
obmc-phosphor-image
|
||||
@@ -0,0 +1,17 @@
|
||||
MACHINE ??= "s8036"
|
||||
DISTRO ?= "openbmc-phosphor"
|
||||
PACKAGE_CLASSES ?= "package_ipk"
|
||||
SANITY_TESTED_DISTROS:append ?= " *"
|
||||
EXTRA_IMAGE_FEATURES = "debug-tweaks"
|
||||
USER_CLASSES ?= "buildstats"
|
||||
PATCHRESOLVE = "noop"
|
||||
BB_DISKMON_DIRS = "\
|
||||
STOPTASKS,${TMPDIR},1G,100K \
|
||||
STOPTASKS,${DL_DIR},1G,100K \
|
||||
STOPTASKS,${SSTATE_DIR},1G,100K \
|
||||
STOPTASKS,/tmp,100M,100K \
|
||||
HALT,${TMPDIR},100M,1K \
|
||||
HALT,${DL_DIR},100M,1K \
|
||||
HALT,${SSTATE_DIR},100M,1K \
|
||||
HALT,/tmp,10M,1K"
|
||||
CONF_VERSION = "2"
|
||||
@@ -0,0 +1,10 @@
|
||||
CONFIG_ASPEED_UART_ROUTING=y
|
||||
CONFIG_DEVMEM=y
|
||||
CONFIG_I2C_MUX_GPIO=y
|
||||
CONFIG_SENSORS_NCT7802=y
|
||||
|
||||
# Support for virtual USB NIC
|
||||
CONFIG_USB_U_ETHER=y
|
||||
CONFIG_USB_F_ECM=y
|
||||
CONFIG_USB_CONFIGFS_ECM=y
|
||||
CONFIG_USB_CONFIGFS_ECM_SUBSET=y
|
||||
@@ -0,0 +1,4 @@
|
||||
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
|
||||
SRC_URI:append = " \
|
||||
file://s8036.cfg \
|
||||
"
|
||||
@@ -0,0 +1,3 @@
|
||||
# Create additional kcsbridge service on /dev/ipmi-kcs1
|
||||
KCS_DEVICE_ALT = "ipmi-kcs1"
|
||||
SYSTEMD_SERVICE:${PN} += " ${PN}@${KCS_DEVICE_ALT}.service"
|
||||
Reference in New Issue
Block a user