Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
HOWTO use NVIDIA 1.0.6111 on recent kernels
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4  Next  
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
lavacano
Apprentice
Apprentice


Joined: 29 May 2005
Posts: 190
Location: Poulsbo, WA

PostPosted: Tue May 31, 2005 11:02 am    Post subject: Reply with quote

on my machine 6629 doesnt work and I guess inter_module_get got deprecated to 6111 is unusable too. 6629 was a little more promissing as it actually _loads_ the module but then the thing everyone describes happens; I get the 1 pixel high, about 25-50 pixels acrossed portion of displayed X in the top left corner, the rest grey like it still is loading, and I also get a pointer I can move around IN THE PORTION OF THE SCREEN THAT IS GREYED OUT

there has to be something were not catching.... xorg.0.log looks perfect AGH!! guess im stuck until release after 7167 comes out. BTW: I loath not using renderaccel :-[
_________________
Sincerely,

Chadwick Ferguson
Back to top
View user's profile Send private message
moocha
Watchman
Watchman


Joined: 21 Oct 2003
Posts: 5722

PostPosted: Tue May 31, 2005 11:27 am    Post subject: Reply with quote

So switch to a non-mm based kernel. Try ck-sources. My 1.0.6111 will compile just fine on it, and ck is almost as responsive as love.
_________________
Military Commissions Act of 2006: http://tinyurl.com/jrcto

"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin
Back to top
View user's profile Send private message
lavacano
Apprentice
Apprentice


Joined: 29 May 2005
Posts: 190
Location: Poulsbo, WA

PostPosted: Tue May 31, 2005 7:48 pm    Post subject: Reply with quote

moocha wrote:
So switch to a non-mm based kernel. Try ck-sources. My 1.0.6111 will compile just fine on it, and ck is almost as responsive as love.


so either ck has inter_module_get or there's a patch in your ebuild that fixes it? if so which patch? maybe also ck has a patch to enable inter_module_get something from http://lkml.org/lkml/2005/4/13/130 ? if so which patch is this?

edit: because I done know about everyone else but my problems werent mm I think, I think I couldnt use 6111 after 2.6.11 (i think) which is also I think when they deprecated inter_module_get and its the only error I get now is that inter_module_get; There might be more after that, but I have found you fix the first problem before the second?? if i'm wrong could you explain what the problem is in more detail (why you wrote the agp back) Im not trying to be rude I just dont understand, and I <3 love sources so having a problem like no transparency and no font smooting acceleration can wait until nvidia fixes their stuf. It is worth it however up until that point to try to get it to work haha!
_________________
Sincerely,

Chadwick Ferguson
Back to top
View user's profile Send private message
tuxian
l33t
l33t


Joined: 26 Jan 2004
Posts: 766
Location: Austria

PostPosted: Mon Jun 20, 2005 10:46 pm    Post subject: Reply with quote

I also have the "inter_module_get" problem with gentoo-sources-2.6.12.

Is there any solution?

Only v6111 works stable on my Toshiba Tecra M2.
Back to top
View user's profile Send private message
chrisduck
Apprentice
Apprentice


Joined: 30 Jun 2004
Posts: 283
Location: California

PostPosted: Wed Jun 22, 2005 11:21 pm    Post subject: Reply with quote

could someone describe what circumstances would require the 6111 driver?

I have a nvidia geforce go 5200, and I just reinstalled gentoo and x. I am having to use the "nv" drivers, because x is no longer satisfied with the hsync, vrefresh, and modeline that I usually give to it. I have no idea why x isn't cooperating. would the 6111 driver solve my problem?
Back to top
View user's profile Send private message
tuxian
l33t
l33t


Joined: 26 Jan 2004
Posts: 766
Location: Austria

PostPosted: Wed Jun 22, 2005 11:54 pm    Post subject: Reply with quote

Perhaps, try it!


The latest nvidia-driver is running stable now on my centrino notebook ;)

I don't need v6111 any more.

The solution was to disable SMP on my centrino.
I can't remember why I had enabled it!
Back to top
View user's profile Send private message
lavacano
Apprentice
Apprentice


Joined: 29 May 2005
Posts: 190
Location: Poulsbo, WA

