Commit Graph
515 Commits
Author SHA1 Message Date
Michał Iwanicki 3a49c69116 dts-functions: board_config: migrate couple platforms
Signed-off-by: Michał Iwanicki <michal.iwanicki@3mdeb.com>
2025-10-31 12:26:41 +01:00
Kamil Aronowski 7b43513360 reports: dasharo-hcl-report: add amdtool to HCL
include: hal: dts-hal.sh: add AMDTOOL

Signed-off-by: Kamil Aronowski <kamil.aronowski@3mdeb.com>
2025-10-10 10:13:40 +02:00
Mateusz Kusiak 69f289f875 reports: psptool: Update HCL string
"PSPTool" is not meaningful string, update to "PSP firmware entries".

Signed-off-by: Mateusz Kusiak <mateusz.kusiak@3mdeb.com>
2025-10-10 09:15:22 +02:00
Michał Iwanicki 996a8eaa15 Merge pull request #118 from Dasharo/hcl_psp
reports: Add psptool to hcl report
2025-10-09 10:53:52 +02:00
Mateusz Kusiak 38b7991d72 reports: store FW dump path in var
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>
2025-10-09 10:51:42 +02:00
Mateusz Kusiak 00b0601d23 reports: psptool: add fixme
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>
2025-10-08 14:42:27 +02:00
Mateusz Kusiak 35c926cb1c reports: Add psptool to hcl report
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>
2025-10-08 14:07:39 +02:00
Michał Iwanicki 4fad7cf3a1 Merge pull request #115 from Dasharo/2-7-1-changes-mocking
Add FUM, smmstore and flash layout mocking
2025-10-07 11:30:07 +02:00
Michał Iwanicki ef667ec7b2 Use ask_for_confirmation function when asking for user choice
Signed-off-by: Michał Iwanicki <michal.iwanicki@3mdeb.com>
2025-09-29 15:50:54 +02:00
Michał Iwanicki ba25f29449 Add FUM, smmstore and flash layout mocking
Related to changes and fixes done in v2.7.1

Signed-off-by: Michał Iwanicki <michal.iwanicki@3mdeb.com>
2025-09-29 12:19:22 +02:00
Michał Iwanicki ad42bda608 dts-boot: update typo
Signed-off-by: Michał Iwanicki <michal.iwanicki@3mdeb.com>
2025-09-25 16:36:02 +02:00
Michał Iwanicki d638d0f5d2 Merge pull request #113 from Dasharo/mtl-1-0-0-bricks
Multiple changes:
- ask if user wants to continue if smmstore migration fails
- stop update if `flashrom` can't read flash in `set_flashrom_update_params`
- rework send_dts_logs function
    - fix visible error when no network interface
    - print link to docs if sending logs fails
    - send logs to public hcl if DPP credentials don't work
    - print path to created archive in case user wants to copy them manually
- add recovery/brick warnings and contact information in case flashing fails
- replace MinIO text displayed for users with 3mdeb server
- add fix for multiple FUM updates starting. Ask user if they want to start automatic update or go to main menu.
2025-09-25 12:17:22 +02:00
Michał Iwanicki b23e01830d Merge pull request #114 from Dasharo/fum-fix
ask user about FUM update
2025-09-25 12:03:22 +02:00
Michał Iwanicki 1d27d9c30c dts-boot: FUM: ask user if he wants to continue with automatic update
Signed-off-by: Michał Iwanicki <michal.iwanicki@3mdeb.com>
2025-09-25 12:01:32 +02:00
Michał Iwanicki e5914a75d1 dts-functions: add ask_for_choice function
Signed-off-by: Michał Iwanicki <michal.iwanicki@3mdeb.com>
2025-09-25 12:01:19 +02:00
Michał Iwanicki 02a81c824c dts-boot: fix shellcheck source path
Signed-off-by: Michał Iwanicki <michal.iwanicki@3mdeb.com>
2025-09-24 17:56:01 +02:00
Michał Iwanicki f7b6bebbcb dasharo-deploy: smmstore_migrate: use if instead of && chaining
Signed-off-by: Michał Iwanicki <michal.iwanicki@3mdeb.com>
2025-09-24 11:16:29 +02:00
Michał Iwanicki b3d64e4081 dasharo-deploy: smmstore_migration: print warning in yellow on failure
Signed-off-by: Michał Iwanicki <michal.iwanicki@3mdeb.com>
2025-09-24 11:16:29 +02:00
Michał Iwanicki 46836a4b1e dasharo-deploy: create smmstore_migrate helper and reword question
Signed-off-by: Michał Iwanicki <michal.iwanicki@3mdeb.com>
2025-09-24 11:16:29 +02:00
Michał Iwanicki ef074a5655 dts-functions: rewrite flashing failure message
Signed-off-by: Michał Iwanicki <michal.iwanicki@3mdeb.com>
2025-09-24 11:16:29 +02:00
Michał Iwanicki 3edef98aff dts-functions: send_dts_logs: move prompt out of send_dts_logs_main
Signed-off-by: Michał Iwanicki <michal.iwanicki@3mdeb.com>
2025-09-24 11:16:29 +02:00
Michał Iwanicki a69dd7b310 dts-functions: send_dts_logs: reword warning message
Signed-off-by: Michał Iwanicki <michal.iwanicki@3mdeb.com>
2025-09-24 11:16:29 +02:00
Michał Iwanicki 3d0083aae3 dts-functions & dasharo-hcl-report: replace minio prints with 3mdeb
Users don't care or even know about implementation details

Signed-off-by: Michał Iwanicki <michal.iwanicki@3mdeb.com>
2025-09-24 11:16:29 +02:00
Michał Iwanicki a81a7a1440 dts-functions & dasharo-deploy: move flashing to separate function
Less code duplication, add recovery information, in the future we can
add automatic recovery attempt (try to flash backup)

Signed-off-by: Michał Iwanicki <michal.iwanicki@3mdeb.com>
2025-09-24 11:16:29 +02:00
Michał Iwanicki 760400c900 dts-functions: rework send_dts_logs function
- Print path to archive with logs
- Print docs link on how to share logs if function failed
- Refactoring
- Fix cat error print when no network

Signed-off-by: Michał Iwanicki <michal.iwanicki@3mdeb.com>
2025-09-23 15:28:34 +02:00