From owner-freebsd-hackers@FreeBSD.ORG Fri Oct 31 17:47:41 2008 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 811FA106564A for ; Fri, 31 Oct 2008 17:47:41 +0000 (UTC) (envelope-from thierry.herbelot@laposte.net) Received: from smtp8-g19.free.fr (smtp8-g19.free.fr [212.27.42.65]) by mx1.freebsd.org (Postfix) with ESMTP id 3F0E08FC18 for ; Fri, 31 Oct 2008 17:47:41 +0000 (UTC) (envelope-from thierry.herbelot@laposte.net) Received: from smtp8-g19.free.fr (localhost [127.0.0.1]) by smtp8-g19.free.fr (Postfix) with ESMTP id 1224632AA42; Fri, 31 Oct 2008 18:47:40 +0100 (CET) Received: from mail.herbelot.nom (bne75-4-82-227-159-103.fbx.proxad.net [82.227.159.103]) by smtp8-g19.free.fr (Postfix) with ESMTP id CA1B332A997; Fri, 31 Oct 2008 18:47:39 +0100 (CET) Received: from diversion.herbelot.nom (diversion.herbelot.nom [192.168.2.6]) by mail.herbelot.nom (8.14.1/8.14.1) with ESMTP id m9VHlcj0020061; Fri, 31 Oct 2008 18:47:38 +0100 (CET) From: Thierry Herbelot To: Jeremy Chadwick Date: Fri, 31 Oct 2008 18:47:31 +0100 User-Agent: KMail/1.9.10 References: <200810311746.23743.thierry.herbelot@free.fr> <20081031173224.GA37636@icarus.home.lan> In-Reply-To: <20081031173224.GA37636@icarus.home.lan> X-Warning: Windows can lose your files X-Op-Sys: Le FriBi de la mort qui tue X-Org: TfH&Co X-MailScanner: Found to be clean MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Content-Disposition: inline Message-Id: <200810311847.31723.thierry.herbelot@laposte.net> Cc: hackers@freebsd.org, current ML Subject: Re: strange behaviour with /sbin/init and serial console 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: Fri, 31 Oct 2008 17:47:41 -0000 Le Friday 31 October 2008, Jeremy Chadwick a écrit : > On Fri, Oct 31, 2008 at 05:46:23PM +0100, Thierry Herbelot wrote: > > with the following patch on /sbin/init, I have two different behaviours > > depending on the console type (on a i386/32 PC) : > > - on a video console, I see the expected two messages, > > - on a serial console, the messages are not displayed (init silently > > finishes its job and gets to start /etc/rc and everything) > > I thought this was normal behaviour on FreeBSD, but it's very likely I'm > misunderstanding. The charts in Section 27.6.4 describe what "level" of > logging is shown where and at what stage, depending upon which boot > flags and device settings you use: > > http://www.freebsd.org/doc/en/books/handbook/serialconsole-setup.html Hello, I had not taken the time to read this link as thouroughly as should have been. nevertheless, I think the config is right, as the serial console is selected with "-h" in /boot.config (from memory, the machine is at work ...) and all *other* expected messages from the kernel ("dmesg") and the rc scripts are correctly displayed on respectively the serial and video console. what struck me is that, from all the startup messages, just the messages from /sbin/init are displayed only on the video console TfH