History log of /openbmc/phosphor-psu-code-mgmt/tools/ (Results 1 – 7 of 7)
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
935f551c29-Jul-2024 Rashmica Gupta <rashmica@linux.ibm.com>

generate-psu-tar: Update private signing key

Updating from 1024 bits to 4096 bits for a more secure key

Change-Id: Idba3bcd11e55edaf75c4711da04bd57d5dd2522c
Signed-off-by: Rashmica Gupta <rashmica@

generate-psu-tar: Update private signing key

Updating from 1024 bits to 4096 bits for a more secure key

Change-Id: Idba3bcd11e55edaf75c4711da04bd57d5dd2522c
Signed-off-by: Rashmica Gupta <rashmica@linux.ibm.com>

show more ...

4ba2edcc06-Jan-2023 Chicago Duan <duanzhijia01@inspur.com>

Fix bug: Fix spelling errors

Fix spelling errors.

Signed-off-by: Chicago Duan <duanzhijia01@inspur.com>
Change-Id: Ibf7c6598be90d6a19d4a39adef0dee2202d9f0a6

b58af7e403-Jan-2023 Chicago Duan <duanzhijia01@inspur.com>

Fix bug: Fix tar error

When "-- sign" is not used, the generate-psu-tar returns some errors.

$public_key_file is empty and then files_to_sign has an empty
string parameter that gets passed along to

Fix bug: Fix tar error

When "-- sign" is not used, the generate-psu-tar returns some errors.

$public_key_file is empty and then files_to_sign has an empty
string parameter that gets passed along to tar.

Signed-off-by: Chicago Duan <duanzhijia01@inspur.com>
Change-Id: I3050ae3d78c58ae5474691d738786d5945b0b1a7

show more ...

a821b89008-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: I73477cac4

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: I73477cac44d2e7bb7978873e8c521a1e90e53dd3
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>

show more ...

3190547c05-Dec-2022 Patrick Williams <patrick@stwcx.xyz>

generate-psu-tar: fix shellcheck warnings

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

d48ae5fb01-Jan-2020 Chicago Duan <duanzhijia01@inspur.com>

generate-psu-tar: Add machine name and remove single "-" options

Remove single "-" options because there are too many similar options.

The openbmc image manager expects "MachineName" in MANIFEST th

generate-psu-tar: Add machine name and remove single "-" options

Remove single "-" options because there are too many similar options.

The openbmc image manager expects "MachineName" in MANIFEST that matches
the BMC's OPENBMC_TARGET_MACHINE in /etc/os-release.
* If there is no MachineName in MANIFEST, it logs a warning for now;
* If they do not match, an error is reported and the version is deleted.

Add --machineName argument for generate-psu-tar to make it support the
"MachineName".

Tested: Verify that when a correct machine name is given, the tarball is
processed by image manager correctly;
And if an invalid machine name is given, the tarball uploaded
will get "Machine name doesn't match" error and is deleted.

Signed-off-by: Chicago Duan <duanzhijia01@inspur.com>
Change-Id: Ie39e01ae7e4a48fade3459a7eb82da214e0400e9

show more ...

99ac18a712-Dec-2019 Chicago Duan <duanzhijia01@inspur.com>

Tools: add script to create an update tarball

This script is used to generate the tarball using the PSU image and MANIFEST
usage: generate-psu-tar [OPTION] <parameter>...
Options:
-i, --image

Tools: add script to create an update tarball

This script is used to generate the tarball using the PSU image and MANIFEST
usage: generate-psu-tar [OPTION] <parameter>...
Options:
-i, --image <file> PSU FW image
-v, --version <version> PSU FW version
-model, --model <model> PSU FW model
-mf, --manufacture <version> PSU FW manufacture
-o, --outfile <filename> Outfile name
For example : -o psufw.tar
The default outfile name is image.tar,and
"image" is what you input.
-s, --sign <path> Sign the image. The optional path argument specifies
the private key file. Defaults to the bash variable
PRIVATE_KEY_PATH if available, or else uses the
open-source private key in this script.
-h, --help Display this help text and exit.

