Re: running freebsd in qemu using the "-nographic" option ?

From: Dan Nelson (dnelson_at_allantgroup.com)
Date: 03/23/05

  • Next message: Julian Elischer: "Re: running freebsd in qemu using the "-nographic" option ?"
    Date: Wed, 23 Mar 2005 13:52:39 -0600
    To: Aziz KEZZOU <opensource.enthousiat@gmail.com>
    
    

    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
    _______________________________________________
    freebsd-hackers@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
    To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
    

  • Next message: Julian Elischer: "Re: running freebsd in qemu using the "-nographic" option ?"

    Relevant Pages

    • Re: Anyone else seeing this management trend favoring Linux?
      ... but Linux can be run from a serial port on such a machine. ... serial console support. ... OpenBoot vs BIOS serial and kernel support for serial console ...
      (comp.unix.solaris)
    • Re: Linux "print server"
      ... porting Ghostscrip to a C64 is ... so a Linux server seemed possible. ... "> I already have TCP/IP communication using ppp between the C64 and the ... "> DTP app I use can send data to a serial port, ...
      (comp.os.linux.misc)
    • Re: Why to up/not grade to/from W98 (was: new Pulsonix version 3 PCB software released)
      ... whos primary function was to read ... and reading BOT/EOT markers and the raw MFM. ... On serial better is to use a micro (cheap 2 $ PIC has serial port). ... Linux, why sell yourself out to Bill Gates? ...
      (comp.arch.embedded)
    • Re: Flow Control on Serial Device
      ... Are you using the exact same cable for the Linux system that you ... indeed a straight through cable? ... Then CTS and RTS are ... properly configure your serial port, ...
      (comp.os.linux.networking)
    • Re: minicom questions, need expert
      ... I do not know if the minicom utility can reach out into that FT232RL to ... then what linux utility can perform this initialization? ... It turned out that the serial port params on the legacy machine ... Do I need to train my src machine to send some sort of an eof signal? ...
      (Fedora)