summaryrefslogtreecommitdiff
path: root/meta-ampere/meta-jade/recipes-phosphor/ipmi
AgeCommit message (Collapse)AuthorFilesLines
2021-12-16meta-ampere: mtjade: fru: use dynamic sensorsThang Q. Nguyen3-35/+9
Change to use dynamic sensors for FRU support to take advantage of IPMI fru read/write commands. Tested: 1. Check FRU reading $ ipmitool fru print 2. Write fru.bin into FRU EEPROM Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com> Signed-off-by: Thang Tran <thuutran@amperecomputing.com> Change-Id: I0d0b52ae7b0fd301a14d0d2894268637d867a5b8
2021-09-02meta-phosphor: change systemd.bbclass to match upstream override syntaxPatrick Williams1-2/+2
Upstream bbclasses changed to typically use the `:${PN}` override syntax, including the SYSTEMD_ variables. Change our systemd.bbclass to do the same for consistency and perform a tree-wide variable replacement. Spot checked by building bletchley and witherspoon and checking some of the SYSTEMD_LINK directives on installed packages under qemu. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I20a9dd809bff8af8759488734f80486c7228c6eb
2021-08-28meta-ampere: mtjade: add DCMI sensor configurationThang Q. Nguyen2-0/+33
Add DCMI sensor configuration for the Mt.Jade platform. Tested: 1. root@mtjade:~# ipmitool dcmi sensors Inlet: 2 temperature sensors found: Record ID 0x00f3: PSU0_TEMP | 26 degrees C | ok Record ID 0x00f4: PSU1_TEMP | 31 degrees C | ok Baseboard: 6 temperature sensors found: Record ID 0x0001: TS1_Temp | 31 degrees C | ok Record ID 0x0002: TS2_Temp | 32 degrees C | ok Record ID 0x0003: TS3_Temp | 31 degrees C | ok Record ID 0x0004: TS4_Temp | 30 degrees C | ok Record ID 0x0005: TS5_Temp | 35 degrees C | ok Record ID 0x0006: TS6_Temp | 32 degrees C | ok Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com> Change-Id: Iff8a94e523346347b7e449522ab5a12b841aee9e
2021-08-13meta-ampere: fix compilation error with latest YoctoThang Q. Nguyen1-2/+2
Make the following changes to fix compilation errors: 1. Add honister to LAYERSERIES_COMPAT 2. Increase CONF_VERSION to 2. 3. Fix mistake on previous change on Yocto syntax update. Tested: 1. Compile OpenBMC for Mt.Jade without error. Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com> Change-Id: I5ac3f568d776109955759fab78844b1d38a51af1
2021-08-07meta-ampere: Cleanup for Yocto override syntax changeThang Q. Nguyen4-13/+13
Run convert-overrides.py meta-ampere and update missing changes as below: - Change all _mtjade to :mtjade - Change all _${PN} to :${PN} Tested: 1. Check compilation without problem. 2. Check basic functions like switch UART mux, power control. Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com> Change-Id: I42038b2a98ed1951d6c770bdf49f5fc440f8163e
2021-08-04meta-ampere: power control: refactor power soft/off functionsThuBaNguyen3-0/+28
The current ampere-hostctl package removes the power off/on services of phosphor-state-manager and uses Ampere services. This solution is not correct. Ampere platform should use power control functions of phosphor-state-manager. And only appends or overides the default services by Ampere's services if need. By default, to handle power soft action, phosphor-state-manager will trigger obmc-host-shutdown@0.target. This target then call xyz.openbmc_project.Ipmi.Internal.SoftPowerOff.service to request OS shutdown. When the host OS shutdown is already done, the target will trigger obmc-chassis-poweroff@0.target to turn off the chassis. The default xyz.openbmc_project.Ipmi.Internal.SoftPowerOff.service uses Ipmi inband to communicate with the host. It is different with Ampere Mt.Jade platform. We use the GPIO pin SHD_REQ to request shutdown the host OS. The host will trigger SHD_ACK when shutdown is done. So *.Ipmi.Internal.SoftPowerOff.service will be overide by Ampere service named ampere.*.Ipmi.Internal.SoftPowerOff.service. This service will trigger SHD_REQ pin and wait for SHD_ACK before start obmc-chassis-poweroff@0.target. This commit removes ampere-chassis-poweroff, ampere-host-shutdown serives which handle power off/soft actions and restore phosphor-state-manager's services. It also supports ampere.xyz.openbmc_project.Ipmi.Internal.SoftPowerOff.service which will overide xyz.openbmc_project.Ipmi.Internal.SoftPowerOff.service. Tested: 1. Create "power soft" actions use ipmitool, redfish and BMC web. 2. Make sure the power order will be shutdown the host then power of the chassis. 3. Create "power off" actions use ipmitool, redfish and BMC web. 4. Make sure the power action will be power off the chassis. Signed-off-by: ThuBaNguyen <thu@os.amperecomputing.com> Change-Id: Ibc0dc8c62408e8282520c9b70e41ab75c10137f6
2021-07-27meta-ampere: mtjade: enable IPMI on eth1Thang Q. Nguyen1-0/+7
NCSI was enabled in Mt.Jade device tree. This makes the RGMII port is now eth1. However, just eth0 is enabled for IPMI OOB so running IPMI OOB command is fail with RGMII's IP address. This commit sets eth1 as default Ethernet port for IPMI OOB command and set eth0 as alternative IPMI OOB port. Tested: 1. Run IPMI commands from client with RGMII's IP address $ ipmitool -U root -P 0penBmc -C 17 -I lanplus -H 10.38.64.72 power status Chassis Power is on Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com> Change-Id: Iba65221b8cab99486d1f35026e0cf593cce4a8c9
2021-06-25meta-ampere: mtjade: support IPMI sensor reportThang Q. Nguyen1-0/+1
Add ipmi-sensor Yaml file to configure IPMI sensor report following Mt.Jade SDR Definition document. Tested: 1. Check sensor report using IPMI sdr and sensor commands: $ ipmitool sdr list $ ipmitool sensor list Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com> Change-Id: Ib61d459087d3cf2711b2dd19a64c69d91e39861f
2021-02-09meta-ampere: mtjade: support FRU inventoryThang Q. Nguyen3-0/+42
Support to parse the Mt.Jade FRU device, map FRU data with inventory information and report FRU content via IPMI. Tested: 1. Run IPMI fru print command: root@mtjade:~# ipmitool fru print FRU Device Description : Builtin FRU Device (ID 0) Chassis Type : Rack Mount Chassis Chassis Serial : A1A1-A000-0000000000123 Board Mfg Date : Fri Feb 5 00:00:00 2021 UTC Board Mfg : WIWYNN Board Product : Mt.Jade Motherboard Board Serial : B8103010002500900019J0LB Board Part Number : B81.03010.0026 Product Manufacturer : WIWYNN Product Name : Mt.Jade Server System Product Part Number : B81.03001.0009 Product Version : EVT2 Product Serial : B810300100050130002DN0SD 2. Check FRU inventory reoirt from REST /xyz/openbmc_project/inventory/system/chassis/motherboard Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com> Change-Id: I231d5766b2f89a535d850eb437d63a9db84fb846
2021-02-01meta-ampere: ipmi: Add device ID configThang Q. Nguyen2-0/+3
Add device ID configuration for IPMI mc info command. Tested: ran command `ipmitool mc info` and got responses Device ID : 32 Device Revision : 1 Firmware Revision : 0.00 IPMI Version : 2.0 Manufacturer ID : 52538 Manufacturer Name : Unknown (0xCD3A) Product ID : 130 (0x0082) Product Name : Unknown (0x82) Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com> Change-Id: I32a1e8443b0f202cbe2133cb048d66f08e866744