Tested: Use this script to generate the tarball for PSU update.
for example :
./generate-psu-tar -i PSU.hex -v 12-34 -model 432-1
-mf LITEON -o test.tar -s /home/chicago/test/private_key

./generate-psu-tar -i PSU.hex -v 12-34 -model 432-1
-mf LITEON -o test.tar -s test/private_key

./generate-psu-tar -i PSU.hex -v 12-34 -model 432-1 -mf LITEON -o test.tar -s

./generate-psu-tar -i PSU.hex -v 12-34 -model 432-1 -mf LITEON -o test.tar

./generate-psu-tar -i PSU.hex -v 12-34 -model 432-1 -mf LITEON

Signed-off-by: Chicago Duan <duanzhijia01@inspur.com>
Change-Id: I50ea116bc6e1e49d7fea3e0974453c442784fbe1

show more ...


/openbmc/phosphor-psu-code-mgmt/.clang-format
/openbmc/phosphor-psu-code-mgmt/.gitignore
/openbmc/phosphor-psu-code-mgmt/LICENSE
/openbmc/phosphor-psu-code-mgmt/MAINTAINERS
/openbmc/phosphor-psu-code-mgmt/README.md
/openbmc/phosphor-psu-code-mgmt/meson.build
/openbmc/phosphor-psu-code-mgmt/meson_options.txt
/openbmc/phosphor-psu-code-mgmt/service/xyz.openbmc_project.Software.Psu.Updater.service
/openbmc/phosphor-psu-code-mgmt/src/activation.cpp
/openbmc/phosphor-psu-code-mgmt/src/activation.hpp
/openbmc/phosphor-psu-code-mgmt/src/activation_listener.hpp
/openbmc/phosphor-psu-code-mgmt/src/association_interface.hpp
/openbmc/phosphor-psu-code-mgmt/src/item_updater.cpp
/openbmc/phosphor-psu-code-mgmt/src/item_updater.hpp
/openbmc/phosphor-psu-code-mgmt/src/main.cpp
/openbmc/phosphor-psu-code-mgmt/src/meson.build
/openbmc/phosphor-psu-code-mgmt/src/types.hpp
/openbmc/phosphor-psu-code-mgmt/src/utils.cpp
/openbmc/phosphor-psu-code-mgmt/src/utils.hpp
/openbmc/phosphor-psu-code-mgmt/src/version.cpp
/openbmc/phosphor-psu-code-mgmt/src/version.hpp
/openbmc/phosphor-psu-code-mgmt/test/meson.build
/openbmc/phosphor-psu-code-mgmt/test/mocked_activation_listener.hpp
/openbmc/phosphor-psu-code-mgmt/test/mocked_association_interface.hpp
/openbmc/phosphor-psu-code-mgmt/test/mocked_utils.hpp
/openbmc/phosphor-psu-code-mgmt/test/psu-images-one-valid-one-invalid/model-1/MANIFEST
/openbmc/phosphor-psu-code-mgmt/test/psu-images-one-valid-one-invalid/model-2/MANIFEST
/openbmc/phosphor-psu-code-mgmt/test/psu-images-valid-version0/model-3/MANIFEST
/openbmc/phosphor-psu-code-mgmt/test/test_activation.cpp
/openbmc/phosphor-psu-code-mgmt/test/test_item_updater.cpp
/openbmc/phosphor-psu-code-mgmt/test/test_utils.cpp
/openbmc/phosphor-psu-code-mgmt/test/test_version.cpp
generate-psu-tar
/openbmc/phosphor-psu-code-mgmt/vendor-example/get_latest_version.cpp
/openbmc/phosphor-psu-code-mgmt/vendor-example/get_version.cpp
/openbmc/phosphor-psu-code-mgmt/vendor-example/meson.build
/openbmc/phosphor-psu-code-mgmt/vendor-example/psu-update@.service