vboxvideo module does not load

Ronald Klop ronald-lists at klop.ws
Fri Jul 17 09:06:03 UTC 2020


Thanks for the quick answer.

A recompile and kldload gave:

Jul 17 11:01:18 sjakie pkg-static[7338]: drm-devel-kmod-5.3.g20200710 deinstalled
Jul 17 11:01:19 sjakie pkg-static[7522]: drm-devel-kmod-5.3.g20200710 installed
Jul 17 11:02:07 sjakie kernel: link_elf_obj: symbol ttm_bo_dma_acc_size undefined
Jul 17 11:02:08 sjakie kernel: linker_load_file: /boot/modules/drm.ko - unsupported file type
Jul 17 11:02:08 sjakie kernel: KLD vboxvideo.ko: depends on drmn - not available or version mismatch
Jul 17 11:02:08 sjakie kernel: linker_load_file: /boot/modules/vboxvideo.ko - unsupported file type

Regards,
Ronald.

 
Van: Emmanuel Vadot <manu at bidouilliste.com>
Datum: vrijdag, 17 juli 2020 10:39
Aan: Ronald Klop <ronald-lists at klop.ws>
CC: freebsd-x11 at freebsd.org
Onderwerp: Re: vboxvideo module does not load
> 
> On Fri, 17 Jul 2020 10:29:20 +0200 (CEST)
> Ronald Klop <ronald-lists at klop.ws> wrote:
> 
> > Hi,
> >
> > I tried the vboxvideo module of drm-devel-kmod-5.3.g20200710. I get this error when kldload-ing the module.
> >
> > Jul 16 08:12:15 sjakie kernel: link_elf_obj: symbol drm_gem_vram_pin undefined
> > Jul 16 08:12:16 sjakie kernel: linker_load_file: /boot/modules/vboxvideo.ko - unsupported file type
> >
> > Running on:
> > FreeBSD sjakie 13.0-CURRENT FreeBSD 13.0-CURRENT #7 r363210M: Wed Jul 15 16:25:10 CEST 2020     builder at sjakie:/data/src/obj-freebsd-current/data/src/freebsd-current/amd64.amd64/sys/GENERIC-NODEBUG  amd64
> >
> > I tried the drm-devel-kmod package and also recompiled it with the /usr/src version of my running kernel.
> >
> > Is this an error on my side or is the undefined symbol something from the drm package?
> >
> > Regards,
> > Ronald.
> 
>  No error on your side.
>  vboxvideo has switch to some vram helper code in drm.ko but I forgot
> to add the files. I have no idea if it works as this wasn't tested but
> you can patch with :
> diff --git a/drm/Makefile b/drm/Makefile
> index e9cee30de60c..e56b9343b94f 100644
> --- a/drm/Makefile
> +++ b/drm/Makefile
> @@ -38,6 +38,7 @@ SRCS= drm_atomic.c \
>         drm_framebuffer.c \
>         drm_gem.c \
>         drm_gem_framebuffer_helper.c \
> +       drm_gem_vram_helper.c \
>         drm_hashtab.c \
>         drm_hdcp.c \
>         drm_ioctl.c \
> @@ -68,6 +69,7 @@ SRCS= drm_atomic.c \
>         drm_sysfs.c \
>         drm_vblank.c \
>         drm_vma_manager.c \
> +       drm_vram_helper_common.c \
>         drm_writeback.c \
>         linux_fb.c \
>         tainted_linux_fb.c \
> 
>  I'll do test over the weekend or early next week too.
> 
> -- 
> Emmanuel Vadot <manu at bidouilliste.com>
> 
> 
> 


More information about the freebsd-x11 mailing list