-
-
Notifications
You must be signed in to change notification settings - Fork 676
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
reorganize boardloader code #4564
Conversation
[no changelog]
|
8ac98ad
to
f77d5ed
Compare
term_printf("\ndone\n\n"); | ||
term_printf("Unplug the device and remove the SD card\n"); | ||
|
||
return sectrue; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should conditionally deinitialize the display at the end of copy_sdcard
.
#ifdef FIXED_HW_DEINIT
display_deinit();
#endif
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for simplicity, i moved the init deinit to the caller, sd_update_check_and_update
. Though we end up in reboot_or_halt_after_rsod
in anyway.
[no changelog]
[no changelog]
…lays [no changelog]
11db11f
to
f08eb5e
Compare
This PR reorganizes boardloader code: mainly SD card update functionality is separated into its own file, which allows easier reading of the main code.
Lazy initialization of display driver is introduced, to allow faster boot times. However, this is now enabled only for some models, as some bootloaders rely on display already being initialized. This is now fixed, as bootloader should always reinitialize the driver (and bootloader should deinitiliaze it on exit, which it luckily does incompletely - otherwise such bootloaders woudn't work properly.