summaryrefslogtreecommitdiffstats
path: root/meta-phosphor/common/recipes-core
Commit message (Collapse)AuthorAgeFilesLines
* Prevent FSI scan during initial chassis power on and host startRaptor Engineering Development Team2018-05-132-0/+2
|
* Force OCC disable script to have completed execution before host can power onRaptor Engineering Development Team2018-05-122-0/+2
|
* Block chassis poweron and host start on completion of shutdown scriptsRaptor Engineering Development Team2018-05-122-0/+2
|
* Enable OCC service after IPL completionRaptor Engineering Development Team2018-01-212-1/+10
|
* init: Add init script to setup /etc mount before starting systemdEdward A. James2017-11-282-4/+2
| | | | | | | | | | | | | Systemd requires /etc mounted and ready at init time. Previously, we were mounting /etc as an overlay from the persistant filesystem after systemd started. This caused a variety of issues with systemd and associated applications (journal, etc). This change also adds factory reset functionality. Resolves openbmc/openbmc#2542 Change-Id: Ib8a38e99df39f833026fe4475670a7ec2b9c8d4d Signed-off-by: Edward A. James <eajames@us.ibm.com>
* Prepare-overlay service: check for mountpoint before removing workdirEdward A. James2017-10-242-0/+2
| | | | | | | | | | | | The service was getting called twice, resulting in a removal of the overlayfs workdir while the overlay was mounted. Solve this by checking if the /etc overlay is mounted yet before removing the workdir. Need to add mountpoint to busybox for this. Resolves openbmc/openbmc#2429 Change-Id: I407a07dcc3f3856af12a7f3a52966fe7c3d756c3 Signed-off-by: Edward A. James <eajames@us.ibm.com>
* Revert "Revert "systemd: enable systemd-coredump package""Jayanth Othayoth2017-10-121-1/+1
| | | | | | | This reverts commit 2a284a012d902bfa399bc14309337c3c1fe1a8ff. Change-Id: I88f1cc9275d9dd1c39fda7e4fe218941fd5ddd42 Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* phosphor-logging: Add native SDK classes to install parser scriptsMarri Devender Rao2017-10-111-0/+1
| | | | | | | | Install elog-gen.py and mako script by default in the obmc-phosphor-image sdk. Change-Id: Ibfb94fc4a645bcca66f7b93656edd88a1af5c4f6 Signed-off-by: Marri Devender Rao <devenrao@in.ibm.com>
* fstab: require service file to mount /var - fixes BMC factory resetMichael Tritz2017-10-051-1/+1
| | | | | | | | | | | | | | | | This commit adds a service file requirement to fstab for mounting the ubi0:rwfs volume to /var. The required file is obmc-flash-bmc-reset.service, which, when called, will perform a BMC factory reset if the corresponding environment variable is set. This functionality was moved out of obmc-flash-bmc-ubirw.service because the factory reset is not the only procedure that calls that service. Moving this function to a new service avoids unexpected behaviors. Resolves openbmc/openbmc#2326 Change-Id: If2a9c650f315cff23040194ec87f16c05622c85e Signed-off-by: Michael Tritz <mtritz@us.ibm.com>
* Set default restart policy for phosphor servicesAndrew Geissler2017-09-262-0/+23
| | | | | | | | | | | | | | | | | | | | | Reduce number of service restarts and increase wait time between restarts. - Change the StartLimitBurst to 3 Five just seems excessive for our services in openbmc. In all fail scenarios seen so far (other then with phosphor-hwmon), either restarting once does the job or restarting all 5 times does not help and we just end up hitting the 5 limit anyway. - Change the RestartSec from 100ms to 1s. When a service hits a failure, our new debug collection service kicks in. When a core file is involved, it's been found that generating 5 core files within ~500ms puts a huge strain on the BMC. Also, if the bmc is going to get a fix on a restart of a service, the more time the better (think retries on device driver scenarios). Change-Id: I0e5bb3f32022cdb72d00f1a861a69653ef937cf1 Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
* Revert "systemd: enable systemd-coredump package"Jayanth Othayoth2017-09-151-1/+1
| | | | | | | This reverts commit 3b900a42acf55606bf28d7e83cabe1a545e9178d. Change-Id: Ia19c92e6724068e84989f62d1673c9effb287f83 Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* Add /home bind mountEddie James2017-09-111-0/+1
| | | | | | | | | Need /home to be writable and persistent. Resolves openbmc/openbmc#2250 Change-Id: I1b3477945b3364a9a5053fd085ff8fd591ad6949 Signed-off-by: Eddie James <eajames@us.ibm.com>
* Add dir "srv" to the root file systemSaqib Khan2017-09-051-0/+4
| | | | | | | | | | | systemd-tmpfiles-setup.service tries to create a temporary dir /srv but due to the read-only root file system it was failing. Resolves openbmc/openbmc#2231 Change-Id: I429b16a7736959583f24bf7fb4c6766cda24130a Signed-off-by: Saqib Khan <khansa@us.ibm.com>
* filesystem: mount rw /media with fstabLeonel Gonzalez2017-08-291-0/+1
| | | | | | | | | | | | | /media will be a tmpfs. This is done so that /media is writeable in a read-only filesystem to be able to mount the ubi volumes for the systems that implement the software interfaces. Resolves openbmc/openbmc#2072 Change-Id: Id6163fe43843f9d17ef49760dee1caee7cc17ceb Signed-off-by: Leonel Gonzalez <lgonzalez@us.ibm.com>
* filesystem: mount rw and overlayEdward A. James2017-08-292-0/+14
| | | | | | | | | | Append base-files to add new fstab and depend on mount-overlay recipe. Add systemd services to help mounting overlay fs. Resolves openbmc/openbmc#2134 Change-Id: Ib56fcdde9f7364fca56a08e1ce72e7cafaac35b0 Signed-off-by: Edward A. James <eajames@us.ibm.com>
* Revert "systemd: Configure shutdown watchdog to 20min"Charles Paul Hofer2017-08-282-18/+0
| | | | | | | | Resolves openbmc/openbmc#1938 This reverts commit 45af9a22aabf38474a00698f511e334c14d84c76. Change-Id: I482d8b14ce1cfcb9022973a9412adff46f458f5f Signed-off-by: Charles Paul Hofer <Charles.Hofer@ibm.com>
* systemd: enable systemd-coredump packageJayanth Othayoth2017-08-241-1/+1
| | | | | | | | Package includes systemd tools for storing and retrieving coredumps. Change-Id: I7d71b9a0f055213c6293c3cbd1af26a662e87e2a Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
* glib: Remove GIO_MODULES postinstall hookPatrick Williams2017-08-181-0/+4
| | | | | | | | | | | | | | | | | | Currently building causes a warning about a postinstall hook that is unable to run, due to needing qemu, which causes the postinstall hook to be delayed until first boot. When moving to a read-only-rootfs, we cannot have delayed postinstall actions (otherwise bitbake fails). The glib package does not actually have any GIO modules that need the postinstall action executed for, so remove it entirely via bbappend. This is not appropriate to do upstream for the glib package because, depending on glib options, this may become required. We only use glib for the python dbus libraries, so we are unlikely to ever be affected by this. (Even if we are it just causes a small performance hit on process start-up due to a gio cache not being populated.) Change-Id: I217d4f21be3e2af20895b51267830f4fda376d2c Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* systemd: Patch to add the Synchronize journal dbus methodAdriana Kobylak2017-08-073-0/+390
| | | | | | | | | | The Synchronize method would be called when an error log is committed to get all the entries flushed into the journal. These patches have been submitted upstream and can be removed once the changes are integrated into systemd. Change-Id: I89059d438870803b41bafdb4de3fb11eba3c5fd2 Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
* Add in new host reboot targetAndrew Geissler2017-08-032-1/+12
| | | | | | | | | | | | | | | | | | | | The state management code on the BMC is designed to utilize systemd targets as much as possible. The host reboot was always the odd duck that had some special code written to support it. This special code would basically issue a power off, look for it to complete and then issue a power on. This is very error prone code and has resulted in a few issues. Moving to a single systemd target (the new reboot target) defined here will allow the host reboots to occur solely through a single systemd target now. openbmc/openbmc#2032 is one of those bugs being addressed with this change. Change-Id: If33454aa4f15580e45f888a9b1602dec24a46fca Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
* os-release: populate sysrootBrad Bishop2017-08-011-0/+3
| | | | | | | | Put os-release in the sysroot so it can be accessed by other recipes. Change-Id: Id97d44bcec0272d6b7dc29831a056e419579adc9 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* os-release: Don't rebuild everytimeBrad Bishop2017-08-011-2/+10
| | | | | | | | | | | | | | Update the os-release recipe such that it is not rebuilt unless git reports something different. To do this both the recipe and sstate caches must be disabled but the impact with such a small recipe is low enough to be acceptable. Resolves: openbmc/openbmc#124 Change-Id: I53343410d973ab4a60d9437704c34dbec7120ede Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Ensure host stop target completes after chassis offAndrew Geissler2017-07-251-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>
* Ensure chassis-poweroff called on shutdown errorsAndrew Geissler2017-07-251-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>
* os-release: Whitespace fixesBrad Bishop2017-07-251-15/+15
| | | | | | | Use standard python four space indent. Change-Id: I878b7b711a6bebe61d328d54afa41d1915aa2955 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Don't return the error if unable to create the network namespaceRatan Gupta2017-07-252-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>
* Implement new hard power off targetAndrew Geissler2017-07-212-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>
* Patch busybox watchdog to fix restartsMatt Spinler2017-06-262-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>
* Fix git describe format for commits with a tagLeonel Gonzalez2017-06-221-1/+1
| | | | | | | Fixes openbmc/openbmc#1692 Change-Id: I84fffbaa453d918bcbf7bcb8100109ba8ba1be91 Signed-off-by: Leonel Gonzalez <lgonzalez@us.ibm.com>
* Add fan watchdog takeover targetMatt Spinler2017-06-212-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>
* Add host-timeout targetVishwanatha Subbanna2017-06-152-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>
* fix sdk build broken issueMarri Devender Rao2017-06-131-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>
* busybox: Install watchdogMatt Spinler2017-06-041-0/+1
| | | | | | | Enable the watchdog application Change-Id: I83829b7e4270359a4dcf2a7aad92035f783b9a6c Signed-off-by: Matt Spinler <spinler@us.ibm.com>
* Ensure host-shutdown target calls the host-stop targetAndrew Geissler2017-06-035-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>
* Add target files that gpio monitor can call intoVishwanatha Subbanna2017-05-262-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>
* Block host power on when ActivationBlocksTransition existsAdriana Kobylak2017-05-251-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>
* Create obmc-fan-control-ready targetMatt Spinler2017-05-222-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>
* Conflict with host-stop target vs. host-shutdownAndrew Geissler2017-05-193-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>
* Refactor action target names Host-shutdown-quiesceJosh D. King2017-04-206-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>
* Refactor action target names Host-start-stopJosh D. King2017-04-2014-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>
* Refactor action target names Power-on-offJosh D. King2017-04-2013-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>
* Remove gmock from sdk as it is part of gtest 1.8Lei YU2017-04-171-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>
* Add in new targets to handle bmc resets while host runningAndrew Geissler2017-04-073-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>
* Modify the systemd patch to match the correctSaqib Khan2017-04-061-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>
* Add FSI enable/disable services for cronus useMatt Spinler2017-03-161-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>
* Automatically check for chassis power on BMC rebootAndrew Geissler2017-03-151-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>
* Targets and services to check for pgood on bmc resetAndrew Geissler2017-03-154-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>
* Add libstdc++fs to SDKBrad Bishop2017-03-021-1/+1
| | | | | Change-Id: I9bdbacc7fb763cfcf4c056911152513c7c872299 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* os-release: ensure 'dirty' really means dirty.Patrick Williams2017-03-011-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>
* Integrate gmock to SDKLei YU2017-02-281-1/+1
| | | | | Change-Id: I4792e4037ffbace4af224cd1bfe0aef63d11a099 Signed-off-by: Lei YU <mine260309@gmail.com>
OpenPOWER on IntegriCloud