![]() |
|
|
|
#1 | |
|
Registered User
Join Date: Sep 2003
Location: Tacoma, WA
Posts: 76
|
I get the following errors during compile time:
/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 arith metic In file included from include/linux/dmapool.h:14, from include/linux/pci.h:863, from /tmp/selfgz1878/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src /nv/nv-linux.h:75, from /tmp/selfgz1878/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src /nv/os-agp.c:24: include/asm/io.h: In function `check_signature': include/asm/io.h:242: warning: wrong type argument to increment /tmp/selfgz1878/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/os-agp.c: At top l evel: /tmp/selfgz1878/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/os-agp.c:48: error : parse error before '*' token /tmp/selfgz1878/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/os-agp.c:48: warni ng: type defaults to `int' in declaration of `drm_agp_p' /tmp/selfgz1878/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/os-agp.c:48: warni ng: data definition has no type or storage class /tmp/selfgz1878/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/os-agp.c: In funct ion `KernInitAGP': /tmp/selfgz1878/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/os-agp.c:76: warni ng: assignment discards qualifiers from pointer target type /tmp/selfgz1878/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/os-agp.c:85: error : request for member `acquire' in something not a structure or union /tmp/selfgz1878/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/os-agp.c:88: warni ng: `inter_module_put' is deprecated (declared at include/linux/module.h:578 ) /tmp/selfgz1878/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/os-agp.c:113: erro r: request for member `copy_info' in something not a structure or union /tmp/selfgz1878/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/os-agp.c:173: erro r: request for member `enable' in something not a structure or union /tmp/selfgz1878/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/os-agp.c:185: erro r: request for member `release' in something not a structure or union /tmp/selfgz1878/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/os-agp.c:186: warn ing: `inter_module_put' is deprecated (declared at include/linux/module.h:57 8) /tmp/selfgz1878/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/os-agp.c: In funct ion `KernTeardownAGP': /tmp/selfgz1878/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/os-agp.c:216: erro r: request for member `release' in something not a structure or union /tmp/selfgz1878/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/os-agp.c:218: warn ing: `inter_module_put' is deprecated (declared at include/linux/module.h:57 8) /tmp/selfgz1878/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/os-agp.c: In funct ion `KernAllocAGPPages': /tmp/selfgz1878/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/os-agp.c:265: erro r: request for member `allocate_memory' in something not a structure or unio n /tmp/selfgz1878/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/os-agp.c:273: erro r: request for member `bind_memory' in something not a structure or union /tmp/selfgz1878/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/os-agp.c:290: erro r: request for member `unbind_memory' in something not a structure or union /tmp/selfgz1878/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/os-agp.c:305: erro r: request for member `free_memory' in something not a structure or union /tmp/selfgz1878/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/os-agp.c: In funct ion `KernMapAGPPages': /tmp/selfgz1878/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/os-agp.c:345: erro r: request for member `unbind_memory' in something not a structure or union /tmp/selfgz1878/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/os-agp.c: In funct ion `KernFreeAGPPages': /tmp/selfgz1878/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/os-agp.c:444: erro r: request for member `unbind_memory' in something not a structure or union /tmp/selfgz1878/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/os-agp.c:445: erro r: request for member `free_memory' in something not a structure or union make[4]: *** [/tmp/selfgz1878/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/os-a gp.o] Error 1 make[3]: *** [_module_/tmp/selfgz1878/NVIDIA-Linux-x86-1.0-6629-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. Walt |
|
|
|
|
|
|
#2 | |
|
Registered User
Join Date: Jan 2005
Location: Rio de Janeiro, Brazil
Posts: 2
|
I got the same errors too
I'm using a Debian sid with official packages I can build nvidia modules with rc1 and all previous kernels. So this problem is specific to 2.6.11-rc2. You can check this build log above. |
|
|
|
|
| Sponsored Ads - Guests Only | ||
|
|
|
|
#3 |
|
Registered User
Join Date: Mar 2004
Posts: 21
|
From what I can see, it started with Ingo's changes in 2.6.11-rc1-bk9
2.6.11-rc1-bk8 still works ok for me with debian sarge. |
|
|
|
|
|
#4 |
|
#!/?*
Join Date: Oct 2004
Posts: 664
|
hmm, I made a quick & dirty hack for my SID.
BUT USE IT AT YOUR OWN RISK... (I don't have any AGP-Card anymore) I can only guarantee, a more or less clean compile... so either "#undef AGPGART" in os-agp.c (after the last #include" (don't forget to kick out all kernel agpgart modules, so nvidia uses it own NvAGP) (I've also made a patch... but it would be PCI-E only, since I haven't test it...) |
|
|
|
|
|
#5 |
|
NVIDIA Corporation
Join Date: Aug 2002
Posts: 3,573
|
The attached patches (used in combination with the Linux 2.6.10 patches posted here: http://www.nvnews.net/vbulletin/show...49&postcount=1) address this incompatibility; to enable the driver for use with Linux 2.6.11-rc2 and AGPGART, follow the instructions in the post referred to above and additionally apply the patches attached to this post. Disabling AGPGART should also eliminate the build failure, but since NvAGP may not work due to a known problem with Linux 2.6.11 pre-release kernels, operation may be limited to PCI mode.
|
|
|
|
|
|
#7 |
|
Registered User
Join Date: Mar 2004
Posts: 21
|
thanks zander, it's all working ok now =)
|
|
|
|
|
|
#8 |
|
Registered User
Join Date: Aug 2003
Posts: 24
|
No, the patches install fine, but restarting the x server gives a nice black screen (and nothing else). I applied the patches to 6629 (NVIDIA_kernel-1.0-6629-1189413.diff.txt and NVIDIA_kernel-1.0-6629-1201042.diff.txt), and that went ok. I compiled the new kernel and rebooted the computer into the new kernel. I then killed the x server and tried installing the new driver. It failed (complaining about AGP). I then pulled the AGP support out of my build script (commented out the following):
# CONFIG_AGP=m # CONFIG_AGP_ALI=m # CONFIG_AGP_ATI is not set # CONFIG_AGP_AMD=m # CONFIG_AGP_AMD64 is not set # CONFIG_AGP_INTEL=m # CONFIG_AGP_INTEL_MCH is not set # CONFIG_AGP_NVIDIA=m # CONFIG_AGP_SIS=m # CONFIG_AGP_SWORKS=m # CONFIG_AGP_VIA=m # CONFIG_AGP_EFFICEON is not set And I built the kernel again. The build went fine. I rebooted into the new kernel, and killed the x server (from trying to start, basically comment out #x:5:respawn:/etc/X11/prefdm -nodaemon in /etc/inittab and run init q), then ran the patched nvidia installer again. This time, it installed without any AGP messages (or actually any error messages of any kind), and silently installed. I then uncommented out the x line in /etc/inittab and ran init q. Where I would normally expect the nvidia splash screen (or sometimes it disappears really fast, and I only get the graphical login prompt), I only got a black screen. No video. I only applied the two patches, do I need to apply more? /proc/driver/nvidia/cards shows: Model: GeForce4 Ti 4200 IRQ: 10 Video BIOS: 04.25.00.30.00 Card Type: AGP (When I'm running 2.6.10-bk14 with the stock 6629 driver). Other info: Fast Writes: Supported SBA: Supported AGP Rates: 4x 2x 1x Registers: 0x1f000217:0x1f000104 Host Bridge: Silicon Integrated Systems [SiS] SiS645 Host & Memory & AGP Controller Fast Writes: Supported SBA: Supported AGP Rates: 4x 2x 1x Registers: 0x1f000217:0x00000104 Status: Enabled Driver: NVIDIA AGP Rate: 4x Fast Writes: Disabled SBA: Disabled Thanks,... |
|
|
|
|
|
#9 |
|
NVIDIA Corporation
Join Date: Aug 2002
Posts: 3,573
|
@snaboofypop: there is a known problem with the NvAGP driver included in current NVIDIA driver releases and 2.6.11 pre-release kernels; on these kernels, your options (until the NvAGP problem has been resolved) are: a) AGP with AGPGART (i.e. with Option "NvAGP" "3" (the default) or with Option "NvAGP" "2") and b) no AGP (i.e. PCI mode).
Last edited by zander; 01-23-05 at 10:02 AM. |
|
|
|
|
|
#10 |
|
Registered User
|
Works here with the patches and NvAGP 3 option
Rgds Saxa |
|
|
|
|
|
#11 |
|
Registered User
Join Date: Jan 2005
Posts: 3
|
I did exactly what you guys described, and also got the black screen (and also couldn't get the Nvidia AGP to work). So, I tried AGPGART, and it seems to work.
However, the kernel /proc interface says I have no AGP: Code:
$ cat /proc/driver/nvidia/agp/card Fast Writes: Supported SBA: Supported AGP Rates: 8x 4x Registers: 0x1f000e1b:0x00000000 Code:
(...) (**) NVIDIA(0): Option "NvAGP" "2" (**) NVIDIA(0): Option "NoRenderAccel" "off" (**) NVIDIA(0): Option "CursorShadow" "true" (**) NVIDIA(0): Option "NoRenderExtension" "off" (**) NVIDIA(0): Enabling experimental RENDER acceleration (**) NVIDIA(0): Enabling cursor shadow (**) NVIDIA(0): Use of AGPGART requested (...) Need more logs/config files? (Doesn't seem to me like that would help) |
|
|
|
|
|
#12 |
|
Registered User
Join Date: Jan 2005
Posts: 3
|
Ops... Sorry about the noise. It is indeed disabled:
Code:
$cat /proc/driver/nvidia/agp/status Status: Disabled AGP initialization failed, please check the ouput of the 'dmesg' command and/or your system log file for additional information on this problem. |
|
|
|
![]() |
| Shop Online | |
|
|
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|