Initial commit
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
[{
|
||||
"blobBaseId": "/skm/hss/",
|
||||
"sysFilePath": "/sys/class/i2c-adapter/i2c-5/5-0050/eeprom",
|
||||
"offsetBytes": 256,
|
||||
"maxSizeBytes": 512
|
||||
}]
|
||||
@@ -0,0 +1,8 @@
|
||||
FILESEXTRAPATHS:prepend:gbs := "${THISDIR}/${PN}:"
|
||||
SRC_URI:append:gbs = " file://config.json"
|
||||
FILES:${PN}:append:gbs = " ${datadir}/binaryblob/config.json"
|
||||
|
||||
do_install:append:gbs() {
|
||||
install -d ${D}${datadir}/binaryblob/
|
||||
install ${WORKDIR}/config.json ${D}${datadir}/binaryblob/config.json
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
FILESEXTRAPATHS:prepend:gbs := "${THISDIR}/${PN}:"
|
||||
@@ -0,0 +1,2 @@
|
||||
{"id": 32, "revision": 129, "addn_dev_support": 141,
|
||||
"manuf_id": 7244, "prod_id": 14401, "aux": 0}
|
||||
@@ -0,0 +1,28 @@
|
||||
[
|
||||
{
|
||||
"id": 1,
|
||||
"containerEntityId" : 30,
|
||||
"containerEntityInstance" : 0,
|
||||
"isList" : false,
|
||||
"isLinked" : false,
|
||||
"entities" : [
|
||||
{"id" : 11, "instance" : 0},
|
||||
{"id" : 11, "instance" : 1},
|
||||
{"id" : 29, "instance" : 0},
|
||||
{"id" : 29, "instance" : 1}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"containerEntityId" : 30,
|
||||
"containerEntityInstance" : 1,
|
||||
"isList" : false,
|
||||
"isLinked" : false,
|
||||
"entities" : [
|
||||
{"id" : 29, "instance" : 2},
|
||||
{"id" : 29, "instance" : 4},
|
||||
{"id" : 0, "instance" : 0},
|
||||
{"id" : 0, "instance" : 0}
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,5 @@
|
||||
NUVOTON_FLASH_PCIMBOX = "0xF0848000"
|
||||
|
||||
PACKAGECONFIG:append:gbs = " nuvoton-p2a-mbox"
|
||||
|
||||
IPMI_FLASH_BMC_ADDRESS:gbs = "${NUVOTON_FLASH_PCIMBOX}"
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
OF_NAME=fan_fru
|
||||
SYSFS_PATH=/no-such-path/eeprom
|
||||
FRUID=0x02
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
OF_NAME=hsbp_fru
|
||||
SYSFS_PATH=/no-such-path/eeprom
|
||||
FRUID=0x01
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
OF_NAME=mb_fru
|
||||
SYSFS_PATH=/sys/bus/i2c/devices/5-0050/eeprom
|
||||
FRUID=0x00
|
||||
@@ -0,0 +1,26 @@
|
||||
inherit obmc-phosphor-systemd
|
||||
DEPENDS:append:gbs = " gbs-yaml-config"
|
||||
|
||||
FILESEXTRAPATHS:prepend:gbs := "${THISDIR}/${PN}:"
|
||||
|
||||
EEPROM_NAMES = "motherboard hsbp fan"
|
||||
|
||||
EEPROMFMT = "system/chassis/{0}"
|
||||
EEPROM_ESCAPEDFMT = "system-chassis-{0}"
|
||||
EEPROMS = "${@compose_list(d, 'EEPROMFMT', 'EEPROM_NAMES')}"
|
||||
EEPROMS_ESCAPED = "${@compose_list(d, 'EEPROM_ESCAPEDFMT', 'EEPROM_NAMES')}"
|
||||
|
||||
ENVFMT = "obmc/eeproms/{0}"
|
||||
SYSTEMD_ENVIRONMENT_FILE:${PN}:append:gbs := " ${@compose_list(d, 'ENVFMT', 'EEPROMS')}"
|
||||
|
||||
TMPL = "obmc-read-eeprom@.service"
|
||||
TGT = "multi-user.target"
|
||||
INSTFMT = "obmc-read-eeprom@{0}.service"
|
||||
FMT = "../${TMPL}:${TGT}.wants/${INSTFMT}"
|
||||
|
||||
SYSTEMD_LINK:${PN}:append:gbs := " ${@compose_list(d, 'FMT', 'EEPROMS_ESCAPED')}"
|
||||
|
||||
EXTRA_OECONF:append:gbs = ""
|
||||
|
||||
IPMI_FRU_YAML:gbs="${STAGING_DIR_HOST}${datadir}/gbs-yaml-config/ipmi-fru-read.yaml"
|
||||
IPMI_FRU_PROP_YAML:gbs="${STAGING_DIR_HOST}${datadir}/gbs-yaml-config/ipmi-extra-properties.yaml"
|
||||
+79
@@ -0,0 +1,79 @@
|
||||
#<NetFn>:<Command>
|
||||
0x00:0x00 //<Chassis>:<Chassis Capabiliti>
|
||||
0x00:0x01 //<Chassis>:<Get Chassis Status>
|
||||
0x00:0x02 //<Chassis>:<Chassis Control>
|
||||
0x00:0x04 //<Chassis>:<Chassis Identify>
|
||||
0x00:0x05 //<Chassis>:<Set Chassis Capabilities>
|
||||
0x00:0x06 //<Chassis>:<Set Power Restore Policy>
|
||||
0x00:0x08 //<Chassis>:<Set System Boot Options>
|
||||
0x00:0x09 //<Chassis>:<Get System Boot Options>
|
||||
0x00:0x0F //<Chassis>:<Get POH Counter>
|
||||
0x04:0x02 //<Sensor/Event>:<Platform Event>
|
||||
0x04:0x20 //<Sensor/Event>:<Get Device SDR Info>
|
||||
0x04:0x21 //<Sensor/Event>:<Get Device SDR>
|
||||
0x04:0x22 //<Sensor/Event>:<Reserve Device SDR Repository>
|
||||
0x04:0x27 //<Sensor/Event>:<Get Sensor Threshold>
|
||||
0x04:0x29 //<Sensor/Event>:<Get Sensor Event Enable>
|
||||
0x04:0x2B //<Sensor/Event>:<Get Sensor Event Status>
|
||||
0x04:0x2D //<Sensor/Event>:<Get Sensor Reading>
|
||||
0x04:0x2F //<Sensor/Event>:<Get Sensor Type>
|
||||
0x04:0x30 //<Sensor/Event>:<Set Sensor Reading and Event Status>
|
||||
0x06:0x01 //<App>:<Get Device ID>
|
||||
0x06:0x02 //<App>:<Cold Reset>
|
||||
0x06:0x03 //<App>:<Warm Reset>
|
||||
0x06:0x04 //<App>:<Get Self Test Results>
|
||||
0x06:0x06 //<App>:<Set ACPI Power State>
|
||||
0x06:0x07 //<App>:<Get ACPI Power State>
|
||||
0x06:0x08 //<App>:<Get Device GUID>
|
||||
0x06:0x22 //<App>:<Reset Watchdog Timer>
|
||||
0x06:0x24 //<App>:<Set Watchdog Timer>
|
||||
0x06:0x25 //<App>:<Get Watchdog Timer>
|
||||
0x06:0x35 //<App>:<Read Event Message Buffer>
|
||||
0x06:0x3D //<App>:<Get Session Info>
|
||||
0x06:0x40 //<App>:<Set Channel Access>
|
||||
0x06:0x41 //<App>:<Get Channel Access>
|
||||
0x06:0x42 //<App>:<Get Channel Info>
|
||||
0x06:0x43 //<App>:<Set User Access>
|
||||
0x06:0x44 //<App>:<Get User Access>
|
||||
0x06:0x45 //<App>:<Set User Name>
|
||||
0x06:0x46 //<App>:<Get User Name>
|
||||
0x06:0x47 //<App>:<Set User Password>
|
||||
0x06:0x48 //<App>:<Activate Payload>
|
||||
0x06:0x49 //<App>:<Deactivate Payload>
|
||||
0x06:0x4A //<App>:<Get Payload Activation Status>
|
||||
0x06:0x4B //<App>:<Get Payload Instance Info>
|
||||
0x06:0x54 //<App>:<Get Channel Cipher Suites>
|
||||
0x06:0x58 //<App>:<Set System Info Parameters>
|
||||
0x06:0x59 //<App>:<Get System Info Parameters>
|
||||
0x0A:0x10 //<Storage>:<Get FRU Inventory Area Info>
|
||||
0x0A:0x11 //<Storage>:<Read FRU Data>
|
||||
0x0A:0x20 //<Storage>:<Get SDR Repository Info>
|
||||
0x0A:0x22 //<Storage>:<Reserve SDR Repository>
|
||||
0x0A:0x23 //<Storage>:<Get SDR>
|
||||
0x0A:0x40 //<Storage>:<Get SEL Info>
|
||||
0x0A:0x42 //<Storage>:<Reserve SEL>
|
||||
0x0A:0x43 //<Storage>:<Get SEL Entry>
|
||||
0x0A:0x44 //<Storage>:<Add SEL Entry>
|
||||
0x0A:0x46 //<Storage>:<Delete SEL Entry>
|
||||
0x0A:0x47 //<Storage>:<Clear SEL>
|
||||
0x0A:0x48 //<Storage>:<Get SEL Time>
|
||||
0x0A:0x49 //<Storage>:<Set SEL Time>
|
||||
0x0C:0x01 //<Transport>:<Set LAN Configuration Parameters>
|
||||
0x0C:0x02 //<Transport>:<Get LAN Configuration Parameters>
|
||||
0x2C:0x00 //<Group Extension>:<Group Extension Command>
|
||||
0x2C:0x01 //<Group Extension>:<Get DCMI Capabilities>
|
||||
0x2C:0x02 //<Group Extension>:<Get Power Reading>
|
||||
0x2C:0x03 //<Group Extension>:<Get Power Limit>
|
||||
0x2C:0x06 //<Group Extension>:<Get Asset Tag>
|
||||
0x2C:0x07 //<Group Extension>:<Get Sensor Info>
|
||||
0x2C:0x09 //<Group Extension>:<Get Management Controller Identifier String>
|
||||
0x2C:0x0A //<Group Extension>:<Set Management Controller Identifier String>
|
||||
0x2C:0x10 //<Group Extension>:<Get Temperature Readings>
|
||||
0x2C:0x12 //<Group Extension>:<Set DCMI Configuration Parameters>
|
||||
0x2C:0x13 //<Group Extension>:<Get DCMI Configuration Parameters>
|
||||
0x2C:0x3E //<Group Extension>:<Get HPM.x Capabilities>
|
||||
0x2E:0x02 //<Google OEM>:<I2C via Proxy Adapter>
|
||||
0x2E:0x04 //<Google OEM>:<Fan Manual Control Mode>
|
||||
0x2E:0x30 //<Google OEM>:<Ethernet Statistics>
|
||||
0x2E:0x32 //<Google OEM>:<Sys Commands>
|
||||
0x2E:0x80 //<Google OEM>:<Blob Commands>
|
||||
@@ -0,0 +1,14 @@
|
||||
DEPENDS:append:gbs = " gbs-yaml-config"
|
||||
|
||||
FILESEXTRAPATHS:prepend:gbs := "${THISDIR}/${PN}:"
|
||||
SRC_URI:append:gbs = " file://gbs-ipmid-whitelist.conf"
|
||||
|
||||
WHITELIST_CONF:gbs = "${WORKDIR}/gbs-ipmid-whitelist.conf"
|
||||
|
||||
EXTRA_OEMESON:append:gbs = " \
|
||||
-Dsensor-yaml-gen=${STAGING_DIR_HOST}${datadir}/gbs-yaml-config/ipmi-sensors.yaml \
|
||||
-Dfru-yaml-gen=${STAGING_DIR_HOST}${datadir}/gbs-yaml-config/ipmi-fru-read.yaml \
|
||||
-Dinvsensor-yaml-gen=${STAGING_DIR_HOST}${datadir}/gbs-yaml-config/ipmi-inventory-sensors.yaml \
|
||||
"
|
||||
|
||||
RDEPENDS:${PN}:remove:gbs = "clear-once"
|
||||
@@ -0,0 +1 @@
|
||||
KCS_DEVICE:gbs = "ipmi-kcs1"
|
||||
Reference in New Issue
Block a user