PostPosted: Thu Jun 23, 2005 12:22 am    Post subject: Reply with quote

the latest nv kernel - 7174 and 7667 or whatever DONT DO RenderAccell. And on kernels > 2.6.12 you cant use 6111 (inter_module_*) which does renderaccell. Were left with 6629 which works with some nv cards, not mine though. So basically Im screwed without renderaccell now. gg bye.
_________________
Sincerely,

Chadwick Ferguson
Back to top
View user's profile Send private message
moocha
Watchman
Watchman


Joined: 21 Oct 2003
Posts: 5722

PostPosted: Thu Jun 23, 2005 5:57 am    Post subject: Reply with quote

tuxian wrote:
I also have the "inter_module_get" problem with gentoo-sources-2.6.12.

Is there any solution?
Er, yes - don't use 2.6.12?
I'm still using 2.6.9 as my main kernel, and occasionaly 2.6.11-hardened. Why upgrade?
_________________
Military Commissions Act of 2006: http://tinyurl.com/jrcto

"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin
Back to top
View user's profile Send private message
wnelson
Tux's lil' helper
Tux's lil' helper


Joined: 03 Oct 2004
Posts: 83

PostPosted: Thu Jun 23, 2005 7:42 am    Post subject: Reply with quote

Upgrading to a more recent kernel like 2.6.12 will get you possible updates to you existing drivers providing for better performance and better memory management(which I have noticed). Yet all of these enhancement are need to be confirmed my your own investigation of possible improvments?
_________________
P4 2.8Ghz @ 2.8Ghz SL6WT
Zalman CNPS7000-Cu
865PE Neo-2 LS BIOs 2.4
512mb Mushkin Level II
160GB Maxtor HD
Geforce 4 440MX
Antec 3700 1 exhaust and 1 intake fans
Linux 2.6.x
Linux user 314187
Back to top
View user's profile Send private message
moocha
Watchman
Watchman


Joined: 21 Oct 2003
Posts: 5722

PostPosted: Thu Jun 23, 2005 4:02 pm    Post subject: Reply with quote

wnelson wrote:
Upgrading to a more recent kernel like 2.6.12 will get you possible updates to you existing drivers
If you're using those specific drivers, otherwise not.
wnelson wrote:
providing for better performance and better memory management(which I have noticed).
Not true in the general case. 2.6.10 and 2.6.11 were crappy in that respect, which is what 2.6.12 tends to alleviate. They all still perform worse than 2.6.9, including 2.6.12. Run a benchmark. And stick to tried and tested stuff, unless you really like breakage, in which case you shouldn't be surprised that stuff doesn't work anymore.
_________________
Military Commissions Act of 2006: http://tinyurl.com/jrcto

"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin
Back to top
View user's profile Send private message
PrakashP
Veteran
Veteran


Joined: 27 Oct 2003
Posts: 1249
Location: C.C.A.A., Germania

PostPosted: Sat Jul 02, 2005 8:39 am    Post subject: Reply with quote

Has anybody managed to get this 6111 driver working with 2.6.13-rc1? I am getting the error "screens fount, but no usable configuration" and before: failed to initialize kernel module.

The nteresting thing is, I installed latest NVidia driver, started X, quit X, installed 6111 and then it worked. Now after a reboot no go again. :-/

Any idea?

(BTW, for the inter module stuff I did a quick bit of hacking which worked ti 2.6.12.)
Back to top
View user's profile Send private message
baeksu
l33t
l33t


Joined: 26 Sep 2004
Posts: 609
Location: Seoul, Korea

PostPosted: Mon Jul 04, 2005 1:50 pm    Post subject: Reply with quote

PrakashP wrote:
Has anybody managed to get this 6111 driver working with 2.6.13-rc1? I am getting the error "screens fount, but no usable configuration" and before: failed to initialize kernel module.

What was the output of dmesg? Especially the end. Dmesg usually gives more meaningful information than just modprobe.

Quote:

(BTW, for the inter module stuff I did a quick bit of hacking which worked ti 2.6.12.)


I'd be really interested to know how you got the inter_module thing fixed. I jumped to 6629 cause I couldn't get 6111 to work, no matter how I tried. I can't get console to work after resuming, however, so I'd really like to go back to 6111.

