[Please find the unmangled patch attached. I have no idea how to turn off line wrapping in Mozilla Thunderbird.]

Currently, even with `etc/threads` set to 2 in CBFS, the boot splash is
only shown for a short period, while SeaBIOS detects the hard disk on
the ASRock E350M1, which takes 10 seconds with this particular hard
drive model.

So move the call to wait for the threads to finish further up, so it is
before the instruction to disable the boot splash.

On the ASRock E350M1 the boot splash is shown the whole time now. Note,
sometimes the GRUB menu from the MBR is not shown, and boot splash can
still  be seen. The screen only changes, once the Linux kernel boots.
This seems to be a GRUB issue though [1].

[1] http://metadata.ftp-master.debian.org/changelogs//main/g/grub2/grub2_2.02~beta2-36_changelog

Suggested-by: Kevin O'Connor <ke...@koconnor.net>
Signed-off-by: Paul Menzel <pmen...@molgen.mpg.de>
---
 src/boot.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/boot.c b/src/boot.c
index 706b7df..af3c627 100644
--- a/src/boot.c
+++ b/src/boot.c
@@ -468,6 +468,7 @@ interactive_bootmenu(void)
u32 menutime = romfile_loadint("etc/boot-menu-wait", DEFAULT_BOOTMENU_WAIT);
     enable_bootsplash();
     int scan_code = get_keystroke(menutime);
+    wait_threads();
     disable_bootsplash();
     if (scan_code != menukey)
         return;
@@ -476,7 +477,6 @@ interactive_bootmenu(void)
         ;

     printf("Select boot device:\n\n");
-    wait_threads();

     // Show menu items
     int maxmenu = 0;
--
2.4.1
>From eb934a047d78840de20d8e106e6fd3fc172b3bd9 Mon Sep 17 00:00:00 2001
From: Paul Menzel <pmen...@molgen.mpg.de>
Date: Mon, 29 Aug 2016 19:14:41 +0200
Subject: [PATCH] boot: Show boot splash until all threads are complete

Currently, even with `etc/threads` set to 2 in CBFS, the boot splash is
only shown for a short period, while SeaBIOS detects the hard disk on
the ASRock E350M1, which takes 10 seconds with this particular hard
drive model.

So move the call to wait for the threads to finish further up, so it is
before the instruction to disable the boot splash.

On the ASRock E350M1 the boot splash is shown the whole time now. Note,
sometimes the GRUB menu from the MBR is not shown, and boot splash can
still  be seen. The screen only changes, once the Linux kernel boots.
This seems to be a GRUB issue though [1].

[1] http://metadata.ftp-master.debian.org/changelogs//main/g/grub2/grub2_2.02~beta2-36_changelog

Suggested-by: Kevin O'Connor <ke...@koconnor.net>
Signed-off-by: Paul Menzel <pmen...@molgen.mpg.de>
---
 src/boot.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/boot.c b/src/boot.c
index 706b7df..af3c627 100644
--- a/src/boot.c
+++ b/src/boot.c
@@ -468,6 +468,7 @@ interactive_bootmenu(void)
     u32 menutime = romfile_loadint("etc/boot-menu-wait", DEFAULT_BOOTMENU_WAIT);
     enable_bootsplash();
     int scan_code = get_keystroke(menutime);
+    wait_threads();
     disable_bootsplash();
     if (scan_code != menukey)
         return;
@@ -476,7 +477,6 @@ interactive_bootmenu(void)
         ;
 
     printf("Select boot device:\n\n");
-    wait_threads();
 
     // Show menu items
     int maxmenu = 0;
-- 
2.4.1

_______________________________________________
SeaBIOS mailing list
SeaBIOS@seabios.org
https://www.coreboot.org/mailman/listinfo/seabios

Reply via email to