History log of /openbmc/phosphor-bmc-code-mgmt/item_updater.hpp (Results 26 – 45 of 45)
Revision Date Author Comments
# b77551cd 27-Oct-2017 Adriana Kobylak <anoo@us.ibm.com>

Call update u-boot env once when a priority is changed

The recursive nature of calling the free priority function
would trigger setting the u-boot env multiple times.
Make a change s

Call update u-boot env once when a priority is changed

The recursive nature of calling the free priority function
would trigger setting the u-boot env multiple times.
Make a change so that the priorities are sorted and
updated once.

- Create a non-overriden priority setter function to be called
by the free priority function and by the function that creates
the dbus objects after a bmc reboot. There's no need to call
to free the priorities after reboot since the priorities are
preserved on the bmc, and if they're not they default to 0 or 255.
- When a dbus request is made to update the priority, update
the value, then call the free priority function, which will
sort the versions by priority and bump the priority of any
duplicate ones.

Resolves openbmc/openbmc#2535

Change-Id: Ib92cc0ca6c4d5f6e986f3cde7156d63b53844b46
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>

show more ...


# 49446ae9 02-Oct-2017 Saqib Khan <khansa@us.ibm.com>

Update Uboot environment variables when a version is deleted or updated

- We need to update the uboot env variables to point to the
version that has the lowest priority when
the

Update Uboot environment variables when a version is deleted or updated

- We need to update the uboot env variables to point to the
version that has the lowest priority when
the version with lowest priority gets deleted or when
the version with lowest priority gets a higher priority

Resolves openbmc/openbmc#2372

Change-Id: If43105c9ee2c3ada8aeb19939a428eb05e621ee9
Signed-off-by: Saqib Khan <khansa@us.ibm.com>

show more ...


# 48442917 06-Oct-2017 Gunnar Mills <gmills@us.ibm.com>

Style and comment changes in item_updater.hpp

Style and comment changes only.
A similar change was made in openpower-pnor-code-mgmt.

Change-Id: I5ad5cb37267983a1749847599d379e43

Style and comment changes in item_updater.hpp

Style and comment changes only.
A similar change was made in openpower-pnor-code-mgmt.

Change-Id: I5ad5cb37267983a1749847599d379e437e818540
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>

show more ...


# bc1bf3af 18-Sep-2017 Michael Tritz <mtritz@us.ibm.com>

BMC Updater: Add function to delete all versions

This commit extends the item updater with a function to delete all
non-current versions uploaded to the machine.

Resolves openbm

BMC Updater: Add function to delete all versions

This commit extends the item updater with a function to delete all
non-current versions uploaded to the machine.

Resolves openbmc/openbmc#2264

Change-Id: I4d835d5020766f8bb5e9653b28535acfb191fe53
Signed-off-by: Michael Tritz <mtritz@us.ibm.com>

show more ...


# b9da6634 13-Sep-2017 Saqib Khan <khansa@us.ibm.com>

BMC: Update u-boot environment variable based on lowest priority

- If a BMC is set to the lowest priority then update the u-boot
environment variables so that that system boots from th

BMC: Update u-boot environment variable based on lowest priority

- If a BMC is set to the lowest priority then update the u-boot
environment variables so that that system boots from that version
on the next reboot.

Resolves openbmc/openbmc#2284

Change-Id: If0b67b07496f602fa06607bd0685d6394cb8d9fd
Signed-off-by: Saqib Khan <khansa@us.ibm.com>

show more ...


# f10b2326 21-Sep-2017 Gunnar Mills <gmills@us.ibm.com>

Change to pass by reference

removeActiveAssociation and createActiveAssociation should be
pass by reference.

Change-Id: If9396b4ab36fc4497db0cf0b6da7e04a2c6c4055
Signed-off-

Change to pass by reference

removeActiveAssociation and createActiveAssociation should be
pass by reference.

Change-Id: If9396b4ab36fc4497db0cf0b6da7e04a2c6c4055
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>

show more ...


# 88e8a325 13-Sep-2017 Gunnar Mills <gmills@us.ibm.com>

Create BMC functional Association

Create a functional association for the "running" BMC image.

Change-Id: Id254df06b4361b418e765cc5222b1e1ee0d348a3
Signed-off-by: Gunnar Mills <

Create BMC functional Association

Create a functional association for the "running" BMC image.

Change-Id: Id254df06b4361b418e765cc5222b1e1ee0d348a3
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>

show more ...


# ded875dc 28-Aug-2017 Gunnar Mills <gmills@us.ibm.com>

Create active association

Create an association between an active image
and the active image's version object.

Resolves openbmc/openbmc#2007

Change-Id: I4fd27235db97a3c

Create active association

Create an association between an active image
and the active image's version object.

Resolves openbmc/openbmc#2007

Change-Id: I4fd27235db97a3cee87d2da335245e00ec602fba
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>

show more ...


# b60add1e 24-Aug-2017 Gunnar Mills <gmills@us.ibm.com>

Create an association to BMC inventory item

Create an association from /xyz/openbmc_project/software/<id>
to the BMC inventory item.
To determine the BMC inventory item path, look fo

Create an association to BMC inventory item

Create an association from /xyz/openbmc_project/software/<id>
to the BMC inventory item.
To determine the BMC inventory item path, look for paths under
/xyz/openbmc_project/inventory/system/chassis/ that end in /bmc.

Change-Id: I8da748743368e3e607b30a76a6729829dcceec54
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>

show more ...


# 0c2eb262 19-Aug-2017 Saqib Khan <khansa@us.ibm.com>

Remove rw ubi volume delete as part of bmc version delete.

