Initial commit
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
# 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 += "e3c246d4i-layer"
|
||||
BBFILE_PATTERN_e3c246d4i-layer = "^${LAYERDIR}/"
|
||||
LAYERSERIES_COMPAT_e3c246d4i-layer = "langdale mickledore"
|
||||
@@ -0,0 +1,19 @@
|
||||
KMACHINE = "aspeed"
|
||||
KERNEL_DEVICETREE = "${KMACHINE}-bmc-asrock-${MACHINE}.dtb"
|
||||
|
||||
UBOOT_DEVICETREE = "ast2500-evb"
|
||||
UBOOT_MACHINE = "evb-ast2500_defconfig"
|
||||
|
||||
FLASH_SIZE = "32768"
|
||||
|
||||
require conf/machine/include/ast2500.inc
|
||||
require conf/machine/include/obmc-bsp-common.inc
|
||||
|
||||
PREFERRED_PROVIDER_virtual/obmc-flash-mgmt = "packagegroup-asrock-apps"
|
||||
PREFERRED_PROVIDER_virtual/obmc-system-mgmt = "packagegroup-asrock-apps"
|
||||
|
||||
VIRTUAL-RUNTIME_obmc-host-state-manager = "x86-power-control"
|
||||
VIRTUAL-RUNTIME_obmc-chassis-state-manager = "x86-power-control"
|
||||
|
||||
VIRTUAL-RUNTIME_obmc-inventory-manager = "entity-manager"
|
||||
VIRTUAL-RUNTIME_obmc-sensors-hwmon = "dbus-sensors"
|
||||
@@ -0,0 +1,18 @@
|
||||
# LAYER_CONF_VERSION is increased each time build/conf/bblayers.conf
|
||||
# changes incompatibly
|
||||
LCONF_VERSION = "8"
|
||||
|
||||
BBPATH = "${TOPDIR}"
|
||||
BBFILES ?= ""
|
||||
|
||||
BBLAYERS ?= " \
|
||||
##OEROOT##/meta \
|
||||
##OEROOT##/meta-poky \
|
||||
##OEROOT##/meta-openembedded/meta-oe \
|
||||
##OEROOT##/meta-openembedded/meta-networking \
|
||||
##OEROOT##/meta-openembedded/meta-python \
|
||||
##OEROOT##/meta-phosphor \
|
||||
##OEROOT##/meta-aspeed \
|
||||
##OEROOT##/meta-asrock \
|
||||
##OEROOT##/meta-asrock/meta-e3c246d4i \
|
||||
"
|
||||
@@ -0,0 +1,17 @@
|
||||
MACHINE ??= "e3c246d4i"
|
||||
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,30 @@
|
||||
SUMMARY = "OpenBMC for ASRock - Applications"
|
||||
PR = "r1"
|
||||
|
||||
inherit packagegroup
|
||||
|
||||
PROVIDES = "${PACKAGES}"
|
||||
PACKAGES = " \
|
||||
${PN}-flash \
|
||||
${PN}-system \
|
||||
"
|
||||
|
||||
PROVIDES += "virtual/obmc-flash-mgmt"
|
||||
PROVIDES += "virtual/obmc-system-mgmt"
|
||||
|
||||
RPROVIDES:${PN}-flash += "virtual-obmc-flash-mgmt"
|
||||
RPROVIDES:${PN}-system += "virtual-obmc-system-mgmt"
|
||||
|
||||
SUMMARY:${PN}-flash = "ASRock Flash"
|
||||
RDEPENDS:${PN}-flash = " \
|
||||
phosphor-ipmi-flash \
|
||||
"
|
||||
|
||||
SUMMARY:${PN}-system = "ASRock System"
|
||||
RDEPENDS:${PN}-system = " \
|
||||
bmcweb \
|
||||
webui-vue \
|
||||
phosphor-host-postd \
|
||||
phosphor-ipmi-kcs \
|
||||
phosphor-post-code-manager \
|
||||
"
|
||||
@@ -0,0 +1,3 @@
|
||||
lpc-address = 0x2f8
|
||||
sirq = 3
|
||||
baud = 115200
|
||||
@@ -0,0 +1 @@
|
||||
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
|
||||
@@ -0,0 +1 @@
|
||||
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"id": 32,
|
||||
"revision": 1,
|
||||
"addn_dev_support": 8,
|
||||
"manuf_id": 49622,
|
||||
"prod_id": 514,
|
||||
"aux": 0
|
||||
}
|
||||
+93
@@ -0,0 +1,93 @@
|
||||
{
|
||||
"gpio_configs": [
|
||||
{
|
||||
"Name" : "IdButton",
|
||||
"LineName" : "",
|
||||
"Type" : "GPIO",
|
||||
"Polarity": "ActiveLow"
|
||||
},
|
||||
{
|
||||
"Name" : "NMIButton",
|
||||
"LineName" : "NMI_BTN_N",
|
||||
"Type" : "GPIO",
|
||||
"Polarity": "ActiveLow"
|
||||
},
|
||||
{
|
||||
"Name" : "NMIOut",
|
||||
"LineName" : "BMC_NMI",
|
||||
"Type" : "GPIO",
|
||||
"Polarity": "ActiveHigh"
|
||||
},
|
||||
{
|
||||
"Name" : "PostComplete",
|
||||
"LineName" : "FM_BIOS_POST_CMPLT_N",
|
||||
"Type" : "GPIO",
|
||||
"Polarity": "ActiveLow"
|
||||
},
|
||||
{
|
||||
"Name" : "PowerButton",
|
||||
"LineName" : "BMC_PSIN",
|
||||
"Type" : "GPIO",
|
||||
"Polarity": "ActiveLow"
|
||||
},
|
||||
{
|
||||
"Name" : "PowerOk",
|
||||
/*
|
||||
* The e3c246d4i doesn't have a PS_PWROK signal as far as
|
||||
* I can tell. It does have an O_PWROK line that's driven
|
||||
* by the SuperIO chip, which may "actually" be
|
||||
* SioPowerGood, but it seems to work for this, so...?
|
||||
*/
|
||||
"LineName" : "O_PWROK",
|
||||
"Type" : "GPIO",
|
||||
"Polarity": "ActiveHigh"
|
||||
},
|
||||
{
|
||||
"Name" : "PowerOut",
|
||||
"LineName" : "BMC_PSOUT",
|
||||
"Type" : "GPIO",
|
||||
"Polarity": "ActiveLow"
|
||||
},
|
||||
{
|
||||
"Name" : "ResetButton",
|
||||
"LineName" : "BMC_RESETCON",
|
||||
"Type" : "GPIO",
|
||||
"Polarity": "ActiveLow"
|
||||
},
|
||||
{
|
||||
"Name" : "ResetOut",
|
||||
"LineName" : "RESETCON",
|
||||
"Type" : "GPIO",
|
||||
"Polarity": "ActiveLow"
|
||||
},
|
||||
{
|
||||
"Name" : "SioOnControl",
|
||||
"LineName" : "",
|
||||
"Type" : "GPIO",
|
||||
"Polarity": "ActiveLow"
|
||||
},
|
||||
{
|
||||
"Name" : "SioPowerGood",
|
||||
"LineName" : "",
|
||||
"Type" : "GPIO",
|
||||
"Polarity": "ActiveHigh"
|
||||
},
|
||||
{
|
||||
"Name" : "SIOS5",
|
||||
"LineName" : "SLP_S5",
|
||||
"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,10 @@
|
||||
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
|
||||
|
||||
SRC_URI += " \
|
||||
file://power-config-host0.json \
|
||||
"
|
||||
|
||||
do_install:append() {
|
||||
install -d ${D}/${datadir}/${PN}
|
||||
install -m 0644 ${WORKDIR}/power-config-host0.json ${D}/${datadir}/${PN}
|
||||
}
|
||||
Reference in New Issue
Block a user