[vbox-dev] FreeBsd 10.2 Host, Windows 10 Guest
Konrad Eisele
eiselekd at gmail.com
Sun Sep 6 17:35:25 UTC 2015
I took my HD from a Lenovo T430s (Intel) and switched
to a AMD desktop:
hw.model: AMD FX(tm)-8350 Eight-Core Processor
Now with vbox svn source r57571, appended patch
and gcc 4.8.5 I can compile and run vbox in Freebsd 10.2.
I can run Windows-10 now. Before the CD install
was hanging in the early boot stage, with AMD it
is working smoothly. What can be the problem?
Is there special Bios requirements T430s? I enabled
Intel Vt-x there...
// Greetings Konrad
2015-08-31 20:53 GMT+02:00 Konrad Eisele <eiselekd at gmail.com>:
> I try to run Windows-10 in Virtualbox 4.3.30 on FreeBsd 10.2.
> In the initial Windows 10 logo splash screen Virtualbox
> stops in 100% load and nothing happens...
> Does anyone know why it is stopping?
> Is there a more recent Virtualbox 5.0 for FreeBsd?
> // Greetings Konrad
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.virtualbox.org/pipermail/vbox-dev/attachments/20150906/f713defe/attachment.html
-------------- next part --------------
Index: Config.kmk
===================================================================
--- Config.kmk (revision 57571)
+++ Config.kmk (working copy)
@@ -3831,7 +3831,7 @@
-mno-3dnow -msoft-float -fno-asynchronous-unwind-tables -Wundef
TEMPLATE_VBOXR0DRV_CXXFLAGS = -fno-exceptions -fno-rtti \
$(VBOX_GCC_WARN) -Wpointer-arith -Winline \
- -O2 -fno-strict-aliasing -fno-common -finline-limit=8000 \
+ -O2 -fno-strict-aliasing -fno-common \
$(VBOX_GCC_fno-stack-protector) $(VBOX_GCC_R0_OPT) $(VBOX_GCC_R0_FP) \
-nostdinc
TEMPLATE_VBOXR0DRV_CXXFLAGS.x86 = $(TEMPLATE_VBOXR0DRV_CFLAGS.x86)
Index: configure
===================================================================
--- configure (revision 57571)
+++ configure (working copy)
@@ -660,6 +660,10 @@
else
FLGXML2=`pkg-config libxml-2.0 --cflags`
INCXML2=`strip_I "$FLGXML2"`
+
+ echo "------------------------"
+ echo $INCXML2;
+
LIBXML2=`pkg-config libxml-2.0 --libs`
cat > $ODIR.tmp_src.cc << EOF
#include <cstdio>
Index: src/VBox/ExtPacks/VBoxDTrace/include/VBoxDTraceTypes.h
===================================================================
--- src/VBox/ExtPacks/VBoxDTrace/include/VBoxDTraceTypes.h (revision 57571)
+++ src/VBox/ExtPacks/VBoxDTrace/include/VBoxDTraceTypes.h (working copy)
@@ -52,7 +52,13 @@
typedef int64_t longlong_t;
typedef uint64_t u_longlong_t;
typedef uint64_t hrtime_t;
+
+#ifndef _ID_T_DECLARED
typedef uint32_t id_t;
+#define _ID_T_DECLARED
+#endif
+
+
typedef uint32_t zoneid_t;
#endif
#if !defined(NGREG) || !defined(RT_OS_LINUX)
@@ -462,4 +468,3 @@
RT_C_DECLS_END
#endif
-
Index: src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_cc.c
===================================================================
--- src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_cc.c (revision 57571)
+++ src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_cc.c (working copy)
@@ -103,7 +103,7 @@
# else
# include <unistd.h>
# endif
-# if defined(RT_OS_WINDOWS) || defined(RT_OS_DARWIN)
+# if defined(RT_OS_WINDOWS) || defined(RT_OS_DARWIN) || defined(RT_OS_FREEBSD)
# ifdef _MSC_VER
# define ftruncate64 _chsize
# else
Index: src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_options.c
===================================================================
--- src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_options.c (revision 57571)
+++ src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_options.c (working copy)
@@ -45,7 +45,7 @@
# include <sys/resource.h>
# include <unistd.h>
# include <signal.h>
-# if defined(RT_OS_DARWIN)
+# if defined(RT_OS_DARWIN) || defined(RT_OS_FREEBSD)
# define open64 open
# endif
# else
Index: src/VBox/HostDrivers/Support/Makefile.kmk
===================================================================
--- src/VBox/HostDrivers/Support/Makefile.kmk (revision 57571)
+++ src/VBox/HostDrivers/Support/Makefile.kmk (working copy)
@@ -603,6 +603,8 @@
VBoxDrv_LDFLAGS.win.x86 = -Entry:DriverEntry at 8
VBoxDrv_LDFLAGS.win.amd64= -Entry:DriverEntry
+ VBoxDrv_SOURCES.freebsd = \
+ freebsd/SUPDrv-freebsd.c
VBoxDrv_SOURCES.darwin = \
darwin/SUPDrv-darwin.cpp
VBoxDrv_SOURCES.linux = \
@@ -746,4 +748,3 @@
endif # !VBOX_ONLY_DOCS && !VBOX_ONLY_EXTPACKS && !VBOX_ONLY_VALIDATIONKIT
include $(FILE_KBUILD_SUB_FOOTER)
-
Index: src/VBox/Runtime/r3/posix/utf8-posix.cpp
===================================================================
--- src/VBox/Runtime/r3/posix/utf8-posix.cpp (revision 57571)
+++ src/VBox/Runtime/r3/posix/utf8-posix.cpp (working copy)
@@ -197,7 +197,7 @@
#if defined(RT_OS_LINUX) || defined(RT_OS_HAIKU) || defined(RT_OS_SOLARIS) || (defined(RT_OS_DARWIN) && defined(_DARWIN_FEATURE_UNIX_CONFORMANCE)) /* there are different opinions about the constness of the input buffer. */
cchNonRev = iconv(hIconv, (char **)&pvInputLeft, &cbInLeft, (char **)&pvOutputLeft, &cbOutLeft);
#else
- cchNonRev = iconv(hIconv, (const char **)&pvInputLeft, &cbInLeft, (char **)&pvOutputLeft, &cbOutLeft);
+ cchNonRev = iconv(hIconv, (char **)&pvInputLeft, &cbInLeft, (char **)&pvOutputLeft, &cbOutLeft);
#endif
if (cchNonRev != (size_t)-1)
{
@@ -327,7 +327,7 @@
#if defined(RT_OS_LINUX) || defined(RT_OS_HAIKU) || defined(RT_OS_SOLARIS) || (defined(RT_OS_DARWIN) && defined(_DARWIN_FEATURE_UNIX_CONFORMANCE)) /* there are different opinions about the constness of the input buffer. */
cchNonRev = iconv(icHandle, (char **)&pvInputLeft, &cbInLeft, (char **)&pvOutputLeft, &cbOutLeft);
#else
- cchNonRev = iconv(icHandle, (const char **)&pvInputLeft, &cbInLeft, (char **)&pvOutputLeft, &cbOutLeft);
+ cchNonRev = iconv(icHandle, (char **)&pvInputLeft, &cbInLeft, (char **)&pvOutputLeft, &cbOutLeft);
#endif
if (cchNonRev != (size_t)-1)
{
@@ -494,4 +494,3 @@
}
return rtStrConvertWrapper(pszString, cch, "", ppszString, 0, "UTF-8", 2, RTSTRICONV_LOCALE_TO_UTF8);
}
-
Index: src/VBox/Storage/testcase/Makefile.kmk
===================================================================
--- src/VBox/Storage/testcase/Makefile.kmk (revision 57571)
+++ src/VBox/Storage/testcase/Makefile.kmk (working copy)
@@ -149,6 +149,11 @@
endif
else if1of ($(KBUILD_TARGET),darwin freebsd)
vbox-img_LIBS += iconv
+ if1of ($(KBUILD_TARGET),freebsd)
+ ifdef SDK_VBOX_LIBXML2_LIBS
+ vbox-img_LIBS += xml2 lzma
+ endif
+ endif
else ifeq ($(KBUILD_TARGET),win)
vbox-img_SDKS.win = VBOX_NTDLL
else ifeq ($(KBUILD_TARGET),solaris)
More information about the vbox-dev
mailing list