-
Notifications
You must be signed in to change notification settings - Fork 4
reports: Add psptool to hcl report #118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This commit adds psptool support to HCL reports. The psptool is either run on dumped firmware if available, but users can also place firmware binaries from elsewhere in /firmware/external. This is a workaround as on some platforms flashrom does not work under stock firmware. Signed-off-by: Mateusz Kusiak <mateusz.kusiak@3mdeb.com>
|
On implementation Had to workaround this issue: Dasharo/dasharo-issues#1642
On repro cd /
if [ ! -d mockup-firmware ]; then
mkdir mockup-firmware && cd mockup-firmware
wget https://download.gigabyte.com/FileList/BIOS/mb_bios_MZ33-AR1_R05_F04.zip
unzip mb_*
cd - > /dev/null
fi
if [ ! -d /firmware/external ]; then
mkdir -p /firmware/external
cp mockup-firmware/SPI_UPD/image.bin /firmware/external/
cd - > /dev/null
fi
pwdLogs Details
External fw-bin: Details
Multiple files at Details
--Edit-- The ...which to me is fine. If |
Maybe update result based on return value instead? Save stderr to temporary file if psptool (...); then
touch logs/psptool.err.log
update_result "PSPTool" logs/psptool.err.log
mv tmp_stderrlog logs/psptool.err.log
else
mv tmp_stderrlog logs/psptool.err.log
update_result "PSPTool" logs/psptool.err.log
fi |
|
Nvm, |
Add note that for psptool to return valid "Success" status in the HCL report, it must be fixed at sources. Current limitations that cause "UNKNOWN" status: * All warnings are directed to sterr * The tool mostly print warnings, not errors. This includes non-AMD binaries or just files full of zeros. * The tool almos allways returns sucess status code, including the situtations described above. Signed-off-by: Mateusz Kusiak <mateusz.kusiak@3mdeb.com>
|
@m-iwanicki added fixme |
Store default firmware dump path in a variable. This makes logical connection on which file flashroom shall create and which file is actualy used by psptool. Signed-off-by: Mateusz Kusiak <mateusz.kusiak@3mdeb.com>
Add PSPTool to HCL report and allow running it on user-supplied firmware binaries.