From nobody Sun May 07 14:32:33 2023 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QDn2W0lJSz492N1 for ; Sun, 7 May 2023 14:32:51 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-yb1-xb34.google.com (mail-yb1-xb34.google.com [IPv6:2607:f8b0:4864:20::b34]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QDn2V65xBz3MHf for ; Sun, 7 May 2023 14:32:50 +0000 (UTC) (envelope-from kob6558@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-yb1-xb34.google.com with SMTP id 3f1490d57ef6-b9e27684b53so3156045276.0 for ; Sun, 07 May 2023 07:32:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683469970; x=1686061970; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=FHzBzozaTaAEd8dzJZPNQt6JFdOOnd4J/8mYx+DskC4=; b=iUk2pDkDEo3qGlcwbO9rQXFBHVLGB+UW3H310VHJIPPj6viMt688YUua4G/vmR634G pJ5Qm4U/uRQw6zGucBHIrD0bjss3Jz2se5EBRc/7q/P0Z68RLEUAq2qM8tiwKl6MBp5S /aMD7r7/BpUQTyFXyji2NrtsOo7dFrqVssqrqWsasWvvILJXnQqEy+qldn8H7k8mUr2+ zXNB1b4nLb/K/aDgVEghhEWqiTRZzm7mHZsvYBIsZOQ1ebYNBYPR2K7QbR7wq3Bz2eTx W8fR6lTxfgEraOZWw/QNM9yrtPOqLDo9yP28X4witS2vhiO19suD91F+DY4fw5BNu5el mEUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683469970; x=1686061970; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=FHzBzozaTaAEd8dzJZPNQt6JFdOOnd4J/8mYx+DskC4=; b=TTVPk5x4REqa0Ksp+//LQOLKR9/LaOrV93t3lGJyWJw8WXSydBbhgCgRJmDFqbaZ/p aJxGUHcveK/SRQe2lGDfC+k7r2LmMs9shcat79CxxOTILbRM3g2jJQQUMgIVJSX3+vSx dnsPcj5bYeW6UQwB9MmBWWfGTkXRbiZUtAQNsx0tbybWxzj0oC6/cLZxLEclhVkh5IG6 ydZwkMgnoCy86ur3A/Z1g2Xe8RzIJqfOLGYSy626HVUht0ogyGYNeUkLD0EyfMPAXNO0 34/xUoLgXFUsPoCvO4F20ypOSa5FLUo/UNRHWZZySiG3x8fzSC3uUL7e7LFTdl1We4SG a2+w== X-Gm-Message-State: AC+VfDzIw1TmQLLUhjA+qgZlcubpXAnWhUqMgv9KTByfSKpn/Bthe7mZ zc/otLtrzP/erfYgUKwRWtOqCBVUQ5mi/CP+2WbCYD6e X-Google-Smtp-Source: ACHHUZ4YpxC9gZG0/cGeRXV/KcIPb+Y0kWh6lSTSX7ZBVJ5oXc8n+QUAWt6p4E2kIdHElVuW4zpBkbLL51/Q2MaV6GI= X-Received: by 2002:a25:d6:0:b0:b9d:e832:6c78 with SMTP id 205-20020a2500d6000000b00b9de8326c78mr7023265yba.42.1683469970021; Sun, 07 May 2023 07:32:50 -0700 (PDT) List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 References: <492aebb0-a5e1-2334-801a-79f76008c42c@Gmail.com> In-Reply-To: From: Kevin Oberman Date: Sun, 7 May 2023 07:32:33 -0700 Message-ID: Subject: Re: linker_load_file: /boot/modules/vboxdrv.ko - unsupported file type To: Steven Friedrich Cc: FreeBSD Questions Mailing List Content-Type: multipart/alternative; boundary="0000000000008da3c905fb1b657a" X-Rspamd-Queue-Id: 4QDn2V65xBz3MHf X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N --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 wrote: > On 5/7/23 1:57 AM, Kevin Oberman wrote: > > On Sat, May 6, 2023 at 9:47=E2=80=AFPM Steven Friedrich > > 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 > > 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
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
> <f= reebsdlouisville@gmail.com> wrote:
>
>=C2=A0 =C2=A0 =C2=A0On a fresh install of freebsd 13.2 (I did make a ne= w kernel, but I'm
>=C2=A0 =C2=A0 =C2=A0running GENERIC for this.
>
>=C2=A0 =C2=A0 =C2=A0I used pkg install to get virtualbox-ose.=C2=A0 Whe= n I try to load the
>=C2=A0 =C2=A0 =C2=A0vboxdrv.ko, I get this error:
>
>=C2=A0 =C2=A0 =C2=A0KLD vboxdrv.ko: depends on kernel - not available o= r version mismatch
>=C2=A0 =C2=A0 =C2=A0linker_load_file: /boot/modules/vboxdrv.ko - unsupp= orted file type
>
>=C2=A0 =C2=A0 =C2=A0FreeBSD freebsd.friedrich.org <http://= freebsd.friedrich.org>
>=C2=A0 =C2=A0 =C2=A013.2-RELEASE FreeBSD 13.2-RELEASE
>=C2=A0 =C2=A0 =C2=A0releng/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. <= br> > 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=C2=A0 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: rkobe= rman@gmail.com
> PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683

Thank you, Kevin.=C2=A0 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 rel= eng/13.2-n254617-525ecfdad597 GENERIC amd64

You are working too hard!
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.


--
Kev= in Oberman, Part time kid herder and retired Network Engineer
E-mail: rkoberman@gmail.com<= /a>
PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683=
--0000000000008da3c905fb1b657a--