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?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.
Er, yes - don't use 2.6.12?tuxian wrote:I also have the "inter_module_get" problem with gentoo-sources-2.6.12.
Is there any solution?
If you're using those specific drivers, otherwise not.wnelson wrote:Upgrading to a more recent kernel like 2.6.12 will get you possible updates to you existing drivers
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.wnelson wrote:providing for better performance and better memory management(which I have noticed).
What was the output of dmesg? Especially the end. Dmesg usually gives more meaningful information than just modprobe.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.
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.(BTW, for the inter module stuff I did a quick bit of hacking which worked ti 2.6.12.)
Code: Select all
--- 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.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: Select all
--- 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))
[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.]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?
Code: Select all
--- 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))
Sweet! That worked. Thanks!.[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.
What did I do wrong?tim tim # emerge nvidia-kernel
Calculating dependencies ...done!
>>> emerge (1 of 1) media-video/nvidia-kernel-1.0.6111-r3 to /
>>> md5 filesnvidia-kernel-1.0.6111-r3.ebuild
>>> md5 filesnvidia-kernel-1.0.6629-r1.ebuild
>>> md5 filesnvidia-kernel-1.0.6629-r4.ebuild
>>> md5 filesnvidia-kernel-1.0.7167-r1.ebuild
>>> md5 filesnvidia-kernel-1.0.7174.ebuild
>>> md5 filesnvidia-kernel-1.0.7664.ebuild
>>> md5 filesnvidia-kernel-1.0.7667.ebuild
>>> md5 filesfiles/digest-nvidia-kernel-1.0.6111-r3
>>> md5 filesfiles/digest-nvidia-kernel-1.0.6629-r1
>>> md5 filesfiles/digest-nvidia-kernel-1.0.6629-r4
>>> md5 filesfiles/digest-nvidia-kernel-1.0.7167-r1
>>> md5 filesfiles/digest-nvidia-kernel-1.0.7174
>>> md5 filesfiles/digest-nvidia-kernel-1.0.7664
>>> md5 filesfiles/nvidia
>>> md5 filesfiles/digest-nvidia-kernel-1.0.7667
>>> md5 filesfiles/1.0.6111/nv-pci_find_class.patch
>>> md5 filesfiles/1.0.6111/conftest_koutput_includes.patch
>>> md5 filesfiles/1.0.6111/power-suspend-2.6.9-changes.patch
>>> md5 filesfiles/1.0.6111/vmalloc-reserve.patch
>>> md5 filesfiles/1.0.6111/nv_enable_pci.patch
>>> md5 filesfiles/1.0.6111/nv-remap-range.patch
>>> md5 filesfiles/1.0.6111/inter_module_fix.patch
>>> md5 filesfiles/1.0.6629/NVIDIA_kernel-1.0-6629-1161283.patch
>>> md5 filesfiles/1.0.6629/nv-shutup-warnings.patch
>>> md5 filesfiles/1.0.6629/NVIDIA_kernel-1.0-6629-1165235.patch
>>> md5 filesfiles/1.0.6629/nv-disable-preempt-on-smp_processor_id.patch
>>> md5 filesfiles/1.0.6629/conftest_koutput_includes.patch
>>> md5 filesfiles/1.0.6629/nv-amd64-shutup-warnings.patch
>>> md5 filesfiles/1.0.6629/NVIDIA_kernel-1.0-6629-1189413.patch
>>> md5 filesfiles/1.0.6629/NVIDIA_kernel-1.0-6629-1175225.patch
>>> md5 filesfiles/1.0.6629/nv-fix-memory-limit.patch
>>> md5 filesfiles/1.0.6629/NVIDIA_kernel-1.0-6629-1162524.patch
>>> md5 filesfiles/1.0.6629/NVIDIA_kernel-1.0-6629-agp_bridge_data.patch
>>> md5 filesfiles/1.0.6629/nv-pgprot-speedup.patch
>>> md5 filesfiles/1.0.6629/NVIDIA_kernel-1.0-6629-1155389.patch
>>> md5 filesfiles/1.0.6629/nv-pgd_offset.patch
>>> md5 filesfiles/1.0.6629/NVIDIA_kernel-1.0-6629-1182399.patch
>>> md5 filesfiles/1.0.6629/NVIDIA_kernel-1.0-6629-1171869.patch
>>> md5 filesfiles/1.0.6629/nv-vm_flags-no-VM_LOCKED.patch
>>> md5 filesfiles/1.0.6629/NVIDIA_kernel-1.0-6629-1201042.diff
>>> md5 filesfiles/1.0.7167/NVIDIA_kernel-1.0-7167-1233959.patch
>>> md5 filesfiles/1.0.7167/NVIDIA_kernel-1.0-7167-disable-preempt-on-smp_processor_id.patch
>>> md5 filesfiles/1.0.7167/NVIDIA_kernel-1.0-7167-1237815.patch
>>> md5 filesfiles/1.0.7167/NVIDIA_kernel-1.0-7167-conftest-koutput-includes.patch
>>> md5 filesfiles/1.0.7167/NVIDIA_kernel-1.0-7167-x86-shutup-warnings.patch
>>> md5 filesfiles/1.0.7167/NVIDIA_kernel-1.0-7167-amd64-shutup-warnings.patch
>>> md5 src_uriNVIDIA-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.cwarning: 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.
Is your /usr/src/linux pointing at your kernel sources? Also, you could tryPond247 wrote:This method just does not work for me
When I try to re-emerge the nvidia-kernel I get the following messages:What did I do wrong?!!! 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.
Code: Select all
FEATURES="-sandbox" emerge nvidia-kernelSorry. I really don't know anything about these things. Those were just the two things that popped out from google first.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...
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.Pond247 wrote:Except "CONFIG_AGP=y" and "CONFIG_AGP_INTEL=y" (for floppy) I cannot find something containing "AGP" in my kernel config file.