summaryrefslogtreecommitdiffstats
path: root/meta-quanta/meta-gsj
diff options
context:
space:
mode:
authorPKLee-Quanta <p.k.lee@quantatw.com>2019-03-21 13:51:41 +0800
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2019-03-28 14:26:58 -0400
commitc487d70747a52c7e06a8e49a6e4e45929b623820 (patch)
treedc6603a6c09478857b02146d23c9c2220f1a9fba /meta-quanta/meta-gsj
parent160fe2da0adaff5fafe8915122c5fa08cb7bfd01 (diff)
downloadtalos-openbmc-c487d70747a52c7e06a8e49a6e4e45929b623820.tar.gz
talos-openbmc-c487d70747a52c7e06a8e49a6e4e45929b623820.zip
meta-quanta: add the whitelist of ipmi commands for meta-gsj
The modified whitelist by the admin will replace the default whitelist. Tested: Build Quanta GSJ board image and load on the EVB. Ensure that BMC boots to console, and the whitelist is working. (From meta-quanta rev: bccdfbe91fb21e7c16c3204a88133f43f01a002c) Change-Id: I8a3713a30b982ed59b1d45c90123155288bc7994 Signed-off-by: PKLee-Quanta <p.k.lee@quantatw.com> Signed-off-by: Tien-hung Huang <buddy.huang@quantatw.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'meta-quanta/meta-gsj')
-rw-r--r--meta-quanta/meta-gsj/recipes-phosphor/phosphor-ipmi-host/gsj-ipmid-whitelist.conf47
-rw-r--r--meta-quanta/meta-gsj/recipes-phosphor/phosphor-ipmi-host_%.bbappend7
2 files changed, 54 insertions, 0 deletions
diff --git a/meta-quanta/meta-gsj/recipes-phosphor/phosphor-ipmi-host/gsj-ipmid-whitelist.conf b/meta-quanta/meta-gsj/recipes-phosphor/phosphor-ipmi-host/gsj-ipmid-whitelist.conf
new file mode 100644
index 000000000..a0d18b480
--- /dev/null
+++ b/meta-quanta/meta-gsj/recipes-phosphor/phosphor-ipmi-host/gsj-ipmid-whitelist.conf
@@ -0,0 +1,47 @@
+#<NetFn>:<Command>
+0x00:0x00 //<Chassis>:<Chassis Capabiliti>
+0x00:0x01 //<Chassis>:<Get Chassis Status>
+0x00:0x02 //<Chassis>:<Chassis Control>
+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 Command>
+0x04:0x02 //<Sensor/Event>:<Platform event>
+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: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:0x2E //<App>:<Set BMC Global Enables>
+0x06:0x2F //<App>:<Get BMC Global Enables>
+0x06:0x31 //<App>:<Get Message Flags>
+0x06:0x35 //<App>:<Read Event Message Buffer>
+0x06:0x36 //<App>:<Get BT Interface Capabilities>
+0x06:0x37 //<App>:<Get System GUID>
+0x06:0x42 //<App>:<Get Channel Info Command>
+0x06:0x54 //<App>:<Get Channel Cipher Suites>
+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:0x44 //<Storage>:<Add SEL Entry>
+0x0A:0x48 //<Storage>:<Get SEL Time>
+0x0A:0x49 //<Storage>:<Set SEL Time>
+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:0x10 //<Group Extension>:<Get Temperature Readings>
diff --git a/meta-quanta/meta-gsj/recipes-phosphor/phosphor-ipmi-host_%.bbappend b/meta-quanta/meta-gsj/recipes-phosphor/phosphor-ipmi-host_%.bbappend
new file mode 100644
index 000000000..8b24bf754
--- /dev/null
+++ b/meta-quanta/meta-gsj/recipes-phosphor/phosphor-ipmi-host_%.bbappend
@@ -0,0 +1,7 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
+
+# Replace the default whitelist for GSJ board.
+SRC_URI += " file://gsj-ipmid-whitelist.conf"
+
+WHITELIST_CONF_remove = " ${S}/host-ipmid-whitelist.conf"
+WHITELIST_CONF_append = " ${WORKDIR}/gsj-ipmid-whitelist.conf"
OpenPOWER on IntegriCloud