Date: Sat, 21 Jul 2012 16:36:26 -0500 From: Alan Cox <alan.l.cox@gmail.com> To: Brandon Gooch <jamesbrandongooch@gmail.com> Cc: Current FreeBSD <freebsd-current@freebsd.org>, "O. Hartmann" <ohartman@zedat.fu-berlin.de> Subject: Re: kldload: can't load /boot/modules/vboxdrv.ko: Exec format error Message-ID: <CAJUyCcP4BrUHxiqGKx5yCFHoP_ZjWf%2BWJXJesv=o=wLBwBMc9Q@mail.gmail.com> In-Reply-To: <CALBk6y%2Bba9iWdEVOG19rhknhdzEiFUpsWYt07EOqyNBjWmEO5g@mail.gmail.com> References: <500AC258.3030508@zedat.fu-berlin.de> <500AC68D.70501@zedat.fu-berlin.de> <CALBk6y%2Bba9iWdEVOG19rhknhdzEiFUpsWYt07EOqyNBjWmEO5g@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Jul 21, 2012 at 10:59 AM, Brandon Gooch <jamesbrandongooch@gmail.com > wrote: > On Sat, Jul 21, 2012 at 10:11 AM, O. Hartmann > <ohartman@zedat.fu-berlin.de> 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" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJUyCcP4BrUHxiqGKx5yCFHoP_ZjWf%2BWJXJesv=o=wLBwBMc9Q>