History log of /openbmc/openpower-pnor-code-mgmt/ubi/ (Results 1 – 25 of 37)
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
cbf707b601-Feb-2025 Patrick Williams <patrick@stwcx.xyz>

clang-format: update latest spec and reformat

Copy the latest format file from the docs repository and apply.

Change-Id: I4113bd60a6817c8fdfad541c58e0910035a663ca
Signed-off-by: Patrick Williams <p

clang-format: update latest spec and reformat

Copy the latest format file from the docs repository and apply.

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

show more ...

f8e0242916-Aug-2024 Patrick Williams <patrick@stwcx.xyz>

clang-format: re-format for clang-18

clang-format-18 isn't compatible with the clang-format-17 output, so we
need to reformat the code with the latest version. The way clang-18
handles lambda forma

clang-format: re-format for clang-18

clang-format-18 isn't compatible with the clang-format-17 output, so we
need to reformat the code with the latest version. The way clang-18
handles lambda formatting also changed, so we have made changes to the
organization default style format to better handle lambda formatting.

See I5e08687e696dd240402a2780158664b7113def0e for updated style.
See Iea0776aaa7edd483fa395e23de25ebf5a6288f71 for clang-18 enablement.

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

show more ...

96442c8816-Jun-2024 Manojkiran Eda <manojkiran.eda@gmail.com>

Fix spelling mistakes using codespell

This commit corrects various spelling mistakes throughout the
repository. The corrections were made automatically using `codespell`[1]
tool.

[1]: https://githu

Fix spelling mistakes using codespell

This commit corrects various spelling mistakes throughout the
repository. The corrections were made automatically using `codespell`[1]
tool.

[1]: https://github.com/codespell-project/codespell

Change-Id: I014e7670ca4ba57f7e1b80e96c001474cf7a6676
Signed-off-by: Manojkiran Eda <manojkiran.eda@gmail.com>

show more ...

b119dca126-May-2023 Patrick Williams <patrick@stwcx.xyz>

fix GCC 13 issues

GCC 13 removes `uint*_t` family of types from one of the common
includes so we need to explicitly include cstdint.

Change-Id: I05884edbaa38f3999fc6cd8234411d2c2c8a7429
Signed-off-

fix GCC 13 issues

GCC 13 removes `uint*_t` family of types from one of the common
includes so we need to explicitly include cstdint.

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

show more ...

7fb6c34610-May-2023 Patrick Williams <patrick@stwcx.xyz>

clang-format: copy latest and re-format

clang-format-16 has some backwards incompatible changes that require
additional settings for best compatibility and re-running the formatter.
Copy the latest

clang-format: copy latest and re-format

clang-format-16 has some backwards incompatible changes that require
additional settings for best compatibility and re-running the formatter.
Copy the latest .clang-format from the docs repository and reformat the
repository.

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

show more ...

15513dbb08-Dec-2022 Patrick Williams <patrick@stwcx.xyz>

beautysh: re-format

beautysh is enabled in the openbmc-build-scripts on Bash/Zsh/POSIX-sh
files to have a consistent formatting. Re-run the formatter on the
whole repository.

Change-Id: I82c8272c4

beautysh: re-format

beautysh is enabled in the openbmc-build-scripts on Bash/Zsh/POSIX-sh
files to have a consistent formatting. Re-run the formatter on the
whole repository.

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

show more ...

0dea199222-Jul-2022 Patrick Williams <patrick@stwcx.xyz>

sdbusplus: use shorter type aliases

The sdbusplus headers provide shortened aliases for many types.
Switch to using them to provide better code clarity and shorter
lines. Possible replacements are

sdbusplus: use shorter type aliases

The sdbusplus headers provide shortened aliases for many types.
Switch to using them to provide better code clarity and shorter
lines. Possible replacements are for:
* bus_t
* exception_t
* manager_t
* match_t
* message_t
* object_t
* slot_t

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

show more ...


