[vbox-dev] vboxdrv setup fails

Markus Kesaromous remotestar at live.com
Sun Aug 2 21:16:21 PDT 2009




----------------------------------------
> Date: Sun, 2 Aug 2009 21:36:01 +0200
> From: Frank.Mehnert at Sun.COM
> To: vbox-dev at virtualbox.org
> Subject: Re: [vbox-dev] vboxdrv setup fails
>
> Markus,
>
> if you use a self-compiled kernel then you have to make sure that
>
> /lib/modules/`uname -r`/build
>
> points to the directory where you built your kernel. Changing
> sensible kernel config options (preemption is one of them) will
> change the module versions slightly.
>
> Kind regards,
>
> Frank
>
> On Sunday 02 August 2009, Markus Kesaromous wrote:
>> Dear List,
>> I am on FC11, kernel-2.6.29.6-213.fc11.i586.
>> This kernel was built from source in order to enable the rt2860sta driver,
>> which is by default disabled on the stock ditribution kernel.
>> kerne-devel-2.6.29.6-213.fc11.i586.rpm is installed as well as
>> kerne-headers-2.6.29.6-213.fc11.i586.rpm
>> I had installed installed VirtualBox-3.0.2_49928_fedora11-1.i586
>> PRIOR to recompiling the kernel from source in order to enable rt2860sta
>> driver.
>>
>> If I type service vboxdrv setup, the compilation proceeds without any
>> problems.
>>
>> Now if i type service vbosdrv start, I get:
>> # service vboxdrv start
>> Starting VirtualBox kernel module [FAILED]
>> (modprobe vboxdrv failed. Please use 'dmesg' to find out why)
>>
>> dmesg does not reveal any messages regarding the starting or loading of the
>> vboxdrv driver.
>>
>> If I do
>>
>> modproble -f vboxdrv
>>
>> I get:
>>
>> modprobe -f vboxdrv
>> FATAL: Error inserting vboxdrv
>> (/lib/modules/2.6.29.6-213.fc11.i586/misc/vboxdrv.ko): Invalid module
>> format
>>
>> So, I do not understand what the problem with the format is. All I can
>> extract from the module is:
>>
>> # file /lib/modules/2.6.29.6-213.fc11.i586/misc/vboxdrv>
>> /lib/modules/2.6.29.6-213.fc11.i586/misc/vboxdrv.ko: ELF 32-bit LSB
>> relocatable, Intel 80386, version 1 (SYSV), not stripped
>>
>> This is the same info I get about the loaded drivers as well, i.e.:
>> ELF 32-bit LSB relocatable, Intel 80386, version 1 (SYSV), not stripped
>>
>> So, what is this invalid format problem caused by?
>>
>> # uname -r
>> 2.6.29.6-213.fc11.i586
>>
>> uname -a
>> Linux localhost.localdomain 2.6.29.6-213.fc11.i586 #2 PREEMPT Sat Aug 1
>> 23:17:53 PDT 2009 i686 athlon i386 GNU/Linux
>>
>> The PREEMPT is displayed because I chose a preemptible kernel option which
>> helps improve interactive response time. The difference between preemptible
>> kernel and non-preemptible kernel as far as response time is concerned, is
>> noticeable on my uniprocessor laptop.
>>
>> Thank you for your help.
>> If you need any further info, please let me know.
>>
>> Best regards,
>>
>> MK
>>
>>
>> _________________________________________________________________
>> Get back to school stuff for them and cashback for you.
>> http://www.bing.com/cashback?form=MSHYCB&publ=WLHMTAG&crea=TEXT_MSHYCB_Back
>>ToSchool_Cashback_BTSCashback_1x1
>> _______________________________________________
>> vbox-dev mailing list
>> vbox-dev at virtualbox.org
>> http://vbox.innotek.de/mailman/listinfo/vbox-dev
>
>
>
> --
> Dr.-Ing. Frank Mehnert Sun Microsystems, Inc. www.sun.com

OK - You were right Frank - however, making the sym links
build or source point to ...BUILD/kernel-2.6.29/linux-2.6.29.i586
and then building the vboxdrv exposed another problem:
missing header file include/linx/bounds.h

This file is prsent in /usr/src/kernels/2.6.29.6-213.fc11.i586

but not in the BUILD area which is set up by rpmbuild -bb kernel.spec

I don't know why this is so.

But, in order for me t move forward, I copied the missing header file
to the build area and the driver built and loaded without a  problem.

And Just as 
        w41te stated, I did a make clean  first before I ran
the vboxdrv setup.

Thank you for your help.

Cheers,

MK

_________________________________________________________________
Get your vacation photos on your phone!
http://windowsliveformobile.com/en-us/photos/default.aspx?&OCID=0809TL-HM



More information about the vbox-dev mailing list