Or did you mean 6111 worked until 2.6.12?
_________________
Gnome:
1. A legendary being.
2. A never ending quest to make unix friendly to people who don't want unix and excruciating for those that do.
Back to top
View user's profile Send private message
PrakashP
Veteran
Veteran


Joined: 27 Oct 2003
Posts: 1249
Location: C.C.A.A., Germania

PostPosted: Mon Jul 04, 2005 2:00 pm    Post subject: Reply with quote

In fact I haven't found anything interesting in dmesg or Xorg.0.log, IIRC. I went back to 2.6.12.

Here is the hack I am using. Beware that this will break if you have agpgart loaded!!!

Code:

--- nv/nv.c   2005-03-15 12:47:32.629129544 +0100
+++ nv.n/nv.c   2005-03-15 12:45:33.418252352 +0100
@@ -3342,10 +3342,10 @@
     if ( (!NV_AGP_ENABLED(nv)) && (config & NVOS_AGP_CONFIG_NVAGP) )
     {
         /* make sure the user does not have agpgart loaded */
-        if (inter_module_get("drm_agp")) {
+        /*if (inter_module_get("drm_agp")) {
             inter_module_put("drm_agp");
             nv_printf(NV_DBG_WARNINGS, "NVRM: not using NVAGP, AGPGART is loaded!!\n");
-        } else {
+        } else {*/
 #if defined(CONFIG_X86_64) && defined(CONFIG_GART_IOMMU)
             nv_printf(NV_DBG_WARNINGS,
                 "NVRM: not using NVAGP, kernel was compiled with GART_IOMMU support!!\n");
@@ -3357,7 +3357,7 @@
                 nv->agp_status = NV_AGP_STATUS_ENABLED;
             }
 #endif
-        }
+        //}
     }
 
     if (NV_AGP_ENABLED(nv))
Back to top
View user's profile Send private message
baeksu
l33t
l33t


Joined: 26 Sep 2004
Posts: 609
Location: Seoul, Korea

PostPosted: Wed Jul 06, 2005 2:11 am    Post subject: Reply with quote

PrakashP wrote:
In fact I haven't found anything interesting in dmesg or Xorg.0.log, IIRC. I went back to 2.6.12.

Here is the hack I am using. Beware that this will break if you have agpgart loaded!!!

Code:

--- nv/nv.c   2005-03-15 12:47:32.629129544 +0100
+++ nv.n/nv.c   2005-03-15 12:45:33.418252352 +0100
@@ -3342,10 +3342,10 @@
     if ( (!NV_AGP_ENABLED(nv)) && (config & NVOS_AGP_CONFIG_NVAGP) )
     {
         /* make sure the user does not have agpgart loaded */
-        if (inter_module_get("drm_agp")) {
+        /*if (inter_module_get("drm_agp")) {
             inter_module_put("drm_agp");
             nv_printf(NV_DBG_WARNINGS, "NVRM: not using NVAGP, AGPGART is loaded!!\n");
-        } else {
+        } else {*/
 #if defined(CONFIG_X86_64) && defined(CONFIG_GART_IOMMU)
             nv_printf(NV_DBG_WARNINGS,
                 "NVRM: not using NVAGP, kernel was compiled with GART_IOMMU support!!\n");
@@ -3357,7 +3357,7 @@
                 nv->agp_status = NV_AGP_STATUS_ENABLED;
             }
 #endif
-        }
+        //}
     }
 
     if (NV_AGP_ENABLED(nv))


That actually worked! Thank you very much. I had no idea the solution would be so simple as to just comment out a few lines.
_________________
Gnome:
1. A legendary being.
2. A never ending quest to make unix friendly to people who don't want unix and excruciating for those that do.
Back to top
View user's profile Send private message
piwacet
Guru
Guru


Joined: 30 Dec 2004
Posts: 486

PostPosted: Fri Jul 08, 2005 7:44 am    Post subject: Reply with quote

I'd like to try to use the above hack as well, what file is this so I can edit it?

Thanks.

edit: this is a file from the overlay I need to download, isn't it?
Back to top
View user's profile Send private message
baeksu
l33t
l33t


Joined: 26 Sep 2004
Posts: 609
Location: Seoul, Korea

