qemu-questions

albi at scii.nl albi at scii.nl
Thu Aug 25 19:03:05 GMT 2005


On Thu, 25 Aug 2005 20:54:10 +0200
"albi at scii.nl" <albi at scii.nl> wrote:

> - i'd like to use qemu with the -nographic option in a virtual console
>   in FreeBSD (i have a serial console here but without keyboard and
>   proper serial cable hence the question)

just found this page
http://m2.dad-answers.com/qemu-forum/viewtopic.php?t=103
which talks about "This patch allow pty creating for serial console
redirect."

--- vl.c.orig   Sat Apr 30 20:10:35 2005
+++ vl.c   Sun Jul 24 16:42:14 2005
@@ -40,6 +40,10 @@
 #include <sys/socket.h>
 #include <netinet/in.h>
 #include <dirent.h>
+#ifdef __FreeBSD__
+#include <sys/types.h>
+#include <libutil.h>
+#endif
 #ifdef _BSD
 #include <sys/stat.h>
 #ifndef __APPLE__
@@ -1280,7 +1284,7 @@
     return chr;
 }
 
-#if defined(__linux__)
+#if defined(__linux__) || defined(__FreeBSD__)
 CharDriverState *qemu_chr_open_pty(void)
 {
     char slave_name[1024];



More information about the freebsd-emulation mailing list