Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Mar 96 01:15:55 +0100
From:      Jean-Marc Zucconi <jmz@cabri.obs-besancon.fr>
To:        current@freebsd.org
Subject:   COMCONSOLE: a patch and a problem
Message-ID:  <9603110015.AA04281@cabri.obs-besancon.fr>

next in thread | raw e-mail | index | archive | help
I played with the boot blocks and I noticed that I was unable to boot
from a serial console (keyboard unplugged). The patch below fixes a
bug in boot.c/probe_keyboard.c (well, at least on my machine:-).

The problem now: when booting from a serial console, there is no
timeout at the 'Boot:' prompt. Further investigations showed that the
bios_tick function always returns the same value! Is this related to
the fact that the keyboard is not plugged in? 

Jean-Marc

Index: boot.c
===================================================================
RCS file: /home/ncvs/src/sys/i386/boot/biosboot/boot.c,v
retrieving revision 1.47
diff -u -r1.47 boot.c
--- boot.c	1996/03/08 06:29:06	1.47
+++ boot.c	1996/03/10 23:50:15
@@ -76,7 +76,7 @@
 	int ret;
 
 #ifdef PROBE_KEYBOARD
-	if (probe_keyboard()) {
+	if (!probe_keyboard()) {
 		init_serial();
 		loadflags |= RB_SERIAL;
 		printf("\nNo keyboard found.");
Index: probe_keyboard.c
===================================================================
RCS file: /home/ncvs/src/sys/i386/boot/biosboot/probe_keyboard.c,v
retrieving revision 1.6
diff -u -r1.6 probe_keyboard.c
--- probe_keyboard.c	1996/03/08 06:29:07	1.6
+++ probe_keyboard.c	1996/03/10 23:50:36
@@ -114,7 +114,7 @@
 #ifdef DEBUG
 	printf("ok\n");
 #endif
-	return(0);
+	return(1);
 }
 
 #endif /* PROBE_KEYBOARD */
 _____________________________________________________________________________
 Jean-Marc Zucconi       Observatoire de Besancon       F 25010 Besancon cedex
                   PGP Key: finger jmz@cabri.obs-besancon.fr
 =============================================================================



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9603110015.AA04281>