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

The bootloader provides too little information on the LCD #130

Open
hnez opened this issue Mar 26, 2024 · 1 comment
Open

The bootloader provides too little information on the LCD #130

hnez opened this issue Mar 26, 2024 · 1 comment

Comments

@hnez
Copy link
Member

hnez commented Mar 26, 2024

The barebox bootloaders displays the following pieces of information on the screen:

  • It tries to boot into root-a
  • … but it failed.
  • It tries to boot into root-b
  • … but it failed.

This is not that much information. It would be great to print at least the following additional pieces of information:

  • None of the two boot slots have remaining attempts, so none will be booted.
  • The boot was interrupted via the console / other manual interruption.
@a3f
Copy link
Member

a3f commented Mar 26, 2024

There is a progress notifier feature in <progress.h>. It's not used much at the moment, but it was meant for exactly this:

  • Generic code calls progress_notifier_call_chain(PROGRESS_BOOT_FALLBACK, "a message");
  • Board code registers a handler with progress_register_client which prints this to the display
  • Users not initerested in this functionality just disable CONFIG_PROGRESS_NOTIFIER and incur no extra cost.

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

No branches or pull requests

2 participants