PDA

View Full Version : Problems in AMD kernel


polvorilla
03-19-03, 09:52 AM
Hi,

In woody whith kernel 2.4.20-k7 in AMD Athlon 800 Mhz...


ld -r -o nvidia.o nv-linux.o nv-kernel.o
size nvidia.o
text data bss dec hex filename
1248009 92760 32940 1373709 14f60d nvidia.o
depmod: *** Unresolved symbols in /lib/modules/2.4.20-k7/kernel/drivers/video/nvidia.o
depmod: *** Unresolved symbols in /lib/modules/2.4.20-k7/kernel/drivers/video/nvidia.o-back
/lib/modules/2.4.20-k7/kernel/drivers/video/nvidia.o: kernel-module version mismatch
/lib/modules/2.4.20-k7/kernel/drivers/video/nvidia.o was compiled for kernel version 2.4.18-bf2.4
while this kernel is version 2.4.20-k7.
/lib/modules/2.4.20-k7/kernel/drivers/video/nvidia.o: insmod /lib/modules/2.4.20-k7/kernel/drivers/video/nvidia.o failed
/lib/modules/2.4.20-k7/kernel/drivers/video/nvidia.o: insmod nvidia failed
make: *** [package-install] Error 255


Where I'm wrong ?

Thx

bwkaz
03-19-03, 11:39 AM
How did you install the drivers? It looks like you got the wrong kernel module. Did you just copy the kernel module from an old kernel version? That will not work; you have to recompile it instead.

I'd try the tarballs, personally. You'll need the kernel's sources installed, any way you do it (unless you install a precompiled version).

polvorilla
03-19-03, 11:56 AM
Originally posted by bwkaz
(unless you install a precompiled version).

that is my case :confused:

bwkaz
03-19-03, 05:02 PM
You installed a precompiled binary? Then it's pretty much guaranteed that you installed the wrong one.

Plus, I don't know what that /lib/modules/.../nvidia.o-back file is, either, but nobody running the drivers from nVidia (AFAIK...) has it. Even the RPMs don't install it, I don't think.

Try the tarballs. Install 2.4.20-k7's sources, and go from there. Like I said, it looks like the binaries you're trying to use are for the wrong kernel (well... actually, that's definitely the problem, according to the errors).

polvorilla
03-19-03, 08:48 PM
Originally posted by bwkaz
Plus, I don't know what that /lib/modules/.../nvidia.o-back file is, either, but nobody running the drivers from nVidia (AFAIK...) has it. Even the RPMs don't install it, I don't think.

nvidia.o-back is a file that I move removing nvidia.o, but returns to appear, doesn't have importance, I was clean it. In addition, my distribution is Debian Woody (unstable) where don't exist anyone RPM, it's only apt-get... in any case I not install the sources, only packages kernel-2.4.20-k7.deb and kernel-headers-2.4.20.deb.

Originally posted by bwkaz
Try the tarballs. Install 2.4.20-k7's sources, and go from there. Like I said, it looks like the binaries you're trying to use are for the wrong kernel (well... actually, that's definitely the problem, according to the errors).

there is but no remedy that recompile all the kernel or conform me with kernel-2.4.18-bf2.4 where have problems too ?

Thanks for you time... :)

bwkaz
03-20-03, 01:14 PM
Originally posted by polvorilla
there is but no remedy that recompile all the kernel or conform me with kernel-2.4.18-bf2.4 where have problems too ? I'm not positive I know what you're asking here, but you cannot use kernel modules that were compiled for one kernel in another. It will not work.

Unless Debian provides an NVIDIA_kernel package that works with 2.4.20-k7, you will have to build the NVIDIA_kernel package from source.

mtrr
03-20-03, 08:20 PM
@polvorilla:

hi there,

you're not using woody, but sid (the naming is a little weird
for newbies)

apt-cache search nvidia

install the package, there are build instructions included.


cheers