summaryrefslogtreecommitdiffstats
path: root/meta-openbmc-machines/meta-openpower/meta-ibm/meta-romulus/recipes-phosphor
Commit message (Collapse)AuthorAgeFilesLines
* meta-romulus: ipmi: Add core/dimm temp sensorsLei YU2018-08-211-0/+1408
| | | | | | | | | | | | | Add cpu core, dimm temperature sensors. The yaml is generated from romulus.rpt by sensor_yaml_config.py sensor_yaml_config.py -i config.yaml -o output.yaml -e -r romulus.rpt Tested: Verify that core/dimm temperature sensors are returned by ipmitool sensor command. Change-Id: Ic564233d93d6a6297eff6368c14632a9e85258e1 Signed-off-by: Lei YU <mine260309@gmail.com>
* meta-romulus: Add entityID/entityInstance to sensor configLei YU2018-08-211-0/+142
| | | | | | | | | | | Add entityID and entityInstance to sensor config yaml, with the help script from https://github.com/mine260309/openbmc-tools/blob/dev-mine/leiyu/obmc-utils/sensor_yaml_config.py Tested: Verify it passes the build. Change-Id: Ie9e1861e8c8e2919b88dabc387d8c1234486df51 Signed-off-by: Lei YU <mine260309@gmail.com>
* meta-romulus: sort ipmi sensor configLei YU2018-08-211-1034/+1034
| | | | | | | | | | | Sort the sensor yaml config using PyYAML by loading and saving the yaml. This is a preparation for further changes of sensor configs. Tested: Verify the generated sensor-gen.cpp is technically the same as before. Change-Id: I1315072b36236bb2eff01eb5d1507641e7978b42 Signed-off-by: Lei YU <mine260309@gmail.com>
* meta-romulus: Add ipmi bmc-fru-config.yamlLei YU2018-08-212-0/+28
| | | | | | | | | | bmc-fru-config.yaml defines the frus from BMC. Romulus has 3 fans. Tested: Verify that fan frus are shown with ipmi fru list command. Change-Id: I9cd5a93c4711a0f336058617403c6560547a6121 Signed-off-by: Lei YU <mine260309@gmail.com>
* meta-romulus: Add ipmi channel.yamlLei YU2018-08-212-0/+12
| | | | | | | | | | | | In phosphor-ipmi-host, channel.yaml sets the info about number of available Ethernet channels. Romulus has eth0 only. Tested: Verify the generated channel-gen.cpp reflects this yaml config. Change-Id: I902f6b0adb6066ad2c4f1654a4614bbf012e36a5 Signed-off-by: Lei YU <mine260309@gmail.com>
* meta-romulus: Increase delay in host rebootLei YU2018-08-082-0/+4
| | | | | | | | | | | | | | | By default phosphor-reboot-host@.service sleeps for 5 seconds between power off and power on. On Romulus, this interval is not enough for CPU to clear the error status, e.g. checkstop status. Increase the interval to 8 seconds to makre sure the status is cleared. Resolves openbmc/openbmc#3330 Tested: Verify the checkstop status is cleared after error injection. Change-Id: I14ab9975fe820e7fba27feaf1da32a2903d4bc13 Signed-off-by: Lei YU <mine260309@gmail.com>
* meta-romulus: Add led groups for faultsLei YU2018-07-231-0/+300
| | | | | | | | | | | Add fault groups, e.g. core, dimm fault groups in led config, so that fault monitor could set related fault group to turn on the fault led. Tested: Verify the led fault groups are created, and when asserted, the fault led is turned on. Change-Id: Iace27d605c11b8c5b3d33685eecdaffb402fc6ad Signed-off-by: Lei YU <mine260309@gmail.com>
* meta-romulus: Enable image signature checkLei YU2018-07-172-1/+2
| | | | | Change-Id: I05a4bb07a08cc6e89df302b2f25531a665118e1d Signed-off-by: Lei YU <mine260309@gmail.com>
* meta-romulus: Add ipmi inventory sel configLei YU2018-07-042-0/+358
| | | | | | | | | | | | | | phosphor-ipmi-inventory-sel provides a yaml config for sel events, and Romulus was using the default one, which makes the sel events not mapping to the expected devices. Provide a yaml config that matches Romulus system. Tested: Inject error and check SEL logs are correctly parsed by openbmctool.py in openbmc-tools/thalerj. Change-Id: Ic2a03a34e98bb383e32ef902f1a5da1d6ee6fe9e Signed-off-by: Lei YU <mine260309@gmail.com>
* meta-romulus: Add callouts yaml configLei YU2018-07-042-0/+24
| | | | | | | | | | | | Romulus was using the exmaple callouts yaml and it is just a dummy one. Provide the real callouts yaml config for Romulus. Tested: With the following commit, verify CALLOUT_INVENTORY_PATH is correctly set when CPU error is injected and the event is sent to BMC. Change-Id: I266c51cc52ebdd770dd332c50e26ed3e8cd65155 Signed-off-by: Lei YU <mine260309@gmail.com>
* meta-romulus: Add webui recipeLei YU2018-06-211-0/+1
| | | | | | | | | This enables webui hosted by Romulus machine. Tested: WebUI works fine on Romulus. Change-Id: I29cefdb07892717d3bb2397647a5e2dbf701dc8e Signed-off-by: Lei YU <mine260309@gmail.com>
* obmc-console: Rename recipeBrad Bishop2018-06-181-0/+0
| | | | | | | | | | | | OE norms dictate recipes that track HEAD be named: foo_git.bb and set PV explicitly to "x.y.z+git${SRCPV}" Change-Id: Iaeffab1e3bb1df6720ae4e236c3515fb1ec30cc8 Tested: Built the obmc-console recipe Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* meta-romulus: Add ipmi-fru-read-inventory configLei YU2018-05-222-0/+18
| | | | | | | | | | | | | Make both romulus-ipmi-inventory-map-native and romulus-ipmi-fru-read-inventory-native recipes use the same yaml config. Resolves: openbmc/openbmc#3134 Tested: Verify the generated fru-read-gen.cpp reflect the yaml config and ipmi fru command prints the correct FRU information. Change-Id: If52a883e0901d44cea473ac67e89d4361cd5354c Signed-off-by: Lei YU <mine260309@gmail.com>
* romulus: Enable host UART VGA outputJoel Stanley2018-05-041-1/+1
| | | | | | | | | | | | This enables the fbterm, uart-render-controller and liberation font packages and configuration to the Romulus build. This allows the machine to have the host UART output rendered to a framebuffer and output on the BMC's graphics device up until the host loads it's PCIe VGA driver. Change-Id: I01b755a7ba67a5ba5232b9d786d7ce868bab2d0d Signed-off-by: Joel Stanley <joel@jms.id.au>
* phosphor-gpio-monitor: Add EXTRA_ARGS in serviceLei YU2018-04-241-1/+1
| | | | | | | | | | | | | | | | This is a follow up commit of 1065559c, that is to use ${EXTRA_ARGS} instead of "--continue=", so that this option becomes an optional one without argument. For services need extra arguments, e.g. Romulus' id-button service, specify "--continue" in its config file. Tested: Verify the generated gpio monitor service uses ${EXTRA_ARGS} environment. On Romulus, checkstop monitor starts without extra argument, and id_button monitor starts with --continue argument. Change-Id: I09c5ad7f97f1a40caabfc9ae394e68798396dffe Signed-off-by: Lei YU <mine260309@gmail.com>
* meta-romulus: Add id-button.bbLei YU2018-04-185-1/+65
| | | | | | | | | | | | | | | This recipe adds the function to assert/deassert identify LED Group when the ID button is pressed: 1. Add phosphor-gpio-monitor for the ID button GPIO key; 2. Start id-button-pressed.service when the key is pressed; 3. The service starts a script to check the identify LED group state, and assert or de-assert it. Tested: Assert/De-assert identify LED group by pressing the ID button on Romulus. Change-Id: I782dbc15563a313418aa90bee1f48fc97a6d25fb Signed-off-by: Lei YU <mine260309@gmail.com>
* meta-romulus: fan-control: Handle service failuresLei YU2018-04-111-0/+54
| | | | | | | | | | | | | | | | Handle dependent service failures: 1. When ambient temperature is unavailable, set default floor speed; 2. When occ services are unavailable, set to max speed. Tested: Verify that the default floor speed is set when outlet temp sensor is missing; Verify that the max speed is set when occ service is killed; With https://gerrit.openbmc-project.xyz/#/c/9584/, verify that the floor speed is set back according to outlet temp when the sensor and occ service are back. Change-Id: I395f99ac8a6e76fdeb11a189294b096ee6256b76 Signed-off-by: Lei YU <mine260309@gmail.com>
* romulus added "mutability"Jayanth Othayoth2018-04-051-0/+71
| | | | | | | Added "mutability" flag to indicate if a sensor is READ/WRITE/RW. Change-Id: I69d3683bacae80b96cf57ce1b7b5d875c425d3a8 Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* meta-romulus hwmon: Use negative-errno-on-fail configLei YU2018-04-032-41/+1
| | | | | | | | | | | | | | | In phosphor-hwmon, the config "--enable-negative-errno-on-fail" is introduced for sensors that should return errno instead of failing and exiting. Enable this config for Romulus so the fan sensors are working, otherwise hwmon will fail and exit when fans are not working. Tested: Verify that the fan_tach sensors return -ETIMEOUT when host is powered off and do not exit with failure. Change-Id: I0d52a2b1a7fb4bf9fc542de6a88823b36bd2bc48 Signed-off-by: Lei YU <mine260309@gmail.com>
* meta-romulus: Bump phosphor-hwmon versionLei YU2018-03-301-1/+1
| | | | | | | | After updated to kernel dev-4.13, Romulus needs to pick latest phosphor-hwmon to make hwmon work. Change-Id: I7a911ad6d4dc464471e75f69963bad7e419fe198 Signed-off-by: Lei YU <mine260309@gmail.com>
* kernel: Move to 4.13 kernelJoel Stanley2018-03-233-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We have 236 commits, 127 files changed, 17766 insertions(+), 2128 deletions(-). Some of these are backports from upstream. This list does not include patches from the 4.13 stable releases, but we do include those in the dev-4.13 branch. 1 Alexey Khoroshilov 34 Andrew Jeffery 1 Arnd Bergmann 1 Benjamin Herrenschmidt 1 Bhumika Goyal 1 Brad Bishop 1 Brendan Higgins 11 Christopher Bostic 1 Cyril Bur 14 Cédric Le Goater 49 Edward A. James 3 Gavin Shan 1 Guenter Roeck 8 Ivan Mikhaylov 1 Jacek Anaszewski 1 James Feist 7 Jeremy Kerr 72 Joel Stanley 2 Julia Lawall 1 Ken Chen 6 Lei YU 3 Milton Miller 1 Mykola Kostenok 1 Patrick Venture 2 Philipp Zabel 1 Rick Altherr 11 Samuel Mendoza-Jonas 2 Wei Yongjun 1 Xo Wang 1 Yong Li Note that the 4.13 branch is EOL'd by the Linux community, and as such should not be used for any products beyond development. React to removal of occ hwmon instances from device trees with a new startup/shutdown mechanism for phosphor-hwmon. To fix this, a helper script will be used to start the service that will pass the service the device tree name if it is present, or the udev device path if it isn't. This script will still run from the udev rule as before, but it will stop and start the service itself without using the SYSTEMD_WANTS attribute. As the path to the hwmon environment file matches the service template argument, the paths for the OCC .conf files need to change to match the device path instead of the previous device tree path. Note that the pure device path would have the hwmon instance number in it, but since that can't be known ahead of time it is stripped off by the script that starts the service. In addition, the pure device path for the OCCs contain several ':'s, meaning the associated environment files would also need to. However, Yocto/Bitbake cannot handle a ':' in a file path, so they are converted to '--'s by the script that starts the service and phosphor-hwmon will convert them back internally when it starts. The service file also needed some changes now that the service lifetime is no longer controlled by systemd via SYSTEMD_WANTS. This script will be called by a udev rule to start and stop phosphor-hwmon when the hwmon device driver is started and stopped. It is passed both the device path and the OF_FULLNAME device tree attribute. If OF_FULLNAME is present, it will start the service with that as its template argument, otherwise it will use the device path. This is to handle devices that aren't in the device tree so they won't have OF_FULLNAME. If a '/hwmon/hwmonN' is in the path it is removed, as this path is also used as a path to an environment file and so must be known ahead of time, which the hwmon instance N is not. If there is a ':' in the path name, it is converted to a '--'. Yocto/Bitbake cannot handle a ':' in file paths. Resolves openbmc/openbmc#2953 Change-Id: I815be4d6d9e1cbea8428bb1bb8c332776ee71ece Signed-off-by: Joel Stanley <joel@jms.id.au> Signed-off-by: Matt Spinler <spinler@us.ibm.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* meta-romulus: Add fan control yaml configsLei YU2018-03-2313-0/+412
| | | | | | | | | | | | | | | 1. The config follows Witherspoon's and remove water-cool/gpu/pcie related configs. 2. Uses FanPwm interface instead of FanSpeed. 3. Removed zone_condition related config which is optional. Romulus is always air cooled. 4. Updated to use groups for events. Tested: Verified that fan control automatically adjust fan speeds based on temperatures. Change-Id: I386c7e921557ef53b445cafe504d2927a76e8e38 Signed-off-by: Lei YU <mine260309@gmail.com>
* Clean up stale obmc-phosphor-utils referencesBrad Bishop2018-03-231-1/+0
| | | | | | | | | | | There were a number of places that inherited this class but did not use it. A number of classes that did use it did not inherit it. This was possible because the class was pulled in by the distro configuration but that has been removed here as well. Tested: Built and verified a witherspoon image Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com> Change-Id: I73511cdcc609875b4fe016967c1b84c5200fb703
* meta-romulus: Add fan monitor configLei YU2018-03-122-0/+34
| | | | | | | | | | | | | | 1. Enable fan monitor; 2. Add FanPwm interface; 3. Set the factor, offset for calculation from pwm to rpm Tested: Verifid fan monitor works fine; Manually change pwm, fan monitor will set fan non-functional after a while; change pwm back, it will set fan functional again, as expected. Change-Id: Ic56cbe291959368218b60c4a5b8e305f39ff7edb Signed-off-by: Lei YU <mine260309@gmail.com>
* meta-romulus: Add pwm target for fan sensorLei YU2018-03-061-0/+4
| | | | | | | | | | This tells phosphor-hwmon to create FanPwm interface for the fan sensors. Tested: Verified it is able to set Target to change the fan pwm. Change-Id: I79c4cb8fe00812659a2c536d9d2e328b5438e0c6 Signed-off-by: Lei YU <mine260309@gmail.com>
* meta-romulus: Pick latest phosphor-hwmonLei YU2018-03-061-1/+1
| | | | | | | | This revision adds the FanPwm interface support which is used by Romulus as well. Change-Id: I44c7ba66028eb54630268019acc78a9e3720e621 Signed-off-by: Lei YU <mine260309@gmail.com>
* FRU: Add Entity ID in the host FRU inventory yamlRatan Gupta2018-02-141-437/+499
| | | | | | | | | | | | | | | This commit also adds the entityID and entityInstance property for BMC FRUS config yaml. These attributes are required to pass it through Get SDR command. Currently we support two types of record format through Get SDR 1) FULL Record. 2) FRU Record. Resolves openbmc/openbmc#2823 Change-Id: Ie7424fbc493dde5070a2c65c74ba83565154b9d4 Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
* meta-romulus: Add phosphor-cooling-type serviceLei YU2018-02-014-1/+39
| | | | | | | | Romulus is air-cooled machine, configure phosphor-cooling-type to always set AirCooled to true and WaterCooled to false. Change-Id: I3b3e477c1b45ff9fb9a4c37ca837cccbb1bf07fa Signed-off-by: Lei YU <mine260309@gmail.com>
* meta-romulus: Add fan presence yaml configLei YU2018-01-292-0/+21
| | | | | | | | | | Romulus has 3 fans using aspeed fan tacho, and has no GPIOs to detect fan presences. So assuming the fans are present as long as fan tach is there. Change-Id: I60f36f8127a437511fde22a4c45458b70b4074ed Signed-off-by: Lei YU <mine260309@gmail.com>
* meta-romulus: Add w83773g sensor configLei YU2018-01-262-0/+18
| | | | | | | | Romulus uses w83773g hwmon sensor and it has 3 temperature sensors. Add the kernel config and hwmon config to use the sensor. Change-Id: If9ddc5eba17fa7e60b714d158c00e43d7e5378f8 Signed-off-by: Lei YU <mine260309@gmail.com>
* meta-romulus: Do not run vrm control when chassis onLei YU2018-01-171-0/+1
| | | | | | | | | VRM control is part of power on sequence and should not run when power is already on. Add condition to not run this service when chassis is is on. Change-Id: I7b4f4f8c9d7852871c33c3915b396dddf2c1afd5 Signed-off-by: Lei YU <mine260309@gmail.com>
* meta-romulus: Remove vcs workaroundLei YU2018-01-166-74/+1
| | | | | | | | Romulus uses CPLD trigger for vcs workaround and it is not needed anymore for DD2.0 CPU. Change-Id: I21b3c15f81b1b7be9aaab03f5f951731fc686c38 Signed-off-by: Lei YU <mine260309@gmail.com>
* meta-romulus: Add fan tacho hwmon sensor configLei YU2018-01-052-0/+12
| | | | | Change-Id: I8d1540c7f44d268154a9ff415177e4f40e31b108 Signed-off-by: Lei YU <mine260309@gmail.com>
* meta-romulus: phosphor-hwmon workaround for fan speedLei YU2018-01-052-0/+42
| | | | | | | | | | | | Romulus uses aspeed pwm and fan tacho, and its driver returns ETIMEDOUT for fan speed when host is off, which causes phosphor-hwmon exit with excpetion for fan_tacho sensors. The workaround is to handle ETIMEDOUT and make it return -ETIMEDOUT value for the sensor. Change-Id: I1c6252c7f0ba1c932948397a9398ff80dfb71e9d Signed-off-by: Lei YU <mine260309@gmail.com>
* meta-romulus: Add power LED rulesLei YU2017-11-061-0/+10
| | | | | | | | Set power led blink on bmc_booted, and set it on when host is powered on. Change-Id: Ia25c1b2fa358ed508bc02b7b8545d8b0d93586a4 Signed-off-by: Lei YU <mine260309@gmail.com>
* Add missing boot progress sensor valueDhruvaraj Subhashchandran2017-10-261-0/+3
| | | | | | | | | | Adding the missing PCI Resource initialization step to boot progress stages. Resolves openbmc/openbmc#2298 Change-Id: I5b3b42c15d5f0d43351921749a4e31aaa3f22b48 Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>
* ipmi: sensor config yaml updatesDhruvaraj Subhashchandran2017-10-121-637/+1151
| | | | | | | | | | | | | | When marking a unit as functional both functional state and presence need to be checked to avoid marking non-present units as functional. There was a change in yaml structure for accomodating fix for marking non-present units as functional. All these yamls are not sorted by sensor id, so it will easier for a future script based change. Change-Id: I122d652de32ba4f323ee7b31a59078d86e158246 Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>
* meta-romulus: Fix ipmi inventory fru idsLei YU2017-10-111-16/+16
| | | | | Change-Id: I0494fa53a0684874e45b0c9283756856d8c65671 Signed-off-by: Lei YU <mine260309@gmail.com>
* meta-romulus: Add occ power sensors configLei YU2017-09-272-0/+6
| | | | | | | | Occ power related sensors are missing in Romulus. Add proc, vdd, vdn powers configs. Change-Id: I2d5d151c34b30cc0b020e07faad81bb5f48e983e Signed-off-by: Lei YU <mine260309@gmail.com>
* Add updated sensor config.yaml for non mrw systemsDhruvaraj Subhashchandran2017-08-251-2/+64
| | | | | | | Added boot count, boot progress and os status Change-Id: I6cbc4e9698d34007f846eabb8bbb23d1ea79bf8d Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>
* Enable BMC patching from the /usr/local pathMichael Tritz2017-08-246-6/+12
| | | | | | | | | | | | | | | | | This commit enables patches from the /usr/local path by replacing absolute paths to /usr/sbin or /usr/bin in every service file with "/usr/bin/env ". Additionally, SyslogIdentifier is added to each file to ensure that journal entries are still distinct. In two cases, service files also had to change due to references to ${{PATH}}, which doesn't work with /usr/bin/env. These references - and the corresponding definitions - were changed to ${{DEVPATH}}. Resolves openbmc/openbmc#2149 Change-Id: I12c5c6e5101eef6820b985a563313836250ff2c7 Signed-off-by: Michael Tritz <mtritz@us.ibm.com>
* meta-romulus: Enforce PAGE settings prior to vrm adjustsLei YU2017-08-192-0/+8
| | | | | | | | | Similar to Witherspoon, Romulus avs-disable/enable scripts need to enforce the PAGE setting. Otherwise host may fail to boot intermittently due to AVS command failure in hostboot. Change-Id: I323c5c89702a440812d08b5633621ef4f811e29d Signed-off-by: Lei YU <mine260309@gmail.com>
* Enable LED support for Romuluscausten2017-08-092-0/+44
| | | | | | | | | | | | | | | Support for groups bmc_booted, power_on, enclosure_fault, enclosure_identify, and lamp_test. Allows lamp test to display all LED colors on a multi color LED as part of the lamp test. Notice there is no LED change for Power states. That is because the Romulus op panel does not run on standby power. It is impossible to do anything useful with the power LED. Change-Id: Ib60ced92cd3d3da6176a486870640137a7ab08fb Signed-off-By: Chris Austen <austenc@us.ibm.com>
* Adding OccActive to sensor config yaml for non MRW systemsDhruvaraj Subhashchandran2017-08-081-0/+34
| | | | | Change-Id: I32a9e0ee08731566c2958ce5703e12cc4afce5c1 Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>
* Sensor YAML update for non MRW systemsDhruvaraj Subhashchandran2017-08-081-1/+132
| | | | | Change-Id: I8f6a00d33a2c398e423554a43118aaee823a8c98 Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>
* meta-romulus: Add OCC hwmon config filesLei YU2017-07-254-0/+141
| | | | | Change-Id: I49ee3fb11568e35562d6b8a4d4a5f4b5845efdd4 Signed-off-by: Lei YU <mine260309@gmail.com>
* Fix the mapping of IPMI chassis info area part numberRatan Gupta2017-06-071-4/+1
| | | | | | | | | | This fix maps the chassis info area partnumber to the model property of dbus object. Resolves openbmc/openbmc#1729 Change-Id: I3974065bb8e3cfc5d5ac9a827546ec8095f717e0 Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
* Remove hack from skeleton for mboxd workaroundAndrew Geissler2017-05-241-1/+0
| | | | | | | mboxd has been fixed so this workaround is no longer needed Change-Id: I1eca65558c446e982174f1c4af2f484b8fe5c3b8 Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
* meta-romulus: Mirror host console to UART1Lei YU2017-04-292-0/+5
| | | | | | | | | | Add Romulus-specific override for obmc-console.conf containing the 'local-tty' configuration option. This enables obmc-console-server to relay the LPC-controlled VUART to another ttyS0/UART1 Change-Id: Ib56d5c34154a38721eb6379cc3636cbf24f34fea Signed-off-by: Lei YU <mine260309@gmail.com>
* meta-romulus: Remove P9 host watchdog workaroundLei YU2017-04-251-3/+1
| | | | | | | | Remove the watchdog workaround patch from meta-romulus; And remove the patch itself since no machine is using it anymore. Change-Id: I2a1d8cbce3637562a35f738fce8c6bea2738528c Signed-off-by: Lei YU <mine260309@gmail.com>
OpenPOWER on IntegriCloud