From owner-freebsd-hackers@FreeBSD.ORG Thu Mar 24 20:01:42 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 6713F16A4CE for ; Thu, 24 Mar 2005 20:01:42 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.195]) by mx1.FreeBSD.org (Postfix) with ESMTP id E784E43D54 for ; Thu, 24 Mar 2005 20:01:39 +0000 (GMT) (envelope-from opensource.enthousiat@gmail.com) Received: by wproxy.gmail.com with SMTP id 36so695852wra for ; Thu, 24 Mar 2005 12:01:39 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=j924e243Nsa3ijsy9aTL4lnsnE325zGxvJrKSNMDG3LNrIycXhOZ54MeDVQ7zYDf6Wznje2JuGTxfHNtQyXrT8WJPmUm09UbZuqsyFY19FfpLzZB+69mxmU2KkxKyMrY8wL6RE3b8/cyPeIqs5rZ3QlOF7yeS/yh+/QDtf+/1dM= Received: by 10.54.94.4 with SMTP id r4mr453153wrb; Thu, 24 Mar 2005 12:01:39 -0800 (PST) Received: by 10.54.49.28 with HTTP; Thu, 24 Mar 2005 12:01:39 -0800 (PST) Message-ID: <37e1316605032412017073441a@mail.gmail.com> Date: Thu, 24 Mar 2005 15:01:39 -0500 From: Aziz KEZZOU To: Julian Elischer In-Reply-To: <4241C967.4090801@elischer.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit References: <37e131660503231138268bc6cb@mail.gmail.com> <4241C967.4090801@elischer.org> 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 Reply-To: Aziz KEZZOU List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Mar 2005 20:01:42 -0000 > Aziz KEZZOU wrote: > > >Hi all, > >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 :-)... > > > > > > you can scroll it after hittong tthe "scroll lock" key > > >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 ? > > > > > > > > in /boot/loader.conf add: > > console="comconsole" > > that should do it.. Thank you guys, that seems easy to do...but I don't have access to /etc/boot.conf : all I have is a disk image generated by bximage, which I can't mount !! The pb is that with my new install the SDL window doesn't work any more : qemu says "Could not initialize SDL - exit". I did "xhost +" but didn't change any thing ?! Anyway I am not spending any more time to get the SDL window which I don't really need :-) So basically what I want to do now is mount the freeBSD image in a loopback and modify the boot.conf file directly. Anyone knows how to do this under linux (2.6 if relevant) ? BSD seems to have a "weird" way of organizing the disk. Which file system shoud I support ? Thanks, Aziz