/openbmc/openpower-pnor-code-mgmt/OWNERS
/openbmc/openpower-pnor-code-mgmt/README.md
/openbmc/openpower-pnor-code-mgmt/activation.cpp
/openbmc/openpower-pnor-code-mgmt/activation.hpp
/openbmc/openpower-pnor-code-mgmt/functions.cpp
/openbmc/openpower-pnor-code-mgmt/functions.hpp
/openbmc/openpower-pnor-code-mgmt/generate-tar
/openbmc/openpower-pnor-code-mgmt/image_verify.cpp
/openbmc/openpower-pnor-code-mgmt/image_verify.hpp
/openbmc/openpower-pnor-code-mgmt/item_updater.cpp
/openbmc/openpower-pnor-code-mgmt/item_updater.hpp
/openbmc/openpower-pnor-code-mgmt/item_updater_main.cpp
/openbmc/openpower-pnor-code-mgmt/meson.build
/openbmc/openpower-pnor-code-mgmt/meson_options.txt
/openbmc/openpower-pnor-code-mgmt/mmc/activation_mmc.cpp
/openbmc/openpower-pnor-code-mgmt/mmc/activation_mmc.hpp
/openbmc/openpower-pnor-code-mgmt/mmc/item_updater_mmc.cpp
/openbmc/openpower-pnor-code-mgmt/mmc/item_updater_mmc.hpp
/openbmc/openpower-pnor-code-mgmt/mmc/obmc-flash-bios
/openbmc/openpower-pnor-code-mgmt/mmc/openpower-bios-factory-reset.service
/openbmc/openpower-pnor-code-mgmt/msl_verify.cpp
/openbmc/openpower-pnor-code-mgmt/op-pnor-msl.service
/openbmc/openpower-pnor-code-mgmt/static/activation_static.cpp
/openbmc/openpower-pnor-code-mgmt/static/activation_static.hpp
/openbmc/openpower-pnor-code-mgmt/static/item_updater_static.hpp
/openbmc/openpower-pnor-code-mgmt/test/test_version.cpp
activation_ubi.cpp
activation_ubi.hpp
item_updater_ubi.hpp
/openbmc/openpower-pnor-code-mgmt/utils.cpp
/openbmc/openpower-pnor-code-mgmt/utils.hpp
/openbmc/openpower-pnor-code-mgmt/version.cpp
/openbmc/openpower-pnor-code-mgmt/version.hpp
/openbmc/openpower-pnor-code-mgmt/vpnor/obmc-vpnor-updatesymlinks.service
/openbmc/openpower-pnor-code-mgmt/vpnor/obmc-vpnor-util
97a709b006-Oct-2021 Patrick Williams <patrick@stwcx.xyz>

catch exceptions as const

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

ed44b45f27-Sep-2021 Adriana Kobylak <anoo@us.ibm.com>

ubi: reset: Preserve the SECBOOT partition

With the implemenation of secure boot in Power9, skiboot requires the
SECBOOT partition to be preserved during factory resets, because it
contains keys pro

ubi: reset: Preserve the SECBOOT partition

With the implemenation of secure boot in Power9, skiboot requires the
SECBOOT partition to be preserved during factory resets, because it
contains keys provisioned for the system that cannot be recreated (are
not part of the read-only image).

Tested: Verified that the SECBOOT partition file is preserved after a
factory reset:

root@witherspoon:~# ls -l
/var/lib/phosphor-software-manager/pnor/prsv/
-rw-rw-r-- 1 root root 294912 Sep 27 20:21 CVPD
-rw-rw-r-- 1 root root 294912 Sep 27 20:23 DJVPD
-rw-rw-r-- 1 root root 589824 Sep 27 20:21 MVPD
-rw-rw-r-- 1 root root 589824 Sep 27 20:25 NVRAM
-rw-r--r-- 1 root root 147456 Sep 27 20:26 SECBOOT

root@witherspoon:~# busctl call
org.open_power.Software.Host.Updater /xyz/openbmc_project/software
xyz.openbmc_project.Common.FactoryReset Reset

root@witherspoon:~# ls -l
/var/lib/phosphor-software-manager/pnor/prsv/
-rw-r--r-- 1 root root 147456 Sep 27 20:26 SECBOOT

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

show more ...

408aa15c22-Jun-2021 Adriana Kobylak <anoo@us.ibm.com>

meson: Remove autotools support and update READMEs

Tested: Ran CI.

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

bee8ffdf21-Apr-2021 Adriana Kobylak <anoo@us.ibm.com>

ubi/obmc-flash-bios: fix shellcheck warnings

Tested: Ran PNOR code update on witherspoon.

Change-Id: I6bca3b3651e29aa16b58e05c4b59bdb6a8717c27

c8f2250206-Nov-2020 Brad Bishop <bradleyb@fuzziesquirrel.com>

fix compiler warnings

Fix a couple unused-parameter warnings so we can turn the warnings all
the way up.

Change-Id: I36c611da5a10732dbb89e289e42a870c902dd245
Signed-off-by: Brad Bishop <bradleyb@fu

fix compiler warnings