PostPosted: Fri Jul 08, 2005 9:46 am    Post subject: Reply with quote

piwacet wrote:
I'd like to try to use the above hack as well, what file is this so I can edit it?

Thanks.

edit: this is a file from the overlay I need to download, isn't it?


[note: I couldn't get the overlay from this thread to work, so I'm using the normal files one portage and just adding this patch into the ebuild. I'm assuming you know how to use a local portage overlay.]

Easiest is to copy the nvidia-kernel directory from the normal portage overlay to a local one. Then save the above patch as a file, call it "inter_module_fix.patch", or whatever you like.

Copy the file to nvidia-kernel/files/1.0.6111/

Edit the nvidia-kernel-1.0.6111-r3.ebuild, and add "epatch ${FILESDIR}/${PV}/inter_module_fix.patch" to where all the other patches are handled (between lines 99-108 look fine)

Do an 'ebuild nvidia-kernel-1.0.6111-r3.ebuild digest'.

Emerge nvidia-kernel, and check that the new patch is applied.

Remember that you should have AGPGART disabled in your kernel.

The end.
_________________
Gnome:
1. A legendary being.
2. A never ending quest to make unix friendly to people who don't want unix and excruciating for those that do.
Back to top
View user's profile Send private message
PrakashP
Veteran
Veteran


Joined: 27 Oct 2003
Posts: 1249
Location: C.C.A.A., Germania

PostPosted: Fri Jul 08, 2005 9:55 am    Post subject: Reply with quote

In fact I'd advise *not* to use the thread starter's patch, as it destabilizes for me. YMMV, though. I have no need for it; just my hack is needed and I have a very stable system now.
Back to top
View user's profile Send private message
lavacano
Apprentice
Apprentice


Joined: 29 May 2005
Posts: 190
Location: Poulsbo, WA

PostPosted: Fri Jul 08, 2005 11:41 am    Post subject: Reply with quote

files/1.0.6111/inter.patch
Code:

--- nv.c.orig   2005-07-08 04:38:16.000000000 -0700
+++ nv.c        2005-07-08 04:38:54.000000000 -0700
@@ -3329,10 +3329,10 @@
     if ( (!NV_AGP_ENABLED(nv)) && (config & NVOS_AGP_CONFIG_NVAGP) )
     {
         /* make sure the user does not have agpgart loaded */
-        if (inter_module_get("drm_agp")) {
+        /*if (inter_module_get("drm_agp")) {
             inter_module_put("drm_agp");
             nv_printf(NV_DBG_WARNINGS, "NVRM: not using NVAGP, AGPGART is loaded!!\n");
-        } else {
+        } else {*/
 #if defined(CONFIG_X86_64) && defined(CONFIG_GART_IOMMU)
             nv_printf(NV_DBG_WARNINGS,
                 "NVRM: not using NVAGP, kernel was compiled with GART_IOMMU support!!\n");
@@ -3344,7 +3344,7 @@
                 nv->agp_status = NV_AGP_STATUS_ENABLED;
             }
 #endif
-        }
+        //}
     }

     if (NV_AGP_ENABLED(nv))


that might work a little better
_________________
Sincerely,

Chadwick Ferguson
Back to top
View user's profile Send private message
piwacet
Guru
Guru


Joined: 30 Dec 2004
Posts: 486

PostPosted: Sat Jul 09, 2005 3:08 am    Post subject: Reply with quote

baeksu wrote:
Quote:

