Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
unable to merge Nvidia Drivers
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
ixion
l33t
l33t


Joined: 16 Dec 2002
Posts: 708

PostPosted: Sun Jul 20, 2003 4:00 am    Post subject: unable to merge Nvidia Drivers Reply with quote

When trying to emerge the NVIDIA kernel, I get the following:

bash-2.05b# make
gcc -c -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wpare
ntheses -Wpointer-arith -Wcast-qual -Wno-multichar -O -MD -D__KERNEL__ -DMODULE
-D_LOOSE_KERNEL_NAMES -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -
DMODULE -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=4363 -DNV_UN
IX -DNV_LINUX -DNV_INT64_OK -DNVCPU_X86 -DREMAP_PAGE_RANGE_4 -I. -I/
lib/modules/2.4.22_pre2-gss/build/include -Wno-cast-qual nv.c
In file included from nv.c:14:
nv-linux.h:24:31: linux/modversions.h: No such file or directory
In file included from /lib/modules/2.4.22_pre2-gss/build/include/linux/highmem.h
:5,
from /lib/modules/2.4.22_pre2-gss/build/include/linux/vmalloc.h
:8,
from nv-linux.h:72,
from nv.c:14:
/lib/modules/2.4.22_pre2-gss/build/include/asm/pgalloc.h: In function `get_pgd_s
low':
/lib/modules/2.4.22_pre2-gss/build/include/asm/pgalloc.h:64: `PAGE_OFFSET_RAW' u
ndeclared (first use in this function)
/lib/modules/2.4.22_pre2-gss/build/include/asm/pgalloc.h:64: (Each undeclared id
entifier is reported only once
/lib/modules/2.4.22_pre2-gss/build/include/asm/pgalloc.h:64: for each function i
t appears in.)
In file included from /lib/modules/2.4.22_pre2-gss/build/include/linux/vmalloc.h
:8,
from nv-linux.h:72,
from nv.c:14:
/lib/modules/2.4.22_pre2-gss/build/include/linux/highmem.h: In function `kmap':
/lib/modules/2.4.22_pre2-gss/build/include/linux/highmem.h:68: `PAGE_OFFSET_RAW'
undeclared (first use in this function)
In file included from /lib/modules/2.4.22_pre2-gss/build/include/asm/pci.h:40,
from /lib/modules/2.4.22_pre2-gss/build/include/linux/pci.h:654
,
from nv-linux.h:77,
from nv.c:14:
/lib/modules/2.4.22_pre2-gss/build/include/asm/io.h: In function `virt_to_phys':
/lib/modules/2.4.22_pre2-gss/build/include/asm/io.h:78: `PAGE_OFFSET_RAW' undecl
ared (first use in this function)
/lib/modules/2.4.22_pre2-gss/build/include/asm/io.h: In function `phys_to_virt':
/lib/modules/2.4.22_pre2-gss/build/include/asm/io.h:96: `PAGE_OFFSET_RAW' undecl
ared (first use in this function)
/lib/modules/2.4.22_pre2-gss/build/include/asm/io.h: In function `isa_check_sign
ature':
/lib/modules/2.4.22_pre2-gss/build/include/asm/io.h:268: `PAGE_OFFSET_RAW' undec
lared (first use in this function)
In file included from nv.c:14:
nv-linux.h: In function `NV_SET_AMD_PAGE_ATTRIB':
nv-linux.h:234: `PAGE_OFFSET_RAW' undeclared (first use in this function)
nv-linux.h: In function `NV_CLEAR_AMD_PAGE_ATTRIB':
nv-linux.h:243: `PAGE_OFFSET_RAW' undeclared (first use in this function)
nv.c: In function `nvos_malloc_pages':
nv.c:373: `PAGE_OFFSET_RAW' undeclared (first use in this function)
nv.c: In function `nvos_unlock_pages':
nv.c:406: `PAGE_OFFSET_RAW' undeclared (first use in this function)
nv.c: In function `nv_find_kernel_mapping':
nv.c:2091: `PAGE_OFFSET_RAW' undeclared (first use in this function)
nv.c: In function `nv_get_phys_address':
nv.c:2183: `PAGE_OFFSET_RAW' undeclared (first use in this function)
nv.c: In function `nv_alloc_pages':
nv.c:2348: `PAGE_OFFSET_RAW' undeclared (first use in this function)
make: *** [nv.o] Error 1


I have tried through 'emerge' and tried to 'make' manually with the same result. I have a Geforce4 Ti4200 and an Abit NForce2 Motherboard. I can run X with VESA drivers, the graphics card seems good. I can get VESA framebuffer to work just fine with LILO. I know there's some special hoops to jump through with the new NForce boards, but I don't know what they are.

I'm also having trouble emerging the Nforce-net with this error:

