From owner-freebsd-arch@FreeBSD.ORG Sun May 28 06:22:52 2006 Return-Path: X-Original-To: arch@freebsd.org Delivered-To: freebsd-arch@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ABD7916AC83 for ; Sun, 28 May 2006 06:21:19 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from mail01.syd.optusnet.com.au (mail01.syd.optusnet.com.au [211.29.132.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1491943D46 for ; Sun, 28 May 2006 06:21:18 +0000 (GMT) (envelope-from peterjeremy@optushome.com.au) Received: from turion.vk2pj.dyndns.org (c220-239-19-236.belrs4.nsw.optusnet.com.au [220.239.19.236]) by mail01.syd.optusnet.com.au (8.12.11/8.12.11) with ESMTP id k4S6LErW007118 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Sun, 28 May 2006 16:21:14 +1000 Received: from turion.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by turion.vk2pj.dyndns.org (8.13.6/8.13.6) with ESMTP id k4S6LDRx026562; Sun, 28 May 2006 16:21:13 +1000 (EST) (envelope-from peter@turion.vk2pj.dyndns.org) Received: (from peter@localhost) by turion.vk2pj.dyndns.org (8.13.6/8.13.6/Submit) id k4S6LDae026561; Sun, 28 May 2006 16:21:13 +1000 (EST) (envelope-from peter) Date: Sun, 28 May 2006 16:21:13 +1000 From: Peter Jeremy To: Julian Elischer Message-ID: <20060528062113.GN744@turion.vk2pj.dyndns.org> References: <16029.1148764704@critter.freebsd.dk> <44793146.6070200@elischer.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <44793146.6070200@elischer.org> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.11 Cc: arch@freebsd.org Subject: Re: A sort of plan for consoles in FreeBSD X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 May 2006 06:22:59 -0000 On Sat, 2006-May-27 22:12:38 -0700, Julian Elischer wrote: >Poul-Henning Kamp wrote: >>We have four concepts of "console" in FreeBSD: >> >>1. Whatever boot0/boot1/boot2/loader uses >> Accessed from/via native boot/firmware environment > >#1 is sort of independent as it stops being used at the moment FreeBSd >starts. Last time I checked, the copyright notice and some of the early kernel probe output came via the native firmware (at least on some architectures). There's a bit of a Catch-22 because the kernel wants to report output before it's got far enough through the device probe sequence to be able to talk to the hardware making up the console. >>4. The /dev/console device in multi-user mode. >> Emergency output device for critical messages. > >but, emergency messages from where? You've coverred the ones I care about >above. syslog(3) LOG_CONS immediately comes to mind. A quick check of the source shows that ps(1), init(8), rpc.ypxfrd(8), bits of the lp subsystem as well as thread library's initialisation code can also write to /dev/console. I thought dump(8) did but it doesn't appear to any longer. -- Peter Jeremy