[note: I couldn't get the overlay from this thread to work, so I'm using the normal files one portage and just adding this patch into the ebuild. I'm assuming you know how to use a local portage overlay.]

Easiest is to copy the nvidia-kernel directory from the normal portage overlay to a local one. Then save the above patch as a file, call it "inter_module_fix.patch", or whatever you like.

Copy the file to nvidia-kernel/files/1.0.6111/

Edit the nvidia-kernel-1.0.6111-r3.ebuild, and add "epatch ${FILESDIR}/${PV}/inter_module_fix.patch" to where all the other patches are handled (between lines 99-108 look fine)

Do an 'ebuild nvidia-kernel-1.0.6111-r3.ebuild digest'.

Emerge nvidia-kernel, and check that the new patch is applied.

Remember that you should have AGPGART disabled in your kernel.

The end.


Sweet! That worked. Thanks!.
Back to top
View user's profile Send private message
Pond247
n00b
n00b


Joined: 19 Jun 2005
Posts: 22

PostPosted: Tue Jul 12, 2005 5:06 pm    Post subject: Reply with quote

This method just does not work for me :(
When I try to re-emerge the nvidia-kernel I get the following messages:
Quote:
tim tim # emerge nvidia-kernel
Calculating dependencies ...done!
>>> emerge (1 of 1) media-video/nvidia-kernel-1.0.6111-r3 to /
>>> md5 files ;-) nvidia-kernel-1.0.6111-r3.ebuild
>>> md5 files ;-) nvidia-kernel-1.0.6629-r1.ebuild
>>> md5 files ;-) nvidia-kernel-1.0.6629-r4.ebuild
>>> md5 files ;-) nvidia-kernel-1.0.7167-r1.ebuild
>>> md5 files ;-) nvidia-kernel-1.0.7174.ebuild
>>> md5 files ;-) nvidia-kernel-1.0.7664.ebuild
>>> md5 files ;-) nvidia-kernel-1.0.7667.ebuild
>>> md5 files ;-) files/digest-nvidia-kernel-1.0.6111-r3
>>> md5 files ;-) files/digest-nvidia-kernel-1.0.6629-r1
>>> md5 files ;-) files/digest-nvidia-kernel-1.0.6629-r4
>>> md5 files ;-) files/digest-nvidia-kernel-1.0.7167-r1
>>> md5 files ;-) files/digest-nvidia-kernel-1.0.7174
>>> md5 files ;-) files/digest-nvidia-kernel-1.0.7664
>>> md5 files ;-) files/nvidia
>>> md5 files ;-) files/digest-nvidia-kernel-1.0.7667
>>> md5 files ;-) files/1.0.6111/nv-pci_find_class.patch
>>> md5 files ;-) files/1.0.6111/conftest_koutput_includes.patch
>>> md5 files ;-) files/1.0.6111/power-suspend-2.6.9-changes.patch
>>> md5 files ;-) files/1.0.6111/vmalloc-reserve.patch
>>> md5 files ;-) files/1.0.6111/nv_enable_pci.patch
>>> md5 files ;-) files/1.0.6111/nv-remap-range.patch
>>> md5 files ;-) files/1.0.6111/inter_module_fix.patch
>>> md5 files ;-) files/1.0.6629/NVIDIA_kernel-1.0-6629-1161283.patch
>>> md5 files ;-) files/1.0.6629/nv-shutup-warnings.patch
>>> md5 files ;-) files/1.0.6629/NVIDIA_kernel-1.0-6629-1165235.patch
>>> md5 files ;-) files/1.0.6629/nv-disable-preempt-on-smp_processor_id.patch
>>> md5 files ;-) files/1.0.6629/conftest_koutput_includes.patch
>>> md5 files ;-) files/1.0.6629/nv-amd64-shutup-warnings.patch
>>> md5 files ;-) files/1.0.6629/NVIDIA_kernel-1.0-6629-1189413.patch
>>> md5 files ;-) files/1.0.6629/NVIDIA_kernel-1.0-6629-1175225.patch
>>> md5 files ;-) files/1.0.6629/nv-fix-memory-limit.patch
>>> md5 files ;-) files/1.0.6629/NVIDIA_kernel-1.0-6629-1162524.patch
>>> md5 files ;-) files/1.0.6629/NVIDIA_kernel-1.0-6629-agp_bridge_data.patch
>>> md5 files ;-) files/1.0.6629/nv-pgprot-speedup.patch
>>> md5 files ;-) files/1.0.6629/NVIDIA_kernel-1.0-6629-1155389.patch
>>> md5 files ;-) files/1.0.6629/nv-pgd_offset.patch
>>> md5 files ;-) files/1.0.6629/NVIDIA_kernel-1.0-6629-1182399.patch
>>> md5 files ;-) files/1.0.6629/NVIDIA_kernel-1.0-6629-1171869.patch
>>> md5 files ;-) files/1.0.6629/nv-vm_flags-no-VM_LOCKED.patch
>>> md5 files ;-) files/1.0.6629/NVIDIA_kernel-1.0-6629-1201042.diff
>>> md5 files ;-) files/1.0.7167/NVIDIA_kernel-1.0-7167-1233959.patch
>>> md5 files ;-) files/1.0.7167/NVIDIA_kernel-1.0-7167-disable-preempt-on-smp_processor_id.patch
>>> md5 files ;-) files/1.0.7167/NVIDIA_kernel-1.0-7167-1237815.patch
>>> md5 files ;-) files/1.0.7167/NVIDIA_kernel-1.0-7167-conftest-koutput-includes.patch
>>> md5 files ;-) files/1.0.7167/NVIDIA_kernel-1.0-7167-x86-shutup-warnings.patch
>>> md5 files ;-) files/1.0.7167/NVIDIA_kernel-1.0-7167-amd64-shutup-warnings.patch
>>> md5 src_uri ;-) NVIDIA-Linux-x86-1.0-6111-pkg1.run
* Determining the location of the kernel source code
* Found kernel source directory:
* /usr/src/linux
* Found sources for kernel version:
* 2.6.12-gentoo-r4
* Checking for MTRR support ... [ ok ]
>>> Unpacking source...
Creating directory NVIDIA-Linux-x86-1.0-6111-pkg1
Verifying archive integrity... OK
Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86 1.0-6111..........................................................................................................................................................................................................
* Applying 2.6 kernel patches
* Applying power-suspend-2.6.9-changes.patch ... [ ok ]
* Applying nv_enable_pci.patch ... [ ok ]
* Applying vmalloc-reserve.patch ... [ ok ]
* Applying nv-pci_find_class.patch ... [ ok ]
* Applying nv-remap-range.patch ... [ ok ]
* Applying conftest_koutput_includes.patch ... [ ok ]
* Applying inter_module_fix.patch ... [ ok ]
* Converting NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/Makefile.kbuild to use M= instead of SUBDIRS= ... [ ok ]
>>> Source unpacked.
* Preparing nvidia module