bash-2.05b# emerge nforce-net
Calculating dependencies ...done!
>>> emerge (1 of 1) net-misc/nforce-net-1.0.0261-r1 to /
>>> md5 src_uri ;-) NVIDIA_nforce-1.0-0261.tar.gz
>>> Unpacking source...
>>> Unpacking NVIDIA_nforce-1.0-0261.tar.gz to /var/tmp/portage/nforce-net-1.0.0261-r1/work
>>> Source unpacked.
gcc -c -Wall -DLINUX -DMODULE -DEXPORT_SYMTAB -D__KERNEL__ -O -Wstrict-prototypes -DCONFIG_PM -fno-strict-aliasing -mpreferred-stack-boundary=2 -march=i686 -falign-functions=4 -DMODULE -I/usr/src/linux/include nvnet.c
In file included from nvnet.h:20,
from nvnet.c:21:
/usr/src/linux/include/linux/module.h:21:34: linux/modversions.h: No such file or directory
In file included from /usr/src/linux/include/linux/highmem.h:5,
from /usr/src/linux/include/linux/vmalloc.h:8,
from /usr/src/linux/include/asm/io.h:47,
from /usr/src/linux/include/asm/pci.h:40,
from /usr/src/linux/include/linux/pci.h:654,
from nvnet.h:32,
from nvnet.c:21:
/usr/src/linux/include/asm/pgalloc.h: In function `get_pgd_slow':
/usr/src/linux/include/asm/pgalloc.h:64: `PAGE_OFFSET_RAW' undeclared (first use in this function)
/usr/src/linux/include/asm/pgalloc.h:64: (Each undeclared identifier is reported only once
/usr/src/linux/include/asm/pgalloc.h:64: for each function it appears in.)
In file included from /usr/src/linux/include/linux/vmalloc.h:8,
from /usr/src/linux/include/asm/io.h:47,
from /usr/src/linux/include/asm/pci.h:40,
from /usr/src/linux/include/linux/pci.h:654,
from nvnet.h:32,
from nvnet.c:21:
/usr/src/linux/include/linux/highmem.h: In function `kmap':
/usr/src/linux/include/linux/highmem.h:68: `PAGE_OFFSET_RAW' undeclared (first use in this function)
In file included from /usr/src/linux/include/asm/pci.h:40,
from /usr/src/linux/include/linux/pci.h:654,
from nvnet.h:32,
from nvnet.c:21:
/usr/src/linux/include/asm/io.h: In function `virt_to_phys':
/usr/src/linux/include/asm/io.h:78: `PAGE_OFFSET_RAW' undeclared (first use in this function)
/usr/src/linux/include/asm/io.h: In function `phys_to_virt':
/usr/src/linux/include/asm/io.h:96: `PAGE_OFFSET_RAW' undeclared (first use in this function)
/usr/src/linux/include/asm/io.h: In function `isa_check_signature':
/usr/src/linux/include/asm/io.h:268: `PAGE_OFFSET_RAW' undeclared (first use in this function)
make: *** [nvnet.o] Error 1

!!! ERROR: net-misc/nforce-net-1.0.0261-r1 failed.
!!! Function src_compile, Line 31, Exitcode 2
!!! (no error message)


_________________
only the paranoid survive
Back to top
View user's profile Send private message
Z?
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jan 2003
Posts: 118
Location: Waterloo, Ontario, Canada

PostPosted: Sun Jul 20, 2003 4:03 am    Post subject: Reply with quote

1) Make sure that /usr/src/linux is pointing to the running kernel's sources
2) cd /usr/src/linux; make menuconfig

That should create modversions.h, and (hopefully) get you a little closer to compiling the drivers.
Back to top
View user's profile Send private message
ixion
l33t
l33t


Joined: 16 Dec 2002
Posts: 708

PostPosted: Sun Jul 20, 2003 4:05 am    Post subject: Reply with quote

unfortunately, I've ended up with the same results.
_________________
only the paranoid survive
Back to top
View user's profile Send private message
marter
n00b
n00b


Joined: 29 Jun 2003
Posts: 37

PostPosted: Sun Jul 20, 2003 5:28 am    Post subject: Reply with quote

i downloaded the drivers from nvidia site

just a script you run it, compiles the drivers and modules
change a few things in you XF86Config file

and modprobe nvidia
Back to top
View user's profile Send private message
ixion
l33t
l33t


Joined: 16 Dec 2002
Posts: 708

PostPosted: Mon Jul 21, 2003 4:09 am    Post subject: Reply with quote

turns out it was because I was using the gs-sources kernel. Switched to gentoo-sources, and everything installed fine, although the nvaudio module gives me no audio. I810_audio works just fine. Nforce-net seems to work since I'm detecting two NICs now, but I haven't tested the NIC, yet.

Oh and my graphics don't seem to be up to par. Glxgears reports a 7000 FPS, but when I play one of my favorite games (Descent3) I get 50 fps most of the time with an occasional jump to 200 and maybe a 500. With my old KT266 system with an Athlon XP 1700, I was easily averaging 300-500 fps and never dropped below 250-300. This new nforce2 system with an Athlon XP 2500 seems slower.

I am going to emerge the nvidia drivers (had installed them manually) and see if an 'opengl-update nvidia' will fix the problem. I could not successfully execute opengl-update nvidia with installing the drivers manually.

EDIT: emerging nvidia drivers and running 'openl-update nvidia' made little difference. What did make the difference I was looking for was switching from Enlightenment to Fluxbox and not running Gkrellm. I saw an average of 300-500 fps in Descent3, and even saw 1000 fps a couple times!

I do still have the audio issue. Is this something I should pursue (ie, nvaudio does actually work with NForce 2.0 Audio Chipsets), or should I just be stuck with 2 channel i810_audio until an update to nvaudio is developed?
_________________
only the paranoid survive
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
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