f8e02429 | 16-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 ...
|
282d578a | 05-Aug-2024 |
George Liu <liuxiwei@ieisystem.com> |
test/README.md: Fix MD040 warnings
The following warnings are generated by using markdownlint analysis: ``` MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "
test/README.md: Fix MD040 warnings
The following warnings are generated by using markdownlint analysis: ``` MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "```"] ``` Refer to markdown-lint [1] to fix MD040 [1]: https://github.com/updownpress/markdown-lint/blob/master/rules/040-fenced-code-language.md
Signed-off-by: George Liu <liuxiwei@ieisystem.com> Change-Id: I7f120915c474e9707e07061a078fd2b490b70e0c
show more ...
|
b6786914 | 05-Aug-2024 |
George Liu <liuxiwei@ieisystem.com> |
test/README.md: Fix MD004 warnings
The following warnings are generated by using markdownlint analysis: ``` MD004/ul-style Unordered list style [Expected: dash; Actual: asterisk] ``` Refer to markdo
test/README.md: Fix MD004 warnings
The following warnings are generated by using markdownlint analysis: ``` MD004/ul-style Unordered list style [Expected: dash; Actual: asterisk] ``` Refer to markdown-lint [1] to fix MD004 [1]: https://github.com/updownpress/markdown-lint/blob/master/rules/004-ul-style.md
Signed-off-by: George Liu <liuxiwei@ieisystem.com> Change-Id: Ie926528caaf9c82836fa9efffbb88c1382d88c77
show more ...
|
c47dd8e3 | 05-Aug-2024 |
George Liu <liuxiwei@ieisystem.com> |
test/README.md: Fix MD041 warnings
The following warnings are generated by using markdownlint analysis: ``` MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading
test/README.md: Fix MD041 warnings
The following warnings are generated by using markdownlint analysis: ``` MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "Instructions on how to execute..."] ``` Refer to markdown-lint [1] to fix MD041 [1]: https://github.com/updownpress/markdown-lint/blob/master/rules/041-first-line-h1.md
Signed-off-by: George Liu <liuxiwei@ieisystem.com> Change-Id: Iff7add9bc536168a651885fd8506889feb0d4d0d
show more ...
|
cb3de146 | 05-Jul-2024 |
Rashmica Gupta <rashmica@linux.ibm.com> |
generate-tar: Update private signing key
Updating from 1024 bits to 4096 bits for a more secure key
Change-Id: Ia73b7dcf280d729ed23e3e1113c257c68e979d25 Signed-off-by: Rashmica Gupta <rashmica@linu
generate-tar: Update private signing key
Updating from 1024 bits to 4096 bits for a more secure key
Change-Id: Ia73b7dcf280d729ed23e3e1113c257c68e979d25 Signed-off-by: Rashmica Gupta <rashmica@linux.ibm.com>
show more ...
|
749bdcc9 | 17-Jan-2024 |
Adriana Kobylak <anoo@us.ibm.com> |
functions: Replace IBMCompatibleSystem with Compatible
The Compatible interface will be replacing the IBMCompatibleSystem interface. Reference: https://gerrit.openbmc.org/c/openbmc/phosphor-dbus-int
functions: Replace IBMCompatibleSystem with Compatible
The Compatible interface will be replacing the IBMCompatibleSystem interface. Reference: https://gerrit.openbmc.org/c/openbmc/phosphor-dbus-interfaces/+/68125 https://gerrit.openbmc.org/c/openbmc/entity-manager/+/68128
Tested: Verified the symlinks for the PNOR files were created successfully on a Rainier 4U system with the new Compatible interface changes.
Change-Id: Idf2511d6616723bd21c945fe228499ae9eaf2fea Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
show more ...
|
7fb6c346 | 10-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 ...
|
d7cd1848 | 08-Dec-2022 |
Patrick Williams <patrick@stwcx.xyz> |
prettier: re-format
Prettier is enabled in openbmc-build-scripts on Markdown, JSON, and YAML files to have consistent formatting for these file types. Re-run the formatter on the whole repository.
prettier: re-format
Prettier is enabled in openbmc-build-scripts on Markdown, JSON, and YAML files to have consistent formatting for these file types. Re-run the formatter on the whole repository.
Change-Id: Iac79637039eb3b6ecdefb4199f6cc4da0748e8cf Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
5e0b2375 | 08-Dec-2021 |
Adriana Kobylak <anoo@us.ibm.com> |
openssl: stop using deprecated SHA512_* functions
The openssl/sha.h header is deprecated for OpenSSL 3 along with all the functions in it. Switch to use the EVP_MD interfaces.
Tested: CI passes.
openssl: stop using deprecated SHA512_* functions
The openssl/sha.h header is deprecated for OpenSSL 3 along with all the functions in it. Switch to use the EVP_MD interfaces.
Tested: CI passes.
Change-Id: Icd7a83683e7b9778343b8e14bfcdeb31b9d5144a Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
show more ...
|
408aa15c | 22-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> |
099543e4 | 09-Nov-2020 |
Brad Bishop <bradleyb@fuzziesquirrel.com> |
updater: add process-host-firmware subcommand
Add general support for subcommands. Do this by bringing in the the CLI11 library, and by skipping over dbus service initialization if a subcommand is
updater: add process-host-firmware subcommand
Add general support for subcommands. Do this by bringing in the the CLI11 library, and by skipping over dbus service initialization if a subcommand is specified on the command line.
Implement the first subcommand: process-host-firmware. If no subcommand is specified on the command line, openpower-update-manager continues to launch as a dbus service.
Introduce functions.cpp/functions.hpp. functions.cpp is intended to be a module in which process-hostfirmware and future openpower-item-updater subcommands can be implemented. functions.hpp should be used to export declarations to unit tests or item_updater_main.cpp.
The IBM POWER host firmware runtime looks for data and/or additional code while bootstraping in locations with well-known names. Additionally, the host firmware runtime relies on an external party to map platform specific data and/or code to the well known names. The process-host-firmware command maintains that mapping on behalf of the host firmware and ensures the correct blob files exist in the well-known locations prior to starting the host firmware runtime.
The process-host-firmware subcommand registers for callbacks from entity manager when entity manager adds new DBus interfaces. Interfaces other than IBMCompatibleSystem are ignored. Entity manager is started with dbus activation if it is not already running. If IBMCompatibleSystem is found and a set of host firmware blob filename extensions are mapped, they are used to write "well-known" names into the filesystem for use by the host firmware runtime.
Once the well-known names are written to the filesystem the program will exit.
If entity manager does not publish an IBMCompatibleSystem interface the command will wait indefinitely for it to appear. For this reason it is not recommended to run the process-host-fimrware subcommand if IBMCompatibleSystem is not implemented.
If IBMCompatibleSystem is implemented but no host firmware blob filename extensions are mapped, the program will exit without doing anything.
Testcases are provided.
Change-Id: Icb066b0f3e164520cae312e3b03432a6ad67e0df Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
show more ...
|
9f44c99a | 06-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 ...
|
fa9a6bec | 18-Dec-2019 |
Alexander Filippov <a.filippov@yadro.com> |
Fix ECC usage of being cleaned partitions
Reset procedure of PNOR works improperly for our P8 based VESNIN hardware and makes the host unbootable.
The problem is in incorrect partition cleaning.
H
Fix ECC usage of being cleaned partitions
Reset procedure of PNOR works improperly for our P8 based VESNIN hardware and makes the host unbootable.
The problem is in incorrect partition cleaning.
Hostboot for P8 has no support for CLEARECC bit and PNOR flash has no partitions with flag 'C'.
P9 based hardware is not affected until PNOR has partitions with ECC flag only.
This commit modifies the reset procedure to make it use the flag 'E' (ECC) instead of 'C' (CLEARECC).
* The flag 'E' means that the partition requires ECC. * The flag 'C' means that the partition might be cleaned by hostboot when ECC is wrong.
For details see: https://github.com/open-power/hostboot/blob/75c0908b91275dc10bd17cb0f10b452f32ce0b91/src/include/usr/pnor/pnor_const.H#L128
Tested: All PNOR partitions with enabled flags 'E' and 'F' should be cleaned with ECC.
Change-Id: I632e90c8e256df3445fc3d1f45c830d155a1d208 Signed-off-by: Alexander Filippov <a.filippov@yadro.com>
show more ...
|
b41a57d5 | 16-Sep-2019 |
John Wang <wangzqbj@inspur.com> |
msl: Support for v-xx.xx.xx format version ID
The version ID of the pnor we have released is similar to the following format.
Inspur-Dubai-v-4.1.01
This change adds support for parsing version ID
msl: Support for v-xx.xx.xx format version ID
The version ID of the pnor we have released is similar to the following format.
Inspur-Dubai-v-4.1.01
This change adds support for parsing version ID in v-xx.xx.xx format
Signed-off-by: John Wang <wangzqbj@inspur.com> Change-Id: I1a7dd04256d1901e3dafef14baf338b853e2ff97
show more ...
|
d05d4725 | 11-Sep-2019 |
John Wang <wangzqbj@inspur.com> |
Move to new association interface
A new association interface is defined in phosphor-dbus-interfaces It would be nice to move the local version of the interface to the new one.
The behavior of how
Move to new association interface
A new association interface is defined in phosphor-dbus-interfaces It would be nice to move the local version of the interface to the new one.
The behavior of how association work is described here: https://github.com/openbmc/docs/blob/master/object-mapper.md#associations
Partially resolves openbmc/openbmc#3584
Tested: See the org.openbmc.Associations interface has been replaced by the xyz one in /xyz/openbmc_project/software/version_id object and only when the version number is less than PNOR_MSL, "PNOR Minimum Ship Level NOT met" is reported.
Signed-off-by: John Wang <wangzqbj@inspur.com> Change-Id: If4afeb69a9bd8bc494b77826f2ec2854a71f56f5
show more ...
|
2b2d2298 | 18-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 ...
|
e4994464 | 14-Mar-2019 |
Lei YU <mine260309@gmail.com> |
Refactor: Use hiomapd instead of mboxd
mbox service is renamed to hiomapd and provides "Suspend" and "Resume" method calls, which is more appropriate for raw "cmd" calls.
Use the new methods to sus
Refactor: Use hiomapd instead of mboxd
mbox service is renamed to hiomapd and provides "Suspend" and "Resume" method calls, which is more appropriate for raw "cmd" calls.
Use the new methods to suspend and resume hiomapd. Move "getService()" function into utils so it is shared by multiple files.
Tested: Verify the reset works on Romulus
Change-Id: I8f89de134b13126697bfc69a21a3148a01c34cca Signed-off-by: Lei YU <mine260309@gmail.com>
show more ...
|
07830764 | 01-Mar-2019 |
Lei YU <mine260309@gmail.com> |
test: Add test for getPartsToClear
Add the test for getPartsToClear(), and fix issues found by the unit test case with malformed input.
Tested: Verify test builds and passes.
Change-Id: I67c8bbd18
test: Add test for getPartsToClear
Add the test for getPartsToClear(), and fix issues found by the unit test case with malformed input.
Tested: Verify test builds and passes.
Change-Id: I67c8bbd184e7e0c0f7f0f0fca678d1952a07cd66 Signed-off-by: Lei YU <mine260309@gmail.com>
show more ...
|
b1501343 | 01-Mar-2019 |
Lei YU <mine260309@gmail.com> |
test: Add test for GetVersions()
Also split and rename the cases in utest.cpp into test_signature and test_version.
Tested: Verify test is built and passed.
Change-Id: Ibe59355936d9366be8e3f56760b
test: Add test for GetVersions()
Also split and rename the cases in utest.cpp into test_signature and test_version.
Tested: Verify test is built and passed.
Change-Id: Ibe59355936d9366be8e3f56760bff7384a28a28c Signed-off-by: Lei YU <mine260309@gmail.com>
show more ...
|
716de5b8 | 01-Mar-2019 |
Lei YU <mine260309@gmail.com> |
test: Add sources of static PNOR
Add sources in static dir to test. It generates a link error about duplcated GardReset::reset().
Then an issue is found that GardReset::~GardReset() is not virtual,
test: Add sources of static PNOR
Add sources in static dir to test. It generates a link error about duplcated GardReset::reset().
Then an issue is found that GardReset::~GardReset() is not virtual, this will casuse the destructor not calling its super class' dtor.
To fix the above link error, add GardReset[Ubi|Static] to make ubi/static specific implementation in its own class.
Tested: Verify the test build works fine.
Change-Id: I41bd4d522e8b9c4053283c0cf4373807ef4f2d1c Signed-off-by: Lei YU <mine260309@gmail.com>
show more ...
|
ed1c1dc5 | 01-Mar-2019 |
Lei YU <mine260309@gmail.com> |
test: Fix parallel build error on tests
The test was using LDADD to link the objects, this results in below error when building with `make check -j`
*** No rule to make target '../openpower_upd
test: Fix parallel build error on tests
The test was using LDADD to link the objects, this results in below error when building with `make check -j`
*** No rule to make target '../openpower_update_manager-activation.o', needed by 'utest'. Stop.
Because the test depends on the objects to be pre-build, but there is no rule in test/Makefile.am to build t he objects.
This commit changes it to add sources instead of linking to objects, so parallel build works fine.
Tested: run `make check -j` without error.
Change-Id: Ie7aaac49756fdd3b8941c1dec8f693ec66f659ab Signed-off-by: Lei YU <mine260309@gmail.com>
show more ...
|
c67a9457 | 04-Mar-2019 |
Lei YU <mine260309@gmail.com> |
Refactor: Move serialize to ubi
Functions in serialize are specific to UBI, move it to ubi dir.
Tested: On the last commit of the patch series, run code update and factory reset on Withersp
Refactor: Move serialize to ubi
Functions in serialize are specific to UBI, move it to ubi dir.
Tested: On the last commit of the patch series, run code update and factory reset on Witherspoon and all work fine.
Change-Id: I9176e638d9f3bfe0d424b57f8da4667a751cb5bd Signed-off-by: Lei YU <mine260309@gmail.com>
show more ...
|
da6ab6cb | 22-Feb-2019 |
Lei YU <mine260309@gmail.com> |
Refactor: Move watch to ubi
watch is ubi specific functions, move it to ubi dir.
Tested: On the last commit of the patch series, run code update and factory reset on Witherspoon and all wor
Refactor: Move watch to ubi
watch is ubi specific functions, move it to ubi dir.
Tested: On the last commit of the patch series, run code update and factory reset on Witherspoon and all work fine.
Change-Id: Ia7f6b6de845ddd40e2a32ad626d3b7af9074c7f3 Signed-off-by: Lei YU <mine260309@gmail.com>
show more ...
|
4772a944 | 09-Oct-2018 |
Adriana Kobylak <anoo@us.ibm.com> |
msl_verify: Initial commit
Create a new binary that checks the msl (minimum ship level) of the PNOR and logs an error message if the version on the system is older. The msl can be specified via a co
msl_verify: Initial commit
Create a new binary that checks the msl (minimum ship level) of the PNOR and logs an error message if the version on the system is older. The msl can be specified via a config flag.
Change-Id: I6f477400f7a8cf56557bd0caf5d6e08d73320028 Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
show more ...
|
f6ed5897 | 07-Sep-2018 |
Gunnar Mills <gmills@us.ibm.com> |
clang-format: Update to match docs repo
Update the .clang-format file. Now includes header sorting and updating PointerAlignment.
Change-Id: I7119c12f1cc0a461cb7e4576dff6a02dcc95cbc4 Signed-off-by:
clang-format: Update to match docs repo
Update the .clang-format file. Now includes header sorting and updating PointerAlignment.
Change-Id: I7119c12f1cc0a461cb7e4576dff6a02dcc95cbc4 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
show more ...
|