Age | Commit message (Collapse) | Author | Files | Lines |
|
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>
|
|
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>
|
|
Use standard python four space indent.
Change-Id: I878b7b711a6bebe61d328d54afa41d1915aa2955
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
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>
|
|
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>
|
|
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>
|
|
Fixes openbmc/openbmc#1692
Change-Id: I84fffbaa453d918bcbf7bcb8100109ba8ba1be91
Signed-off-by: Leonel Gonzalez <lgonzalez@us.ibm.com>
|
|
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>
|
|
This target gets executed when the host watchdog times out.
Change-Id: Id6711a1b7eab784189daf46bc225398b5cc1790f
Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
|
|
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>
|
|
Enable the watchdog application
Change-Id: I83829b7e4270359a4dcf2a7aad92035f783b9a6c
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
Change-Id: I9bdbacc7fb763cfcf4c056911152513c7c872299
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
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>
|
|
Change-Id: I4792e4037ffbace4af224cd1bfe0aef63d11a099
Signed-off-by: Lei YU <mine260309@gmail.com>
|
|
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>
|
|
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>
|
|
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>
|
|
Change-Id: I5e4a0da68bfcebb12f3ac4161e63c145f9f73b0a
Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
|
|
Change-Id: I42049c092e4a852b94b6d3f96b9dea3884c21333
Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
|
|
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>
|
|
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
|
|
systemd/systemd#5073
Change-Id: Ie0c5736e5ad5a9fff8c0d191852ffb62e0441109
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com?
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
Change-Id: Ie98034d8b07df2798312d55b37d8b7e13d372e40
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
|
|
Change-Id: Iad5fa91a6aa47b4ef0ea96ef86c6b299f74be814
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
|
|
Change-Id: I0ee7c2fdc9c9220437a5b5dd1255c2b80b5cc125
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
|
|
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>
|
|
Change-Id: I51e1ea4bcedbb64ed6e628e9a61dca6da35affb5
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
|
|
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>
|
|
Change-Id: I0367b05058503ce7a98a1eb17e682460da309bbd
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
|
|
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>
|
|
Assist with adding webserver startup dependencies.
Change-Id: I77d5f30e900b6c0d1bb537645050d88dfcec74e2
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|