Tell the user we're booting

Devin Teske devin.teske at fisglobal.com
Sun Oct 7 23:10:36 UTC 2012


On Oct 7, 2012, at 3:53 PM, Garrett Cooper wrote:

> On Oct 7, 2012, at 3:39 PM, Devin Teske wrote:
> 
>> Hi,
>> 
>> I'd like to propose a small (tiny even) patch to sys/boot/forth/loader.4th
>> 
>> Said patch will echo "Booting…" before invoking the kernel.
>> 
>> This patch would effect every architecture (even those that don't use the beastie menu).
>> 
>> The reason for proposing this tiny change is that as of 9.0-R I've noticed a significant lag between executing "boot" and getting something on-screen to show that something is happening.
> 
> 	This is probably the memory test (set "hw.memtest.tests" to "0" in loader.conf and see if that speeds things up). Regardless, I think it'd be a good thing to have.
> Thanks!
> -Garrett
> 
> PS Got patch?

Here's patch:

_____________
The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you.
-------------- next part --------------
Index: color.4th.8
===================================================================
--- color.4th.8	(revision 241310)
+++ color.4th.8	(working copy)
@@ -50,7 +50,7 @@
 .Dl include color.4th
 .Pp
 This line is present in
-.Pa /boot/beastie.4th
+.Pa /boot/loader.4th
 file, so it is not needed (and should not be re-issued) in a normal setup.
 .Pp
 The commands provided by it are:
@@ -102,7 +102,6 @@
 .Sh SEE ALSO
 .Xr loader.conf 5 ,
 .Xr loader 8 ,
-.Xr beastie.4th 8 ,
 .Xr loader.4th 8
 .Sh HISTORY
 The
Index: loader.4th
===================================================================
--- loader.4th	(revision 241310)
+++ loader.4th	(working copy)
@@ -40,6 +40,7 @@
 2048 dictincrease !  \ 2048 additional cells each time
 
 include /boot/support.4th
+include /boot/color.4th
 
 only forth also support-functions also builtins definitions
 
@@ -64,6 +65,12 @@
 : boot
   0= if ( interpreted ) get_arguments then
 
+  loader_color? if
+    ." Booting..." cr
+  else
+    ." Booting..." cr
+  then
+
   \ Unload only if a path was passed
   dup if
     >r over r> swap
Index: beastie.4th
===================================================================
--- beastie.4th	(revision 241310)
+++ beastie.4th	(working copy)
@@ -28,7 +28,6 @@
 
 marker task-beastie.4th
 
-include /boot/color.4th
 include /boot/delay.4th
 
 variable logoX


More information about the freebsd-arch mailing list