PDA

View Full Version : Help with geForce 4 with Knoppix 3.3



raduen
11-12-2003, 03:41 PM
I'm a Newbie....

I did try everything on this forum , i'm still getting errors.

last thing i did was NVIDIA_kernel-1.0-4191 compile or make...

NVIDIA_kernel-1.0-4191# make install
/usr/bin/gcc-2.95 -c -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -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=4191 -DNV_UNIX -DNV_LINUX -DNV_INT64_OK -DNVCPU_X86 -I. -I/usr/src/linux/include -Wno-cast-qual nv.c
In file included from /usr/include/asm/semaphore.h:42,
from /usr/src/linux/include/linux/fs.h:205,
from /usr/src/linux/include/linux/capability.h:17,
from /usr/src/linux/include/linux/binfmts.h:5,
from /usr/src/linux/include/linux/sched.h:9,
from /usr/src/linux/include/linux/mm.h:4,
from /usr/src/linux/include/linux/slab.h:14,
from nv-linux.h:63,
from nv.c:14:
/usr/src/linux/include/linux/rwsem.h: In function `down_read_trylock':
/usr/src/linux/include/linux/rwsem.h:57: warning: implicit declaration of function `__down_read_trylock'
/usr/src/linux/include/linux/rwsem.h: In function `down_write_trylock':
/usr/src/linux/include/linux/rwsem.h:79: warning: implicit declaration of function `__down_write_trylock'
In file included from /usr/src/linux/include/linux/mm.h:4,
from /usr/src/linux/include/linux/slab.h:14,
from nv-linux.h:63,
from nv.c:14:
/usr/src/linux/include/linux/sched.h: At top level:
/usr/src/linux/include/linux/sched.h:280: parse error before `extern'
/usr/src/linux/include/linux/sched.h:280: warning: no semicolon at end of struct or union
In file included from /usr/src/linux/include/linux/mm.h:4,
from /usr/src/linux/include/linux/slab.h:14,
from nv-linux.h:63,
from nv.c:14:
/usr/src/linux/include/linux/sched.h: In function `mmdrop':
/usr/src/linux/include/linux/sched.h:837: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/sched.h: At top level:
/usr/src/linux/include/linux/sched.h:875: conflicting types for `kernel_thread'
/usr/include/asm/processor.h:436: previous declaration of `kernel_thread'
/usr/src/linux/include/linux/sched.h:1067: warning: This file contains more `{'s than `}'s.
In file included from /usr/src/linux/include/linux/slab.h:14,
from nv-linux.h:63,
from nv.c:14:
/usr/src/linux/include/linux/mm.h: In function `__vma_unlink':
/usr/src/linux/include/linux/mm.h:582: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/mm.h:583: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/mm.h:584: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/slab.h: At top level:
/usr/src/linux/include/linux/mm.h:711: warning: This file contains more `{'s than `}'s.
In file included from nv-linux.h:63,
from nv.c:14:
/usr/src/linux/include/linux/slab.h:81: warning: This file contains more `{'s than `}'s.
In file included from nv.c:14:
nv-linux.h:382: warning: This file contains more `{'s than `}'s.
nv.c: In function `nv_get_phys_address':
nv.c:2233: invalid use of undefined type `struct mm_struct'
nv.c:2235: dereferencing pointer to incomplete type
nv.c:2218: warning: `pg_dir' might be used uninitialized in this function
make: *** [nv.o] Error 1

I allso tried a newer version file: NVIDIA_kernel-1.0-4363

this is the uotput:
/usr/bin/gcc-2.95 -c -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -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_UNIX -DNV_LINUX -DNV_INT64_OK -DNVCPU_X86 -I. -I/usr/src/linux/include -Wno-cast-qual nv.c
In file included from nv.c:14:
nv-linux.h:167: #error "Couldn't determine number of arguments expected by remap_page_range!"
make: *** [nv.o] Error 1

Please help....

Stephen
11-12-2003, 07:06 PM
Have you tried the latest driver the NVIDIA-Linux-x86-1.0-4496-pkg2.run? It will compile the drivers and install them by running the script you can get it here (http://www.nvidia.com/object/linux_display_ia32_1.0-4496).

raduen
11-12-2003, 09:31 PM
Thanks for your fast replay...

I did try NVIDIA-Linux-x86-1.0-4496-pkg2.run but still got error.
Error: No precompiled kernel found, and that it's going to try to download one, then error no precompiled kernel found, then progress bar building kernel then a error Error building NVIDIA kernel .....

Stephen
11-12-2003, 10:24 PM
Thanks for your fast replay...

I did try NVIDIA-Linux-x86-1.0-4496-pkg2.run but still got error.
Error: No precompiled kernel found, and that it's going to try to download one, then error no precompiled kernel found, then progress bar building kernel then a error Error building NVIDIA kernel .....

What is the exact error you get? Also you should just before you compile export CC=/usr/bin/gcc-2.95 and check to make sure the kernel headers are linked to the /usr/src/linux directory what it looks like on my machine:


[05:29 PM Wed Nov 12: stephen @ ~]
>$ ll /usr/src/linux
lrwxrwxrwx 1 root src 37 2003-10-20 05:07 /usr/src/linux -> /usr/src/kernel-headers-2.4.22.031019

Yours would of course be linked to the kernel headers you have.

raduen
11-13-2003, 08:40 PM
this is the eoor when i do a make install

export cc=/usr/bin/gcc-2.95
root@silverdev:/usr/src/NVIDIA_kernel-1.0-4191# export IGNORE_CC_MISMATCH=1
root@silverdev:/usr/src/NVIDIA_kernel-1.0-4191# make install
/usr/bin/gcc-2.95 -c -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -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=4191 -DNV_UNIX -DNV_LINUX -DNV_INT64_OK -DNVCPU_X86 -I. -I/usr/src/linux/include -Wno-cast-qual nv.c
In file included from /usr/src/linux/include/linux/mm.h:4,
from /usr/src/linux/include/linux/slab.h:14,
from nv-linux.h:63,
from nv.c:14:
/usr/src/linux/include/linux/sched.h:280: parse error before `extern'
/usr/src/linux/include/linux/sched.h:280: warning: no semicolon at end of struct or union
In file included from /usr/src/linux/include/linux/mm.h:4,
from /usr/src/linux/include/linux/slab.h:14,
from nv-linux.h:63,
from nv.c:14:
/usr/src/linux/include/linux/sched.h: In function `mmdrop':
/usr/src/linux/include/linux/sched.h:837: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/mm.h: At top level:
/usr/src/linux/include/linux/sched.h:1067: warning: This file contains more `{'s than `}'s.
In file included from /usr/src/linux/include/linux/slab.h:14,
from nv-linux.h:63,
from nv.c:14:
/usr/src/linux/include/linux/mm.h: In function `__vma_unlink':
/usr/src/linux/include/linux/mm.h:582: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/mm.h:583: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/mm.h:584: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/slab.h: At top level:
/usr/src/linux/include/linux/mm.h:711: warning: This file contains more `{'s than `}'s.
In file included from nv-linux.h:63,
from nv.c:14:
/usr/src/linux/include/linux/slab.h:81: warning: This file contains more `{'s than `}'s.
In file included from nv.c:14:
nv-linux.h:382: warning: This file contains more `{'s than `}'s.
nv.c: In function `nv_get_phys_address':
nv.c:2233: invalid use of undefined type `struct mm_struct'
nv.c:2235: dereferencing pointer to incomplete type
nv.c:2218: warning: `pg_dir' might be used uninitialized in this function
make: *** [nv.o] Error 1

And when i run NVIDIA-Linux-x86-1.0-4496-pkg2.run i get an error's saying: Precompiled Kernel not found. then i hit ok, then comes an error saying: Error building NVIDIA drivers.