NVIDIA: calling KBUILD...
make[2]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule.
make -C /usr/src/linux \
KBUILD_SRC=/usr/src/linux-2.6.12-gentoo-r4 KBUILD_VERBOSE=1 \
KBUILD_CHECK= KBUILD_EXTMOD="/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv" \
-f /usr/src/linux-2.6.12-gentoo-r4/Makefile modules
mkdir -p /var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/.tmp_versions
make -f /usr/src/linux-2.6.12-gentoo-r4/scripts/Makefile.build obj=/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv
echo \#define NV_COMPILER \"`cc -v 2>&1 | tail -n 1`\" > /var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/nv_compiler.h
cc -Wp,-MD,/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/.nv.o.d -nostdinc -isystem /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5-20050130/include -D__KERNEL__ -Iinclude -Iinclude2 -I/usr/src/linux-2.6.12-gentoo-r4/include -I/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -ffreestanding -O2 -fomit-frame-pointer -pipe -msoft-float -mpreferred-stack-boundary=2 -march=i686 -I/usr/src/linux-2.6.12-gentoo-r4/include/asm-i386/mach-default -Iinclude/asm-i386/mach-default -I/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith -Wno-multichar -Werror -O -fno-common -MD -Wno-cast-qual -Wno-error -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=6111 -DNV_UNIX -DNV_LINUX -DNV_INT64_OK -DNVCPU_X86 -UDEBUG -U_DEBUG -DNDEBUG -DREMAP_PFN_RANGE -DNV_CHANGE_PAGE_ATTR_PRESENT -DNV_CLASS_SIMPLE_PRESENT -DHAVE_PCI_GET_CLASS -DMODULE -DKBUILD_BASENAME=nv -DKBUILD_MODNAME=nvidia -c -o /var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/nv.o /var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/nv.c
In file included from include/linux/list.h:7,
from include/linux/wait.h:23,
from include/asm/semaphore.h:41,
from include/linux/sched.h:20,
from include/linux/module.h:10,
from /var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/nv-linux.h:52,
from /var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/nv.c:14:
include/linux/prefetch.h: In function `prefetch_range':
include/linux/prefetch.h:62: warning: pointer of type `void *' used in arithmetic
In file included from include/linux/dmapool.h:14,
from include/linux/pci.h:864,
from /var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/nv-linux.h:75,
from /var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/nv.c:14:
include/asm/io.h: In function `check_signature':
include/asm/io.h:253: warning: wrong type argument to increment
/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/nv.c: In function `_get_phys_address':
/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/nv.c:2744: warning: passing arg 1 of `pmd_offset' from incompatible pointer type
cc -Wp,-MD,/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/.os-agp.o.d -nostdinc -isystem /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5-20050130/include -D__KERNEL__ -Iinclude -Iinclude2 -I/usr/src/linux-2.6.12-gentoo-r4/include -I/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -ffreestanding -O2 -fomit-frame-pointer -pipe -msoft-float -mpreferred-stack-boundary=2 -march=i686 -I/usr/src/linux-2.6.12-gentoo-r4/include/asm-i386/mach-default -Iinclude/asm-i386/mach-default -I/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith -Wno-multichar -Werror -O -fno-common -MD -Wno-cast-qual -Wno-error -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=6111 -DNV_UNIX -DNV_LINUX -DNV_INT64_OK -DNVCPU_X86 -UDEBUG -U_DEBUG -DNDEBUG -DREMAP_PFN_RANGE -DNV_CHANGE_PAGE_ATTR_PRESENT -DNV_CLASS_SIMPLE_PRESENT -DHAVE_PCI_GET_CLASS -DMODULE -DKBUILD_BASENAME=os_agp -DKBUILD_MODNAME=nvidia -c -o /var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/os-agp.o /var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/os-agp.c
In file included from include/linux/list.h:7,
from include/linux/wait.h:23,
from include/asm/semaphore.h:41,
from include/linux/sched.h:20,
from include/linux/module.h:10,
from /var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/nv-linux.h:52,
from /var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/os-agp.c:24:
include/linux/prefetch.h: In function `prefetch_range':
include/linux/prefetch.h:62: warning: pointer of type `void *' used in arithmetic
In file included from include/linux/dmapool.h:14,
from include/linux/pci.h:864,
from /var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/nv-linux.h:75,
from /var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/os-agp.c:24:
include/asm/io.h: In function `check_signature':
include/asm/io.h:253: warning: wrong type argument to increment
/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/os-agp.c: At top level:
/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/os-agp.c:48: error: syntax error before '*' token
/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/os-agp.c:48: warning: type defaults to `int' in declaration of `drm_agp_p'
/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/os-agp.c:48: warning: data definition has no type or storage class
/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/os-agp.c: In function `KernInitAGP':
/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/os-agp.c:76: warning: assignment discards qualifiers from pointer target type
/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/os-agp.c:85: error: request for member `acquire' in something not a structure or union
/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/os-agp.c:88: warning: `inter_module_put' is deprecated (declared at include/linux/module.h:568)
/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/os-agp.c:113: error: request for member `copy_info' in something not a structure or union
/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/os-agp.c:173: error: request for member `enable' in something not a structure or union
/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/os-agp.c:185: error: request for member `release' in something not a structure or union
/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/os-agp.c:186: warning: `inter_module_put' is deprecated (declared at include/linux/module.h:568)
/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/os-agp.c: In function `KernTeardownAGP':
/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/os-agp.c:216: error: request for member `release' in something not a structure or union
/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/os-agp.c:218: warning: `inter_module_put' is deprecated (declared at include/linux/module.h:568)
/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/os-agp.c: In function `KernAllocAGPPages':
/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/os-agp.c:265: error: request for member `allocate_memory' in something not a structure or union
/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/os-agp.c:273: error: request for member `bind_memory' in something not a structure or union
/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/os-agp.c:290: error: request for member `unbind_memory' in something not a structure or union
/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/os-agp.c:305: error: request for member `free_memory' in something not a structure or union
/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/os-agp.c: In function `KernMapAGPPages':
/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/os-agp.c:345: error: request for member `unbind_memory' in something not a structure or union
/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/os-agp.c: In function `KernFreeAGPPages':
/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/os-agp.c:444: error: request for member `unbind_memory' in something not a structure or union
/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/os-agp.c:445: error: request for member `free_memory' in something not a structure or union
make[4]: *** [/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/os-agp.o] Error 1
make[3]: *** [_module_/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv] Error 2
make[2]: *** [modules] Error 2
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [module] Error 1
make: *** [module] Error 2