Fix a couple unused-parameter warnings so we can turn the warnings all
the way up.

Change-Id: I36c611da5a10732dbb89e289e42a870c902dd245
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>

show more ...

9f44c99a06-Nov-2020 Brad Bishop <bradleyb@fuzziesquirrel.com>

c++17: drop experimental::filesystem

Use the real filesystem library, and drop support for building with
experimental under c++14.

Change-Id: I47cbfc30b223db9dc28e9536ceb84e9fe3342e96
Signed-off-by

c++17: drop experimental::filesystem

Use the real filesystem library, and drop support for building with
experimental under c++14.

Change-Id: I47cbfc30b223db9dc28e9536ceb84e9fe3342e96
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>

show more ...

8facccfa04-Nov-2020 Brad Bishop <bradleyb@fuzziesquirrel.com>

style: update clang-format

Pull the most recent OpenBMC style rules and run clang-format.

Change-Id: Ifecce87b6aa64a2800dab3ba1e09ae415accb548
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.co

style: update clang-format

Pull the most recent OpenBMC style rules and run clang-format.

Change-Id: Ifecce87b6aa64a2800dab3ba1e09ae415accb548
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>

show more ...

3c81037e15-Jul-2020 Adriana Kobylak <anoo@us.ibm.com>

pnor: Add updatable association to active PNOR FW

Add 'updateable' association to the active PNOR
firmware version object. This 'updateable' association
can be used to mark all the firmware componen

pnor: Add updatable association to active PNOR FW

Add 'updateable' association to the active PNOR
firmware version object. This 'updateable' association
can be used to mark all the firmware components
which can be programmable from pnor interfaces like
Redfish.

Signed-off-by: Miguel Gomez <mgomez@mx1.ibm.com>
Change-Id: I33f7ac70c8bfa446aeb045c65c741e2d72ce108a

show more ...

bbb5e3be19-Jun-2020 Adriana Kobylak <anoo@us.ibm.com>

vpnor: Move clearvolatile services to vpnor

The clearvolatile services were originally in the ubi layout, but
the functionality is purely for vpnor, not tied to a filesystem
layout. Move them to the

vpnor: Move clearvolatile services to vpnor

The clearvolatile services were originally in the ubi layout, but
the functionality is purely for vpnor, not tied to a filesystem
layout. Move them to the vpnor layer where non-UBI layouts that use
virtual pnor such as eMMC have this functionality.

Tested: Verified on witherspoon that the renamed services were
included in the image and ran during a power on.

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

show more ...

0a5e207809-Jul-2020 Andrew Geissler <geissonator@yahoo.com>

ensure volatile clear occurs after reset check

If the host reset target is running, ensure it completes before
executing the volatile PNOR cleaning service. This target is responsible
for detecting

ensure volatile clear occurs after reset check

If the host reset target is running, ensure it completes before
executing the volatile PNOR cleaning service. This target is responsible
for detecting if the host is up and running. If the host is running and
the /run/openbmc/host@0-on file is created, then this service should not
run.

Tested:
Executed a bmc reset while the host was up and verified via the journal
that targets and services were executed as expected.

Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Change-Id: Idcb6e5d5f6a2ff95eff384f613969617127a35dc

show more ...

ad5b73c309-Jul-2020 Andrew Geissler <geissonator@yahoo.com>

ensure volatile clear waits on dependency

The "Wants" relationship is required to ensure the mapper wait service
is properly started and waited on.

Signed-off-by: Andrew Geissler <geissonator@yahoo

ensure volatile clear waits on dependency

The "Wants" relationship is required to ensure the mapper wait service
is properly started and waited on.

Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Change-Id: If7a880ec0586bc5fbde1e164b415fb28abb8d8ff

show more ...

ab139ce916-May-2020 Andrew Geissler <geissonator@yahoo.com>

string: ensure string included

Latest upstream yocto appears to have removed a free include of string.
This is causing compile failures for files which do not include it
properly.

Signed-off-by: An

string: ensure string included

Latest upstream yocto appears to have removed a free include of string.
This is causing compile failures for files which do not include it
properly.

Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Change-Id: Ic1bf10e15071227582e5738336f632d33705c80b

show more ...

59d5657628-Oct-2019 Adriana Kobylak <anoo@us.ibm.com>

Host.Updater.service: Move dependency on ubi service to the ubi service

The org.open_power.Software.Host.Updater.service is a service common to the
static and ubi layout, but it had a dependency on

Host.Updater.service: Move dependency on ubi service to the ubi service

