2ab7341b | 15-Oct-2024 |
Chris Sides <Christopher.Sides@hpe.com> |
service: device-tree node vpd to d-bus hw id data
A daemon for transferring Viable Product Data (VPD) from device-tree nodes to D-Bus as described in the design doc @ https://gerrit.openbmc.org/c/op
service: device-tree node vpd to d-bus hw id data
A daemon for transferring Viable Product Data (VPD) from device-tree nodes to D-Bus as described in the design doc @ https://gerrit.openbmc.org/c/openbmc/docs/+/66369
and discussed in this Technical Oversight Forum topic @ https://github.com/openbmc/technical-oversight-forum/issues/38
Tested: Ensure 'model' and/or 'serial-number' nodes are populated in /proc/device-tree. Can be hardcoded into platform DTS via linux-kernel recipe if needed.
''' After OBMC boot, calling > busctl introspect xyz.openbmc_project.MachineContext /xyz/openbmc_project/MachineContext
produces the following output:
NAME TYPE SIGNATURE RESULT/VALUE FLAGS ... xyz.openbmc_project.Inventory.Decorator.Asset interface - - - .BuildDate property s "" emits-change writable .Manufacturer property s "" emits-change writable .Model property s "hpe,dl360" emits-change writable .PartNumber property s "" emits-change writable .SerialNumber property s "t5texpl" emits-change writable ...
Note: Writing to one of these properties will update the property on D-Bus without affecting the underlying device-tree node. An 'updated' event will be fired, so Entity-Manager probes monitoring a given property would recognize the new value and key off it. '''
Change-Id: Id52d1fc3b26010c864c7e64d3dfdf0a2b5de9294 Signed-off-by: Chris Sides <Christopher.Sides@hpe.com>
show more ...
|
f375fecc | 21-Mar-2024 |
Potin Lai <potin.lai@quantatw.com> |
meson: change install_dir to /usr/libexec/entity-manager
We notice a issue that if user accidentally execute fru-device and terminate it after few second, the xyz.openbmc_project.FruDevice busname w
meson: change install_dir to /usr/libexec/entity-manager
We notice a issue that if user accidentally execute fru-device and terminate it after few second, the xyz.openbmc_project.FruDevice busname will not exist on dbus, but the status of FruDevice.service is still active running.
It because sdbusplus changes the behavior of request_name() and it allows the busname can be replaced by new service. [1]
In order to avoid unexpected behavior by running service binary accidentally, move the install_dir to /usr/libexec/entity-manager.
Tested result: - EntityManager is still running normally after the change ``` root@bmc:~# systemctl status xyz.openbmc_project.EntityManager.service ● xyz.openbmc_project.EntityManager.service - Entity Manager Loaded: loaded (/usr/lib/systemd/system/xyz.openbmc_project.EntityManager.service; enabled; preset: enabled) Active: active (running) since Wed 2024-03-20 23:25:44 PDT; 27min ago Process: 596 ExecStartPre=/bin/mkdir -p /var/configuration (code=exited, status=0/SUCCESS) Process: 679 ExecStartPre=/bin/mkdir -p /tmp/overlays (code=exited, status=0/SUCCESS) Main PID: 687 (entity-manager) CPU: 7.203s CGroup: /system.slice/xyz.openbmc_project.EntityManager.service └─687 /usr/libexec/entity-manager/entity-manager ``` - FruDevice is still running normally after the change ``` root@bmc:~# systemctl status xyz.openbmc_project.FruDevice.service ● xyz.openbmc_project.FruDevice.service - Fru Device Loaded: loaded (/usr/lib/systemd/system/xyz.openbmc_project.FruDevice.service; enabled; preset: enabled) Active: active (running) since Wed 2024-03-20 23:25:40 PDT; 28min ago Main PID: 598 (fru-device) CPU: 729ms CGroup: /system.slice/xyz.openbmc_project.FruDevice.service └─598 /usr/libexec/entity-manager/fru-device ```
[1] https://github.com/openbmc/sdbusplus/commit/946c940434a7d5403f469ce2ab56f9136293ff38
Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: I01c1f0fe7a1bdbaf74ec4d080b62450f4a90a057
show more ...
|
dafc6884 | 27-Jun-2023 |
Zhikui Ren <zhikui.ren@intel.com> |
FruDevice: update service to always restart
Entity Manager depends on FruDevice service to scan and then load configurations. Update FruDevice service to always restart on failure. Set restartsec to
FruDevice: update service to always restart
Entity Manager depends on FruDevice service to scan and then load configurations. Update FruDevice service to always restart on failure. Set restartsec to 5 seconds.
Tested: Service auto restart when the process is killed.
Signed-off-by: Zhikui Ren <zhikui.ren@intel.com> Change-Id: I9c408c8d89a27bac0d7ae2ea6c419e1f544a222f
show more ...
|
ee1db76f | 12-Apr-2023 |
Patrick Williams <patrick@stwcx.xyz> |
meson: remove deprecated get_pkgconfig_variable
Since meson 0.56, the `get_pkgconfig_variable` has been deprecated. In meson 0.58 the `get_variable` was enhanced to no longer require the `pkgconfig
meson: remove deprecated get_pkgconfig_variable
Since meson 0.56, the `get_pkgconfig_variable` has been deprecated. In meson 0.58 the `get_variable` was enhanced to no longer require the `pkgconfig` keyword argument. Ensure meson 0.58 is required and update the usage of all `get_pkgconfig_variable` and `get_variable` to be the modern variant.
Change-Id: If15dcc5036a9d2a8f273a3baab659d2b521dec0d Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
3c61d7f4 | 15-Jul-2022 |
Zev Weiss <zev@bewilderbeest.net> |
Remove mux-closing detritus
It's been a while since we had python in the build; this script is obsolete, as is the reference to it in the FruDevice service file.
Signed-off-by: Zev Weiss <zev@bewil
Remove mux-closing detritus
It's been a while since we had python in the build; this script is obsolete, as is the reference to it in the FruDevice service file.
Signed-off-by: Zev Weiss <zev@bewilderbeest.net> Change-Id: If0bb9a4ff7c30d2e5b9ca370e11918ab36c820f8
show more ...
|
5113b931 | 09-Sep-2021 |
Charles Boyer <Charles.Boyer@fii-usa.com> |
service_files: remove StopWhenUnneeded flag in FruDevice service
There have been instances where the FruDevice service would stop when the host is turned off. The solution was to remove the StopWhen
service_files: remove StopWhenUnneeded flag in FruDevice service
There have been instances where the FruDevice service would stop when the host is turned off. The solution was to remove the StopWhenUnneeded flag. This flag is not necessary for FruDevice to detect devices.
Tested: - ReScan and ReScanBus function with the flag removed - Re-init of the system successfully detects devices
Signed-off-by: Charles Boyer <Charles.Boyer@fii-usa.com> Change-Id: I47787fe72e004ff43911018b8b7251eb2775d692
show more ...
|
9c7fd646 | 04-Nov-2020 |
Brad Bishop <bradleyb@fuzziesquirrel.com> |
dbus: add dbus activation support
Add support for dbus activation of entity manager. Enabling dbus activation consists of a few simple steps:
- Add an activation configuration in /usr/share/dbus-
dbus: add dbus activation support
Add support for dbus activation of entity manager. Enabling dbus activation consists of a few simple steps:
- Add an activation configuration in /usr/share/dbus-1/system-services that maps the dbus service name to the correct systemd service - Add a service alias for the service to be dbus activated. This allows dbus activation to be enabled/disabled independently of whether the service is started at boot by systemd[1].
[1]https://dbus.freedesktop.org/doc/dbus-specification.html
Tested: systemctl stop xyz.openbmc_project.EntityManager && busctl tree xyz.openbmc_project.EntityManager / works Change-Id: If7dc7f19a19c0ef59370d899f7f67ad6d11064e0 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
show more ...
|
3649678c | 04-Nov-2020 |
Brad Bishop <bradleyb@fuzziesquirrel.com> |
systemd: install in multi-user.target
Installing in basic.target adds an ordering dependency on every single unit to entity-manager and fru device. Avoid all these unnecessary implicit dependencies
systemd: install in multi-user.target
Installing in basic.target adds an ordering dependency on every single unit to entity-manager and fru device. Avoid all these unnecessary implicit dependencies by installing in multi-user instead.
Testing consisted of booting a rainier bmc to multi-user with any issues. It should be noted that the rainier target has very few applications with dependencies on entity-manager and does not presently use fru-device at all.
Change-Id: Ieb4e638b16839705555cfd699cf735a84478e4b2 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
show more ...
|
10cd4393 | 04-Nov-2020 |
Brad Bishop <bradleyb@fuzziesquirrel.com> |
entity-manager: systemd: use dbus instead of simple
Use systemd service type dbus instead of simple. This avoids entity manager client applications that have correctly ordered themselves after enti
entity-manager: systemd: use dbus instead of simple
Use systemd service type dbus instead of simple. This avoids entity manager client applications that have correctly ordered themselves after entity manager from attempting to connect before it has claimed a bus name.
When Type=dbus, systemd automatically adds an implicit dependency on dbus.socket (so remove the unnecessary dependency on dbus.service).
Tested: systemctl restart xyz.openbmc_project.EntityManager works Change-Id: I450b4ce28d87dfad9143b8b20cd9445e00dd07b0 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
show more ...
|
92daaaa3 | 20-Jan-2020 |
Brad Bishop <bradleyb@fuzziesquirrel.com> |
meson: Add fru-device-less build configuration
Provide an option that skips building of fru-device. fru-device remains enabled and built by default.
Change-Id: If927861cf70aaf594844e28e993edc30813
meson: Add fru-device-less build configuration
Provide an option that skips building of fru-device. fru-device remains enabled and built by default.
Change-Id: If927861cf70aaf594844e28e993edc308138ddf2 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
show more ...
|
b4459915 | 05-Nov-2019 |
Brad Bishop <bradleyb@fuzziesquirrel.com> |
Add support for building with meson
Follow the OpenBMC herd and support a modern, comprehensible build framework.
To build with meson: meson build ninja -C build
Add -Dtests to match de-facto
Add support for building with meson
Follow the OpenBMC herd and support a modern, comprehensible build framework.
To build with meson: meson build ninja -C build
Add -Dtests to match de-facto OpenBMC meson usage conventions.
After this patch existing unit tests continue to pass.
One noteable omission is support for subprojects or vendoring. Cmake support, with subproject vendoring remains.
The OpenBMC CI scripts look for meson.build before looking for CMakelists so approval of this patch would change the build system during CI to meson.
Change-Id: I3d08e37d8c39ed2eecc4245671fb84ce6e3bc279 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
show more ...
|
dd9c79be | 28-Mar-2019 |
Patrick Venture <venture@google.com> |
build: install into bin instead of sbin
Installs into bin instead of sbin per guidelines.
Signed-off-by: Patrick Venture <venture@google.com> Change-Id: I049a33c7102d97110cf5ccf13fec1ad694e33246 |
9b8ece15 | 03-Jan-2019 |
James Feist <james.feist@linux.intel.com> |
Remove condition from service files
These don't provide anything useful and aren't working currently. Remove them to remove the error.
Change-Id: I24b6a14ff9d585730095ed7fe5ebcd02a187f64a Signed-of
Remove condition from service files
These don't provide anything useful and aren't working currently. Remove them to remove the error.
Change-Id: I24b6a14ff9d585730095ed7fe5ebcd02a187f64a Signed-off-by: James Feist <james.feist@linux.intel.com>
show more ...
|
d534f743 | 08-Nov-2018 |
Yong Li <yong.b.li@linux.intel.com> |
Change the service type from oneshot to simple
With oneshot type will block until the running process exists, however the fru-device does not exit, this causes the service status is always in runnin
Change the service type from oneshot to simple
With oneshot type will block until the running process exists, however the fru-device does not exit, this causes the service status is always in running
Change-Id: Ibb246de21a6a2433549f09241d540348eb93870b Signed-off-by: Yong Li <yong.b.li@linux.intel.com>
show more ...
|
8ca70868 | 02-Nov-2018 |
Radivoje Jovanovic <radivoje.jovanovic@intel.com> |
remove entity-manager service dependency to the FRU service
Change-Id: I09667a6bbab75a4cf27cb3c2b0c28225821dd59b Signed-off-by: Radivoje Jovanovic <radivoje.jovanovic@intel.com> |
ce4367c6 | 16-Oct-2018 |
James Feist <james.feist@linux.intel.com> |
Move service files into repo and clean up OVERLAYS
Upstream request is to have service files in repo now. Also limit scope of OVERLAYS flag to allow exports to still work.
Change-Id: I61c8621a64855
Move service files into repo and clean up OVERLAYS
Upstream request is to have service files in repo now. Also limit scope of OVERLAYS flag to allow exports to still work.
Change-Id: I61c8621a648556d277d4faf3dfe38a61343053ce Signed-off-by: James Feist <james.feist@linux.intel.com>
show more ...
|