Port-amd64 archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: VirtualBOX additions (again)



I got it running by separate build of vboxvideo_drv as follows
(basically following
https://superuser.com/questions/1177090/why-cant-x-find-my-vboxvideo-driver
):

git clone https://gitlab.freedesktop.org/xorg/driver/xf86-video-vbox
cd xf86-video-vbox
( applied the following patch:

--- configure.ac.orig       2019-01-05 12:51:13.383363653 +0000
+++ configure.ac        2019-01-05 12:38:55.168459384 +0000
@@ -52,9 +52,9 @@
 AC_SUBST(moduledir)

 # Store the list of server defined optional extensions in REQUIRED_MODULES
-XORG_DRIVER_CHECK_EXT(RANDR, randrproto)
-XORG_DRIVER_CHECK_EXT(RENDER, renderproto)
-XORG_DRIVER_CHECK_EXT(DPMSExtension, xextproto)
+#XORG_DRIVER_CHECK_EXT(RANDR, randrproto)
+#XORG_DRIVER_CHECK_EXT(RENDER, renderproto)
+#XORG_DRIVER_CHECK_EXT(DPMSExtension, xextproto)

 # Obtain compiler/linker options for the driver dependencies
 PKG_CHECK_MODULES(XORG, xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES

...
 - probably the current XORG_DRIVER_CHECK_EXT macro does not accept
parameters - it was giving syntax errors running configure, and no, I
don't know if this is right)

 sh autogen.sh --prefix=/usr/local
--with-xorg-module-dir=/usr/X11R7/lib/modules/drivers
(the last '/drivers' bit should have been left out - during
installation it duplicated it).

then gmake and 'sudo gmake install' placed the new driver in
/usr/X11R7/lib/modules/drivers/drivers ... I just had tp move it up,
overwriting the one create by the VirtualBox kmk procedure earlier.
Now I am getting:
....
[  3725.630] (II) Loading
/usr/X11R7/lib/modules/drivers/drivers/vboxvideo_drv.so
[  3725.630] (II) Module vboxvideo: vendor="Oracle Corporation"
[  3725.630]    compiled for 1.20.3, module version = 1.0.1
[  3725.630]    Module class: X.Org Video Driver
[  3725.630]    ABI class: X.Org Video Driver, version 24.0
[  3725.630] (**) Load address of symbol "VBOXVIDEO" is 0x7aebd1c08ca0
...

and everything works as expected - screen resizing is fine, actually
faster than it was on 8.99.29 earlier.

One more hurdle to get NetBSD runing under VirtualBox properly, but it
is worth. I forgot to mention, my initial attempts were with the
released VirtualBox-6.0, later I switched to the trunk version (6.01
at the moment), to no avail.

On Sat, 5 Jan 2019 at 00:11, Chavdar Ivanov <ci4ic4%gmail.com@localhost> wrote:
>
> FYI VirtualBox 6.0 allows changing the graphics adapter from the usual
> VBoxVGA to VMSVGA (VMware) and VBoxSVGA (modesetting). The VMware
> driver is recognised, but crashes on Xorg startup; the modesetting one
> gives:
> ...
> [   252.567] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
> [   252.567] (--) Using wscons driver on /dev/ttyE4 in pcvt
> compatibility mode (version 3.32)
> [   252.567] (--) using VT number 5
> [   252.581] (EE) open /dev/dri/card0: No such file or directory
> [   252.581] (WW) Falling back to old probe method for modesetting
> [   252.581] (EE) open /dev/dri/card0: No such file or directory
> [   252.581] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
> [   252.581] (EE) Screen 0 deleted because of no matching config section.
> [   252.581] (II) UnloadModule: "modesetting"
> [   252.581] (EE) Device(s) detected, but none match those in the config file.
> [   252.581] (EE)
> Fatal server error:
> [   252.581] (EE) no screens found(EE)
> [   252.581] (EE)
> ....
>
> On Fri, 4 Jan 2019 at 23:17, Valery Ushakov <uwe%stderr.spb.ru@localhost> wrote:
> >
> > On Fri, Jan 04, 2019 at 22:13:22 +0000, Chavdar Ivanov wrote:
> >
> > > As expected, vboxvideo driver stopped working on 8.99.30 with the
> > > major Xorg updates:
> > > ...
> > > [   741.057] (II) Loading /usr/X11R7/lib/modules/drivers/vboxvideo_drv.so
> > > [   741.057] (II) Module vboxvideo: vendor="Oracle Corporation"
> > > [   741.057]    compiled for 1.18.0, module version = 1.0.1
> > > [   741.057]    Module class: X.Org Video Driver
> > > [   741.057]    ABI class: X.Org Video Driver, version 20.0
> > > [   741.058] (EE) vboxvideo: module ABI major version (20) doesn't
> > > match the server's version (24)
> > > [   741.058] (EE) Failed to load module "vboxvideo" (module
> > > requirement mismatch, 0)
> > > ...
> >
> > Sorry, I have zero clue about X module ABI.
> >
> > -uwe
>
>
>
> --
> ----



-- 
----


Home | Main Index | Thread Index | Old Index