Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux? |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
09-02-2006, 05:39 PM
|
#31
|
Senior Member
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170
|
Quote:
Originally Posted by LonelyTraveler
Now that I upgrade my kernel my x didn't want to start. I fixed it temporarily by going back to the nv driver. On the debain website I see a nvidia-kernel-2.6.16-2-686 but when I apt-cache search nvidia-kernel-2.6.16-2-686 it does not find anything. And this is after I apt-get update. What to do?
|
See what apt-cache policy nvidia-kernel-source shows you then make sure module-assistant and build-essential are installed then.
Code:
m-a prepare
m-a a-i -t -i -f nvidia
This should download the source package it showed you in the policy command prepare the install by downloading the headers for the kernel and linking them properly once this is done it will build and install new nvidia modules, you need to install the nvidia-glx and nvidia-kernel-common packages if not automatically pulled in with possibly the nvidia-glx-dev, nvidia-settings as well.
Edit: Typo.
|
|
|
09-02-2006, 05:47 PM
|
#32
|
Member
Registered: Mar 2005
Location: Cape Town, South Africa
Distribution: Ubuntu 8.10
Posts: 374
Original Poster
Rep:
|
Does not find anything for my current kernel. I added the testing repository and it found it. Should I install that one rather?
|
|
|
09-02-2006, 06:10 PM
|
#33
|
Senior Member
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170
|
Quote:
Originally Posted by LonelyTraveler
Does not find anything for my current kernel. I added the testing repository and it found it. Should I install that one rather?
|
Your probably better off building your own that kernel module in testing may not match the backport one does it should anything for the nvidia-kernel-source available.
|
|
|
09-02-2006, 08:21 PM
|
#34
|
Member
Registered: Mar 2005
Location: Cape Town, South Africa
Distribution: Ubuntu 8.10
Posts: 374
Original Poster
Rep:
|
m-a a-i -t -i -f nvidia asked me to install the linux-headers 2.6.16-2-686 witch I did. I then ran m-a a-i -t -i -f again, but the built failed. Details of the building that failed:
Code:
/usr/bin/make -f debian/rules clean
make[1]: Entering directory `/usr/src/modules/nvidia-kernel'
# select which makefile to use.
rm -f /usr/src/modules/nvidia-kernel/nv/Makefile || true
if [ 6 = 6 ]; then \
cd /usr/src/modules/nvidia-kernel/nv ; \
ln -s Makefile.kbuild Makefile ; \
cd .. ; \
if [ 0 = 1 ] ; then \
dpatch apply 04_minion ; \
fi ; \
if [ 0 = 1 ]; then \
dpatch apply 01_sysfs ; \
dpatch status 01_sysfs >patch-stamp ; \
dpatch apply 02_pcialias ; \
dpatch status 02_pcialias >>patch-stamp ; \
fi ; \
fi
if [ 6 = 4 ]; then \
cd /usr/src/modules/nvidia-kernel/nv ; \
ln -s Makefile.nvidia Makefile ; \
cd .. ; \
fi
if [ -e patch-stamp ]; then \
dpatch deapply-all ; \
rm -rf patch-stamp debian/patched ; \
fi
if [ -f /usr/src/modules/nvidia-kernel/debian/control.template ]; then \
cp /usr/src/modules/nvidia-kernel/debian/control.template /usr/src/modules/nvidia-kernel/debian/control; \
fi
dh_testroot
rm -f build-stamp configure-stamp
/usr/bin/make clean SYSSRC=/usr/src/linux-headers-2.6.16-2-686 -C /usr/src/modules/nvidia-kernel/nv -f Makefile
make[2]: Entering directory `/usr/src/modules/nvidia-kernel/nv'
rm -f -f nv.o nv-vm.o os-agp.o os-interface.o os-registry.o nv.o nv-vm.o os-agp.o os-interface.o os-registry.o nvidia.mod.o
rm -f -f build-in.o nv-linux.o *.d .*.{cmd,flags}
rm -f -f nvidia.{o,ko,mod.{o,c}} nv_compiler.h *~
rm -f -rf .tmp_versions
make[2]: Leaving directory `/usr/src/modules/nvidia-kernel/nv'
rm -f /usr/src/modules/nvidia-kernel/nv/Makefile || true;
rm /usr/src/modules/nvidia-kernel/nv/gcc-check
rm /usr/src/modules/nvidia-kernel/nv/cc-sanity-check
dh_clean
rm /usr/src/modules/nvidia-kernel/debian/control
rm /usr/src/modules/nvidia-kernel/debian/dirs
rm /usr/src/modules/nvidia-kernel/debian/override
make[1]: Leaving directory `/usr/src/modules/nvidia-kernel'
echo "ROOT_CMD = "
ROOT_CMD =
/usr/bin/make -f debian/rules binary_modules
make[1]: Entering directory `/usr/src/modules/nvidia-kernel'
# select which makefile to use.
rm -f /usr/src/modules/nvidia-kernel/nv/Makefile || true
if [ 6 = 6 ]; then \
cd /usr/src/modules/nvidia-kernel/nv ; \
ln -s Makefile.kbuild Makefile ; \
cd .. ; \
if [ 0 = 1 ] ; then \
dpatch apply 04_minion ; \
fi ; \
if [ 0 = 1 ]; then \
dpatch apply 01_sysfs ; \
dpatch status 01_sysfs >patch-stamp ; \
dpatch apply 02_pcialias ; \
dpatch status 02_pcialias >>patch-stamp ; \
fi ; \
fi
if [ 6 = 4 ]; then \
cd /usr/src/modules/nvidia-kernel/nv ; \
ln -s Makefile.nvidia Makefile ; \
cd .. ; \
fi
#nothing here anymore
touch configure-stamp
if [ -f /usr/src/modules/nvidia-kernel/debian/control.template ]; then \
cp /usr/src/modules/nvidia-kernel/debian/control.template /usr/src/modules/nvidia-kernel/debian/control; \
fi
dh_testdir
dh_testroot
PATCHLEVEL = 6
Kernel compiler version : 3.3.5
Detected compiler version : 3.3.5
Using compiler gcc-3.3 version 3.3.5
touch /usr/src/modules/nvidia-kernel/nv/gcc-check
touch /usr/src/modules/nvidia-kernel/nv/cc-sanity-check
## Main Make ##
IGNORE_CC_MISMATCH=1 CC="gcc-3.3" /usr/bin/make -C /usr/src/modules/nvidia-kernel/nv -f Makefile SYSSRC=/usr/src/linux-headers-2.6.16-2-686 KBUILD_PARAMS="-C /usr/src/linux-headers-2.6.16-2-686 SUBDIRS=/usr/src/modules/nvidia-kernel/nv" module;
make[2]: Entering directory `/usr/src/modules/nvidia-kernel/nv'
NVIDIA: calling KBUILD...
make CC=gcc-3.3 -C /usr/src/linux-headers-2.6.16-2-686 SUBDIRS=/usr/src/modules/nvidia-kernel/nv modules
make[3]: Entering directory `/usr/src/linux-headers-2.6.16-2-686'
echo \#define NV_COMPILER \"`gcc-3.3 -v 2>&1 | tail -n 1`\" > /usr/src/modules/nvidia-kernel/nv/nv_compiler.h
CC [M] /usr/src/modules/nvidia-kernel/nv/nv.o
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 /usr/src/modules/nvidia-kernel/nv/nv-linux.h:46,
from /usr/src/modules/nvidia-kernel/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:522,
from /usr/src/modules/nvidia-kernel/nv/nv-linux.h:69,
from /usr/src/modules/nvidia-kernel/nv/nv.c:14:
include/asm/io.h: In function `check_signature':
include/asm/io.h:258: warning: wrong type argument to increment
In file included from /usr/src/modules/nvidia-kernel/nv/nv.c:14:
/usr/src/modules/nvidia-kernel/nv/nv-linux.h:241:5: warning: "NV_ENABLE_MEM_TRACKING" is not defined
/usr/src/modules/nvidia-kernel/nv/nv-linux.h:269:5: warning: "NV_ENABLE_MEM_TRACKING" is not defined
/usr/src/modules/nvidia-kernel/nv/nv-linux.h:691:2: warning: #warning "conftest.sh failed, assuming remap_page_range(4)!"
/usr/src/modules/nvidia-kernel/nv/nv.c: At top level:
/usr/src/modules/nvidia-kernel/nv/nv.c:201: warning: initialization from incompatible pointer type
/usr/src/modules/nvidia-kernel/nv/nv.c:223:5: warning: "NV_ENABLE_MEM_TRACKING" is not defined
/usr/src/modules/nvidia-kernel/nv/nv.c: In function `nvos_get_agp_device_by_class':
/usr/src/modules/nvidia-kernel/nv/nv.c:404: warning: implicit declaration of function `pci_find_class'
/usr/src/modules/nvidia-kernel/nv/nv.c:404: warning: assignment makes pointer from integer without a cast
/usr/src/modules/nvidia-kernel/nv/nv.c:418: warning: assignment makes pointer from integer without a cast
/usr/src/modules/nvidia-kernel/nv/nv.c: In function `nvidia_init_module':
/usr/src/modules/nvidia-kernel/nv/nv.c:970: warning: implicit declaration of function `pm_register'
/usr/src/modules/nvidia-kernel/nv/nv.c:970: warning: assignment makes pointer from integer without a cast
/usr/src/modules/nvidia-kernel/nv/nv.c:1036: warning: implicit declaration of function `pm_unregister'
/usr/src/modules/nvidia-kernel/nv/nv.c:1167:5: warning: "NV_ENABLE_MEM_TRACKING" is not defined
/usr/src/modules/nvidia-kernel/nv/nv.c: In function `nv_kern_mmap':
/usr/src/modules/nvidia-kernel/nv/nv.c:1541: warning: implicit declaration of function `remap_page_range'
/usr/src/modules/nvidia-kernel/nv/nv.c: In function `nvos_count_devices':
/usr/src/modules/nvidia-kernel/nv/nv.c:3232: warning: assignment makes pointer from integer without a cast
/usr/src/modules/nvidia-kernel/nv/nv.c:3237: warning: assignment makes pointer from integer without a cast
CC [M] /usr/src/modules/nvidia-kernel/nv/nv-vm.o
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 /usr/src/modules/nvidia-kernel/nv/nv-linux.h:46,
from /usr/src/modules/nvidia-kernel/nv/nv-vm.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:522,
from /usr/src/modules/nvidia-kernel/nv/nv-linux.h:69,
from /usr/src/modules/nvidia-kernel/nv/nv-vm.c:14:
include/asm/io.h: In function `check_signature':
include/asm/io.h:258: warning: wrong type argument to increment
In file included from /usr/src/modules/nvidia-kernel/nv/nv-vm.c:14:
/usr/src/modules/nvidia-kernel/nv/nv-linux.h:241:5: warning: "NV_ENABLE_MEM_TRACKING" is not defined
/usr/src/modules/nvidia-kernel/nv/nv-linux.h:269:5: warning: "NV_ENABLE_MEM_TRACKING" is not defined
/usr/src/modules/nvidia-kernel/nv/nv-linux.h:691:2: warning: #warning "conftest.sh failed, assuming remap_page_range(4)!"
CC [M] /usr/src/modules/nvidia-kernel/nv/os-agp.o
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 /usr/src/modules/nvidia-kernel/nv/nv-linux.h:46,
from /usr/src/modules/nvidia-kernel/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:522,
from /usr/src/modules/nvidia-kernel/nv/nv-linux.h:69,
from /usr/src/modules/nvidia-kernel/nv/os-agp.c:24:
include/asm/io.h: In function `check_signature':
include/asm/io.h:258: warning: wrong type argument to increment
In file included from /usr/src/modules/nvidia-kernel/nv/os-agp.c:24:
/usr/src/modules/nvidia-kernel/nv/nv-linux.h:241:5: warning: "NV_ENABLE_MEM_TRACKING" is not defined
/usr/src/modules/nvidia-kernel/nv/nv-linux.h:269:5: warning: "NV_ENABLE_MEM_TRACKING" is not defined
/usr/src/modules/nvidia-kernel/nv/nv-linux.h:691:2: warning: #warning "conftest.sh failed, assuming remap_page_range(4)!"
CC [M] /usr/src/modules/nvidia-kernel/nv/os-interface.o
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 /usr/src/modules/nvidia-kernel/nv/nv-linux.h:46,
from /usr/src/modules/nvidia-kernel/nv/os-interface.c:26:
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:522,
from /usr/src/modules/nvidia-kernel/nv/nv-linux.h:69,
from /usr/src/modules/nvidia-kernel/nv/os-interface.c:26:
include/asm/io.h: In function `check_signature':
include/asm/io.h:258: warning: wrong type argument to increment
In file included from /usr/src/modules/nvidia-kernel/nv/os-interface.c:26:
/usr/src/modules/nvidia-kernel/nv/nv-linux.h:241:5: warning: "NV_ENABLE_MEM_TRACKING" is not defined
/usr/src/modules/nvidia-kernel/nv/nv-linux.h:269:5: warning: "NV_ENABLE_MEM_TRACKING" is not defined
/usr/src/modules/nvidia-kernel/nv/nv-linux.h:691:2: warning: #warning "conftest.sh failed, assuming remap_page_range(4)!"
/usr/src/modules/nvidia-kernel/nv/os-interface.c:667:5: warning: "DEBUG" is not defined
/usr/src/modules/nvidia-kernel/nv/os-interface.c:679:5: warning: "DEBUG" is not defined
/usr/src/modules/nvidia-kernel/nv/os-interface.c: In function `os_set_mlock_capability':
/usr/src/modules/nvidia-kernel/nv/os-interface.c:1262: error: structure has no member named `rlim'
make[4]: *** [/usr/src/modules/nvidia-kernel/nv/os-interface.o] Error 1
make[3]: *** [_module_/usr/src/modules/nvidia-kernel/nv] Error 2
make[3]: Leaving directory `/usr/src/linux-headers-2.6.16-2-686'
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[2]: *** [module] Error 1
make[2]: Leaving directory `/usr/src/modules/nvidia-kernel/nv'
make[1]: *** [build-stamp] Error 2
make[1]: Leaving directory `/usr/src/modules/nvidia-kernel'
make: *** [kdist_image] Error 2
After running m-a... the first line that came up was: Warning, /usr/src/linux-headers-2.6.16-2 seems to contain unconfigured
kernel source!
Last edited by CrownAmbassador; 09-02-2006 at 08:23 PM.
|
|
|
09-02-2006, 08:35 PM
|
#35
|
Member
Registered: Mar 2005
Location: Cape Town, South Africa
Distribution: Ubuntu 8.10
Posts: 374
Original Poster
Rep:
|
You said something about linking the headers. How do you do this?
|
|
|
09-02-2006, 08:42 PM
|
#36
|
Senior Member
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170
|
Quote:
Originally Posted by LonelyTraveler
m-a a-i -t -i -f nvidia asked me to install the linux-headers 2.6.16-2-686 witch I did. I then ran m-a a-i -t -i -f again, but the built failed. Details of the building that failed:
Code:
/usr/bin/make -f debian/rules clean
make[1]: Entering directory `/usr/src/modules/nvidia-kernel'
# select which makefile to use.
rm -f /usr/src/modules/nvidia-kernel/nv/Makefile || true
if [ 6 = 6 ]; then \
cd /usr/src/modules/nvidia-kernel/nv ; \
ln -s Makefile.kbuild Makefile ; \
cd .. ; \
if [ 0 = 1 ] ; then \
dpatch apply 04_minion ; \
fi ; \
if [ 0 = 1 ]; then \
dpatch apply 01_sysfs ; \
dpatch status 01_sysfs >patch-stamp ; \
dpatch apply 02_pcialias ; \
dpatch status 02_pcialias >>patch-stamp ; \
fi ; \
fi
if [ 6 = 4 ]; then \
cd /usr/src/modules/nvidia-kernel/nv ; \
ln -s Makefile.nvidia Makefile ; \
cd .. ; \
fi
if [ -e patch-stamp ]; then \
dpatch deapply-all ; \
rm -rf patch-stamp debian/patched ; \
fi
if [ -f /usr/src/modules/nvidia-kernel/debian/control.template ]; then \
cp /usr/src/modules/nvidia-kernel/debian/control.template /usr/src/modules/nvidia-kernel/debian/control; \
fi
dh_testroot
rm -f build-stamp configure-stamp
/usr/bin/make clean SYSSRC=/usr/src/linux-headers-2.6.16-2-686 -C /usr/src/modules/nvidia-kernel/nv -f Makefile
make[2]: Entering directory `/usr/src/modules/nvidia-kernel/nv'
rm -f -f nv.o nv-vm.o os-agp.o os-interface.o os-registry.o nv.o nv-vm.o os-agp.o os-interface.o os-registry.o nvidia.mod.o
rm -f -f build-in.o nv-linux.o *.d .*.{cmd,flags}
rm -f -f nvidia.{o,ko,mod.{o,c}} nv_compiler.h *~
rm -f -rf .tmp_versions
make[2]: Leaving directory `/usr/src/modules/nvidia-kernel/nv'
rm -f /usr/src/modules/nvidia-kernel/nv/Makefile || true;
rm /usr/src/modules/nvidia-kernel/nv/gcc-check
rm /usr/src/modules/nvidia-kernel/nv/cc-sanity-check
dh_clean
rm /usr/src/modules/nvidia-kernel/debian/control
rm /usr/src/modules/nvidia-kernel/debian/dirs
rm /usr/src/modules/nvidia-kernel/debian/override
make[1]: Leaving directory `/usr/src/modules/nvidia-kernel'
echo "ROOT_CMD = "
ROOT_CMD =
/usr/bin/make -f debian/rules binary_modules
make[1]: Entering directory `/usr/src/modules/nvidia-kernel'
# select which makefile to use.
rm -f /usr/src/modules/nvidia-kernel/nv/Makefile || true
if [ 6 = 6 ]; then \
cd /usr/src/modules/nvidia-kernel/nv ; \
ln -s Makefile.kbuild Makefile ; \
cd .. ; \
if [ 0 = 1 ] ; then \
dpatch apply 04_minion ; \
fi ; \
if [ 0 = 1 ]; then \
dpatch apply 01_sysfs ; \
dpatch status 01_sysfs >patch-stamp ; \
dpatch apply 02_pcialias ; \
dpatch status 02_pcialias >>patch-stamp ; \
fi ; \
fi
if [ 6 = 4 ]; then \
cd /usr/src/modules/nvidia-kernel/nv ; \
ln -s Makefile.nvidia Makefile ; \
cd .. ; \
fi
#nothing here anymore
touch configure-stamp
if [ -f /usr/src/modules/nvidia-kernel/debian/control.template ]; then \
cp /usr/src/modules/nvidia-kernel/debian/control.template /usr/src/modules/nvidia-kernel/debian/control; \
fi
dh_testdir
dh_testroot
PATCHLEVEL = 6
Kernel compiler version : 3.3.5
Detected compiler version : 3.3.5
Using compiler gcc-3.3 version 3.3.5
touch /usr/src/modules/nvidia-kernel/nv/gcc-check
touch /usr/src/modules/nvidia-kernel/nv/cc-sanity-check
## Main Make ##
IGNORE_CC_MISMATCH=1 CC="gcc-3.3" /usr/bin/make -C /usr/src/modules/nvidia-kernel/nv -f Makefile SYSSRC=/usr/src/linux-headers-2.6.16-2-686 KBUILD_PARAMS="-C /usr/src/linux-headers-2.6.16-2-686 SUBDIRS=/usr/src/modules/nvidia-kernel/nv" module;
make[2]: Entering directory `/usr/src/modules/nvidia-kernel/nv'
NVIDIA: calling KBUILD...
make CC=gcc-3.3 -C /usr/src/linux-headers-2.6.16-2-686 SUBDIRS=/usr/src/modules/nvidia-kernel/nv modules
make[3]: Entering directory `/usr/src/linux-headers-2.6.16-2-686'
echo \#define NV_COMPILER \"`gcc-3.3 -v 2>&1 | tail -n 1`\" > /usr/src/modules/nvidia-kernel/nv/nv_compiler.h
CC [M] /usr/src/modules/nvidia-kernel/nv/nv.o
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 /usr/src/modules/nvidia-kernel/nv/nv-linux.h:46,
from /usr/src/modules/nvidia-kernel/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:522,
from /usr/src/modules/nvidia-kernel/nv/nv-linux.h:69,
from /usr/src/modules/nvidia-kernel/nv/nv.c:14:
include/asm/io.h: In function `check_signature':
include/asm/io.h:258: warning: wrong type argument to increment
In file included from /usr/src/modules/nvidia-kernel/nv/nv.c:14:
/usr/src/modules/nvidia-kernel/nv/nv-linux.h:241:5: warning: "NV_ENABLE_MEM_TRACKING" is not defined
/usr/src/modules/nvidia-kernel/nv/nv-linux.h:269:5: warning: "NV_ENABLE_MEM_TRACKING" is not defined
/usr/src/modules/nvidia-kernel/nv/nv-linux.h:691:2: warning: #warning "conftest.sh failed, assuming remap_page_range(4)!"
/usr/src/modules/nvidia-kernel/nv/nv.c: At top level:
/usr/src/modules/nvidia-kernel/nv/nv.c:201: warning: initialization from incompatible pointer type
/usr/src/modules/nvidia-kernel/nv/nv.c:223:5: warning: "NV_ENABLE_MEM_TRACKING" is not defined
/usr/src/modules/nvidia-kernel/nv/nv.c: In function `nvos_get_agp_device_by_class':
/usr/src/modules/nvidia-kernel/nv/nv.c:404: warning: implicit declaration of function `pci_find_class'
/usr/src/modules/nvidia-kernel/nv/nv.c:404: warning: assignment makes pointer from integer without a cast
/usr/src/modules/nvidia-kernel/nv/nv.c:418: warning: assignment makes pointer from integer without a cast
/usr/src/modules/nvidia-kernel/nv/nv.c: In function `nvidia_init_module':
/usr/src/modules/nvidia-kernel/nv/nv.c:970: warning: implicit declaration of function `pm_register'
/usr/src/modules/nvidia-kernel/nv/nv.c:970: warning: assignment makes pointer from integer without a cast
/usr/src/modules/nvidia-kernel/nv/nv.c:1036: warning: implicit declaration of function `pm_unregister'
/usr/src/modules/nvidia-kernel/nv/nv.c:1167:5: warning: "NV_ENABLE_MEM_TRACKING" is not defined
/usr/src/modules/nvidia-kernel/nv/nv.c: In function `nv_kern_mmap':
/usr/src/modules/nvidia-kernel/nv/nv.c:1541: warning: implicit declaration of function `remap_page_range'
/usr/src/modules/nvidia-kernel/nv/nv.c: In function `nvos_count_devices':
/usr/src/modules/nvidia-kernel/nv/nv.c:3232: warning: assignment makes pointer from integer without a cast
/usr/src/modules/nvidia-kernel/nv/nv.c:3237: warning: assignment makes pointer from integer without a cast
CC [M] /usr/src/modules/nvidia-kernel/nv/nv-vm.o
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 /usr/src/modules/nvidia-kernel/nv/nv-linux.h:46,
from /usr/src/modules/nvidia-kernel/nv/nv-vm.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:522,
from /usr/src/modules/nvidia-kernel/nv/nv-linux.h:69,
from /usr/src/modules/nvidia-kernel/nv/nv-vm.c:14:
include/asm/io.h: In function `check_signature':
include/asm/io.h:258: warning: wrong type argument to increment
In file included from /usr/src/modules/nvidia-kernel/nv/nv-vm.c:14:
/usr/src/modules/nvidia-kernel/nv/nv-linux.h:241:5: warning: "NV_ENABLE_MEM_TRACKING" is not defined
/usr/src/modules/nvidia-kernel/nv/nv-linux.h:269:5: warning: "NV_ENABLE_MEM_TRACKING" is not defined
/usr/src/modules/nvidia-kernel/nv/nv-linux.h:691:2: warning: #warning "conftest.sh failed, assuming remap_page_range(4)!"
CC [M] /usr/src/modules/nvidia-kernel/nv/os-agp.o
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 /usr/src/modules/nvidia-kernel/nv/nv-linux.h:46,
from /usr/src/modules/nvidia-kernel/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:522,
from /usr/src/modules/nvidia-kernel/nv/nv-linux.h:69,
from /usr/src/modules/nvidia-kernel/nv/os-agp.c:24:
include/asm/io.h: In function `check_signature':
include/asm/io.h:258: warning: wrong type argument to increment
In file included from /usr/src/modules/nvidia-kernel/nv/os-agp.c:24:
/usr/src/modules/nvidia-kernel/nv/nv-linux.h:241:5: warning: "NV_ENABLE_MEM_TRACKING" is not defined
/usr/src/modules/nvidia-kernel/nv/nv-linux.h:269:5: warning: "NV_ENABLE_MEM_TRACKING" is not defined
/usr/src/modules/nvidia-kernel/nv/nv-linux.h:691:2: warning: #warning "conftest.sh failed, assuming remap_page_range(4)!"
CC [M] /usr/src/modules/nvidia-kernel/nv/os-interface.o
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 /usr/src/modules/nvidia-kernel/nv/nv-linux.h:46,
from /usr/src/modules/nvidia-kernel/nv/os-interface.c:26:
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:522,
from /usr/src/modules/nvidia-kernel/nv/nv-linux.h:69,
from /usr/src/modules/nvidia-kernel/nv/os-interface.c:26:
include/asm/io.h: In function `check_signature':
include/asm/io.h:258: warning: wrong type argument to increment
In file included from /usr/src/modules/nvidia-kernel/nv/os-interface.c:26:
/usr/src/modules/nvidia-kernel/nv/nv-linux.h:241:5: warning: "NV_ENABLE_MEM_TRACKING" is not defined
/usr/src/modules/nvidia-kernel/nv/nv-linux.h:269:5: warning: "NV_ENABLE_MEM_TRACKING" is not defined
/usr/src/modules/nvidia-kernel/nv/nv-linux.h:691:2: warning: #warning "conftest.sh failed, assuming remap_page_range(4)!"
/usr/src/modules/nvidia-kernel/nv/os-interface.c:667:5: warning: "DEBUG" is not defined
/usr/src/modules/nvidia-kernel/nv/os-interface.c:679:5: warning: "DEBUG" is not defined
/usr/src/modules/nvidia-kernel/nv/os-interface.c: In function `os_set_mlock_capability':
/usr/src/modules/nvidia-kernel/nv/os-interface.c:1262: error: structure has no member named `rlim'
make[4]: *** [/usr/src/modules/nvidia-kernel/nv/os-interface.o] Error 1
make[3]: *** [_module_/usr/src/modules/nvidia-kernel/nv] Error 2
make[3]: Leaving directory `/usr/src/linux-headers-2.6.16-2-686'
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[2]: *** [module] Error 1
make[2]: Leaving directory `/usr/src/modules/nvidia-kernel/nv'
make[1]: *** [build-stamp] Error 2
make[1]: Leaving directory `/usr/src/modules/nvidia-kernel'
make: *** [kdist_image] Error 2
After running m-a... the first line that came up was: Warning, /usr/src/linux-headers-2.6.16-2 seems to contain unconfigured
kernel source!
|
That is saying the headers are not configured for somereason can you post the output of these two commands dpkg -l | grep linux and apt-cache policy nvidia-kernel-source so I can see what was installed.
|
|
|
09-02-2006, 08:52 PM
|
#37
|
Member
Registered: Mar 2005
Location: Cape Town, South Africa
Distribution: Ubuntu 8.10
Posts: 374
Original Poster
Rep:
|
Output for both:
Code:
Conrad:/home/conradtheart# dpkg -l | grep linux
ii doc-linux-text 2005.04-1 Linux HOWTOs and FAQs in ASCII format
ii libselinux1 1.22-1 SELinux shared libraries
ii linux-headers- 2.6.16-18~bpo. Common header files for Linux kernel 2.6.16
ii linux-headers- 2.6.16-18~bpo. Header files for Linux kernel 2.6.16 on PPro
ii linux-image-2. 2.6.16-18~bpo. Linux kernel 2.6.16 image on PPro/Celeron/PI
ii linux-kernel-h 2.5.999-test7- Linux Kernel Headers for development
ii mpeglib 3.3.2-1 mp3 and mpeg I video/audio library for linux
ii util-linux 2.12p-4sarge1 Miscellaneous system utilities
Conrad:/home/conradtheart# apt-cache policy nvidia-kernel-source
nvidia-kernel-source:
Installed: 1.0.7174-3
Candidate: 1.0.7174-3
Version Table:
1.0.8178-0bpo1 0
1 http://www.backports.org sarge-backports/non-free Packages
*** 1.0.7174-3 0
500 http://ftp2.de.debian.org stable/non-free Packages
100 /var/lib/dpkg/status
|
|
|
09-02-2006, 09:15 PM
|
#38
|
Senior Member
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170
|
Quote:
Originally Posted by LonelyTraveler
Output for both:
Code:
Conrad:/home/conradtheart# dpkg -l | grep linux
ii doc-linux-text 2005.04-1 Linux HOWTOs and FAQs in ASCII format
ii libselinux1 1.22-1 SELinux shared libraries
ii linux-headers- 2.6.16-18~bpo. Common header files for Linux kernel 2.6.16
ii linux-headers- 2.6.16-18~bpo. Header files for Linux kernel 2.6.16 on PPro
ii linux-image-2. 2.6.16-18~bpo. Linux kernel 2.6.16 image on PPro/Celeron/PI
ii linux-kernel-h 2.5.999-test7- Linux Kernel Headers for development
ii mpeglib 3.3.2-1 mp3 and mpeg I video/audio library for linux
ii util-linux 2.12p-4sarge1 Miscellaneous system utilities
Conrad:/home/conradtheart# apt-cache policy nvidia-kernel-source
nvidia-kernel-source:
Installed: 1.0.7174-3
Candidate: 1.0.7174-3
Version Table:
1.0.8178-0bpo1 0
1 http://www.backports.org sarge-backports/non-free Packages
*** 1.0.7174-3 0
500 http://ftp2.de.debian.org stable/non-free Packages
100 /var/lib/dpkg/status
|
I believe that nvidia-source package is too old for that new a kernel try putting a # in front of the lines in your sources.list for stable apt-get update then try the m-a command again with it having no choice but to get the package from the backports if it wants to keep the installed version use apt-get install nvidia-kernel-source=1.0.8178-0bpo1 this will install that exact version then try the m-a again.
Edit: You may need if it wants exact version to use the = when you apt-get install the nvidia-glx, nvidia-glx-dev as well after the driver is installed.
Last edited by HappyTux; 09-02-2006 at 09:17 PM.
|
|
|
09-02-2006, 09:31 PM
|
#39
|
Member
Registered: Mar 2005
Location: Cape Town, South Africa
Distribution: Ubuntu 8.10
Posts: 374
Original Poster
Rep:
|
What do you mean with the =? Where must I put it? Must I put the # infront of the backport line or the non free stable lines? Even for apt-get install nvidia-kernel-source=1.0.8178-0bpo1 I get a already installed message.
|
|
|
09-02-2006, 09:56 PM
|
#40
|
Senior Member
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170
|
Quote:
Originally Posted by LonelyTraveler
What do you mean with the =? Where must I put it? Must I put the # infront of the backport line or the non free stable lines? Even for apt-get install nvidia-kernel-source=1.0.8178-0bpo1 I get a already installed message.
|
I meant with the apt-get install some_package=1.2.3-45 it tells apt to install the exact version. Can you point me to the url for the version of debian install disk you used I have a spare p4 machine here with a nvidia card in it and I want to create the exact environment you have to see if I can install these packages then build the required modules if successful then I can just send you the packages/put them on web for download and you can install them on your machine, this would be sometime tomorrow in the afternoon when I would do it as it getting a little late here to start now. Also post your sources.list as it is now so I can make sure I use the same mirrors.
|
|
|
09-03-2006, 03:51 AM
|
#41
|
Member
Registered: Mar 2005
Location: Cape Town, South Africa
Distribution: Ubuntu 8.10
Posts: 374
Original Poster
Rep:
|
Thanks you so much for your time and effort.
Sources:
Code:
#deb file:///cdrom/ sarge main
deb cdrom:[Debian GNU/Linux 3.1 r2 _Sarge_ - Official i386 Binary-14 (20060419)]/ unstable main
deb cdrom:[Debian GNU/Linux 3.1 r2 _Sarge_ - Official i386 Binary-13 (20060419)]/ unstable contrib main
deb cdrom:[Debian GNU/Linux 3.1 r2 _Sarge_ - Official i386 Binary-12 (20060419)]/ unstable contrib main
deb cdrom:[Debian GNU/Linux 3.1 r2 _Sarge_ - Official i386 Binary-11 (20060419)]/ unstable contrib main
deb cdrom:[Debian GNU/Linux 3.1 r2 _Sarge_ - Official i386 Binary-10 (20060419)]/ unstable contrib main
deb cdrom:[Debian GNU/Linux 3.1 r2 _Sarge_ - Official i386 Binary-9 (20060419)]/ unstable contrib main
deb cdrom:[Debian GNU/Linux 3.1 r2 _Sarge_ - Official i386 Binary-8 (20060419)]/ unstable contrib main
deb cdrom:[Debian GNU/Linux 3.1 r2 _Sarge_ - Official i386 Binary-7 (20060419)]/ unstable contrib main
deb cdrom:[Debian GNU/Linux 3.1 r2 _Sarge_ - Official i386 Binary-6 (20060419)]/ unstable contrib main
deb cdrom:[Debian GNU/Linux 3.1 r2 _Sarge_ - Official i386 Binary-5 (20060419)]/ unstable contrib main
deb cdrom:[Debian GNU/Linux 3.1 r2 _Sarge_ - Official i386 Binary-4 (20060419)]/ unstable contrib main
deb cdrom:[Debian GNU/Linux 3.1 r2 _Sarge_ - Official i386 Binary-3 (20060419)]/ unstable contrib main
deb cdrom:[Debian GNU/Linux 3.1 r2 _Sarge_ - Official i386 Binary-2 (20060419)]/ unstable main
deb cdrom:[Debian GNU/Linux 3.1 r2 _Sarge_ - Official i386 Binary-1 (20060419)]/ unstable contrib main
## Stable sources
deb http://ftp2.de.debian.org/debian/ stable main contrib non-free
deb-src http://ftp2.de.debian.org/debian/ stable main contrib non-free
#deb http://www.backports.org/debian sarge-backports main contrib non-free
deb http://security.debian.org/ stable/updates main contrib
I downloaded it from here: http://cdimage.debian.org/debian-cd/...i386/jigdo-cd/
|
|
|
09-03-2006, 10:06 AM
|
#42
|
Member
Registered: Mar 2005
Location: Cape Town, South Africa
Distribution: Ubuntu 8.10
Posts: 374
Original Poster
Rep:
|
The Nvidia driver for the previous kernel is still installed. Would it help if I uninstall that?
|
|
|
09-03-2006, 10:26 AM
|
#43
|
Senior Member
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170
|
Quote:
Originally Posted by LonelyTraveler
The Nvidia driver for the previous kernel is still installed. Would it help if I uninstall that?
|
Did you use the official nvidia package if so yes use the --uninstall option when running the installer. I got the base system installed and am just about to put the backports in the sources.list to install the 2.6 kernel so I should be able to tell shortly if I can get these packages to build/install.
|
|
|
09-03-2006, 12:47 PM
|
#44
|
Senior Member
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170
|
Alright I can see why you were having such problems with the nvidia drivers from the backports the packages are useless. Use apt-get remove --purge nvidia-kernel-source to remove the package and if the nvidia-glx and nvidia-glx-dev were installed them too. Now at the command line use.
Code:
wget http://download.nvidia.com/XFree86/Linux-x86/1.0-8774/NVIDIA-Linux-x86-1.0-8774-pkg1.run
To get the latest driver from nvidia. Then at the command line as root in the directory you downloaded the nvidia driver into use sh ./NVIDIA-Linux-x86-1.0-8774-pkg1.run to run the installer accept the license decline the offer to download the kernel pre-compiled and accept it building your own module you would have wanted to run the m-a prepare to have the kernel-headers linked properly here is what the link looks like on my system. Oh you need to stop the X server so use /etc/init.d/kdm stop if using kde dispaly manager you may need to use gdm or xdm in the line if using these display managers this would be beforerunning the sh ./N.... command to start again /etc/init.d/kdm start changing kdm if needed.
Code:
Bashfultux:/usr/src# ls -l linux
lrwxrwxrwx 1 root src 26 2006-09-03 12:53 linux -> linux-headers-2.6.16-2-686
Now once the driver installs make the changes in the /etc/X11/XF86Config-4 file to use the driver I believe you have already done this before but here is what the file looks like on my install here.
Code:
Bashfultux:/usr/src# cat /etc/X11/XF86Config-4
# XF86Config-4 (XFree86 X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the XF86Config-4 manual page.
# (Type "man XF86Config-4" at the shell prompt.)
#
# This file is automatically updated on xserver-xfree86 package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xfree86
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following commands as root:
#
# cp /etc/X11/XF86Config-4 /etc/X11/XF86Config-4.custom
# md5sum /etc/X11/XF86Config-4 >/var/lib/xfree86/XF86Config-4.md5sum
# dpkg-reconfigure xserver-xfree86
Section "Files"
FontPath "unix/:7100" # local font server
# if the local font server has problems, we can fall back on these
FontPath "/usr/lib/X11/fonts/misc"
FontPath "/usr/lib/X11/fonts/cyrillic"
FontPath "/usr/lib/X11/fonts/100dpi/:unscaled"
FontPath "/usr/lib/X11/fonts/75dpi/:unscaled"
FontPath "/usr/lib/X11/fonts/Type1"
FontPath "/usr/lib/X11/fonts/CID"
FontPath "/usr/lib/X11/fonts/Speedo"
FontPath "/usr/lib/X11/fonts/100dpi"
FontPath "/usr/lib/X11/fonts/75dpi"
EndSection
Section "Module"
# Load "GLcore"
Load "bitmap"
Load "dbe"
Load "ddc"
# Load "dri"
Load "extmod"
Load "freetype"
Load "glx"
Load "int10"
Load "record"
Load "speedo"
Load "type1"
Load "vbe"
EndSection
Section "InputDevice"
Identifier "Generic Keyboard"
Driver "keyboard"
Option "CoreKeyboard"
Option "XkbRules" "xfree86"
Option "XkbModel" "pc104"
Option "XkbLayout" "us"
EndSection
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "Emulate3Buttons" "true"
Option "ZAxisMapping" "4 5"
EndSection
Section "Device"
Identifier "Generic Video Card"
Driver "nvidia"
EndSection
Section "Monitor"
Identifier "Generic Monitor"
HorizSync 30-85
VertRefresh 50-160
Option "DPMS"
EndSection
Section "Screen"
Identifier "Default Screen"
Device "Generic Video Card"
Monitor "Generic Monitor"
DefaultDepth 24
SubSection "Display"
Depth 1
Modes "1280x1024" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 4
Modes "1280x1024" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 8
Modes "1280x1024" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 15
Modes "1280x1024" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 16
Modes "1280x1024" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 24
Modes "1280x1024" "800x600" "640x480"
EndSubSection
EndSection
Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
EndSection
#Section "DRI"
# Mode 0666
#EndSection
Now with the headers linked properly the rt2500 and madwifi drivers should build properly use apt-get install rt2500-source=1.1.0+cvs20060620-0bpo1 and apt-get install madwifi-source=0.svnr1644.0.9.0-1bpo1 to install then m-a a-i -i -t -f madwifi , m-a a-i -i -t -f rt2500 this would build both packages the madiwifi will look like it gets an error but it will install the madwifi-tools package it needs. If either of these fails to build for some reason you can get the ones I built here with.
Code:
wget http://user.eastlink.ca/~stephencormier/madwifi-modules-2.6.16-2-686_0.svnr1644.0.9.0-1bpo1_i386.deb
wget http://user.eastlink.ca/~stephencormier/rt2500-modules-2.6.16-2-686_1.1.0+cvs20060620-0bpo1_i386.deb
Make sure that you have re-enabled the the backports line in your sources.list and apt-get update as this is where the wireless tools will come from and of course if you build yourself the source-packages.
|
|
|
09-03-2006, 03:04 PM
|
#45
|
Member
Registered: Mar 2005
Location: Cape Town, South Africa
Distribution: Ubuntu 8.10
Posts: 374
Original Poster
Rep:
|
When running apt-get install madwifi-source=0.svnr1644.0.9.0-1bpo1 the it tells me there is a unmet dependency. Ive tried to download the version it want but can't find it.
C
Code:
onrad:/home/conradtheart# apt-get install madwifi-source=0.svnr1644.0.9.0-1bpo1
Reading Package Lists... Done
Building Dependency Tree... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
madwifi-source: Depends: debhelper (>= 5.0.0) but 4.2.32 is to be installed
E: Broken packages
Your link to download this gives me the following:
Code:
Conrad:/home/conradtheart# wget http://user.eastlink.ca/~stephencormier/madwifi-modules-2.6.16-2-686_0.svnr1644.0.9.0-1bpo1_i386.deb
--16:02:14-- http://user.eastlink.ca/%7Estephencormier/madwifi-modules-2.6.16-2-686_0.svnr1644.0.9.0-1bpo1_i386.deb
=> `madwifi-modules-2.6.16-2-686_0.svnr1644.0.9.0-1bpo1_i386.deb'
Resolving user.eastlink.ca... failed: Host not found.
I did re-enable the backports.
|
|
|
All times are GMT -5. The time now is 02:29 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|