0003-use-text-based-developer-mode-screen.patch 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. From bf9c580750a13d1f059a00cc2d41b3f9bfc03d6e Mon Sep 17 00:00:00 2001
  2. From: Hal Emmerich <hal@halemmerich.com>
  3. Date: Sun, 8 Dec 2019 20:03:20 -0600
  4. Subject: [PATCH] use text based developer mode screen
  5. ---
  6. firmware/lib/vboot_api_kernel.c | 13 +++----------
  7. 1 file changed, 3 insertions(+), 10 deletions(-)
  8. diff --git a/firmware/lib/vboot_api_kernel.c b/firmware/lib/vboot_api_kernel.c
  9. index 02d09ad1..ae2ad1f7 100644
  10. --- a/firmware/lib/vboot_api_kernel.c
  11. +++ b/firmware/lib/vboot_api_kernel.c
  12. @@ -430,17 +430,10 @@ VbError_t VbSelectAndLoadKernel(VbCommonParams *cparams,
  13. else
  14. retval = VbBootRecovery(&ctx);
  15. VbExEcEnteringMode(0, VB_EC_RECOVERY);
  16. - } else if (ctx.flags & VB2_CONTEXT_DEVELOPER_MODE) {
  17. - /* Developer boot. This has UI. */
  18. - if (kparams->inflags & VB_SALK_INFLAGS_ENABLE_DETACHABLE_UI)
  19. - retval = VbBootDeveloperMenu(&ctx);
  20. - else
  21. - retval = VbBootDeveloper(&ctx);
  22. - VbExEcEnteringMode(0, VB_EC_DEVELOPER);
  23. } else {
  24. - /* Normal boot */
  25. - retval = VbBootNormal(&ctx);
  26. - VbExEcEnteringMode(0, VB_EC_NORMAL);
  27. + /* Always developer boot */
  28. + retval = VbBootDeveloper(&ctx);
  29. + VbExEcEnteringMode(0, VB_EC_DEVELOPER);
  30. }
  31. VbSelectAndLoadKernel_exit:
  32. --
  33. 2.20.1