Page 1 of 1
2,1 fails to install kernel module on Mandriva 2007.1
Posted: 18. Dec 2008, 15:17
by rskunath
Upgraded to 2.1 on Mandriva 2007.1 and see the error on custom kernel, this is standard on Mandriva, is back.
Not sure why it wouldn't build using DKMS though, nVIDIA is built that way and DKMS has been working fine on the system for years.
Vboxdrv log:
Attempting to install using DKMS
Error! Could not locate dkms.conf file.
File: /usr/src/vboxdrv-2.1.0/dkms.conf does not exist.
Failed to install using DKMS, attempting to install without
Makefile:154: *** Error: /usr/src/linux (version 2.6.17-19mdvcustom) does not match the current kernel (version 2.6.17-19mdv). Stop.
Any idea why the dkms.conf file isn't there in the vboxdrv directory?
Posted: 18. Dec 2008, 15:41
by rskunath
Located the dkms.conf file elsewhere in the VirtualBox installed files, copied it over to the location where Vbox was looking for it, and still get an error.
this appears to be the old mdvcustom error. This needs to be fixed, and was up until this 2.1 release.
From the log:
Attempting to install using DKMS
Creating symlink /var/lib/dkms/vboxdrv/2.1.0/source ->
/usr/src/vboxdrv-2.1.0
Attempting to install using DKMS
Creating symlink /var/lib/dkms/vboxdrv/2.1.0/source ->
/usr/src/vboxdrv-2.1.0
DKMS: add Completed.
Preparing kernel 2.6.17-19mdv for module build:
(This is not compiling a kernel, just preparing kernel symbols)
Storing current .config to be restored when complete
Running Generic preparation routine
make mrproper......
using /proc/config.gz
make oldconfig......
make prepare.....
Building module:
cleaning build area....
make KERNELRELEASE=2.6.17-19mdv -C /lib/modules/2.6.17-19mdv/build M=/var/lib/dkms/vboxdrv/2.1.0/build....
Error! Build of vboxdrv.ko failed for: 2.6.17-19mdv (i586)
Consult the make.log in the build directory
/var/lib/dkms/vboxdrv/2.1.0/build/ for more information.
Failed to install using DKMS, attempting to install without
Makefile:154: *** Error: /usr/src/linux (version 2.6.17-19mdvcustom) does not match the current kernel (version 2.6.17-19mdv). Stop.
DKMS: add Completed.
Preparing kernel 2.6.17-19mdv for module build:
(This is not compiling a kernel, just preparing kernel symbols)
Storing current .config to be restored when complete
Running Generic preparation routine
make mrproper......
using /proc/config.gz
make oldconfig......
make prepare.....
Building module:
cleaning build area....
make KERNELRELEASE=2.6.17-19mdv -C /lib/modules/2.6.17-19mdv/build M=/var/lib/dkms/vboxdrv/2.1.0/build....
Error! Build of vboxdrv.ko failed for: 2.6.17-19mdv (i586)
Consult the make.log in the build directory
/var/lib/dkms/vboxdrv/2.1.0/build/ for more information.
Failed to install using DKMS, attempting to install without
Makefile:154: *** Error: /usr/src/linux (version 2.6.17-19mdvcustom) does not match the current kernel (version 2.6.17-19mdv). Stop.
Posted: 18. Dec 2008, 15:54
by frank
Confirmed. The link is wrong. I've updated the mdv2007.1 package on the download server. Please could you check if this package works for you?
Posted: 18. Dec 2008, 16:12
by rskunath
Still fails:
From the logs:
Attempting to install using DKMS
removing old DKMS module vboxdrv version
Error! Invalid number of parameters passed.
Usage: remove -m <module> -v <module-version> --all
or: remove -m <module> -v <module-version> -k <kernel-version>
------------------------------
Deleting module version: 2.1.0
completely from the DKMS tree.
------------------------------
Done.
Creating symlink /var/lib/dkms/vboxdrv/2.1.0/source ->
/usr/src/vboxdrv-2.1.0
DKMS: add Completed.
Preparing kernel 2.6.17-19mdv for module build:
(This is not compiling a kernel, just preparing kernel symbols)
Storing current .config to be restored when complete
Running Mandriva Linux style preparation routine
make clean....
using /proc/config.gz
make oldconfig....
running dkms_mkkerneldoth....
Building module:
cleaning build area....
make KERNELRELEASE=2.6.17-19mdv -C /lib/modules/2.6.17-19mdv/build M=/var/lib/dkms/vboxdrv/2.1.0/build....
Error! Build of vboxdrv.ko failed for: 2.6.17-19mdv (i586)
Consult the make.log in the build directory
/var/lib/dkms/vboxdrv/2.1.0/build/ for more information.
Failed to install using DKMS, attempting to install without
Makefile:154: *** Error: /usr/src/linux (version 2.6.17-19mdvcustom) does not match the current kernel (version 2.6.17-19mdv). Stop.
And, no /var/lib/dkms/vboxdrv/2.1.0/build/make.log so can't post the contents. No build directory there at all.
Posted: 18. Dec 2008, 16:15
by rskunath
Brain fade...
From the make.log in /var/lib/dkms/vboxdrv/2.1.0/build
DKMS make.log for vboxdrv-2.1.0 for kernel 2.6.17-19mdv (i586)
Thu Dec 18 09:13:01 EST 2008
make: Entering directory `/usr/src/linux-2.6.17-19mdv'
WARNING: Symbol version dump /usr/src/linux-2.6.17-19mdv/Module.symvers
is missing; modules will have no dependencies and modversions.
Building modules, stage 2.
MODPOST
make: Leaving directory `/usr/src/linux-2.6.17-19mdv'
Not sure what that's about, the correct kernel source and stripped kernel source is installed and works for the nVIDIA DKMS build.
Posted: 18. Dec 2008, 17:26
by frank
Please could you contact me directly? frank _dot_ mehnert _at_ sun _dot_ com. I'm trying to fix this. Please could you send me the whole make.log file from both modules (vboxdrv and vboxnetflt). Thanks.
Posted: 20. Dec 2008, 01:07
by rskunath
Will do. I won't have access to those machines until Monday. I'll get this out asap then.
Posted: 20. Dec 2008, 03:04
by Sasquatch
rskunath wrote:Will do. I won't have access to those machines until Monday. I'll get this out asap then.
Try it now. According to the email I got from Frank, it _should_ be fixed.
Posted: 22. Dec 2008, 15:18
by rskunath
Yes, fixed for me too.
Thanks Frank.