!!! ERROR: media-video/nvidia-kernel-1.0.6111-r3 failed.
!!! Function linux-mod_src_compile, Line 491, Exitcode 2
!!! Unable to make IGNORE_CC_MISMATCH=yes V=1 SYSSRC=/usr/src/linux SYSOUT=/usr/src/linux clean module.
!!! If you need support, post the topmost build error, NOT this status message.

What did I do wrong?
Back to top
View user's profile Send private message
baeksu
l33t
l33t


Joined: 26 Sep 2004
Posts: 609
Location: Seoul, Korea

PostPosted: Tue Jul 12, 2005 10:55 pm    Post subject: Reply with quote

Pond247 wrote:
This method just does not work for me :(
When I try to re-emerge the nvidia-kernel I get the following messages:
Quote:

!!! ERROR: media-video/nvidia-kernel-1.0.6111-r3 failed.
!!! Function linux-mod_src_compile, Line 491, Exitcode 2
!!! Unable to make IGNORE_CC_MISMATCH=yes V=1 SYSSRC=/usr/src/linux SYSOUT=/usr/src/linux clean module.
!!! If you need support, post the topmost build error, NOT this status message.

What did I do wrong?

Is your /usr/src/linux pointing at your kernel sources? Also, you could try
Code:
FEATURES="-sandbox"  emerge nvidia-kernel

It has solved this error for some people.
_________________
Gnome:
1. A legendary being.
2. A never ending quest to make unix friendly to people who don't want unix and excruciating for those that do.
Back to top
View user's profile Send private message
Pond247
n00b
n00b


Joined: 19 Jun 2005
Posts: 22

PostPosted: Wed Jul 13, 2005 3:56 am    Post subject: Reply with quote

Yes the /usr/src/linux symlink is right and it worked up to 2.6.11-rx.
"-sanbox" did not solve the problem...
Back to top
View user's profile Send private message
baeksu
l33t
l33t


Joined: 26 Sep 2004
Posts: 609
Location: Seoul, Korea

PostPosted: Wed Jul 13, 2005 4:23 am    Post subject: Reply with quote

Pond247 wrote:
Yes the /usr/src/linux symlink is right and it worked up to 2.6.11-rx.
"-sanbox" did not solve the problem...

Sorry. I really don't know anything about these things. Those were just the two things that popped out from google first.

You wouldn't have AGPGART enabled in kernel, would you? Other than that, I really have no idea...:(
_________________
Gnome:
1. A legendary being.
2. A never ending quest to make unix friendly to people who don't want unix and excruciating for those that do.
Back to top
View user's profile Send private message
Pond247
n00b
n00b


Joined: 19 Jun 2005
Posts: 22

PostPosted: Wed Jul 13, 2005 4:34 am    Post subject: Reply with quote

Except "CONFIG_AGP=y" and "CONFIG_AGP_INTEL=y" (for floppy) I cannot find something containing "AGP" in my kernel config file.
Back to top
View user's profile Send private message
baeksu
l33t
l33t


Joined: 26 Sep 2004
Posts: 609
Location: Seoul, Korea

PostPosted: Wed Jul 13, 2005 4:47 am    Post subject: Reply with quote

Pond247 wrote:
Except "CONFIG_AGP=y" and "CONFIG_AGP_INTEL=y" (for floppy) I cannot find something containing "AGP" in my kernel config file.


It's both. Either change both to "is not set", or remove them through menuconfig (Device Drivers -> Character Devices -> /dev/agpgart). Remember to rebuild your kernel and reboot with it, otherwise modprobe will fail.

This nvidia patch removes the part that checks for AGP in the kernel, and that's why the emerge failed, I guess. Kernel AGP and nvidia have been incompatible since 2.6.11 with ck patches, it seems.

By the way, "CONFIG_AGP_INTEL=y" is for intel's graphics card, so you wouldn't need it anyway.
_________________
Gnome:
1. A legendary being.
2. A never ending quest to make unix friendly to people who don't want unix and excruciating for those that do.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Goto page Previous  1, 2, 3, 4  Next
Page 2 of 4

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum