Date: Mon, 30 Nov 2009 06:01:41 GMT From: Scot Hetzel <swhetzel@gmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/141013: [patch] emulators/virtualbox: Fix kernel module loading for vboxnetadp.ko Message-ID: <200911300601.nAU61fJg021292@www.freebsd.org> Resent-Message-ID: <200911300610.nAU6A17o051101@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 141013 >Category: ports >Synopsis: [patch] emulators/virtualbox: Fix kernel module loading for vboxnetadp.ko >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Nov 30 06:10:00 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Scot Hetzel >Release: 8.0-Stable >Organization: >Environment: FreeBSD dv8t01 8.0-STABLE FreeBSD 8.0-STABLE #3: Sun Nov 29 21:36:10 CST 2009 root@dv8t01:/usr/obj/usr/src/8.0-REL/sys/GENERIC amd64 >Description: Currently, when loading the vboxnetadp kernel module, you first need to load the vboxnetflt kernel module. When vboxnetadp is loaded first, it produces this error message: dv8t01# kldload vboxnetadp kldload: can't load vboxnetadp: Exec format error The problem is that vboxnetadp.ko expects to find a kernel module named ng_vboxnetflt.ko in the modules path, but no such module exists. There are 2 ways to fix this problem: 1. rename vboxnetflt.ko to ng_vboxnetflt.ko in the KMODDIR 2. Patch src/VBox/HostDrivers/VBoxNetAdp/freebsd/VBoxNetAdp-freebsd.c to change the MODULE_DEPEND to use vboxnetflt instead of ng_vboxnetflt >How-To-Repeat: install virtualbox, and then kldload vboxnetadp >Fix: The attached patch changes the vboxnetadp.ko to depend on vboxnetflt.ko instead of ng_vboxnetflt.ko. Patch attached with submission follows: Index: Makefile =================================================================== RCS file: /home/ncvs/ports/emulators/virtualbox/Makefile,v retrieving revision 1.12 diff -u -r1.12 Makefile --- Makefile 6 Nov 2009 14:17:06 -0000 1.12 +++ Makefile 30 Nov 2009 05:37:26 -0000 @@ -7,7 +7,7 @@ PORTNAME= virtualbox DISTVERSION= 3.0.51r22902 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= emulators kld MASTER_SITES= http://tmp.chruetertee.ch/ \ http://freebsd.unixfreunde.de/sources/ \ Index: files/patch-src-VBox-HostDrivers-VBoxNetAdp-freebsd-VBoxNetAdp-freebsd.c =================================================================== RCS file: files/patch-src-VBox-HostDrivers-VBoxNetAdp-freebsd-VBoxNetAdp-freebsd.c diff -N files/patch-src-VBox-HostDrivers-VBoxNetAdp-freebsd-VBoxNetAdp-freebsd.c --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ files/patch-src-VBox-HostDrivers-VBoxNetAdp-freebsd-VBoxNetAdp-freebsd.c 30 Nov 2009 05:40:36 -0000 @@ -0,0 +1,11 @@ +--- src/VBox/HostDrivers/VBoxNetAdp/freebsd/VBoxNetAdp-freebsd.c.orig 2009-09-09 14:21:32.000000000 -0500 ++++ src/VBox/HostDrivers/VBoxNetAdp/freebsd/VBoxNetAdp-freebsd.c 2009-11-29 23:38:21.215714962 -0600 +@@ -92,7 +92,7 @@ + DECLARE_MODULE(vboxnetadp, g_VBoxNetAdpFreeBSDModule, SI_SUB_PSEUDO, SI_ORDER_ANY); + MODULE_VERSION(vboxnetadp, 1); + MODULE_DEPEND(vboxnetadp, vboxdrv, 1, 1, 1); +-MODULE_DEPEND(vboxnetadp, ng_vboxnetflt, 1, 1, 1); ++MODULE_DEPEND(vboxnetadp, vboxnetflt, 1, 1, 1); + + /** + * Module event handler >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200911300601.nAU61fJg021292>