<br><br><div><span class="gmail_quote">On 10/31/07, <b class="gmail_sendername">Norm Dugas</b> &lt;<a href="mailto:normdugas@yahoo.ca">normdugas@yahoo.ca</a>&gt; 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>&gt; Hi!<br>&gt;<br>&gt; Nvidia gives me headaches! i cant seem to build the driver correct.<br>&gt;<br>&gt; My girlfriend went away for a couple of days and so i decided to buy<br>&gt; som new parts for my mythtv system. My system consist of a backend
<br>&gt; server running an old pentium 4 processor and my new frontend is a<br>&gt; core 2 duo system running in a diskless setup. Both the kernel on the<br>&gt; backend and frontend are the same but the new machine is build with
<br>&gt; the core2 kernel option.<br>&gt;<br>&gt; Every time i try to build and insert the module, dmesg gives me this:<br>&gt;<br>&gt; nvidia: version magic &#39;2.6.22-gentoo-r9 SMP mod_unload PENTIUM4<br>&gt; 4KSTACKS &#39; should be &#39;
2.6.22-gentoo-r9 SMP mod_unload CORE2 4KSTACKS &#39;<br>&gt;<br>&gt; Please help!<br>&gt;<br>Looks like you&#39;ve compiled the driver against a different kernel<br>source.&nbsp;&nbsp;How do you build your kernel?&nbsp;&nbsp;Here&#39;s how I do it:
<br>- list and select the kernel<br># eselect kernel list<br>Available kernel symlink targets:<br>&nbsp;&nbsp;[1]&nbsp;&nbsp; linux-2.6.22-gentoo-r2<br>&nbsp;&nbsp;[2]&nbsp;&nbsp; linux-2.6.22-gentoo-r3<br>&nbsp;&nbsp;[3]&nbsp;&nbsp; linux-2.6.22-gentoo-r4<br>&nbsp;&nbsp;[4]&nbsp;&nbsp; linux-2.6.22-gentoo-r5
<br>&nbsp;&nbsp;[5]&nbsp;&nbsp; linux-2.6.22-gentoo-r6<br>&nbsp;&nbsp;[6]&nbsp;&nbsp; linux-2.6.22-gentoo-r7<br>&nbsp;&nbsp;[7]&nbsp;&nbsp; linux-2.6.22-gentoo-r8 *<br>&nbsp;&nbsp;[8]&nbsp;&nbsp; linux-2.6.23-gentoo<br># eselect kernel set 8&nbsp;&nbsp; &lt;---This will ser the symlink to&nbsp;&nbsp;2.6.26<br><br>- build a new kernel
<br># genkernel all&nbsp;&nbsp; &lt;--- 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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=media-libs/svgalib-1.9.25<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=x11-drivers/nvidia-drivers-100.14.09<br># module-rebuild rebuild<br><br>Make sure your kernel is in grub, then reboot.&nbsp;&nbsp;That&#39;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&#39;t already done so already, the following line needs to be added to /etc/make.conf<br><br>
    VIDEO_CARDS=&quot;nvidia&quot;<br><br>-=Venkat=-<br><br>