From owner-freebsd-hackers@FreeBSD.ORG Wed Mar 23 19:52:40 2005 Return-Path: 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 5564816A4CE for ; Wed, 23 Mar 2005 19:52:40 +0000 (GMT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id BDEB043D55 for ; Wed, 23 Mar 2005 19:52:39 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.1/8.13.3) id j2NJqdMd087249; Wed, 23 Mar 2005 13:52:39 -0600 (CST) (envelope-from dan) Date: Wed, 23 Mar 2005 13:52:39 -0600 From: Dan Nelson To: Aziz KEZZOU Message-ID: <20050323195239.GD90954@dan.emsphone.com> References: <37e131660503231138268bc6cb@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <37e131660503231138268bc6cb@mail.gmail.com> X-OS: FreeBSD 5.4-PRERELEASE X-message-flag: Outlook Error User-Agent: Mutt/1.5.8i cc: freebsd-hackers@freebsd.org Subject: Re: running freebsd in qemu using the "-nographic" option ? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Mar 2005 19:52:40 -0000 In the last episode (Mar 23), Aziz KEZZOU said: > I am running freebsd 5.3 under qemu (a fast IA32 emulator). My host > system is linux. Everything works fine, but I want to get rid of this > small non-scrollable window, not practical when gcc says I made many > many errors :-)... In FreeBSD, you can scroll vtys by hitting scroll-lock, then using the up/down/pgup/pgdn/home/end keys to view the scrollback. Hit scroll-lock again to go exit scrollback mode. You could also use screen or pipe your output to less. > Instead I want to get a console. In qemu's documentation it says : > ====================================================================== > `-nographic' > Normally, QEMU uses SDL to display the VGA output. With this > option, you can totally disable graphical output so that QEMU is a > simple command line application. The emulated serial port is > redirected on the console. Therefore, you can still use QEMU to debug > a Linux kernel with a serial console. > ====================================================================== > > So basically what I need is, some how, to tell the freebsd kernel to > forward its output/input to a serial port. In linux this is done by > supplying the parameter "console=ttyS0". Is there something > equivalent in FreeBSD ? To boot using a serial console, add this to /boot/loader.conf: console="comconsole" To enable a login prompt on the serial port after the system has come up, edit /etc/ttys and change the ttyd0 line from "off" to "on". -- Dan Nelson dnelson@allantgroup.com