From owner-freebsd-current@FreeBSD.ORG Sat Jul 21 21:36:27 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 20599106566B for ; Sat, 21 Jul 2012 21:36:27 +0000 (UTC) (envelope-from alan.l.cox@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id E23598FC14 for ; Sat, 21 Jul 2012 21:36:26 +0000 (UTC) Received: by pbbro2 with SMTP id ro2so9031150pbb.13 for ; Sat, 21 Jul 2012 14:36:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=DmUmYBY7jERGCbWEtdWcZwb097gudtdsf4S3VRaY//w=; b=m4LDEhF6XQNQgC/gU7D7nmCwOVksNb8CuxqY1r/0wFsEh3B7RJXY+liYqbOit9U8Br dX9WhGnR8O51LKp7rMLXI8usyoP3AkfyLWLJ5KXbr6sLwHsEFC+uQn6l2BQ+p1CRAWP/ LExFWAsULQlkTJycHr0C8AbQm0L/c5mzDsHSGseRvCfaK8fL3AF/1guFGBeR6cWPeVY5 A8HSedovoV1i1FSbocrx7BjmdkHYAUl3pWGE1eC+F+iRDdRJFNCJfPmXjk0ss8HImFQv 7CuA8uvBXxMQ3f8sd+UWeptZz24GseVHKR0WBm2N04CMSyztdroiYufDAY04UnSMVjzV mVYA== MIME-Version: 1.0 Received: by 10.68.211.194 with SMTP id ne2mr24622891pbc.14.1342906586475; Sat, 21 Jul 2012 14:36:26 -0700 (PDT) Received: by 10.68.226.7 with HTTP; Sat, 21 Jul 2012 14:36:26 -0700 (PDT) In-Reply-To: References: <500AC258.3030508@zedat.fu-berlin.de> <500AC68D.70501@zedat.fu-berlin.de> Date: Sat, 21 Jul 2012 16:36:26 -0500 Message-ID: From: Alan Cox To: Brandon Gooch Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Current FreeBSD , "O. Hartmann" Subject: Re: kldload: can't load /boot/modules/vboxdrv.ko: Exec format error X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: alc@freebsd.org List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Jul 2012 21:36:27 -0000 On Sat, Jul 21, 2012 at 10:59 AM, Brandon Gooch wrote: > On Sat, Jul 21, 2012 at 10:11 AM, O. Hartmann > wrote: > > On 07/21/12 16:53, O. Hartmann wrote: > >> On FreeBSD 10.0-CURRENT #1 r238671: Sat Jul 21 16:21:32 CEST 2012 > >> (/usr/src recently update, is at Revision: 238672), VirtualBox seems to > >> be broken: > >> > >> kldload: can't load /boot/modules/vboxdrv.ko: Exec format error > >> > >> When both buildworld and kernel as well as /usr/src itself were at > >> Revision: 238671, I did a build of the whole port > >> /emulators/virtual-box-ose[-kmod] to prevent the vboxdrv.ko kernel > >> module located in /boot/modules/ and its siblings being in sync with > >> /usr/src. > >> > >> But it doesn't work. I searched the net and I only found hints of the > >> form that both, /usr/src and the last time the module > >> /emulators/virtual-box-ose-kmod has been build are out of sync. This is > >> not the case in my case. > >> > >> VirtualBox is at version 4.1.18. > >> > >> What is wrong? Am I wrong and repeating an error over and over again? > >> > >> Regards, > >> Oliver > >> > > > > I found this in the message log: > > > > Jul 21 16:41:37 <0.2> thor kernel: link_elf_obj: symbol > > vm_contig_grow_cache undefined > > Jul 21 16:41:37 <0.2> thor kernel: KLD file vboxdrv.ko - could not > > finalize loading > > > > The function vm_contig_grow_cache was renamed: > > http://svnweb.freebsd.org/base?view=revision&revision=238561 > > Apply the following patch in > ports/emulators/virtualbox-ose-kmod/files, then rebuild the kmod: > > Index: patch-src-VBox-Runtime-r0drv-freebsd-memobj-r0drv-freebsd.c > =================================================================== > --- patch-src-VBox-Runtime-r0drv-freebsd-memobj-r0drv-freebsd.c > (revision 301265) > +++ patch-src-VBox-Runtime-r0drv-freebsd-memobj-r0drv-freebsd.c (working > copy) > @@ -149,7 +149,7 @@ > + VM_OBJECT_UNLOCK(pObject); > + if (pPages || tries >= 1) > + break; > -+ vm_contig_grow_cache(tries, 0, VmPhysAddrHigh); > ++ vm_pageout_grow_cache(tries, 0, VmPhysAddrHigh); > + tries++; > + } > + return pPages; > @@ -176,7 +176,7 @@ > + pPages = vm_phys_alloc_contig(cPages, 0, VmPhysAddrHigh, > uAlignment, 0); > + if (pPages || tries >= 1) > + break; > -+ vm_contig_grow_cache(tries, 0, VmPhysAddrHigh); > ++ vm_pageout_grow_cache(tries, 0, VmPhysAddrHigh); > This change should be removed. > + tries++; > + } > + if (!pPages) > > Let us know if it works. > > -Brandon > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" >