summaryrefslogtreecommitdiff
path: root/meta-openbmc-machines/meta-openpower/meta-ibm/meta-romulus
AgeCommit message (Collapse)AuthorFilesLines
2018-08-23[Subtree] Bring openbmc machines to top levelDave Cobbley70-6508/+0
The new subtree model brings the subtrees up from the openbmc-machines layer. Change-Id: I58a03ae1be374bc79ae1438e65e888375d12d0c0 Signed-off-by: Dave Cobbley <david.j.cobbley@linux.intel.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2018-08-23[Subtree] Move board support packages to top levelDave Cobbley1-2/+2
The new subtree paradigm has moved the meta-bsp layers to the top level Change-Id: Ic4f64c39465be699bed3649e125e027d17daf938 Signed-off-by: Dave Cobbley <david.j.cobbley@linux.intel.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2018-08-23[Subtree] Removing import-layers directoryDave Cobbley1-10/+10
As part of the move to subtrees, need to bring all the import layers content to the top level. Change-Id: I4a163d10898cbc6e11c27f776f60e1a470049d8f Signed-off-by: Dave Cobbley <david.j.cobbley@linux.intel.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2018-08-21meta-romulus: Add missing sensorNamePattern in sensor configLei YU1-0/+71
sensorNamePattern is missing the Romulus sensor yaml config. Add it by sensor_yaml_config.py: sensor_yaml_config.py -i config.yaml -o output.yaml -f Tested: Verify the sensorNamePattern is added and it is the same as Witherspoon's yaml config. Change-Id: I4a21b4bb896ec058b5ac1e40fbda934516b62929 Signed-off-by: Lei YU <mine260309@gmail.com>
2018-08-21meta-romulus: ipmi: Add core/dimm temp sensorsLei YU1-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>
2018-08-21meta-romulus: Add entityID/entityInstance to sensor configLei YU1-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>
2018-08-21meta-romulus: sort ipmi sensor configLei YU1-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>
2018-08-21meta-romulus: Add ipmi bmc-fru-config.yamlLei YU2-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>
2018-08-21meta-romulus: Add ipmi channel.yamlLei YU2-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>
2018-08-21remove use of meta-virtualizationBrad Bishop1-2/+0
Remove meta-virtualization from any bblayer.conf.samples. It was originally added for the python-pyyaml and python-gevent recipes but better maintained versions of these recipes are provided by meta-python. Before this can be done the python-gevent bbappend in the phosphor layer must be removed. The version scope was wildcarded to any version but the patches don't apply to python-gevent_1.2.2, which becomes the default from meta-python when meta-virt is removed. Drop the bbappend. Change-Id: I6658a163460e3c8e63dc7371ffff803a7b6915b5 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2018-08-08meta-romulus: Increase delay in host rebootLei YU2-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>
2018-07-23meta-romulus: Add led groups for faultsLei YU1-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>
2018-07-19ibm: Set LAYERSERIES_COMPATBrad Bishop1-0/+1
Starting with sumo, bitbake emits a warning if this variable is not set. Indicate sumo branch compatibility. Change-Id: I592ecf6f9940004b2dccb0f4217464d389c771d4 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2018-07-17meta-romulus: Enable image signature checkLei YU2-1/+2
Change-Id: I05a4bb07a08cc6e89df302b2f25531a665118e1d Signed-off-by: Lei YU <mine260309@gmail.com>
2018-07-05meta-romulus: Add ipmi inventory sel configLei YU3-0/+359
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>
2018-07-05meta-romulus: Add callouts yaml configLei YU3-0/+25
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>
2018-06-21meta-romulus: Add webui recipeLei YU1-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>
2018-06-18obmc-console: Rename recipeBrad Bishop1-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>
2018-06-15machines: Drop ast2400/ast2500 layersBrad Bishop1-2/+0
The Aspeed layer now supports both chips and the SOC specific layers do not have any content. Drop the redundant layers. Change-Id: I48a813fe4c02b8fc8861c6dd58906ae559c64403 Tested: Built and verified witherspoon and palmetto images Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2018-06-15Rename and move kernel recipeBrad Bishop3-2/+2
Rename linux-obmc to linux-aspeed and move to the Aspeed layer. Like recipes for u-boot forks, recipes for kernel forks in support of different SOCs are typically provided in the BSP supporting the SOC. Moved a number of phosphor-isms out of the kernel recipe and put those in a bbappend in aspeed-layer/bbappend. Removed COMPATIBLE_MACHINE setting. We simply use PREFERRED_PROVIDER in machine configuration files to set the default kernel recipe. Tested: Booted spoon/palmetto images using QEMU Change-Id: I7dc73629cad4789dcd5aeb0f7b6214fe064c6adc Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2018-06-07openbmc-machines: Remove unncessary CONFIG_HWMONJoel Stanley1-1/+0
CONFIG_HWMON is implied by the drivers that use it, so we do not need to specify it in the defconfigs. Change-Id: I1c6e8679412f80dc0db69ef0f72a9c73e8602fb9 Signed-off-by: Joel Stanley <joel@jms.id.au>
2018-05-22meta-romulus: Add ipmi-fru-read-inventory configLei YU3-0/+19
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>
2018-05-04Enable use of meta-webserver layerChris Austen1-0/+2
One use case on some systems for this layer will be to pull in Nginx Signed-Off-By: Chris Austen <austenc@us.ibm.com> Signed-off-by: Andrew Geissler <geissonator@yahoo.com> Change-Id: I1ac55bc182e7d24704d0fe3405438d8e1c97f1a4
2018-05-04romulus: Enable host UART VGA outputJoel Stanley1-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>
2018-04-25phosphor-gpio-monitor: Add EXTRA_ARGS in serviceLei YU1-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>
2018-04-18meta-romulus: Add id-button.bbLei YU5-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>
2018-04-11meta-romulus: fan-control: Handle service failuresLei YU1-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>
2018-04-05romulus added "mutability"Jayanth Othayoth1-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>
2018-04-03meta-romulus hwmon: Use negative-errno-on-fail configLei YU2-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>
2018-03-30meta-romulus: Bump phosphor-hwmon versionLei YU1-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>
2018-03-23kernel: Move to 4.13 kernelJoel Stanley3-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>
2018-03-23meta-romulus: Add fan control yaml configsLei YU13-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>
2018-03-23Clean up stale obmc-phosphor-utils referencesBrad Bishop1-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
2018-03-13Remove obmc-openpower-* machine featuresBrad Bishop2-7/+1
The openpower layer supports a usage pattern of building non openpower systems with the openpower layer included in the layer configuration (introduced with 008b81bb). As a part of 008b81bb a number of distro and machine features were added. As with MRW and UBI before it, these features are distro policy and not machine features. As such remove the machine features. Additionally converge the three feature variants down to a single openpower feature since there aren't any in-tree systems that don't enable all three. Add a distro override and fix up combined feature checks to use this override instead for improved readability. Add a new distro configuration that enables these features and point all Openpower sample local.conf files to this new distro config. Tested: Built and validated Witherspoon, Palmetto images Change-Id: Ifa3df61fbe1803f00c38956c265604ba91d7d127 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2018-03-13openpower: Fix _appends with missing spaceBrad Bishop1-1/+1
These _appends can potentially crowd their neighboring entries. Change-Id: I1dae77f9a17744110175916935c01773708652b0 Tested: Built a witherspoon image Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2018-03-12meta-romulus: Add fan monitor configLei YU2-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>
2018-03-06meta-romulus: Add pwm target for fan sensorLei YU1-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>
2018-03-06meta-romulus: Pick latest phosphor-hwmonLei YU1-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>
2018-02-14FRU: Add Entity ID in the host FRU inventory yamlRatan Gupta1-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>
2018-02-01meta-romulus: Add phosphor-cooling-type serviceLei YU4-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>
2018-01-29meta-romulus: Add fan presence yaml configLei YU2-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>
2018-01-26meta-romulus: Add w83773g sensor configLei YU3-0/+19
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>
2018-01-17meta-romulus: Do not run vrm control when chassis onLei YU1-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>
2018-01-16meta-romulus: Remove vcs workaroundLei YU7-75/+2
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>
2018-01-10Organize OpenPOWER BMC support as featuresXo Wang1-1/+7
Add OBMC_MACHINE_FEATURES for OpenPOWER support under openpower.inc. Select OpenPOWER features in the POWER machines' DISTRO_FEATURES so that the features are built. The features are: obmc-openpower for required base support obmc-openpower-extra for non-essential tools obmc-openpower-legacy for deprecated packages like org.openbmc and skeleton packages Part of openbmc/openbmc#2652. Change-Id: Ib9f44a0c2e243eebb6594de6554cdc3fa0d076af Signed-off-by: Xo Wang <xow@google.com>
2018-01-05meta-romulus: Add fan tacho hwmon sensor configLei YU2-0/+12
Change-Id: I8d1540c7f44d268154a9ff415177e4f40e31b108 Signed-off-by: Lei YU <mine260309@gmail.com>
2018-01-05meta-romulus: phosphor-hwmon workaround for fan speedLei YU2-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>
2017-11-06meta-romulus: Add power LED rulesLei YU1-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>
2017-10-31Spelling fixesGunnar Mills1-1/+1
Spelling errors found using github.com/lucasdemarchi/codespell A tool to fix common misspellings. This tool is licensed under GNU General Public License, version 2. Change-Id: I649a843483394562fef2e9f1a8b3d38c0cbc6a38 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
2017-10-26Add missing boot progress sensor valueDhruvaraj Subhashchandran1-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>