summaryrefslogtreecommitdiff
path: root/meta-fii/meta-mori/recipes-phosphor
AgeCommit message (Collapse)AuthorFilesLines
2023-07-21meta-fii: meta-mori: Uniform syntax for recipesKyle Nieman11-59/+66
Update bitbake recipe format to make uniform with the following rules: 1) Generally bbappends should have layer(mori) overrides 2) Add uniform appending by using "append" instead of "+=" 3) bb files (excluding bbappends) typically should not have "append" phrase except for limited amount of variables (RDEPENDS,DEPENDS,FILES, ...) 4) Wrap lines greater than 80 chars when applicable 5) Switch syntax for long list values over multiple lines to use four-space indent In addition, oe-stylize.py was applied to further refine recipe syntax. Tested: Built successfully. Individual packages were tested for functionality with no notable change. Change-Id: I626c529373805aa696f7c574e10c1617493d4f61 Signed-off-by: Kyle Nieman <kyle.nieman@fii-na.com>
2023-07-11meta-fii: meta-mori: Remove watchdog supportKyle Nieman3-38/+0
Remove watchdog support added in https://gerrit.openbmc.org/c/openbmc/openbmc/+/57895 Change-Id: I370de442f7b4b15d1be48717f2e688363c102d87 Signed-off-by: Kyle Nieman <kyle.nieman@fii-na.com>
2023-07-01meta-fii: meta-mori: Update unit power behaviorKyle Nieman2-1/+10
1) Remove unwanted dependencies for the warm reboot targets. 2) Set the power policy to always on to prevent unwanted host power off. 3) Change user reset command to use ipmitool command Change-Id: Ie87296a48349219860c79f6275133595f3501e43 Signed-off-by: Kyle Nieman <kyle.nieman@fii-na.com>
2023-06-30meta-fii: meta-mori: Fix graceful shutdown was force shutdown issueVincent Chou1-0/+1
The obmc-host-shutdown_0.target requires obmc-chassis-poweroff_0.target cause the power_off function being called, and eventually do the force off, so we remove the obmc-chassis-poweroff_0.target from obmc-host-shutdown_0.target's requires. Change-Id: I28184aafb3aac9e0b10000fb15e8817e4976465b Signed-off-by: Vincent Chou <vincent.chou@fii-na.com>
2023-06-06obmc-console: Convert configs from socket-id to console-idAndrew Jeffery1-1/+1
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>
2023-05-12Revert "Add socket-id for the first console"Andrew Jeffery1-1/+0
This reverts commit ec7cab9378f548e94ee4af83946b2583d1fc7194. ec7cab9378f5 ("Add socket-id for the first console") was only a partial fixup of the obmc-console configurations found in the tree. For historical reasons not all platforms that support multiple consoles install a client configuration file for all consoles. Instead they relied on some default behaviour that was removed in obmc-console's 4e7186918599 ("Fixed broken dbus interface for multiple consoles"). Applying the configuration changes in the manner of ec7cab9378f5 ("Add socket-id for the first console") resulted in an asymmetric configuration between the client and server, breaking some SSH SOL instances. As of ae2460d0b8e8 ("obmc-console: Provide a default value for `console-id`.") in obmc-console the requirement to specify `socket-id`[^1] is lifted. Instead, the configuration can choose to override a default value. This restores the original behaviour and unbreaks SSH SOL. [^1]: Now an alias of the `console-id` configuration key Websocket and IPMI consoles remain broken. A fix is under development that also takes a proper approach to supporting multiple consoles in bmcweb, and the same solution pattern can be applied in ipmid. More discussion of the problems involved can be found here: https://amboar.github.io/notes/2023/05/08/happenings-in-obmc-console.html Change-Id: I274284c791758f336da6d6301dc523bac2b5dd69 Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
2023-05-04meta-fii: meta-mori: Set watchdog fallback to 3 hoursKyle Nieman1-1/+1
Set fallback watchdog timer to 3 hours to guarantee host boot. Change-Id: Ieb10ff5fee309163720f9c93baea2f5491fb8af5 Signed-off-by: Kyle Nieman <kyle.nieman@fii-na.com>
2023-05-03meta-fii: meta-mori: Remove hotswap-power-cycle inclusionJonico Eustaquio1-1/+0
Remove inclusion of hotswap-power-cycle recipe since it has been removed here: https://gerrit.openbmc.org/c/openbmc/openbmc/+/62893 Change-Id: I213ea0f506f2f8490a0cd8190156dd7488fe1965 Signed-off-by: Jonico Eustaquio <jonico.eustaquio@fii-na.com>
2023-04-27meta-fii: meta-mori: Add skm backup config to binarystoreCharles Boyer1-0/+6
The backup copy will be stored in Mobo FRU EEPROM. Signed-off-by: Charles Boyer <Charles.Boyer@fii-usa.com> Change-Id: Id9a0b409f7cbe53ab91f7d5655e39f0a318ba9d1
2023-04-27meta-fii: meta-mori: Support BMC_ALIVE led with led-managerJonico Eustaquio1-0/+2
LED_BMC_ALIVE is now managed by phosphor-led-manager instead of by init_once.sh. Asserting LED_BMC_ALIVE is removed from init_once.sh since the service obmc-led-group-start@bmc_booted.service now asserts the dbus property for LED_BMC_ALIVE's led.yaml group to be used. Signed-off-by: Jonico Eustaquio <jonico.eustaquio@fii-na.com> Change-Id: Ib68be05246a2dc66458330d99721848f86a1ed50
2023-04-21Add socket-id for the first consoleNinad Palsule1-0/+1
This drop adds socket-id for first console. This was left out before but with the new design this parameter is required and enforced by obmc-console code. It is decided to set "socket-id = console0" initially because that is the current path used by bmcweb but in future you can change this value to whatever is appropriate. The console information is now available through the DBUS interface. Each console server register it's object path on DBUS. The leaf node of the object path is used to create a console path. For example in the following console0 the leaf node "console0" is used to make up the console path and the GUI will use console path "/console/console0" to connect to the console. busctl tree xyz.openbmc_project.Console.console0 `-/xyz `-/xyz/openbmc_project `-/xyz/openbmc_project/console `-/xyz/openbmc_project/console/console0 Here is a discord thread where new design was discussed. https://discord.com/channels/775381525260664832/1083551792094249051 Tested: Tested on the rainier system. Related commits: 1) phosphor-dbus-interface: https://gerrit.openbmc.org/c/openbmc/phosphor-dbus-interfaces/+/61486 2) obmc-console: https://gerrit.openbmc.org/c/openbmc/obmc-console/+/62496 3) bmcweb: https://gerrit.openbmc.org/c/openbmc/bmcweb/+/62525 Change-Id: I5fd06f3aac69872a3e5032d592a9b59711795cfe Signed-off-by: Ninad Palsule <ninadpalsule@us.ibm.com>
2023-04-08meta-fii: meta-mori: Add log-alarm packageconfigJonico Eustaquio1-1/+1
The log-alarm PACKAGECONFIG is added so that sel-logger can monitor and create SEL logs when virtual and pldm sensors cross thresholds. Change-Id: Id786a26139b395d4a3a4aeed7934906a63167210 Signed-off-by: Jonico Eustaquio <jonico.eustaquio@fii-na.com>
2023-03-29meta-fii: meta-mori: Add watchdog support with fallbackVincent Chou3-0/+38
Add watchdog service to monitor the host status and execute the expire actions when host doesn't reset the watchdog timer. Add fallback support to the watchdog with the interval set to 10 minutes. Timer is reset with changes to host boot progress. If the host fails to reset the watchdog, then the watchdog action is performed with fallback to AC cycle after 10 minutes. Signed-off-by: Vincent Chou <Vincent.Chou@fii-na.com> Change-Id: Id0905ebc72405713806bbe2d803e6ca559488495
2023-03-29meta-fii: meta-mori: Remove dependency for mori bios verifyJonico Eustaquio1-0/+6
The dependency obmc-host-reboot target has on obmc-host-shutdown and phosphor-reboot-host must be removed to allow for the mori-bios-verify service. The mori-bios-verify service will have a 60s sleep that requires the host to hold its state for the 60s duration after it is commanded to powercycle. Without these dependencies removed, the host would shutdown immediately. Signed-off-by: Jonico Eustaquio <jonico.eustaquio@fii-na.com> Change-Id: If2df43c8276626a3623bd4e796d87ea6817c32c7
2023-03-29meta-fii/meta-mori: Remove entity map configurationCharles Boyer2-6/+0
Removes the entity association map that is no longer used. Signed-off-by: Charles Boyer <Charles.Boyer@fii-usa.com> Change-Id: I4cb1dffea598bd27bc1cbbf94ef94332a04af2f6
2023-02-14treewide: remove Logging service dependenciesBrad Bishop1-2/+0
The logging service is dbus activated now, so explicitly declaring dependencies is unnecessary and redundant. Change-Id: I87d61fbeb04a251caf88aa86cb21631e7fc2a1c4 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2023-02-14meta-phosphor: mapper cleanupsBrad Bishop3-5/+0
Mapper ships with systemd unit and dbus configuration files now, so remove unnecessary bitbake classes. Mapper is dbus-activated, so obmc-mapper.target dependencies are redundant and no longer necessary. obmc-mapper.target is the last target in obmc-targets, so remove that recipe and any dependencies on it. Change-Id: I59ff8dcd480b4449d0ef59422ba80c12848dade9 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2022-11-28rename obmc-op-control-power to phosphor-skeletonAndrew Geissler1-1/+1
This power control implementation is not specific to openpower systems (as seen by the variety of systems including it) so rename it to something more appropriate. This is using code from skeleton which is not ideal but that's a change for another day. Signed-off-by: Andrew Geissler <geissonator@yahoo.com> Change-Id: Iffe6427b5494558b53cd6f5716a08cce82cb90d8
2022-11-02Remove PACKAGECONFIG for nic-ethtoolJason M. Bills1-1/+0
The nic-ethtool option was removed from phosphor-network, so we also need to remove the PACKAGECONFIG option to build the phosphor-network bump. Tested: Confirmed that the latest phosphor-network builds successfully. Signed-off-by: Jason M. Bills <jason.m.bills@linux.intel.com> Change-Id: Id1e12f3f2af2450500ec6c0b2acef284cb69d0a7
2022-10-27meta-fii: meta-mori: Set up phosphor-led-managerVincent Chou4-0/+34
Summary of changes: 1. Create a yaml file to set up the action of SYSTEM BOOT STATUS LED 2. Add bb file to install yaml to phosphor led manager package 3. Add a script to control the SYSTEM BOOT STATUS LED corresponding to the OS status 4. Set up phosphor led sysfs so the physical led can be controlled 5. Set CHASSIS TARGET to none to remove unnecessary service call to obmc-led-group-start/stop@power_on/off. Signed-off-by: Vincent Chou <vincent.chou@fii-na.com> Change-Id: Ia7b136c52518a1e2af6662ffc42b4f72b3e15584
2022-09-21meta-fii: meta-mori: add phosphor console packageGrant Williams7-0/+75
Add phosphor console mori_uart_mux_ctrl script,obmc-console service files, and .conf files - Added console feature for host & mpro - Added mori_uart_mux_ctrl.sh to set gpio S0_UART0_BMC_SEL and S0_UART1_BMC_SEL allowing routing between host & mpro consoles to bmc - Added host_console_uart_configuration.service so that it runs before obmc-console. Set it to require multi-user.target, which is also required by obmc-console. Signed-off-by: Grant Williams <grant.williams@fii-na.com> Change-Id: I5d7002c20c5d1b87fa5c78e69b0885fc635c6145
2022-09-15meta-fii: meta-mori: Add phosphor-state-manager configurationsCharles Boyer4-0/+70
Summary of Changes: - Add custom Chassis and Host services - Enable Host Condition GPIO using host0-ready Signed-off-by: Charles Boyer <Charles.Boyer@fii-usa.com> Change-Id: I74330028d4ce20d8abf4d6a5169c1bc6c491c7d4
2022-07-22meta-fii: meta-mori: Add phosphor-buttons and gpio_defs.jsonCharles Boyer3-0/+37
Adds the packages to support the button handler and signals. Add the GPIO definitions for obmc-libobmc-intf of the skeleton repository. The GPIOs configured are, - PGOOD: Host power good - POWER_BUTTON: Power button input - RESET_BUTTON: Reset button input Signed-off-by: Charles Boyer <Charles.Boyer@fii-usa.com> Change-Id: I1a8ca713c00b7220793c58b1695ae680882a3404
2022-07-22meta-fii: meta-mori: Add pwm_init packageAshwin Murali4-0/+71
Add pwm_init service to set fans to pwm mode and initialise them to a value of 50% on boot. Signed-off-by: Ashwin Murali <ashwin.murali@fii-na.com> Change-Id: I07963eda9b0c264e66d1dd4f2a0d31f4e74d831e
2022-07-22meta-fii: meta-mori: Add Entity MapGrant Williams1-0/+1
Adding Mori Entity Association Map .bb and .json files. Signed-off-by: Grant Williams <grant.williams@fii-na.com> Change-Id: I3e090f9cc4258d0215a1af836ea8d85e7b852483
2022-07-22meta-fii: meta-mori: Add ipmi flash and firmware update servicesGrant Williams2-0/+6
Adding bios update, bmc update, cpld update, and phosphor ipmi flash packages Signed-off-by: Grant Williams <grant.williams@fii-na.com> Change-Id: I5543f520f710e065a476999991a48bdaf0544c0c
2022-07-20meta-fii: meta-mori: Add mori-boot and mori-cmdCharles Boyer1-0/+2
Summary of Changes: - Add basic mori.sh tool - Add mori-boot for host and switch initialization Signed-off-by: Charles Boyer <Charles.Boyer@fii-usa.com> Change-Id: I2cee6a2b6a15a1e2f9a53baf331fb452f73f080d
2022-07-15meta-fii: meta-mori: Add mori-fw-utility filesGrant Williams1-0/+1
Add the mori-fw file and package in packagegroup. Supports: CPLD, BIOS, and Bootstrap flashing. Signed-off-by: Grant Williams <grant.williams@fii-na.com> Change-Id: I5541af3d07c01a0602f7794c5f1b6610622e93ee
2022-07-15meta-fii: meta-mori: Add phosphor-ipmi-blobs-binarystoreAvenash Asai Thambi3-0/+15
Add phosphor-ipmi-blobs-binarystore package with the config support for Mori. The EEPROM is at bus 4 behind mux channel 3 as virtual bus 42 and its address is 0x55. Signed-off-by: Avenash Asai Thambi <avenash.thambi@fii-usa.com> Change-Id: I071488261f97311ea094c4b575134361da4ad272
2022-07-15meta-fii: meta-mori: Add phosphor image packageGrant Williams1-1/+41
Add phosphor image obmc-phosphor-image bbappend file. Signed-off-by: Grant Williams <grant.williams@fii-na.com> Change-Id: I170ef615677f69ff570673a3343995f8efa393a3
2022-06-30meta-fii: meta-mori: Add bmcweb optionsAshwin Murali1-0/+4
1. Enable Dump log service transactions through Redfish 2. Enable BMC journal access through Redfish Signed-off-by: Ashwin Murali <ashwin.murali@fii-na.com> Change-Id: I92dcd5e6ae1ec72cf70be0d6267fb7074c4f9e18
2022-06-30meta-fii: meta-mori: Add nic-ethtoolGrant Williams1-0/+1
Adding NIC-ethtool packageconfig to the phosphor-network bbappend file Signed-off-by: Grant Williams <grant.williams@fii-na.com> Change-Id: I10ee053a9daa49493d16851a583b7a699fe71df4
2022-06-30meta-fii: meta-mori: Add SEL Logger ConfigurationGrant Williams2-1/+3
Enables monitoring of Threshold, pulse, and watchdog systems. clear-sel packageconfig requires sel-logger-clears-sel phosphor-ipmi-host packageconfig Signed-off-by: Grant Williams <grant.williams@fii-na.com> Change-Id: I6cbd7492562ae96b97787e6c7578ad95bfc5a8f0
2022-06-28meta-fii: meta-mori: Add smbios configurationGrant Williams2-0/+5
Add the smbios-mdr configuration for Mori. cpuinfo: removed due to libpeci binaries dependency smbios-ipmi-blob: extracts SMBIOS table data Signed-off-by: Grant Williams <grant.williams@fii-na.com> Change-Id: Ibeff229ece565925f142a1f34b8f4748fe74860a
2022-06-24meta-fii: meta-mori: Add phosphor-ipmi-configAvenash Asai Thambi2-0/+8
Add phosphor-ipmi-config package with the config for mori machine. Signed-off-by: Avenash Asai Thambi <avenash.thambi@fii-usa.com> Change-Id: I697de45514757a5d45fdf4263d2dedcdea910584
2022-05-19meta-fii: meta-mori: Override chassis capabilities settingsCharles Boyer2-0/+25
This commit adds the settings for the IPMI Chassis Capabilities command. Signed-off-by: Charles Boyer <Charles.Boyer@fii-usa.com> Change-Id: I2fe225a49f960eaa29d6a2d598cde77998ab28a2