From nobody Sun May 07 05:57:42 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 4QDYcS0pzbz49kHY for ; Sun, 7 May 2023 05:58:00 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-yw1-x1135.google.com (mail-yw1-x1135.google.com [IPv6:2607:f8b0:4864:20::1135]) (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 4QDYcR4GtBz3xmn for ; Sun, 7 May 2023 05:57:59 +0000 (UTC) (envelope-from kob6558@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-yw1-x1135.google.com with SMTP id 00721157ae682-55c939fb24dso29746897b3.2 for ; Sat, 06 May 2023 22:57:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683439078; x=1686031078; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=X9NuRZiaSS4WZZ2HaGcuqVajaFRRmsKkN5RBgqQCKYw=; b=JRnnWxieDmfW56FiTpPz2t16jCjIqNtKY3OMMAdfOP+NaCZOW6fn2YgQR8ZPnOFRch aVaLwo9QnX1ibfkExHG0Zc6Of/WD9YLSn3gbniVPyiAzxWeRePmr8YYk8oNbLXVBNXJD o5xA1RoWj6Af47B9YbzYn2QsGgOqTAer8/Sb3bBzsW2n9tL+0OP1BKSDePpKHOk9VoFS NVxAr1lL5u5hafY+8kU4dKJ1KAsi+3Q2L16dUXrv/olHRkZi8I7/BAbSsvR/Q0cPxrCl tbFOWMSAtZJ2ylP6+rNhg0Me/Ai2ighmI18LKHmTRFgyyyHT8jQ0N8HWoTQNPjRsqbYA OoWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683439078; x=1686031078; 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=X9NuRZiaSS4WZZ2HaGcuqVajaFRRmsKkN5RBgqQCKYw=; b=c6Ok7N4ur6J7LVQ5xJaMoG+/d1BDmNNLK+CKv8VY6GdLtSEWtX2bf4tp/sfXNzbMdL SpX/0F9mdFHsgBnzbYVntzEPg3tgjRhLIxo0oMrzkudRLuzG56GOMhcc1SEMFE4BJ/L1 FgXOOIu30Ws38t5ef2t22wUbhC7LzSUrBcn5VtxDBGOEOs2kbP/RdwPnGzrr5Dzqbwv8 cZrkyQ+TDBTlIqtyRJwvKRouYhQKmsON1/JBbb4aRobCEMvpqN6xBEk7gkTUzJhQFFGc 3Dz8BU3NeQZI1VLP8vPArXxVKQUGi3FBcMkORExOPoHW9ial+oGdM2mJ44KKUi/4nP/V Qy6Q== X-Gm-Message-State: AC+VfDyGU++HkrcQ0zuJxQI74gNot6lrH6NcPj8/fwXXkvfsOThqTRkG 8OANL/bd/NVUzqa4DHT/zMwj3mXIsq8P+pECIlr37VaM X-Google-Smtp-Source: ACHHUZ7v1oioCB+UB//F5DqpfaklaPyeIMgBin+DMpHs7wTixA7WMQvTxADIR6e3hx5QOs9bPt4Ix349GhGfCeDEsLM= X-Received: by 2002:a81:4810:0:b0:54f:752e:9e60 with SMTP id v16-20020a814810000000b0054f752e9e60mr7842498ywa.37.1683439078472; Sat, 06 May 2023 22:57:58 -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: <492aebb0-a5e1-2334-801a-79f76008c42c@Gmail.com> From: Kevin Oberman Date: Sat, 6 May 2023 22:57:42 -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="00000000000045ff7105fb1434d8" X-Rspamd-Queue-Id: 4QDYcR4GtBz3xmn 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 --00000000000045ff7105fb1434d8 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 mismatch > 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. --=20 Kevin Oberman, Part time kid herder and retired Network Engineer E-mail: rkoberman@gmail.com PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683 --00000000000045ff7105fb1434d8 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Sat, May 6, 2023 at 9:47=E2= =80=AFPM Steven Friedrich <freebsdlouisville@gmail.com> wrote:
On a fresh instal= l 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.=C2=A0 When I try to load the
vboxdrv.ko, I get this error:

KLD vboxdrv.ko: depends on kernel - not available or version mismatch
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 o= n 3.2. You need to have a system with the 3.2
ker= nel sources and then build the .ko on that system. It does not need to be t= he 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/virtual= box-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 pro= mises. 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: D0= 3FB98AFA78E3B78C1694B318AB39EF1B055683
<= /div>
--00000000000045ff7105fb1434d8--