You are not logged in.
Hi, first sorry for my english is very bad , I have compiled kernel 2.6.28 manually (instruccions wiki page) and when I install nvidia drivers (from abs) ...
root /home/pery/abs/nvidia # makepkg -i -c --asroot
==> Creando el paquete: nvidiacustomkernel 177.82-1 i686 (vie ene 9 00:31:10 CET 2009)
==> PRECAUCIÓN: Ejecutando makepkg como root...
==> Comprobando Dependencias en tiempo de Ejecución...
==> Comprobando Dependencias en tiempo de Compilación...
==> Obteniendo Fuentes...
-> Encontrado NVIDIA-Linux-x86-177.82-pkg0.run en el directorio de compilación
==> Validando el archivo fuente con md5sums...
NVIDIA-Linux-x86-177.82-pkg0.run ... Pasado
==> Descomprimiendo fuentes...
==> Eliminando directorio pkg/ existente...
==> Comenzando build()...
Creating directory NVIDIA-Linux-x86-177.82-pkg0
The directory 'NVIDIA-Linux-x86-177.82-pkg0' already exists. Please either
move the existing directory out of the way, or specify a
different directory with the '--target' option.
If you are using a Linux 2.4 kernel, please make sure
you either have configured kernel sources matching your
kernel or the correct set of kernel headers installed
on your system.
If you are using a Linux 2.6 kernel, please make sure
you have configured kernel sources matching your kernel
installed on your system. If you specified a separate
output directory using either the "KBUILD_OUTPUT" or
the "O" KBUILD parameter, make sure to specify this
directory with the SYSOUT environment variable or with
the equivalent nvidia-installer command line option.
Depending on where and how the kernel sources (or the
kernel headers) were installed, you may need to specify
their location with the SYSSRC environment variable or
the equivalent nvidia-installer command line option.
*** Unable to determine the target kernel version. ***
make: *** [select_makefile] Error 1
==> ERROR: Falló build()
Abortando...
sysmlink:
root /home/pery/abs/nvidia # ls -l /lib/modules/2.6.28revision-1/
total 248
lrwxrwxrwx 1 root root 34 ene 9 00:30 build -> /home/pery/abs/kernel/linux-2.6.28
drwxr-xr-x 8 root root 4096 ene 9 00:03 kernel
lrwxrwxrwx 1 root root 23 ene 8 23:21 linux-2.6.28 -> abs/kernel/linux-2.6.28
-rw-r--r-- 1 root root 45351 ene 9 00:03 modules.alias
-rw-r--r-- 1 root root 69 ene 9 00:03 modules.ccwmap
-rw-r--r-- 1 root root 19495 ene 9 00:03 modules.dep
-rw-r--r-- 1 root root 73 ene 9 00:03 modules.ieee1394map
-rw-r--r-- 1 root root 218 ene 9 00:03 modules.inputmap
-rw-r--r-- 1 root root 81 ene 9 00:03 modules.isapnpmap
-rw-r--r-- 1 root root 74 ene 9 00:03 modules.ofmap
-rw-r--r-- 1 root root 4685 ene 9 00:03 modules.order
-rw-r--r-- 1 root root 33496 ene 9 00:03 modules.pcimap
-rw-r--r-- 1 root root 379 ene 9 00:03 modules.seriomap
-rw-r--r-- 1 root root 47691 ene 9 00:03 modules.symbols
-rw-r--r-- 1 root root 55032 ene 9 00:03 modules.usbmap
lrwxrwxrwx 1 root root 34 ene 9 00:03 source -> /home/pery/abs/kernel/linux-2.6.28
my PKGBUILD:
# $Id: PKGBUILD 19051 2008-11-14 11:33:00Z pierre $
# Maintainer : Thomas Baechler <thomas@archlinux.org>
pkgname=nvidiacustomkernel
pkgver=177.82
_kernver='2.6.28revision-1'
pkgrel=1
pkgdesc="NVIDIA drivers for kernel26."
arch=('i686' 'x86_64')
[ "$CARCH" = "i686" ] && ARCH=x86
[ "$CARCH" = "x86_64" ] && ARCH=x86_64
url="http://www.nvidia.com/"
depends=('kernel26>=2.6.27' 'kernel26<2.6.28' 'nvidia-utils')
conflicts=('nvidia-96xx' 'nvidia-71xx' 'nvidia-legacy')
license=('custom')
install=nvidia.install
source=(http://us.download.nvidia.com/XFree86/Linux-$ARCH/${pkgver}/NVIDIA-Linux-$ARCH-${pkgver}-pkg0.run)
md5sums=('882f34a662f0175682fdc4a9bec909ba')
[ "$CARCH" = "x86_64" ] && md5sums=('6a6d04411529c8d7616deee3d68c5346')
build()
{
# Extract
cd $startdir/src/
sh NVIDIA-Linux-$ARCH-${pkgver}-pkg0.run --extract-only
cd NVIDIA-Linux-$ARCH-${pkgver}-pkg0
# Any extra patches are applied in here...
cd usr/src/nv/
ln -s Makefile.kbuild Makefile
make SYSSRC=/lib/modules/${_kernver}/build module || return 1
# install kernel module
mkdir -p $startdir/pkg/lib/modules/${_kernver}/kernel/drivers/video/
install -m644 nvidia.ko $startdir/pkg/lib/modules/${_kernver}/kernel/drivers/video/
sed -i -e "s/KERNEL_VERSION='.*'/KERNEL_VERSION='${_kernver}'/" $startdir/*.install
}
nvidia-installer log
nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Fri Jan 9 00:22:03 2009
installer version: 1.0.7
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
no cc version 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.
-> Installing NVIDIA driver version 177.82.
-> 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: No)
-> No precompiled kernel interface was found to match your kernel; this means
that the installer will need to compile a new kernel interface.
-> Performing CC sanity check with CC="cc".
-> Performing CC version check with CC="cc".
-> Kernel source path: '/lib/modules/2.6.28revision-1/source'
-> Kernel output path: '/lib/modules/2.6.28revision-1/build'
ERROR: If you are using a Linux 2.4 kernel, please make sure
you either have configured kernel sources matching your
kernel or the correct set of kernel headers installed
on your system.
If you are using a Linux 2.6 kernel, please make sure
you have configured kernel sources matching your kernel
installed on your system. If you specified a separate
output directory using either the "KBUILD_OUTPUT" or
the "O" KBUILD parameter, make sure to specify this
directory with the SYSOUT environment variable or with
the equivalent nvidia-installer command line option.
Depending on where and how the kernel sources (or the
kernel headers) were installed, you may need to specify
their location with the SYSSRC environment variable or
the equivalent nvidia-installer command line option.
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.
Im tried nvidia-installer with --kernel-source-path=/home/pery/abs/kernel/linux-2.6.28 but again failed
Again sorry for my english, anybody can help me?
thanks in advance
bye!!
Offline
Add to 2.6.28 PKGBUILD
# copy arch includes for external modules
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/arch/x86
cp -a arch/x86/include ${pkgdir}/usr/src/linux-${_kernver}/arch/x86/
Last edited by methuselah (2009-01-13 23:43:07)
Offline
thanks for answers!! Finally I have patched nvidia-installer and now compile perfecty
bye!
Offline