From owner-freebsd-hackers Thu Jul 11 7:40:39 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2C6B137B400; Thu, 11 Jul 2002 07:40:35 -0700 (PDT) Received: from k6.locore.ca (k6.locore.ca [198.96.117.170]) by mx1.FreeBSD.org (Postfix) with ESMTP id 67BB143E3B; Thu, 11 Jul 2002 07:40:34 -0700 (PDT) (envelope-from jake@k6.locore.ca) Received: from k6.locore.ca (jake@localhost [127.0.0.1]) by k6.locore.ca (8.12.5/8.12.3) with ESMTP id g6BEhGKk053316; Thu, 11 Jul 2002 10:43:16 -0400 (EDT) (envelope-from jake@k6.locore.ca) Received: (from jake@localhost) by k6.locore.ca (8.12.5/8.12.3/Submit) id g6BEhGcJ053315; Thu, 11 Jul 2002 10:43:16 -0400 (EDT) Date: Thu, 11 Jul 2002 10:43:16 -0400 From: Jake Burkholder To: Serguei Tzukanov Cc: freebsd-platforms@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG Subject: Re: A question about S/390 port Message-ID: <20020711104316.E48985@locore.ca> References: <200207101554.09734.tzukanov@narod.ru> <20020710184540.C48985@locore.ca> <200207110911.47369.tzukanov@narod.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200207110911.47369.tzukanov@narod.ru>; from tzukanov@narod.ru on Thu, Jul 11, 2002 at 09:11:47AM +0400 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Apparently, On Thu, Jul 11, 2002 at 09:11:47AM +0400, Serguei Tzukanov said words to the effect of; > On Thursday 11 July 2002 02:45, Jake Burkholder wrote: > > > > I think this is because your console driver (hc) doesn't have a tty > > interface, just the low level cn* stuff. If you look at the > > ofw_console driver, it provides a rudimentary tty interface using > > polling and cngetc, cnputc equivalents. > > Hm, what about /dev/console (tty_cons)? > I put into /etc/ttys line > console "/usr/libexec/getty std.1200" vt100 on secure. Where exactly in init are you trying to print? If you're in the single_user function, you can only use stdio in the forked child after it calls setctty. Before that you have to open an fd on /dev/console yourself and write(2) to it, or call login_tty on it which dups the standard descriptors from it. I don't know if starting a getty on /dev/console will work, but in any case this doesn't happen until you go multi-user, iirc this line is only used for the secure keyword. Jake To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message