Skip to content

flash.sh: drop inhouse progress output on console when flashing with flashrom#1755

Merged
tlaurion merged 1 commit into
linuxboot:masterfrom
tlaurion:drop_flashrom_inhouse_progress_output
Aug 23, 2024
Merged

flash.sh: drop inhouse progress output on console when flashing with flashrom#1755
tlaurion merged 1 commit into
linuxboot:masterfrom
tlaurion:drop_flashrom_inhouse_progress_output

Conversation

@tlaurion

@tlaurion tlaurion commented Aug 23, 2024

Copy link
Copy Markdown
Collaborator

Flashrom dropped --progress output under 1.2.
flashrom 1.4 still has no --progress output.


Heads implemented in-house progress output as a workaround until fixed upstream.
That never happened.
This is still opened issue https://ticket.coreboot.org/issues/390

As per #1753 (comment) @JonathonHall-Purism comment:

What would you think about removing the progress bar? The dream would be to rework it (maybe doing it in flashrom itself, or at least providing a reliably-parseable progress output), but the current implementation is a huge pain, I don't feel it adds enough value to outweigh the pain. For comparison the read step takes a comparable amount of time and does not have a progress bar.


So here, we drop progress output and leave user in the dark while they erase/write the firmware internally when upgrading Heads.

…flashrom

Signed-off-by: Thierry Laurion <insurgo@riseup.net>
@tlaurion

Copy link
Copy Markdown
Collaborator Author

@JonathonHall-Purism works as intended. Merge?

@JonathonHall-Purism

Copy link
Copy Markdown
Collaborator

💯 Let's merge, thank you @tlaurion

I'm thrilled to see this go. While it's not awesome to leave users with an indefinite wait, it is far better than sometimes freezing during a critical potentially-bricking operation, and this code was a nightmare to maintain.

@tlaurion

Copy link
Copy Markdown
Collaborator Author

💯 Let's merge, thank you @tlaurion

I'm thrilled to see this go. While it's not awesome to leave users with an indefinite wait, it is far better than sometimes freezing during a critical potentially-bricking operation, and this code was a nightmare to maintain.

@JonathonHall-Purism please approve!

@tlaurion tlaurion merged commit e64685b into linuxboot:master Aug 23, 2024
@tlaurion

tlaurion commented Aug 23, 2024

Copy link
Copy Markdown
Collaborator Author

signal-2024-08-23-10-29-29-632.jpg

Master flashrom output for 1.3 with me typing on keyboard in between flashrom stating it will do write erase operations prior of doing them.

Not that bad.

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.

2 participants