summaryrefslogtreecommitdiff
path: root/meta-ampere
AgeCommit message (Collapse)AuthorFilesLines
2024-01-30meta-ampere: Remove uart-mux control scriptsChau Ly9-152/+12
This commit removes support for controlling uart muxes from Host. The uart muxes will now be default to connect to BMC on AC/DC. This therefore can remove all the mux control scripts in obmc-console recipe. Tested: Upon BMC AC/DC Can successfully ssh to Host's uart consoles via BMC's IP Example: ssh root@<BMC_IP> -p 2200 Signed-off-by: Chau Ly <chaul@amperecomputing.com> Change-Id: Ia4f421956f182dcb5d8e2e2ef8cb4eb404a15f2d
2024-01-29meta-ampere: mtmitchell: separate FAN Led group for each FANHieu Huynh2-7/+92
Currently just one LED group for FAN fault check. This causes FAN fault LED might be changed to OFF even when still having failure on some FANs. This commit changes to have LED group for each FAN to fix this issue. Tested: 1. Unplug two random FANs 2. Plug one FAN into the board and verify that FAN Led status is still on 3. Plug all FAN into the board and verify that FAN Led status is off. Signed-off-by: Hieu Huynh <hieuh@os.amperecomputing.com> Change-Id: I8cf2eeafbe7372b0eda85c133e88a228b5cd0a2a
2024-01-29meta-ampere: mtjade: separate FAN Led group for each FANHieu Huynh2-7/+62
Currently just one LED group for FAN fault check. This causes FAN fault LED might be changed to OFF even when still having failure on some FANs. This commit changes to have LED group for each FAN to fix this issue. Tested: 1. Unplug two random FANs 2. Plug one FAN into the board and verify that FAN Led status is still on 3. Plug all FAN into the board and verify that FAN Led status is off. Signed-off-by: Hieu Huynh <hieuh@os.amperecomputing.com> Change-Id: Ic48fb402266bd3b95263ba8278e2f50d3bbb3bfe
2024-01-28meta-ampere: mtmitchell: update LED configuration file nameHieu Huynh3-2/+4
phosphor-led-manager is changed to use xyz.openbmc_project.Inventory. Decorator.Compatible interface to select the configuration file. This updates the led-group-config.json file to com.ampere.Hardware.Chassis.Model.MtMitchell.json follow the phosphor-led-manager. Tested: verify that led config file in the system root@mtmitchell-dcscm:~# ls /usr/share/phosphor-led-manager/ com.ampere.Hardware.Chassis.Model.MtMitchell.json com.ibm.Hardware.Chassis.Model.Rainier1S4U.json com.ibm.Hardware.Chassis.Model.Rainier4U.json com.ibm.Hardware.Chassis.Model.Everest.json com.ibm.Hardware.Chassis.Model.Rainier2U.json Signed-off-by: Hieu Huynh <hieuh@os.amperecomputing.com> Change-Id: Id7a2f885a933319b8b09279689dfb627c843cf88
2024-01-28meta-ampere: mtjade: update LED configuration file nameHieu Huynh3-2/+4
phosphor-led-manager is changed to use xyz.openbmc_project.Inventory. Decorator.Compatible interface to select the configuration file. This updates the led-group-config.json file to com.ampere.Hardware.Chassis.Model.MtMitchell.json follow the phosphor-led-manager. Tested: verify that led config file in the system root@mtjade:~# ls /usr/share/phosphor-led-manager/ com.ampere.Hardware.Chassis.Model.MtJade.json com.ibm.Hardware.Chassis.Model.Rainier1S4U.json com.ibm.Hardware.Chassis.Model.Rainier4U.json com.ibm.Hardware.Chassis.Model.Everest.json com.ibm.Hardware.Chassis.Model.Rainier2U.json Signed-off-by: Hieu Huynh <hieuh@os.amperecomputing.com> Change-Id: I83647f465506d3fc3202d2b8f7145a1342f86dcf
2024-01-28meta-ampere: remove unused shell scriptsThang Q. Nguyen15-992/+7
Remove shell scripts which are not used in core services. Tested: 1. Compile Mt.Jade and Mt.Mitchell without errors 2. Check power control still works fine Change-Id: I740b804a9e43b4826c5549a7a1e17eab745ded70 Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com>
2024-01-26meta-ampere: mtmitchell: led: support bmc_booted ledsThang Tran5-37/+15
This commit adds bmc_ready and sw_heartbeat leds to bmc_booted group. When BMC's status is Ready, phosphor-led-manager shall assert bmc_ready GPIO and create bmc/sw heart-beat signals to CPLD/HOST. By the heartbeat signals are create by leds, the service to create heartbeat signals is redundant, therefore ampere-bmc-heartbeat.service shall be removed. Tested: 1. Turn on/off, power cycle, reboot host features work correctly. Signed-off-by: Thang Tran <thuutran@amperecomputing.com> Change-Id: If21649c1a70a6b43acf8130561181e534f762b61
2023-12-23meta-ampere: update PSU1 name in phosphor-gpio-presentHieu Huynh2-2/+2
This corrects the name of the PSU from CPU1 to PSU1. Tested: 1. Get PSUs name busctl get-property xyz.openbmc_project.Inventory.Manager \ /xyz/openbmc_project/inventory/system/powersupply/PowerSupply0 \ xyz.openbmc_project.Inventory.Item PrettyName s "PSU0" busctl get-property xyz.openbmc_project.Inventory.Manager \ /xyz/openbmc_project/inventory/system/powersupply/PowerSupply1 \ xyz.openbmc_project.Inventory.Item PrettyName s "PSU1" Signed-off-by: Hieu Huynh <hieuh@os.amperecomputing.com> Change-Id: I3e1110d3b76335d7412006f75e79073f9f776151
2023-12-23meta-ampere: handle Overtemp Fault LEDHieu Huynh5-2/+43
Assert Fault LED when detecting OVERTEMP signal asserted. This is done by adding new overtemp_fault LED group and update the overtemp service to assert/de-assert the LED group. 1. Start the ampere_overtemp@.service 2. Verify that the `Fault Led` is turned on and turn off after 10s. 3. Verify that Thermal Trip SEL is created. Signed-off-by: Hieu Huynh <hieuh@os.amperecomputing.com> Change-Id: Ifbc203bf79a13741082d84850b9e75ca6148a6cd
2023-12-23meta-ampere: mtmitchell: handle the fan faultHieu Huynh3-0/+257
The phosphor-led-manager will monitors the `xyz.openbmc_project.State.Decorator.OperationalStatus` interface of the Inventory D-Bus object, and check whether the Inventory D-Bus object is associated with the LED group D-Bus object, and then update the Asserted property of the LedManager. This adds the fan_fault led group to associations.json file to monitors the FANs and turns on the fault led when the FANs fails. 1. Unplug the fan and verify that both `Fan Fault Led` and `Fault Led` are turned on. 2. Plug the fan and verify that both `Fan Fault Led` and `Fault Led` are turned off. Signed-off-by: Hieu Huynh <hieuh@os.amperecomputing.com> Change-Id: I2adc0fb8846c4690f8eaac3bb80e6dbf25077be3
2023-12-23meta-ampere: mtjade: support FAN fault checkHieu Huynh4-0/+252
Support FAN fault check via by enabling phosphor-led-manager's monitor-operational-status with appropriate phosphor-inventory-manager associations configuration. Tested: 1. Get Led group list $ busctl tree xyz.openbmc_project.LED.GroupManager `- /xyz `- /xyz/openbmc_project `- /xyz/openbmc_project/led `- /xyz/openbmc_project/led/groups |- /xyz/openbmc_project/led/groups/fan_fault 2. Change the fan pwm, then stop the fan control service and verify that fault led is on 3. Start the fan control service and verify that fault led is off Signed-off-by: Hieu Huynh <hieuh@os.amperecomputing.com> Change-Id: If473ebfe288d80515217e7e5fb9dc6244dcb8ed3
2023-12-22ampere-ipmi-oem: srcrev bump 1ae5bec281..2491e06d4aAndrew Geissler1-1/+1
Thang Q. Nguyen (2): build: upgrade to C++23 meson_options.txt: Support for reading options from meson.options Change-Id: I8ed2e0106b7e9be1af37f22bb98a2852c381e71a Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2023-12-22meta-ampere: mtjade: leds: change to json configurationThang Q. Nguyen5-52/+43
Change LED configuration format to json to adapt new default setting in phosphor-led-manager application. Tested: 1. Check if all LED Groups are created, the same as using yaml file root@mtmitchell-dcscm:~# busctl tree xyz.openbmc_project.LED.GroupManager `- /xyz `- /xyz/openbmc_project `- /xyz/openbmc_project/led `- /xyz/openbmc_project/led/groups |- /xyz/openbmc_project/led/groups/bmc_booted |- /xyz/openbmc_project/led/groups/power_on |- /xyz/openbmc_project/led/groups/enclosure_identify |- /xyz/openbmc_project/led/groups/enclosure_identify_blink `- /xyz/openbmc_project/led/groups/systemFault 2. Check if no error message in journal log Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com> Change-Id: I7de6bfe333bad04f045c38bb9ff7aeb64eaed8bd
2023-12-22meta-ampere: mtmitchell: leds: change to json configurationThang Q. Nguyen5-50/+55
phosphor-led-manager changed to use json configuration by default. However, Mt.Mitchell still uses yaml configuration which consequently fail to parse for platform LED configuration. This commit changes configuration from yaml to json to adapt upstream codes. Tested: 1. Check if all LED Groups are created, the same as using yaml file root@mtmitchell-dcscm:~# busctl tree xyz.openbmc_project.LED.GroupManager `- /xyz `- /xyz/openbmc_project `- /xyz/openbmc_project/led `- /xyz/openbmc_project/led/groups |- /xyz/openbmc_project/led/groups/bmc_booted |- /xyz/openbmc_project/led/groups/power_on |- /xyz/openbmc_project/led/groups/enclosure_identify |- /xyz/openbmc_project/led/groups/enclosure_identify_blink `- /xyz/openbmc_project/led/groups/systemFault 2. Check if no error message in journal log Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com> Change-Id: Ibdc2a566d89d8d661f299aff84539e471061090a
2023-12-15meta-ampere: configure presence interfacesThang Q. Nguyen5-0/+64
Add CPU and Power Supply presence interfaces using phosphor-multi-gpip-presence. Tested: 1. Check if CPU_x dbus exists $ busctl get-property xyz.openbmc_project.Inventory.Manager \ /xyz/openbmc_project/inventory/system/chassis/motherboard/CPU_2 \ xyz.openbmc_project.Inventory.Item PrettyName` s "CPU_2" 2. Check if sensors that are required with CPURequired are reported $ ipmitool sdr list Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com> Change-Id: I7ce9819f39f8a2afb386fa6b00421f1ead935189
2023-12-01meta-ampere: remove ampere-fault-monitorThang Q. Nguyen8-467/+0
Remove ampere-fault-monitor application which should be implemented via phosphor-led-manager framework. Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com> Change-Id: Iecd482657383de31dae0ee74bd0ca4de41d22f63
2023-12-01ampere-ipmi-oem: srcrev bump 2a19152956..1ae5bec281Andrew Geissler1-1/+1
Andrew Geissler (1): OWNERS: Change maintainers to their user id's Change-Id: I0125d30872a2721783358f41da688a4375195750 Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2023-11-25treewide: add scarthgap to LAYERSERIES_COMPAT2.16.0-devPatrick Williams3-3/+3
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I28ee50fa55ae47dd7fd8c99f8f6db8f5f6dfa53d
2023-11-24treewide: add nanbield to LAYERSERIES_COMPATPatrick Williams3-3/+3
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I85272779478b66452acd11be93f5fea99e4c3a34
2023-11-21meta-ampere: mtjade: network: use sync-mac for MAC from FRUThang Q. Nguyen7-149/+15
Switch to use phosphor-networkd's sync-mac feature to get and use MAC address from FRU, replacing Ampere approach. Tested: 1. Boot the BMC to Linux and login to console 2. Get BMC MAC address in FRU $ ipmitool fru print 0 | grep "Board Extra" Board Extra : 70:E2:84:8F:E3:56 3. Check eth0 HWaddr with MAC in FRU $ ifconfig eth1 | grep HWaddr eth1 Link encap:Ethernet HWaddr 70:E2:84:8F:E3:56 Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com> Signed-off-by: Khang Nguyen <khangng@amperecomputing.com> Change-Id: I7121fde2f7b8d673e3ae0b1e5a03f175a10ea578
2023-11-21meta-ampere: mtmitchell: network: use sync-mac for MAC from FRUThang Q. Nguyen5-35/+14
Switch to use phosphor-networkd's sync-mac feature to get and use MAC address from FRU, replacing Ampere approach. Tested: 1. Boot the BMC to Linux and login to console 2. Get BMC MAC address in FRU $ ipmitool fru print 1 | grep "Board Extra" Board Extra : B4:05:5D:E1:01:BC 3. Check eth0 HWaddr with MAC in FRU $ ifconfig eth0 | grep HWaddr eth0 Link encap:Ethernet HWaddr B4:05:5D:E1:01:BC Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com> Signed-off-by: Khang Nguyen <khangng@amperecomputing.com> Change-Id: Ia31589bf75306ad5a3639cb46a73813957e85e9d
2023-11-14meta-ampere: fix package in packagegroupHieu Huynh2-2/+2
This fixes packages in packagegroup as follows: + Removes phosphor-post-code-manager, phosphor-host-postd which is already in packagegroup-bmc-apps + Adds missing phosphor-ipmi-blobs, phosphor-ipmi-blobs-binarystore into mtjade.conf Tested: code compiles. Signed-off-by: Hieu Huynh <hieuh@os.amperecomputing.com> Change-Id: Ic3f9668e4714566a814cc928067289d650a59f41
2023-11-14meta-ampere: console: refactor configurationChau Ly17-217/+126
Refactor console configuration for Mt.Jade and Mt.Mitchell to avoid duplication and make the configuration files simpler. Tested: 1. IPMI sol on Mt.Jade and Mt.Mitchell works 2. SOL SSH on Mt.Jade and Mt.Mitchell work for all console ports Change-Id: I68d1a3c6be530ca93f8adc1dd61906ba8b206dc5 Signed-off-by: Chau Ly <chaul@amperecomputing.com>
2023-11-13meta-ampere: mtjade: update virtual sensor expressionsThang Q. Nguyen1-166/+103
Update virtual sensor expression to better handle nan values by using maxIgnoreNaN and sumIgnoreNaN functions. Tested: 1. Check IPMI sensor report using `ipmitool sdr list` Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com> Change-Id: I901de9ad299fc318756902ded6bc938ae86579c9
2023-11-13meta-ampere: mtmitchell: update on-board sensorsThang Q. Nguyen2-11/+197
Add front backplane and other on-board sensors that are available on the Mt.Mitchell DVT board. This commit also updates virtual sensor expression using sumIgnoreNaN and maxIgnoreNaN functions to better handle nan values Tested: 1. Run 'ipmitool sdr list' and check for sensor report 2. Check sensor report from Redfish and WebUI Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com> Change-Id: Ia2a221929026141dbd6a2482f4017be7fe2026cc
2023-11-11meta-ampere: move packagegroup to commonHieu Huynh6-89/+22
This moves packagegroup to common to be used for all platforms. Tested: - All packages are available on RootFs - ipmi sensor, fru report - Web login - Power control Signed-off-by: Hieu Huynh <hieuh@os.amperecomputing.com> Change-Id: I87f7ddbd94e9321e452353ed21cacd0f8a4d8f74
2023-10-23meta-ampere: mtmitchell: enable MCTP/PLDMThang Q. Nguyen5-0/+51
Enable MCTP in kernel support with Mt.Mitchell MCTP configuration. Tested: 1. Check for mctpi2c3 in ifconfig command. 2. Check for mctpd.service service started and is in running state. 3. Check for pldmd.service service started and is in running state. Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com> Change-Id: I699e9bc93ae5815b8454a8cc42ec22d4cfd735e1
2023-10-19meta-ampere: mtmitchell: handle power sequence failureHieu Huynh4-1/+132
This commit supports log the power on sequence to analyze power on failure. This would include: - PSU power good monitoring to indicate PSU is powered on. - System power good monitoring to indicate CPU is powered on. Tested: 1. Power on Host, check the Event logs identify the system /redfish/v1/Systems/system/LogServices/EventLog/Entries "Message": "Host firmware boots with 1 Processor", 2. Check the Event logs in case power on failure. Signed-off-by: Hieu Huynh <hieuh@os.amperecomputing.com> Signed-off-by: Thang Tran <thuutran@amperecomputing.com> Change-Id: I15237d5f6be454b628529fce43424514bf445d53
2023-10-19meta-ampere: mtjade: state: remove no-warm-reboot cfgThang Tran1-0/+1
In the commit 16bb75ab on the openbmc repo, it disables warm-reboot build option in phosphor-state-manager by default. To enable warm-reboot option, we have to remove no-warm-reboot packge configuration. Tested: 1. Request power reset Host. $ipmitool power reset 2. ForceWarmReboot target is called. Change-Id: I4f7d4d4b148e77867562ed1a8efe7797f4a6d8dd Signed-off-by: Thang Tran <thuutran@amperecomputing.com>
2023-10-19meta-ampere: mtmitchell: state: remove redundant build optionThang Tran1-5/+0
In the commit 16bb75ab on the openbmc repo, it disables warm-reboot by default, we don't have to disable it again. Tested: 1. Request power reset Host. $ipmitool power reset 2. Reboot target is called. Change-Id: Ie1ed12709c200d358ae4e93e55565ebd1ea68c4f Signed-off-by: Thang Tran <thuutran@amperecomputing.com>
2023-10-19meta-ampere: mtmitchell: correct checking PGOODThang Tran2-23/+6
Currently, in the platform initialization phase, BMC is checking PGOOD gpio via both dbus and "/sys/class/gpio" methods. The "power_control" application is polling PGOOD. Sometimes, "power_control" stops checking the PGOOD's status due to a conflict with platform initialization. It makes BMC can not control the power. This commit removes the conflict between the "power_control" and the platform initialization as below: - Update ampere-platform-init.service to request the platform initialization run before the "power_control". - Update mtmitchell_platform_gpios_init.sh to remove checking PGOOD via dbus. Tested: The platform initialization runs before the "power_control". Turn on/off the host, reboot BMC, AC power work correctly. Signed-off-by: Thang Tran <thuutran@amperecomputing.com> Change-Id: Ic9619f93b8a49c578a8a0d733872a636ec6fc100
2023-10-16meta-ampere: mtjade: update scripts with new gpio linenameThu Nguyen18-202/+224
Mt.Jade GPIO line-names are updated to follow naming convention at https://github.com/openbmc/docs/blob/master/designs/device-tree-gpio-naming.md. This commit updates related scripts to use the correct linenames. Tested: Check below features to work as before: + UEFI and SCP firmware update. + Host power control + Ampere UART mux switch + SCP failover Signed-off-by: Thu Nguyen <thu@os.amperecomputing.com> Change-Id: I080f844047618327042a7742d3fa6423b62be744
2023-10-14meta-ampere: mtmitchell: use standard gpio commandsThang Q. Nguyen8-51/+42
Change to use gpioset and gpioget to set value for output GPIOs and read value for input GPIOs. This commit also corrects GPIO base numbers which are changed in Linux kernel 6.5 Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com> Change-Id: I802f9d777537ff28f94945006b6582b15523e3a8
2023-10-11treewide: clean up webui selectionPatrick Williams2-2/+0
The webui-vue package is now enabled by default. Clean up all the meta layers to clean up the explicit enablement. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I4895be56c70d2c8666dd96cec18d2c097f0c05a3
2023-09-26linux-aspeed: Move to Linux v6.5Joel Stanley2-2/+2
This moves the OpenBMC kernel to a v6.5 base for ASPEED. The 6.5 kernel moved all 32-bit ARM device trees, so our BMC device tress are now under an 'aspeed' subdirectory. This change means systems must describe the KERNEL_DEVICETREE with the aspeed directory prefix. There are 78 patches in the tree, with 40 of those patches not yet queued for merging in v6.6. The remaining out of tree patches include: Andrew Jeffery (6): dt-bindings: hwmon: pmbus: Add Maxim MAX31785 documentation pmbus (max31785): Add support for devicetree configuration pmbus (core): One-shot retries for failure to set page pmbus (max31785): Wrap all I2C accessors in one-shot failure handlers ARM: dts: aspeed: witherspoon: Update max31785 node ipmi: kcs_bmc: Add a "raw" character device interface Cédric Le Goater (1): /dev/mem: add a devmem kernel parameter to activate the device Eddie James (16): ARM: dts: aspeed: bonnell: Add reserved memory for TPM event log dt-bindings: soc: Add Aspeed XDMA Engine soc: aspeed: Add XDMA Engine Driver soc: aspeed: xdma: Add user interface soc: aspeed: xdma: Add reset ioctl soc: aspeed: xdma: Add trace events i2c: core: Add mux root adapter operations iio: si7020: Lock root adapter to wait for reset eeprom: ee1004: Enable devices on multiple busses dt-bindings: trivial-devices: Add Atmel AT30TSE004A serial eeprom eeprom: ee1004: Add OF matching support leds: pca955x: Refactor with helper functions and renaming leds: pca955x: Use pointers to driver data rather than I2C client leds: pca955x: Optimize probe led selection leds: pca955x: Add HW blink support leds: Ensure hardware blinking turns off when requested Jae Hyun Yoo (1): clk: ast2600: enable BCLK for PCI/PCIe bus always Joel Stanley (14): net: ftgmac100: Ensure tx descriptor updates are visible ARM: aspeed: Add debugfs directory ARM: soc: aspeed: Add secure boot controller support dt-bindings: trivial-devices: Remove Infineon SLB9673 TPM ARM: dts: nuvoton: npmc750-evb: Add default console tpm: tis-i2c: Add more compatible strings leds: pca955x: Revert "Remove the unused function pca95xx_num_led_regs()" arm64: configs: Add Nuvoton NPCM defconfig ARM: configs: aspeed: Add new FSI drivers ARM: config: aspeed_g5: Enable SSIF BMC driver ARM: config: aspeed: Remove FIRMWARE_MEMMAP ARM: config: aspeed: Add Ampere SMPro drivers ARM: config: Add openbmc defconfig ARM: config: openbmc: Add HPE GPX and Nuvoton 7xx Johannes Holland (1): dt-bindings: tpm: Add schema for TIS I2C devices Potin Lai (1): mtd: spi-nor: winbond: Add support for w25q01jvq Change-Id: Ib97af192391af6e71c96fe14e12cfc88c23d7a7d Signed-off-by: Joel Stanley <joel@jms.id.au>
2023-08-17Revert "meta-ampere: mtmitchell: support system firmware hang handler"Thang Q. Nguyen4-84/+0
Polling GPIO every 0.5s might cause system performance degraded. This reverts commit 57fa7921b248f52858a48110d9670c62cea2eff0 to find better solution for this feature. Change-Id: I00adf3cd7b355f260d0687c9a907b2dc45731697 Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com>
2023-08-17meta-ampere: remove GPIO fault checkThang Q. Nguyen6-562/+1
This commit removes scripts to check GPIO fault as they poll GPIOs every 0.25s. Better solution needs to be found for this feature. Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com> Change-Id: Ieef28d7d7f74dc43548c5448706ca8dbcb06ec2e
2023-08-10meta-ampere: mtmitchell: ipmid: enable dynamic-storages-only featureThang Tran1-0/+1
This commit enables dynamic-storages-only to use FRU and SEL commands in the dbus-sdr w/o enabling sensor commands in the dbus-sdr folder. Tested: 1. Users can read/write/edit FRU via ipmitool 2. Users can get the SEL logs via ipmitool. Change-Id: I49eab8ad1cf54ef5c60604c446db153a42c30749 Signed-off-by: Thang Tran <thuutran@amperecomputing.com>
2023-08-10meta-ampere: mtjade: ipmid: enable dynamic-storages-only featureThang Tran1-0/+1
This commit enables dynamic-storages-only to use FRU and SEL commands in the dbus-sdr w/o enabling sensor commands in the dbus-sdr folder. Tested: 1. Users can read/write/edit FRU via ipmitool 2. Users can get the SEL logs via ipmitool. Change-Id: I86138f36b30d248ec5fac07be4cda10031ddf203 Signed-off-by: Thang Tran <thuutran@amperecomputing.com>
2023-07-31meta-ampere: bmcweb: replace deprecated schemas with new schemasThang Tran1-0/+2
In the Redfish Data Model Specification, it deprecated Power and Thermal schemas from v1.7 version (release on 2020.4). It used PowerSubsystem and ThermalSubsystem instead. This commit replaces deprecated Power/Thermal schemas with PowerSubsystem/ThermalSubsystem schemas. Tested: 1. The /redfish/v1/Chassis/<ChassisId>/<Power | Thermal> schemas have been removed. 2. The /redfish/v1/Chassis/<ChassisId>/<PowerSubsystem | ThermalSubsystem> schemas have been added. Change-Id: I4868cde726c07f68fc94986d9659fc9377bdaf5e Signed-off-by: Thang Tran <thuutran@amperecomputing.com>
2023-07-29meta-ampere: mtmitchell: support Host Secure Provisioning procedureHieu Huynh1-2/+38
BMC shall assert SPECIAL_BOOT GPIO to the CPU to trigger Host Secure Provision. Then BMC shall reset the system, or turn on the system if it is being OFF. After the host enters Provisioning Boot Mode successfully (or having failure), BMC shall deassert the SPECIAL_BOOT GPIO to LOW. Tested: 1. Flash HostFW with PASS case. - $ ampere_flash_bios.sh spinor.img 1 1 - Host boot with logs: [00:00:00.248,000] <inf> scu_stat: is_special_boot() = 1 [00:00:00.383,000] <inf> SECpro_cert_ext: Assert FW_BOOT_OK [00:00:00.383,000] <inf> SECpro_cert_ext: Deassert FAULT_ALERT [00:00:00.383,000] <inf> SECpro_cert_ext: SEC provision completed \ successfully 2. Flash HostFW with FAULT case. - $ ampere_flash_bios.sh spinor_fault.img 1 1 - Host boot with logs: [00:00:00.253,000] <inf> scu_stat: is_special_boot() = 1 [00:00:00.388,000] <err> SECpro_cert_ext: Invalid version cert 0.0 [00:00:00.388,000] <inf> SECpro_cert_ext: Assert FW_BOOT_OK [00:00:00.388,000] <err> SECpro_cert_ext: SEC provision failed [00:00:00.388,000] <err> SECpro_cert_ext: Sending error on \ FAULT_ALERT 3. Turn off the Host, flash HostFW with PASS case. After flash done, Host boot with logs is the same with step #1. Signed-off-by: Hieu Huynh <hieuh@os.amperecomputing.com> Change-Id: I546c7ffd80474edf6165e67f1b96eacbedcd0939
2023-07-28meta-ampere: gpio: various fixesThang Q. Nguyen4-19/+1
Remove unused service files and add missing call for ampere-host-reboot@.service. Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com> Change-Id: If25d92343a23c313705213fba8f13446dcdb933e
2023-07-24meta-ampere: mtjade: buttons: enable warm-reboot optionThang Q. Nguyen1-0/+3
Enable reset-button-do-warm-reboot to configure the reset button to trigger SYSRESET GPIO when released. Tested: 1. Turn ON the Host. 2. Press and release the reset button. Check if the Host is reset while Host power is still ON Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com> Change-Id: Ife26183fa39f6dcbbb4b6e0aec30163ced257a35
2023-07-06meta-ampere: gpio-monitor: move services to meta-commonThang Q. Nguyen7-11/+11
Move services that are used across Ampere platform to meta-ampere/meta-common to prevent duplicate codes. Tested: 1. Compile Mt.Jade and Mt.Mitchell without error. 2. From Host OS run 'reboot' command and check if the BMC handles correctly. 3. From Host OS run 'shutdown' command and check if the BMC handles correctly Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com> Change-Id: I678d9a19fea0a531ad59d54ea9386cb177af18c6
2023-06-09meta-ampere: mtmitchell: ipmi: support on-board sensor reportHieu Huynh9-4/+779
Support to report sensor information via IPMI for on-board sensors Tested: 1. Check sensor report using IPMI sdr command: $ ipmitool sdr list OutletTemp | 28 degrees C | ok Psu1InletTemp2 | 32 degrees C | ok PcieZoneTemp1 | 30 degrees C | ok Psu0InletTemp2 | 29 degrees C | ok PcieZoneTemp2 | 28 degrees C | ok Signed-off-by: Hieu Huynh <hieuh@os.amperecomputing.com> Change-Id: Ia38519c79596f65f780fe105ee25e8890825a44f
2023-06-09meta-ampere: mtmitchell: add some helper utilsThang Q. Nguyen8-15/+626
Add some help scripts to help users easier to debug systems from BMC console. Tested: 1. New helper scripts are available from BMC console. 2. Manually check script execution Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com> Change-Id: Ibe93547d1299768ae8d67440f161c86c29dbb61e
2023-06-09meta-ampere: mtjade: fan: fix warning when BMC rebootChau Ly1-1/+5
Below messages are displayed during BMC reboots: mtjade (speed.sh)[710]: phosphor-fan-control@0.service: Failed to locate executable /usr/bin/ampere_set_fan_max_speed.sh: No such file or directory. mtjade (speed.sh)[710]: phosphor-fan-control@0.service: Failed at step EXEC spawning /usr/bin/ampere_set_fan_max_speed.sh: No such file or directory This commit fixes the issue by updating phosphor-fan configuration file to properly install ampere_set_fan_max_speed to /usr/bin/. Tested: 1. Reboot BMC --> no above warning displayed Signed-off-by: Chau Ly <chaul@amperecomputing.com> Change-Id: I5e630e320cf7d05ed33ea54e28ef98495d88f9a1
2023-06-09meta-ampere: mtmitchell: Enable IPMI over NCSI interfaceChanh Nguyen1-0/+7
This commit configures the phosphor-ipmi-net to support IPMI via NCSI/eth1 interface. Tested: 1. Plug the NCSI card, boot the BMC and get its IP. 2. Check if IPMI can be reproted via eth1's IP: ipmitool -I lanplus -H NCSI_IP -C 17 -U root -P 0penBmc mc info Signed-off-by: Chanh Nguyen <chanh@os.amperecomputing.com> Change-Id: Ib5b26cd0e4e82214234bce49272ed767cfba50d3
2023-06-08meta-ampere: hostlogger: configure SOCKET_ID to defaultChau Ly2-2/+2
The obmc-console application now uses "\0obmc-console.default" as the default socket name for a console server. This commit updates hostlogger's ttyS0 port to use SOCKET_ID=default to adapt the requirement. Tested: 1. Check no hostlogger error message from journal log. 2. Check WebUI's SOL console works well. Signed-off-by: Chau Ly <chaul@amperecomputing.com> Change-Id: I8767a6c01922f4aaf074031cfb8a4dacc1889ab0
2023-06-06obmc-console: Convert configs from socket-id to console-idAndrew Jeffery20-20/+20
As of 9a8f30ec5b58 ("obmc-console: Introduce console-id, deprecate socket-id") in obmc-console `console-id` is preferred over `socket-id`. Convert all in-tree configurations to `console-id` to enable removal of support for the deprecated `socket-id` configuration option. Change-Id: Ifd50603c378cfed5eb793b829b8296b7964e4194 Signed-off-by: Andrew Jeffery <andrew@aj.id.au>