From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 14 14:32:24 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ED3D0106564A for ; Wed, 14 Apr 2010 14:32:24 +0000 (UTC) (envelope-from mike@sentex.net) Received: from lava.sentex.ca (pyroxene.sentex.ca [199.212.134.18]) by mx1.freebsd.org (Postfix) with ESMTP id 9A7A08FC12 for ; Wed, 14 Apr 2010 14:32:24 +0000 (UTC) Received: from mdt-xp.sentex.net (simeon.sentex.ca [192.168.43.27]) by lava.sentex.ca (8.14.3/8.14.3) with ESMTP id o3EDvuxt067902 for ; Wed, 14 Apr 2010 09:57:56 -0400 (EDT) (envelope-from mike@sentex.net) Message-Id: <201004141357.o3EDvuxt067902@lava.sentex.ca> X-Mailer: QUALCOMM Windows Eudora Version 7.1.0.9 Date: Wed, 14 Apr 2010 09:57:57 -0400 To: freebsd-hackers@freebsd.org From: Mike Tancsa Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: disabling all serial input / output at boot time X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Apr 2010 14:32:25 -0000 (Tried on questions, but no luck...) I have an embedded device (Alix box) that is running RELENG_8 off a CF that is designed to monitor / control a serial sensor device. The sensor is quite chatty and is always outputing data at 115200. The problem is that this will interrupt the boot process. I managed to get around boot0 by making this small hack (if there is a better way, please let me know. 0(ich10)# diff -u boot0.S.o boot0.S --- boot0.S.o 2010-04-13 15:11:22.000000000 -0400 +++ boot0.S 2010-04-13 15:27:02.000000000 -0400 @@ -356,7 +356,9 @@ */ #ifndef SIO movb $0x1,%ah # BIOS: Check - int $0x16 # for keypress + /* int $0x16 */ # for keypress + testb $0x02,%ah + #else /* SIO */ movb $0x03,%ah # BIOS: Read COM call bioscom @@ -538,7 +540,8 @@ pushw %bx # Save movw $0x7,%bx # Page:attribute movb $0xe,%ah # BIOS: Display - int $0x10 # character + /* int $0x10 # character */ + nop popw %bx # Restore #else /* SIO */ movb $0x01,%ah # BIOS: Send 1(ich10)# and I added in /boot/loader.conf console="nullconsole" I also tried # cat /boot.config -nmq But when I put an inline serial monitor to see why things are getting hung up, I still see the "spinning slashes" (/) show up. After that, it seems the boot process is hung and it never fully boots. There seems to be a window of opportunity where key presses on the serial console stop/pause one of the boot stages.. but boot.config should prevent that no ? I even tried to "fake" it out, but trying to make com2, the console in /boot/device.hints, but I still see the spinning slashes on com1 Is there any way to completely disable serial interaction and to truly make the bootup process quiet and non interactive ? ---Mike -------------------------------------------------------------------- Mike Tancsa, tel +1 519 651 3400 Sentex Communications, mike@sentex.net Providing Internet since 1994 www.sentex.net Cambridge, Ontario Canada www.sentex.net/mike