Re: running freebsd in qemu using the -nographic option ?
Aziz KEZZOU wrote: 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 ? you have 2 apportunities to switch to serail console during boot.. once, before the big printout of stuff you have a single cursor sitting on teh screen for a few (5?) seconds hitting -h there will switch to serial.. also at teh 10 second countdown, hit space to get to teh prompt and type 'set console=comconsole' followed by boot 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 ? I don't know linux... sorry Thanks, Aziz ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: running freebsd in qemu using the -nographic option ?
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 ? I would just do it on FreeBSD - man mdconfig. Last I looked (years ago) the UFS support on linux was not actively maintained and I would be very surprised if they have UFS2 support. I've had to create my own root images for doing work on xen so I know it works just fine. If you insist on doing it on Linux, the command is losetup. to bind: losetup /dev/loop0 root image to unbind: losetup -d /dev/loop0 -Kip ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: running freebsd in qemu using the -nographic option ?
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 ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
running freebsd in qemu using the -nographic option ?
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 :-)... 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 ? Thanks for your help, Aziz ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: running freebsd in qemu using the -nographic option ?
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 [EMAIL PROTECTED] ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: running freebsd in qemu using the -nographic option ?
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.. Thanks for your help, Aziz ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]