Change-Id: Ied7b803219ccc4686c1316e8b7049538bd52c5ff
Signed-off-by: Saqib Khan <khansa@us.ibm.com>


# 0129d926 10-Aug-2017 Michael Tritz <mtritz@us.ibm.com>

Add field mode to BMC updater

In this commit, a "field mode" feature is added. When field mode is
enabled, the PNOR patch path is unmounted, disabling host patches.

Resolves ope

Add field mode to BMC updater

In this commit, a "field mode" feature is added. When field mode is
enabled, the PNOR patch path is unmounted, disabling host patches.

Resolves openbmc/openbmc#1350

Change-Id: Ia207b1fe1cdeb1b4fbf9b2fbf77052d7191ea726
Signed-off-by: Michael Tritz <mtritz@us.ibm.com>

show more ...


# 3526ef73 07-Jul-2017 Leonel Gonzalez <lgonzalez@us.ibm.com>

item_updater: Added erase method

Implements Object.Delete, so item_updater deletes
ReadWrite, ReadOnly partitions, and removes
Version, and Activation from maps.

Resolves op

item_updater: Added erase method

Implements Object.Delete, so item_updater deletes
ReadWrite, ReadOnly partitions, and removes
Version, and Activation from maps.

Resolves openbmc/openbmc#1550

Change-Id: If6d08bc7d380d043c28a26570e4698201cd7f5b0
Signed-off-by: Leonel Gonzalez <lgonzalez@us.ibm.com>

show more ...


# 37a59043 12-Jul-2017 Michael Tritz <mtritz@us.ibm.com>

Item Updater: Implement BMC factory reset

This commit implements the generic factory reset interface for the BMC
software updater. When the reset function is called, a service file is

Item Updater: Implement BMC factory reset

This commit implements the generic factory reset interface for the BMC
software updater. When the reset function is called, a service file is
called which sets the environmental variable to reset the RW volume.

Change-Id: Ic69b5d145edd654ed75295a9e9aeef9f53779dad
Signed-off-by: Michael Tritz <mtritz@us.ibm.com>

show more ...


# 4c1aec09 06-Jul-2017 Saqib Khan <khansa@us.ibm.com>

BMC: Implement Software RedundancyPriority.interface

- Create Redundancy Priority interface after a successful
PNOR update and set the priority.
- Remove Redundancy Priority interf

BMC: Implement Software RedundancyPriority.interface

- Create Redundancy Priority interface after a successful
PNOR update and set the priority.
- Remove Redundancy Priority interface once the activation
state changes from being Active.
- Create override function for RedundancyPriority.

Resolves openbmc/openbmc#1755

Change-Id: I160dc4a6cad243d58759c71bbeb218aab841cf7a
Signed-off-by: Saqib Khan <khansa@us.ibm.com>

show more ...


# 19177d3e 20-Jun-2017 Saqib Khan <khansa@us.ibm.com>

item_updater: Use Common.FilePath to locate images

The image manager implements the Common.FilePath.Path interface,
make use of it to find the image files instead of hardcoding the
p

item_updater: Use Common.FilePath to locate images

The image manager implements the Common.FilePath.Path interface,
make use of it to find the image files instead of hardcoding the
path, since the updater shouldn't know/care where the images are.

Change-Id: Ieb9ad8e393a7f91645631db9f302095eb82d7f61
Signed-off-by: Saqib Khan <khansa@us.ibm.com>

show more ...


# ba239881 26-May-2017 Saqib Khan <khansa@us.ibm.com>

Move Active BMC version object to item_updater.

- There needs to be only one version class for both
BMC and PNOR images. Thus removing the BMCVERSION
class and moving the functio

Move Active BMC version object to item_updater.

- There needs to be only one version class for both
BMC and PNOR images. Thus removing the BMCVERSION
class and moving the functionality to MANAGER class.

Change-Id: I6dda818960588cfd9ed345fe93068531efc7a877
Signed-off-by: Saqib Khan <khansa@us.ibm.com>

show more ...


# 705f1bfc 09-Jun-2017 Saqib Khan <khansa@us.ibm.com>

item_updater: Add version dbus object.

Implementing the Version object under item_updater helps
to retain the version of the active images after the bmc
is rebooted and the image_dir

item_updater: Add version dbus object.

Implementing the Version object under item_updater helps
to retain the version of the active images after the bmc
is rebooted and the image_dir no longer holds version file.

Change-Id: I55349bbc62b212b4e034239f4f6743129c8b1070
Signed-off-by: Saqib Khan <khansa@us.ibm.com>

show more ...


# 35e83f3e 22-May-2017 Saqib Khan <khansa@us.ibm.com>

ItemUpdater: Validate BMC squashfs image

- Validate the image dir by checking its content.
- Set Activation to "Active" if current image,
"Ready" if validation passed and "Invalid"

ItemUpdater: Validate BMC squashfs image

- Validate the image dir by checking its content.
- Set Activation to "Active" if current image,
"Ready" if validation passed and "Invalid" if
validation fails

Resolves openbmc/openbmc#1629

Change-Id: I5f1c42fb2ba93c849ea8653c9e81c737ae27c814
Signed-off-by: Saqib Khan <khansa@us.ibm.com>

show more ...


# e75d10f5 30-May-2017 Patrick Williams <patrick@stwcx.xyz>

use new sdbusplus match constructors

Change-Id: Ib2dc2b482448422c8497da3af269047288f2159a
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>


# ec1b41c4 02-May-2017 Gunnar Mills <gmills@us.ibm.com>

Create initial BMC Item Updater

This is the initial BMC Item Updater.

Change-Id: I1c4f8ec94d7d35a0e03a363007b79414b20058ac
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>


12