[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Re: VirtualBox 4 fails building kernel module (the same with nvidia module)



I switched to custom kernel and came across this thread. I also use
squeeze and this is what I have found.

First of, Debian has the following versions of nvidia-kernel-dkms packages:

squeeze: 195.36.31-6
sid/wheezy: 260.19.44-1
experimental: 270.30-1

The version in squeeze fail on anything above kernel 2.6.38 and none
will compile on 2.6.39 because of BKL removal; nvidia-kernel-dkms
depends on it; "include/linux/smp_lock.h" is missing and the driver
will not compile without it.

So I settled for kernel 2.6.38.4 and nvidia-kernel-dkms from
experimental because it compiles without issue. The packages from
sid/wheezy also work but why not use the latest and greatest. Here is
what i did:

cd /usr/src

download the following packages from exerimental:

libgl1-nvidia-glx_270.30-1_amd64.deb
nvidia-glx_270.30-1_amd64.deb
nvidia-kernel-dkms_270.30-1_amd64.deb
nvidia-common_20110213+1_amd64.deb
nvidia-kernel-common_20110213+1_amd64.deb

download, untar and configure kernel 2.6.38.4.

cd linux-2.6.38.4

fakeroot make-kpkg --initrd --revision=2.6.38.4+jj
--append_to_version=+jj kernel_image; fakeroot make-kpkg --initrd
--revision=2.6.38.4+jj --append_to_version=+jj kernel_headers

dpkg -i linux-image-2.6.38.4+jj_2.6.38.4+jj_amd64.deb
linux-headers-2.6.38.4+jj_2.6.38.4+jj_amd64.deb

dpkg -i libgl1-nvidia-glx_270.30-1_amd64.deb
nvidia-glx_270.30-1_amd64.deb nvidia-kernel-dkms_270.30-1_amd64.deb
nvidia-common_20110213+1_amd64.deb
nvidia-kernel-common_20110213+1_amd64.deb

dpkg-reconfigure nvidia-kernel-dkms


Best regards,
Jonas Jensen


Reply to: