Skip to content
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

scripts: fix double ME flashing dialog #72

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

3mkusiak
Copy link

@3mkusiak 3mkusiak commented Feb 4, 2025

During attempt to update Dasharo via DTS user is asked twice to skip ME flashing. Move set_intel_regions_update_params() call from firmware_pre_updating_routine() to the "else" part of the "if" statement after firmware_pre_updating_routine() call so it is not executed twice.

During attempt to update Dasharo via DTS user is asked twice to skip ME
flashing. Move set_intel_regions_...() call from ..._updating_routine()
to the "else" part of the "if" statement after ..._updating_routine()
call so it is not executed twice.

Signed-off-by: Mateusz Kusiak <[email protected]>
@3mkusiak
Copy link
Author

3mkusiak commented Feb 4, 2025

Needs to be tested on bare metal.

@3mkusiak
Copy link
Author

3mkusiak commented Feb 5, 2025

I confirm the fix is working or bare metal.

@macpijan
Copy link
Contributor

macpijan commented Feb 5, 2025

@artur-rs Can we ensure this check will go into automated test scenario?

@artur-rs
Copy link
Member

artur-rs commented Feb 5, 2025

@macpijan sure, adding to the test-scope backlog

@EduKav1813
Copy link
Contributor

@3mkusiak Could you please share the steps needed to reproduce the original problem in DTS?

@3mkusiak
Copy link
Author

3mkusiak commented Feb 7, 2025

Prerequisites
Issue reproduces only when updating Dasharo to newer version. If a newest version is installed, downgrade to older version so update can be attempted.

Reproduction scenario

  1. Enable ME in firmware settings.
  2. Boot do DTS.
  3. Supply DPP credentials if needed.
  4. Attempt to upgrade Dasharo via DTS to newest version.

Expected results
Following dialog in printed once

The firmware binary contains Management Engine (ME), but ME is not disabled!        
                                                                                    
Flashing ME when not in disabled state may cause unexpected power management issues.
...

Actual result
The dialog is printed two times.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Duplicated output and question prompt when installing EC
5 participants