<br><br><div><span class="gmail_quote">On 10/31/07, <b class="gmail_sendername">Norm Dugas</b> <<a href="mailto:normdugas@yahoo.ca">normdugas@yahoo.ca</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Staffan Pettersson wrote:<br>> Hi!<br>><br>> Nvidia gives me headaches! i cant seem to build the driver correct.<br>><br>> My girlfriend went away for a couple of days and so i decided to buy<br>> som new parts for my mythtv system. My system consist of a backend
<br>> server running an old pentium 4 processor and my new frontend is a<br>> core 2 duo system running in a diskless setup. Both the kernel on the<br>> backend and frontend are the same but the new machine is build with
<br>> the core2 kernel option.<br>><br>> Every time i try to build and insert the module, dmesg gives me this:<br>><br>> nvidia: version magic '2.6.22-gentoo-r9 SMP mod_unload PENTIUM4<br>> 4KSTACKS ' should be '
2.6.22-gentoo-r9 SMP mod_unload CORE2 4KSTACKS '<br>><br>> Please help!<br>><br>Looks like you've compiled the driver against a different kernel<br>source. How do you build your kernel? Here's how I do it:
<br>- list and select the kernel<br># eselect kernel list<br>Available kernel symlink targets:<br> [1] linux-2.6.22-gentoo-r2<br> [2] linux-2.6.22-gentoo-r3<br> [3] linux-2.6.22-gentoo-r4<br> [4] linux-2.6.22-gentoo-r5
<br> [5] linux-2.6.22-gentoo-r6<br> [6] linux-2.6.22-gentoo-r7<br> [7] linux-2.6.22-gentoo-r8 *<br> [8] linux-2.6.23-gentoo<br># eselect kernel set 8 <---This will ser the symlink to 2.6.26<br><br>- build a new kernel
<br># genkernel all <--- builds the kernel, I usually use genkernel<br>--menuconfig all to select wanted drivers and remove unwanted drivers<br><br>- rebuild the modules, list them first<br># module-rebuild list<br>** Packages which I will emerge are:
<br> =media-libs/svgalib-1.9.25<br> =x11-drivers/nvidia-drivers-100.14.09<br># module-rebuild rebuild<br><br>Make sure your kernel is in grub, then reboot. That's how I do it since<br>the only time I rebuild the modules is after I build a new kernel.
<br><br>Hope this helps<br><br>Norm<br></blockquote></div><br>Also, if you haven't already done so already, the following line needs to be added to /etc/make.conf<br><br>
VIDEO_CARDS="nvidia"<br><br>-=Venkat=-<br><br>