The org.open_power.Software.Host.Updater.service is a service common to the
static and ubi layout, but it had a dependency on a ubi service. It doesn't
cause a failure on the static layout because the dependency is a Wants vs
a Required, but it should not be there. Move the dependency instead to the
ubi service.

Tested: Verified on witherspoon that the
org.open_power.Software.Host.Updater.service started followed by the
obmc-flash-bios-ubipatch.service as it did before.

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

show more ...

f3dfe65d08-Oct-2019 Adriana Kobylak <anoo@us.ibm.com>

Move updatesymlinks to new vpnor feature

The updatesymlinks functionality is to support virtual pnor and it
does not depend on the filesystem type. Move it to a new vpnor
feature so that users can m

Move updatesymlinks to new vpnor feature

The updatesymlinks functionality is to support virtual pnor and it
does not depend on the filesystem type. Move it to a new vpnor
feature so that users can make use of this feature without being
tied to UBI, for example on a eMMC that has a combined BMC+PNOR
image.

Tested: Verified that the witherspoon image contained the new
script and service file and that it powered on to the host.

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

show more ...

4d3d912624-Jul-2019 Jayashankar Padath <jayashankar.padath@in.ibm.com>

Code Update: Host ApplyTime support

Get the requested image apply time value provided through the
UpdateService redfish schema. If the apply time value is Immediate, then
host reboot will be trigger

Code Update: Host ApplyTime support

Get the requested image apply time value provided through the
UpdateService redfish schema. If the apply time value is Immediate, then
host reboot will be triggered just after the new pnor image activation. The
default apply time value is OnReset in which the new image remains at
Active state and user has to manualy reboot the host for applying the new
image.

Tested: Verified that host is getting rebooted while doing a pnor code update
if the apply time value is Immediate. Tested this use case at server power Off
and Running scenarios. OnReset scenario was also tested in which new image
remained at Active state as pnor code update application did not trigger the
host reboot.

Note: This change is applicable to ubi based systems (Witherspoon)

Signed-off-by: Jayashankar Padath <jayashankar.padath@in.ibm.com>
Change-Id: I74f73172626919b225efef43d9baacd64eadbf60

show more ...

abe862aa17-Jul-2019 Adriana Kobylak <anoo@us.ibm.com>

ubi: Rewrite freePriority

freePriority is called by RedundancyPriority::priority() to ensure that
there are no duplicate priority values. Originally, freePriority would
call priority() whenever it u

ubi: Rewrite freePriority

freePriority is called by RedundancyPriority::priority() to ensure that
there are no duplicate priority values. Originally, freePriority would
call priority() whenever it updated a priority value, but this would call
freePriority again. This can cause the priorities stored on flash to not
match the D-Bus values. The priorities on flash are used to determine
which version to boot from so that leads to unexpected behavior.

Example is if A has priority 1 and B has priority 2, and the priority of
B is changed to 1, this triggers the new value of 1 to be stored on
flash, then A is bumped to 2, but then B that originally had 2 is bumped
to 3, so that at the end of the operation, B has priority 3 on flash but
the correct 1 in D-Bus.

The solution is to prevent freePriority from calling itself, by sorting
all versions by priority in ascending order, so that if a version is
bumped, then only the remaining versions need to be checked. Then
locally update the priority values on flash and on D-Bus for each
changed one.

Tested: Changed priorities multipled times and verified the mismatch is not
seen anymore.

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

show more ...

10e915ab31-May-2019 Adriana Kobylak <anoo@us.ibm.com>

Move script and systemd service files into repo

Move the obmc-flash-bios script and systemd service files from
openbmc/openbmc to the local repo.

Tested: PNOR code update was successful on withersp

Move script and systemd service files into repo

Move the obmc-flash-bios script and systemd service files from
openbmc/openbmc to the local repo.

Tested: PNOR code update was successful on witherspoon.

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

show more ...

2b2d229818-Mar-2019 Lei YU <mine260309@gmail.com>

Static layout: support image verification

Add support of image verification for static layout PNOR code update.

Tested: Verify the PNOR code update succeeds with valid-signed PNOR;
and fail

Static layout: support image verification

Add support of image verification for static layout PNOR code update.

Tested: Verify the PNOR code update succeeds with valid-signed PNOR;
and fails with invalid-signed PNOR or a PNOR tarball without
signature.

Change-Id: I1aafeb4e8e07eaa16c170f33f4f21940f7c9c146
Signed-off-by: Lei YU <mine260309@gmail.com>

show more ...

12