Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 May 2023 07:32:33 -0700
From:      Kevin Oberman <rkoberman@gmail.com>
To:        Steven Friedrich <freebsdlouisville@gmail.com>
Cc:        FreeBSD Questions Mailing List <freebsd-questions@freebsd.org>
Subject:   Re: linker_load_file: /boot/modules/vboxdrv.ko - unsupported file type
Message-ID:  <CAN6yY1uHo1oiu5fR4DVmqFkxzNAgmiSupmajS3Xw-jyBz4u_zw@mail.gmail.com>
In-Reply-To: <f6ce85e9-ca18-1425-1e1c-e895b9672a34@Gmail.com>
References:  <492aebb0-a5e1-2334-801a-79f76008c42c@Gmail.com> <CAN6yY1sCgAfQoDepHkPQn5YpBdd5TVKDGTtwLgtv1XKZgJ_YFA@mail.gmail.com> <f6ce85e9-ca18-1425-1e1c-e895b9672a34@Gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--0000000000008da3c905fb1b657a
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Sun, May 7, 2023 at 2:43=E2=80=AFAM Steven Friedrich <freebsdlouisville@=
gmail.com>
wrote:

> On 5/7/23 1:57 AM, Kevin Oberman wrote:
> > On Sat, May 6, 2023 at 9:47=E2=80=AFPM Steven Friedrich
> > <freebsdlouisville@gmail.com> wrote:
> >
> >     On a fresh install of freebsd 13.2 (I did make a new kernel, but I'=
m
> >     running GENERIC for this.
> >
> >     I used pkg install to get virtualbox-ose.  When I try to load the
> >     vboxdrv.ko, I get this error:
> >
> >     KLD vboxdrv.ko: depends on kernel - not available or version mismat=
ch
> >     linker_load_file: /boot/modules/vboxdrv.ko - unsupported file type
> >
> >     FreeBSD freebsd.friedrich.org <http://freebsd.friedrich.org>;
> >     13.2-RELEASE FreeBSD 13.2-RELEASE
> >     releng/13.2-n254617-525ecfdad597 GENERIC amd64
> >
> >
> > And here we go again...
> >
> > The packages are built on 13.1-RELEASE which means the package will
> > not load on 3.2. You need to have a system with the 3.2
> > kernel sources and then build the .ko on that system. It does not need
> > to be the system it is to be run on, but must be an amd64 processor.
> > The resulting package may be installed on any other 13.2 amd64 system.
> >
> > To build the package, get the sources for the kernel on the build
> > system. Then:
> > cd /usr/ports/emulators/virtualbox-ose-kmod
> > pkg install kBuild (if not already installed)
> > pkg install llvm14 (if not already installed)
> > make package (if you want to install on another system)
> > make install (on the system you need it on)
> >
> > In the last status report, this issue was being addressed, so  I am
> > hopeful that this is the last time the issue will show up, but no
> > promises. In any case, the builds will be done on 13.2 when 13.1 goes
> EOL.
> > --
> > Kevin Oberman, Part time kid herder and retired Network Engineer
> > E-mail: rkoberman@gmail.com
> > PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683
>
> Thank you, Kevin.  I just finished buildworld, build kernel,
> installkernel, and installworld.
>
> I just built/installed the virtualbox-ose-kmod port.
>
> Can I just rebuild/install the kernel?
>
> --
> FreeBSD freebsd.friedrich.org 13.2-RELEASE FreeBSD 13.2-RELEASE
> releng/13.2-n254617-525ecfdad597 GENERIC amd64
>

You are working too hard!
There is no need to rebuild anything except emulators/virtualbox-ose-kmod.
The system and kernel are fine. You just need to build the kmod against the
13.2 kernel sources. Since you have the sources on the system, all that was
required was to reinstall the virtualbox-ose-kmod port. no new kernel is
required. The port will install the kernel modules into /boot/modules and
they are ready to load either with a reboot or using kldload.


--=20
Kevin Oberman, Part time kid herder and retired Network Engineer
E-mail: rkoberman@gmail.com
PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683

--0000000000008da3c905fb1b657a
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr"><div class=3D"gmail_default" style=3D"fon=
t-family:tahoma,sans-serif;font-size:small">On Sun, May 7, 2023 at 2:43=E2=
=80=AFAM Steven Friedrich &lt;<a href=3D"mailto:freebsdlouisville@gmail.com=
">freebsdlouisville@gmail.com</a>&gt; wrote:</div></div><div class=3D"gmail=
_quote"><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex=
;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 5/7/23 1:57 AM=
, Kevin Oberman wrote:<br>
&gt; On Sat, May 6, 2023 at 9:47=E2=80=AFPM Steven Friedrich <br>
&gt; &lt;<a href=3D"mailto:freebsdlouisville@gmail.com" target=3D"_blank">f=
reebsdlouisville@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt;=C2=A0 =C2=A0 =C2=A0On a fresh install of freebsd 13.2 (I did make a ne=
w kernel, but I&#39;m<br>
&gt;=C2=A0 =C2=A0 =C2=A0running GENERIC for this.<br>
&gt;<br>
&gt;=C2=A0 =C2=A0 =C2=A0I used pkg install to get virtualbox-ose.=C2=A0 Whe=
n I try to load the<br>
&gt;=C2=A0 =C2=A0 =C2=A0vboxdrv.ko, I get this error:<br>
&gt;<br>
&gt;=C2=A0 =C2=A0 =C2=A0KLD vboxdrv.ko: depends on kernel - not available o=
r version mismatch<br>
&gt;=C2=A0 =C2=A0 =C2=A0linker_load_file: /boot/modules/vboxdrv.ko - unsupp=
orted file type<br>
&gt;<br>
&gt;=C2=A0 =C2=A0 =C2=A0FreeBSD <a href=3D"http://freebsd.friedrich.org" re=
l=3D"noreferrer" target=3D"_blank">freebsd.friedrich.org</a> &lt;<a href=3D=
"http://freebsd.friedrich.org" rel=3D"noreferrer" target=3D"_blank">http://=
freebsd.friedrich.org</a>&gt;<br>
&gt;=C2=A0 =C2=A0 =C2=A013.2-RELEASE FreeBSD 13.2-RELEASE<br>
&gt;=C2=A0 =C2=A0 =C2=A0releng/13.2-n254617-525ecfdad597 GENERIC amd64<br>
&gt;<br>
&gt;<br>
&gt; And here we go again...<br>
&gt;<br>
&gt; The packages are built on 13.1-RELEASE which means the package will <b=
r>
&gt; not load on 3.2. You need to have a system with the 3.2<br>
&gt; kernel sources and then build the .ko on that system. It does not need=
 <br>
&gt; to be the system it is to be run on, but must be an amd64 processor. <=
br>
&gt; The resulting package may be installed on any other 13.2 amd64 system.=
<br>
&gt;<br>
&gt; To build the package, get the sources for the kernel on the build <br>
&gt; system. Then:<br>
&gt; cd /usr/ports/emulators/virtualbox-ose-kmod<br>
&gt; pkg install kBuild (if not already installed)<br>
&gt; pkg install llvm14 (if not already installed)<br>
&gt; make package (if you want to install on another system)<br>
&gt; make install (on the system you need it on)<br>
&gt;<br>
&gt; In the last status report, this issue was being addressed, so=C2=A0 I =
am <br>
&gt; hopeful that this is the last time the issue will show up, but no <br>
&gt; promises. In any case, the builds will be done on 13.2 when 13.1 goes =
EOL.<br>
&gt; -- <br>
&gt; Kevin Oberman, Part time kid herder and retired Network Engineer<br>
&gt; E-mail: <a href=3D"mailto:rkoberman@gmail.com" target=3D"_blank">rkobe=
rman@gmail.com</a><br>
&gt; PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683<br>
<br>
Thank you, Kevin.=C2=A0 I just finished buildworld, build kernel, <br>
installkernel, and installworld.<br>
<br>
I just built/installed the virtualbox-ose-kmod port.<br>
<br>
Can I just rebuild/install the kernel?<br>
<br>
-- <br>
FreeBSD <a href=3D"http://freebsd.friedrich.org" rel=3D"noreferrer" target=
=3D"_blank">freebsd.friedrich.org</a> 13.2-RELEASE FreeBSD 13.2-RELEASE rel=
eng/13.2-n254617-525ecfdad597 GENERIC amd64<br>
</blockquote><div><br></div><div style=3D"font-family:tahoma,sans-serif;fon=
t-size:small" class=3D"gmail_default">You are working too hard!</div><div s=
tyle=3D"font-family:tahoma,sans-serif;font-size:small" class=3D"gmail_defau=
lt"></div></div><div style=3D"font-family:tahoma,sans-serif;font-size:small=
" class=3D"gmail_default">There is no need to rebuild anything except emula=
tors/virtualbox-ose-kmod. The system and kernel are fine. You just need to =
build the kmod against the 13.2 kernel sources. Since you have the sources =
on the system, all that was required was to reinstall the virtualbox-ose-km=
od port. no new kernel is required. The port will install the kernel module=
s into /boot/modules and they are ready to load either with a reboot or usi=
ng kldload.<br></div><br clear=3D"all"><br><span class=3D"gmail_signature_p=
refix">-- </span><br><div dir=3D"ltr" class=3D"gmail_signature"><div dir=3D=
"ltr"><div><div dir=3D"ltr"><div><div dir=3D"ltr"><div><div dir=3D"ltr">Kev=
in Oberman, Part time kid herder and retired Network Engineer<br>E-mail: <a=
 href=3D"mailto:rkoberman@gmail.com" target=3D"_blank">rkoberman@gmail.com<=
/a><br></div><div>PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683=
</div></div></div></div></div></div></div></div></div>

--0000000000008da3c905fb1b657a--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAN6yY1uHo1oiu5fR4DVmqFkxzNAgmiSupmajS3Xw-jyBz4u_zw>