Ubuntu Suomen keskustelualueet
Ubuntun käyttö => Laitealue => Aiheen aloitti: Latee - 14.06.07 - klo:08.42
-
Kääntelin uuden kernelin ja nvidia-legacy-sourcesta pitäisi saada ajuri
Nvidia Riva Tnt2. Mutta kääntäminen herjaa tälläistä. Distro on Debian 4.0.
ake[1]: Siirrytään hakemistoon "/usr/src/modules/nvidia-kernel-legacy"
echo "ROOT_CMD = "
ROOT_CMD =
/usr/bin/make -w -f debian/rules binary_modules
make[2]: Siirrytään hakemistoon "/usr/src/modules/nvidia-kernel-legacy"
# select which makefile to use.
rm -f /usr/src/modules/nvidia-kernel-legacy/nv/Makefile || true
if [ 6 = 6 ]; then \
cd /usr/src/modules/nvidia-kernel-legacy/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-legacy/nv ; \
ln -s Makefile.nvidia Makefile ; \
cd .. ; \
fi
#nothing here anymore
touch configure-stamp
if [ -f /usr/src/modules/nvidia-kernel-legacy/debian/control.template ];
then \
cp
/usr/src/modules/nvidia-kernel-legacy/debian/control.template
/usr/src/modules/nvidia-kernel-legacy/debian/control; \
fi
dh_testdir
dh_testroot
PATCHLEVEL = 6
Kernel compiler version : 4.1.1
Detected compiler version : 4.1.1
Using compiler gcc-4.1 version 4.1.1
touch /usr/src/modules/nvidia-kernel-legacy/nv/gcc-check
touch /usr/src/modules/nvidia-kernel-legacy/nv/cc-sanity-check
## Main Make ##
IGNORE_CC_MISMATCH=1 CC="gcc-4.1" /usr/bin/make -C
/usr/src/modules/nvidia-kernel-legacy/nv -f Makefile
SYSSRC=/usr/src/linux EXTRAVERSION=.4-late5 KBUILD_PARAMS="-C
/usr/src/linux SUBDIRS=/usr/src/modules/nvidia-kernel-legacy/nv" module;
make[3]: Siirrytään hakemistoon "/usr/src/modules/nvidia-kernel-legacy/nv"
NVIDIA: calling KBUILD...
make CC=gcc-4.1 -C /usr/src/linux
SUBDIRS=/usr/src/modules/nvidia-kernel-legacy/nv modules
make[4]: Siirrytään hakemistoon "/usr/src/linux-2.6.21.4"
echo \#define NV_COMPILER \"`gcc-4.1 -v 2>&1 | tail -n 1`\" >
/usr/src/modules/nvidia-kernel-legacy/nv/nv_compiler.h
CC [M] /usr/src/modules/nvidia-kernel-legacy/nv/nv.o
In file included from /usr/src/modules/nvidia-kernel-legacy/nv/nv.c:14:
/usr/src/modules/nvidia-kernel-legacy/nv/nv-linux.h:17:26: error:
linux/config.h: Tiedostoa tai hakemistoa ei ole
In file included from include/linux/list.h:8,
from include/linux/wait.h:22,
from include/asm/semaphore.h:41,
from include/linux/sched.h:59,
from include/linux/utsname.h:35,
from
/usr/src/modules/nvidia-kernel-legacy/nv/nv-linux.h:19,
from /usr/src/modules/nvidia-kernel-legacy/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
/usr/src/modules/nvidia-kernel-legacy/nv/nv.c: At top level:
/usr/src/modules/nvidia-kernel-legacy/nv/nv.c:93: warning:
‘kmem_cache_t’ is deprecated
/usr/src/modules/nvidia-kernel-legacy/nv/nv.c: In function
‘nv_kern_open’:
/usr/src/modules/nvidia-kernel-legacy/nv/nv.c:1764: warning: passing
argument 2 of ‘request_irq’ from incompatible pointer type
make[5]: *** [/usr/src/modules/nvidia-kernel-legacy/nv/nv.o] Virhe 1
make[4]: *** [_module_/usr/src/modules/nvidia-kernel-legacy/nv] Virhe 2
make[4]: Poistutaan hakemistosta "/usr/src/linux-2.6.21.4"
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[3]: *** [module] Virhe 1
make[3]: Poistutaan hakemistosta "/usr/src/modules/nvidia-kernel-legacy/nv"
make[2]: *** [build-stamp] Virhe 2
make[2]: Poistutaan hakemistosta "/usr/src/modules/nvidia-kernel-legacy"
make[1]: *** [kdist_image] Virhe 2
make[1]: Poistutaan hakemistosta "/usr/src/modules/nvidia-kernel-legacy"
Module /usr/src/modules/nvidia-kernel-legacy failed.
Hit return to Continue
-
Kääntelin uuden kernelin ja nvidia-legacy-sourcesta pitäisi saada ajuri
Nvidia Riva Tnt2. Mutta kääntäminen herjaa tälläistä. Distro on Debian 4.0.
Nvidian ajuri TNT2:lle pitäisi kyllä toimia kääntämättäkin, jos et joistakin muista syistä kääntele kerneleitä.
Ubuntu-paketti on nvidia-glx-legacy, ja nvidian ajuri mallia 1.0.7184
These XFree86 4.x/X.Org binary drivers provide optimized hardware acceleration of OpenGL applications via a direct-rendering X Server and supports the TNT, TNT2, TNT Ultra, GeForce, and GeForce2 chipsets. AGP, TV-out and flat panel displays are also supported.
http://packages.ubuntu.com/feisty/misc/nvidia-glx-legacy
Eli ei muutakuin kaivelemaan Debianin vastaava paketti.
Esim. http://www.debian.org/distrib/packages
http://packages.debian.org/stable/x11/nvidia-glx-legacy
-
Ei lähde. Ei se taida itse käännetyllä kernelillä toimia. Vakio kernelillä toimi.
FATAL: Module nvidia not found.
(EE) NVIDIA(0): Failed to load the NVIDIA kernel module!
(EE) NVIDIA(0): *** Aborting ***
-
Ei lähde. Ei se taida itse käännetyllä kernelillä toimia. Vakio kernelillä toimi.
Joopa joo. En huomannut katsoa tuota kernel-versiotasi 2.6.21.4
Olethan jo kokeillut Nvidian ajurinasennusta Nvidian sivuilta noudetulla
- NVIDIA-Linux-x86-1.0-7185-pkg1.run
Siinähän on installeri, jolla paketin saa myös poistetuksi, kun päivityksenä saa jakeluun sopivamman?
http://www.nvidia.com/object/linux_display_ia32_1.0-7185.html
64-bittiselle onkin sitten taas toinen paketti tyrkyllä.
-
Oon koittanut. Mutta jotain virhettä heitti ruutuun. Pitää pistää se logi kuhan kotiin pääsee.
-
Ei lähde. Ei se taida itse käännetyllä kernelillä toimia. Vakio kernelillä toimi.
FATAL: Module nvidia not found.
(EE) NVIDIA(0): Failed to load the NVIDIA kernel module!
(EE) NVIDIA(0): *** Aborting ***
Minulla itselleni tuli tuo herja, kun päivitin ubuntun kernelin 2.6.20-16-386. Homma korjaantui asentamalla linux-restricted-modules-2.6.20-16-386 - paketin. Tämä on kait jotain, mitä Nvidia tarvii, olin lukevinani jostain. En todellakaan osaa varmasti sanoa, asentuuko moinen paketti tuon kernelin päivityksen yhteydessä. En todellakaan ole asiantuntija, mutta minulla se toimi.
-
Tälläisen ilmoituksen antaa Nvidia installeri.
nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Thu Jun 14 21:25:38 2007
option status:
license pre-accepted : false
update : false
force update : false
expert : false
uninstall : false
driver info : false
precompiled interfaces : true
no ncurses color : false
query latest version : false
OpenGL header files : true
no questions : false
silent : false
no recursion : false
no backup : false
kernel module only : false
sanity : false
add this kernel : false
no runlevel check : false
no network : false
no ABI note : false
no RPMs : false
no kernel module : false
force SELinux : default
no X server check : false
force tls : (not specified)
X install prefix : (not specified)
X library install path : (not specified)
X module install path : (not specified)
OpenGL install prefix : (not specified)
OpenGL install libdir : (not specified)
utility install prefix : (not specified)
utility install libdir : (not specified)
doc install prefix : (not specified)
kernel name : (not specified)
kernel include path : (not specified)
kernel source path : (not specified)
kernel output path : (not specified)
kernel install path : (not specified)
proc mount point : /proc
ui : (not specified)
tmpdir : /tmp
ftp mirror : ftp://download.nvidia.com
RPM file list : (not specified)
Using: nvidia-installer ncurses user interface
-> License accepted.
-> No precompiled kernel interface was found to match your kernel; would you li
ke the installer to attempt to download a kernel interface for your kernel f
rom the NVIDIA ftp site (ftp://download.nvidia.com)? (Answer: Yes)
-> No matching precompiled kernel interface was found on the NVIDIA ftp site;
this means that the installer will need to compile a kernel interface for
your kernel.
-> Performing CC sanity check with CC="cc".
-> Performing CC version check with CC="cc".
-> Kernel source path: '/lib/modules/2.6.21.4-late4/source'
-> Kernel output path: '/lib/modules/2.6.21.4-late4/build'
-> Performing rivafb check.
-> Performing nvidiafb check.
-> Cleaning kernel module build directory.
executing: 'cd ./usr/src/nv; make clean'...
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
-> Building kernel module:
executing: 'cd ./usr/src/nv; make module SYSSRC=/lib/modules/2.6.21.4-late4/
source SYSOUT=/lib/modules/2.6.21.4-late4/build'...
NVIDIA: calling KBUILD...
make CC=cc KBUILD_OUTPUT=/lib/modules/2.6.21.4-late4/build KBUILD_VERBOSE=1
-C /lib/modules/2.6.21.4-late4/source SUBDIRS=/tmp/selfgz2707/NVIDIA-Linux-x
86-1.0-7184-pkg1/usr/src/nv modules
make -C /lib/modules/2.6.21.4-late4/build \
KBUILD_SRC=/usr/src/linux-2.6.21.4 \
KBUILD_EXTMOD="/tmp/selfgz2707/NVIDIA-Linux-x86-1.0-7184-pkg1/usr/src/nv" -
f /usr/src/linux-2.6.21.4/Makefile modules
test -e include/linux/autoconf.h -a -e include/config/auto.conf || ( \
echo; \
echo " ERROR: Kernel configuration is invalid."; \
echo " include/linux/autoconf.h or include/config/auto.conf are mis
sing."; \
echo " Run 'make oldconfig && make prepare' on kernel src to fix it
."; \
echo; \
/bin/false)
mkdir -p /tmp/selfgz2707/NVIDIA-Linux-x86-1.0-7184-pkg1/usr/src/nv/.tmp_vers
ions
rm -f /tmp/selfgz2707/NVIDIA-Linux-x86-1.0-7184-pkg1/usr/src/nv/.tmp_version
s/*
WARNING: Symbol version dump /usr/src/linux-2.6.21.4/Module.symvers
is missing; modules will have no dependencies and modversions.
make -f /usr/src/linux-2.6.21.4/scripts/Makefile.build obj=/tmp/selfgz2707/N
VIDIA-Linux-x86-1.0-7184-pkg1/usr/src/nv
echo \#define NV_COMPILER \"`cc -v 2>&1 | tail -n 1`\" > /tmp/selfgz2707/NVI
DIA-Linux-x86-1.0-7184-pkg1/usr/src/nv/nv_compiler.h
cc -Wp,-MD,/tmp/selfgz2707/NVIDIA-Linux-x86-1.0-7184-pkg1/usr/src/nv/.nv.o
.d -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.1.2/include -D__KERNEL_
_ -Iinclude -Iinclude2 -I/usr/src/linux-2.6.21.4/include -include include/li
nux/autoconf.h -I/tmp/selfgz2707/NVIDIA-Linux-x86-1.0-7184-pkg1/usr/src/nv
-Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-c
ommon -O2 -pipe -msoft-float -mregparm=3 -freg-struct-return -mpreferred-sta
ck-boundary=2 -march=i686 -mtune=pentium3 -ffreestanding -maccumulate-outgoi
ng-args -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -I/usr/src/linux-2.
6.21.4/include/asm-i386/mach-default -Iinclude/asm-i386/mach-default -fomit-
frame-pointer -fno-stack-protector -Wdeclaration-after-
statement -Wno-pointer-sign -I/tmp/selfgz2707/NVIDIA-Linux-x86-1.0-7184-pkg
1/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscri
pts -Wparentheses -Wpointer-arith -Wno-multichar -Werror -O -fno-common -MD
-Wsign-compare -Wno-cast-qual -Wno-error -D_LOOSE_KERNEL_NAMES -D__KERNEL__
-DMODULE -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -D
NV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=7184 -DNV_UNIX -DNV_
LINUX -DNV_INT64_OK -DNVCPU_X86 -UDEBUG -U_DEBUG -DNDEBUG -DNV_SIGNAL_STRUCT
_RLIM -DNV_MULTIPLE_BRIDGE_AGPGART_PRESENT -DNV_PCI_GET_CLASS_PRESENT -DNV_P
M_MESSAGE_T_PRESENT -DNV_PCI_CHOOSE_STATE_PRESENT -DNV_VM_INSERT_PAGE_PRESEN
T -DNV_REMAP_PFN_RANGE_PRESENT -DNV_CHANGE_PAGE_ATTR_PRESENT -DNV_VMAP_4_PRE
SENT -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv)" -D"KB
UILD_MODNAME=KBUILD_STR(nvidia)" -c -o /tmp/selfgz2707/NVIDIA-Linux-x86-1.0-
7184-pkg1/usr/src/nv/.tmp_nv.o /tmp/selfgz2707/NVIDIA-Linux-x86-1.0-7184-pkg
1/usr/src/nv/nv.c
In file included from /tmp/selfgz2707/NVIDIA-Linux-x86-1.0-7184-pkg1/usr/src
/nv/nv.c:14:
/tmp/selfgz2707/NVIDIA-Linux-x86-1.0-7184-pkg1/usr/src/nv/nv-linux.h:17:26:
error: linux/config.h: Tiedostoa tai hakemistoa ei ole
In file included from include/linux/list.h:8,
from include/linux/wait.h:22,
from include/asm/semaphore.h:41,
from include/linux/sched.h:59,
from include/linux/utsname.h:35,
from /tmp/selfgz2707/NVIDIA-Linux-x86-1.0-7184-pkg1/usr/src
/nv/nv-linux.h:19,
from /tmp/selfgz2707/NVIDIA-Linux-x86-1.0-7184-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 a
rithmetic
/tmp/selfgz2707/NVIDIA-Linux-x86-1.0-7184-pkg1/usr/src/nv/nv.c: At top level
:
/tmp/selfgz2707/NVIDIA-Linux-x86-1.0-7184-pkg1/usr/src/nv/nv.c:93: warning:
‘kmem_cache_t’ is deprecated
/tmp/selfgz2707/NVIDIA-Linux-x86-1.0-7184-pkg1/usr/src/nv/nv.c: In function
‘nv_kern_open’:
/tmp/selfgz2707/NVIDIA-Linux-x86-1.0-7184-pkg1/usr/src/nv/nv.c:1764: warning
: passing argument 2 of ‘request_irq’ from incompatible pointer type
make[4]: *** [/tmp/selfgz2707/NVIDIA-Linux-x86-1.0-7184-pkg1/usr/src/nv/nv.o
] Virhe 1
make[3]: *** [_module_/tmp/selfgz2707/NVIDIA-Linux-x86-1.0-7184-pkg1/usr/src
/nv] Virhe 2
make[2]: *** [modules] Virhe 2
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [module] Virhe 1
make: *** [module] Virhe 2
-> Error.
ERROR: Unable to build the NVIDIA kernel module.
ERROR: Installation has failed. Please see the file
'/var/log/nvidia-installer.log' for details. You may find suggestions
on fixing installation problems in the README available on the Linux
driver download page at www.nvidia.com.
-
Noniin. Nyt lähti toimimaan. Asennus paketti oli väärä. Ndivian sivut antaa version 7184 kun pistää download sivulla Graphics Drivers -> TNT and TNT2 -> Linux x86. Otin sitten version 1.0-7185 tästä http://www.nvidia.com/object/unix.html ja kaikki meni ok. Juyli näköjään tarjositkin sitä pakettia mutta enpä huomannut versio eroa :)