History log of /openbmc/phosphor-psu-code-mgmt/tools/generate-psu-tar (Results 1 – 6 of 6)
Revision Date Author Comments
# 4ba2edcc 06-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


# b58af7e4 03-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 ...


# a821b890 08-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 ...


# 3190547c 05-Dec-2022 Patrick Williams <patrick@stwcx.xyz>

generate-psu-tar: fix shellcheck warnings

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


# d48ae5fb 01-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 ...


# 99ac18a7 12-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 ...