summaryrefslogtreecommitdiff
path: root/meta-phosphor/common/recipes-core
AgeCommit message (Collapse)AuthorFilesLines
2017-07-26Ensure host stop target completes after chassis offAndrew Geissler1-0/+1
If the chassis poweroff target is running at the same time as the host stop target, ensure the host does not consider itself complete until the chassis is fully off. This ensures host reboots will wait for the chassis to be fully off before starting the next boot. Resolves openbmc/openbmc#2026 Change-Id: Iefcbb6435cc81393d0591cf4c7bb4eceeef906f0 Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
2017-07-26Ensure chassis-poweroff called on shutdown errorsAndrew Geissler1-1/+1
With the recent refactor to the shutdown targets, need to ensure the obmc-chassis-poweroff target is called if the host-shutdown times out so that the system properly shuts down Resolves openbmc/openbmc#2027 Change-Id: I8b1374611776a4027beaa7646862dc4be51df838 Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
2017-07-26os-release: Whitespace fixesBrad Bishop1-15/+15
Use standard python four space indent. Change-Id: I878b7b711a6bebe61d328d54afa41d1915aa2955 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2017-07-25Don't return the error if unable to create the network namespaceRatan Gupta2-0/+42
On systems where kernel is not configured with namespace support then don't return error during setting up network namespace. Rationale to not enable the kernel with namespace support as it brings lot of unnecessary code. Resolves openbmc/openbmc#1949 Change-Id: I3b52a8c61b9bd3e3fff02cfab998c3746b8b72c6 Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
2017-07-21Implement new hard power off targetAndrew Geissler2-3/+15
This target will allow the user to do an immediate power off of the system without waiting for the host. It can also be used to cause an immedate power off if the host is hung during the normal power off process. The chassis poweroff target will now require the host off target to ensure everything is properly stopped when the chassis is powered off. Change-Id: I8430d895ae5498d2e451aaf07480b0cf9550e8f2 Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
2017-06-26Patch busybox watchdog to fix restartsMatt Spinler2-0/+64
It is possible the watchdog device is configured to do something other than reset the system on a watchdog timeout. If this occurs, and the busybox watchdog is started back up again, the watchdog driver won't actually start the watchdog hardware unless the watchdog device has been properly closed first. So, on startup, write the magic character to the watchdog device to properly close it before running. Change-Id: I61521d337a958c9dc8f9a6786a65aee3e81994ac Signed-off-by: Matt Spinler <spinler@us.ibm.com>
2017-06-22Fix git describe format for commits with a tagLeonel Gonzalez1-1/+1
Fixes openbmc/openbmc#1692 Change-Id: I84fffbaa453d918bcbf7bcb8100109ba8ba1be91 Signed-off-by: Leonel Gonzalez <lgonzalez@us.ibm.com>
2017-06-21Add fan watchdog takeover targetMatt Spinler2-0/+7
When this target is started, the fan watchdog will take over fan speed control and move fans to full speed. This will be done by having other services conflict with this target. Change-Id: I00c00a835cc2f7087baa1649d582287628b01401 Signed-off-by: Matt Spinler <spinler@us.ibm.com>
2017-06-15Add host-timeout targetVishwanatha Subbanna2-5/+13
This target gets executed when the host watchdog times out. Change-Id: Id6711a1b7eab784189daf46bc225398b5cc1790f Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
2017-06-13fix sdk build broken issueMarri Devender Rao1-1/+1
With recent changes done to path of the error yaml files in dbus-interfaces build is broken. Resolves openbmc/openbmc#1780 Change-Id: Ia296add2617433b05931a343046c2d059c20c4ff Signed-off-by: Marri Devender Rao <devenrao@in.ibm.com>
2017-06-04busybox: Install watchdogMatt Spinler1-0/+1
Enable the watchdog application Change-Id: I83829b7e4270359a4dcf2a7aad92035f783b9a6c Signed-off-by: Matt Spinler <spinler@us.ibm.com>
2017-06-03Ensure host-shutdown target calls the host-stop targetAndrew Geissler5-1/+9
As a part of the soft power off (host-shutdown) ensure that the host-stop target always gets called. Updated the involved services to ensure they are run in the correct order. Change-Id: I7e9113631786f0d0cb0f89b94c4b97fdc0328e7b Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
2017-05-26Add target files that gpio monitor can call intoVishwanatha Subbanna2-1/+14
When GPIO monitor sees that a particular line is asserted, it calls into one of the configured systemd targets and this is one such. For now, the target just has host-quiesce and will be enhanced to contain a service that logs an error. Change-Id: I09afea5fcab3efce7bbfa5124af9b8cb2e0594bf Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
2017-05-25Block host power on when ActivationBlocksTransition existsAdriana Kobylak1-0/+2
Add a dependency to the power on target so that it waits to start until the ActivationBlocksTransition interface is not present on any of the Software subtrees, which would indicate that a code update is in progress. Closes openbmc/openbmc#1344 Change-Id: I926d209ce4d3106e09e35a35c1e9cfde1ec2f613 Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
2017-05-23Create obmc-fan-control-ready targetMatt Spinler2-0/+7
This target is started after fans have had time to ramp up to full speed, and will start the fan monitor and control services. Change-Id: I99c1125f038071f56612859d976d5fba3fe9ffd6 Signed-off-by: Matt Spinler <spinler@us.ibm.com>
2017-05-19Conflict with host-stop target vs. host-shutdownAndrew Geissler3-3/+2
The obmc-host-stop@.target will always be called on host shutdowns but the inverse is not always true. This commit ensures everything conflicts with the target that is always called in this path. Change-Id: Ic680ef96b1d6e2aec844a9c619928b7014fe7450 Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
2017-04-20Refactor action target names Host-shutdown-quiesceJosh D. King6-8/+9
The target change is: obmc-stop-host -> obmc-host-shutdown obmc-quiesce-host -> obmc-host-quiesce Updated skeleton-rev.bbclass to have correct commit id. Change-Id: Ida47f8709622d98129c0fe00c86bad77d8d76dfb Signed-off-by: Josh D. King <jdking@us.ibm.com>
2017-04-20Refactor action target names Host-start-stopJosh D. King14-77/+57
The target change is: obmc-chassis-stop -> obmc-host-stop obmc-chassis-start -> obmc-host-start Removed CHASSIS_FMT and CHASSIS_LINK_FMT because they are no longer needed. CHASSIS_POWER_FMT_2 did not change because its used for obmc-chassis-reset. Deleted files obmc-chassis-start@.target and obmc-chassis-stop@.target because they are no longer needed. I moved over their contents to obmc-host-start and obmc-host-stop. Updated phosphor-state-manager.bb and skeleton-rev.bbclass to have correct commit id. Change-Id: I26cba4153038f39d60e8d450a05969a216848abe Signed-off-by: Josh D. King <jdking@us.ibm.com>
2017-04-20Refactor action target names Power-on-offJosh D. King13-15/+15
The target change is: obmc-power-chassis-on -> obmc-chassis-poweron obmc-power-chassis-off -> obmc-chassis-poweroff Also updated phosphor-state-manager.bb to now have correct commit id. Change-Id: I15aae803e5f0d44d4e6a137278f93e91f848b2c0 Signed-off-by: Josh D. King <jdking@us.ibm.com>
2017-04-17Remove gmock from sdk as it is part of gtest 1.8Lei YU1-1/+1
From googlttest 1.8, gmock becomes part of gtest, and its recipe is dropped from upstream. Remove it from SDK, gtest will provide both gtest and gmock libraries. Change-Id: Iea14e81bda08e97dbeb9eddee8991f22cb8478be Signed-off-by: Lei YU <mine260309@gmail.com>
2017-04-07Add in new targets to handle bmc resets while host runningAndrew Geissler3-1/+22
The point of this new target is to support getting the systemd targets which boot the host into the running state (without actually running the associated services) when the BMC is rebooted and the host is up and running. This will ensure that systemd and its targets match with the state of the system without affecting the running host. This commit will run the new target but nothing will happen yet due to the discovery service being a noop. Once the application is in for the service to call, it will be added to the service which will enable this new host running with bmc reset support. Change-Id: Ia29e53de58ea7530941341b0e515e4d8fa49be6c Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
2017-04-07Modify the systemd patch to match the correctSaqib Khan1-1/+3
Makefile. Note: This is part of the change required to upgrade systemd to version 232. Resolves openbmc/openbmc#932 Change-Id: Ia529e301c63938a68e1acd3eb74242c2dd92ba3d Signed-off-by: Saqib Khan <khansa@us.ibm.com>
2017-03-16Add FSI enable/disable services for cronus useMatt Spinler1-0/+1
Start fsi-disable.service to unbind the FSI Driver. Start fsi-enable.service to bind it again and rescan. Also added a fsi-bind@.service so we can ensure the driver is bound each power on. Change-Id: I5fa62b44994aea3bb645e755187f29e720bf3bce Signed-off-by: Matt Spinler <spinler@us.ibm.com>
2017-03-15Automatically check for chassis power on BMC rebootAndrew Geissler1-0/+3
Run the obmc-chassis-reset@.target: - Check if pgood is on - If it is, create the file in /run/openbmc/chassis@%i-on and - Run the systemctl command to start the chassis power on target Resolves openbmc/openbmc#1094 Change-Id: I93f94fc1b75e35fd353387d0bed5569e07615171 Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
2017-03-15Targets and services to check for pgood on bmc resetAndrew Geissler4-2/+39
Once enabled these targets and services will be run after a BMC reboot to check if pgood is on and if so, to create a file which will be used by other power on services to know whether they need to run or not. Change-Id: Id2e75f9bce20f362d2f57a79e91ece1eaf7d7c45 Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
2017-03-02Add libstdc++fs to SDKBrad Bishop1-1/+1
Change-Id: I9bdbacc7fb763cfcf4c056911152513c7c872299 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2017-03-01os-release: ensure 'dirty' really means dirty.Patrick Williams1-1/+2
When using --git-dir, git no longer automatically determines the working tree and thus always assumes the tree is dirty unless the --work-tree option is also passed. Fixes openbmc/openbmc#820. Change-Id: I3af6941e0562bf665290e57c2b7a80459385fefa Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
2017-02-28Integrate gmock to SDKLei YU1-1/+1
Change-Id: I4792e4037ffbace4af224cd1bfe0aef63d11a099 Signed-off-by: Lei YU <mine260309@gmail.com>
2017-02-16Add OnFailure= options to boot targetsAndrew Geissler4-1/+9
When services associated with a target fail, the target should go to the quiesce state for error gathering and policy checks on automated recovery. Use the OnFailureJobMode=flush to ensure all queued services are cancelled when entering quiesce. Change-Id: I4023a9c842500bb57013196aefbded533131ef00 Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
2017-02-10Add native/sdk classes to phosphor-dbus-interfacesBrad Bishop1-2/+5
Enable native and nativesdk classes for phosphor-dbus-interfaces. Install nativesdk-phosphor-dbus-interfaces by default in the obmc-phosphor-image sdk. Change-Id: Iaf134734ada106bb69254dfffa07c2af2641d9f8 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2017-02-10System quiesce target for when required targets failAndrew Geissler2-1/+7
This will be the target that all other critical targets go to when a service within it fails. Automated recovery and stay-in-fail-state logic will be built on top of entry into this new target. Change-Id: Ibdf2e823cf372916c61ef5a8375c4faf8a928119 Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
2017-02-01Make chassis start/stop depend on chassis power on/offAndrew Geissler6-6/+6
Change-Id: I5e4a0da68bfcebb12f3ac4161e63c145f9f73b0a Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
2017-02-01Move chassis power on/off services into new targetsAndrew Geissler1-5/+13
Change-Id: I42049c092e4a852b94b6d3f96b9dea3884c21333 Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
2017-02-01Add chassis power off and on targetsAndrew Geissler2-0/+16
These targets will allow the user to power on/off the chassis without booting the host Change-Id: I3f75a7b7827224467703bfb8c305cbb43fb83547 Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
2017-02-01busybox: default ls color output, less search and truncateXo Wang1-0/+3
Add features to busybox configuration: - default color output for ls. ls still disables color for non-tty files - support for less search (with slash /) - support for less -S (truncate lines instead of wrapping) Notably, this makes journalctl --no-pager | less -S much more usable. ls colors were because I saw petitboot's busybox had them enabled. Signed-off-by: Xo Wang <xow@google.com> Change-Id: I11870a26c90d8d38f6d172906f2ea407af45e2c7
2017-01-19Cherry-pick systemd mangle-escape patchBrad Bishop3-0/+174
systemd/systemd#5073 Change-Id: Ie0c5736e5ad5a9fff8c0d191852ffb62e0441109 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com?
2017-01-19New sync target to control host power offAndrew Geissler3-5/+17
Will be used to initiate a soft power off command to the host Change-Id: Ia9c18bd63d611ecb7041f8798ac646c206f6eb4d Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
2017-01-11Fixup "Taskhash mismatch" error.Anton D. Kachalov1-1/+1
Use proper variable to exclude dependency check for some variables. Add missed variables: PRETTY_NAME and NAME Change-Id: I67c71fc97f2d6350d189d74d13fd27dfcba959c8 Signed-off-by: Anton D. Kachalov <mouse@yandex-team.ru>
2016-12-19Create a phosphor-specific initramfsRick Altherr1-4/+0
OpenBMC has been using a .bbappend to add/remove packages from core-image-minimal-initramfs. Doing so keeps the recipe and initramfs image name as core-image-minimal-initramfs which is misleading as it now is very much phosphor-specific. Instead, make a new obmc-phosphor-initramfs recipe and image that is patterned after core-image-minimal-initramfs. Change-Id: Ieca2268eff01bb61cc0d25a1cbc1a6f5fadb6d2c Signed-off-by: Rick Altherr <raltherr@google.com>
2016-12-02Add phosphor-logging to SDKAndrew Geissler1-1/+1
Other repos need the elog.hpp and log.hpp files, this will get them into the SDK. Change-Id: Ibb9316686f12483cef8333fa8a514f1402ee233f Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
2016-11-23systemd: Configure shutdown watchdog to 20minAndrew Jeffery2-0/+18
There were reports of the shutdown watchdog firing in #522 which caused the flashing process to fail. Andrew Geissler suggested he reached ~77% before the watchdog bit, which by default is configured at 10 minutes. Back-of-the-envelope calculations suggest it would've taken approximately 13 minutes to complete the flash, therefore bump the number to 20min to give ourselves a bit of head-room. Change-Id: I967b13799469d22a380b29f5566ab8cc9432ce8c Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
2016-11-22sdbusplus: move sdbus++ to its own packagePatrick Williams1-1/+1
Change-Id: Ie98034d8b07df2798312d55b37d8b7e13d372e40 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
2016-11-22sdbusplus: include headers in SDKPatrick Williams1-1/+1
Change-Id: Iad5fa91a6aa47b4ef0ea96ef86c6b299f74be814 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
2016-11-18Add sdbusplus to sdkBrad Bishop1-1/+2
Change-Id: I0ee7c2fdc9c9220437a5b5dd1255c2b80b5cc125 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com> Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
2016-10-21systemd: add patch for PAM enableEdward A. James2-0/+102
the pam_systemd library wasn't compiling due to logind dependencies and shared library issues. resolves openbmc/openbmc#619 Change-Id: I2e152c6e989025d28051008ebd032d8e696cfe68 Signed-off-by: Edward A. James <eajames@us.ibm.com>
2016-10-12gtest: Ensure added to SDKPatrick Williams1-0/+1
Change-Id: I51e1ea4bcedbb64ed6e628e9a61dca6da35affb5 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
2016-10-04Enabling the avahi service.Ratan Gupta1-0/+4
Regsitering the following services with avahi. obmc-console,ssh,sftp(dropbear),obmc-rest Fixes openbmc/openbmc#548 Fixes openbmc/openbmc#549 Change-Id: I20c31e9e8dfa6d52575bc3c1f55ac62eef82ec13 Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
2016-09-17nativesdk-packagegroup: Incorrect _append whitespacePatrick Williams1-1/+1
Change-Id: I0367b05058503ce7a98a1eb17e682460da309bbd Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
2016-09-09systemd - Shrink systemd package contentsSergey Solomin1-1/+5
Eliminate unnecessary items installed by systemd package. That will save some space and reduce a number of files on a system. Resolves openbmc/openbmc#222 Change-Id: I1d51f82052b782a3ff3bd3821ecf39608a5ac8ce Signed-off-by: Sergey Solomin <sergey.solomin@us.ibm.com>
2016-09-08Add webserver syncronization pre targetBrad Bishop2-0/+3
Assist with adding webserver startup dependencies. Change-Id: I77d5f30e900b6c0d1bb537645050d88dfcec74e2 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>