You are not logged in.
Hello guys , I have compiled custom kernel with wiki help and abs and want to install Nvidia driver, but i got the following error when I try to compile with abs..
==> Obteniendo Fuentes...
-> Se encontró NVIDIA-Linux-x86-256.35.run
==> Validando el archivo fuente con md5sums...
NVIDIA-Linux-x86-256.35.run ... Aprobado
==> Descomprimiendo fuentes...
==> Iniciando build()...
Creating directory NVIDIA-Linux-x86-256.35
Verifying archive integrity... OK
Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86 256.35............................................................................................................................
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
Abortando...
my nvidia.install
post_install() {
KERNEL_VERSION='2.6.34-pahko'
depmod $KERNEL_VERSION
}
post_upgrade() {
post_install
rmmod nvidia || echo 'In order to use the new nvidia module, exit Xserver and unload it manually.'
}
post_remove() {
KERNEL_VERSION='2.6.34-pahko'
depmod $KERNEL_VERSION
}
my PKGBUILD
# $Id: PKGBUILD 83850 2010-06-23 10:39:40Z pierre $
# Maintainer : Thomas Baechler <thomas@archlinux.org>
pkgname=nvidia-pahko
pkgver=256.35
_kernver='2.6.34-pahko'
pkgrel=1
pkgdesc="NVIDIA drivers for kernel26."
arch=('i686' 'x86_64')
url="http://www.nvidia.com/"
depends=('kernel26>=2.6.34' 'kernel26<2.6.35' "nvidia-utils=${pkgver}")
makedepends=('kernel26-headers>=2.6.34' 'kernel26-headers<2.6.35')
conflicts=('nvidia-96xx' 'nvidia-173xx')
license=('custom')
install=nvidia.install
if [ "$CARCH" = "i686" ]; then
_arch='x86'
_pkg="NVIDIA-Linux-${_arch}-${pkgver}"
source=("ftp://download.nvidia.com/XFree86/Linux-${_arch}/${pkgver}/${_pkg}.run")
md5sums=('f6af8917a500de28396a438f3f548c88')
elif [ "$CARCH" = "x86_64" ]; then
_arch='x86_64'
_pkg="NVIDIA-Linux-${_arch}-${pkgver}-no-compat32"
source=("ftp://download.nvidia.com/XFree86/Linux-${_arch}/${pkgver}/${_pkg}.run")
md5sums=('7b5924f14a4d2326b4d916efdb7852ff')
fi
build() {
cd $srcdir
sh ${_pkg}.run --extract-only
cd ${_pkg}/kernel
make SYSSRC=/lib/modules/${_kernver}/build module
}
package() {
install -D -m644 $srcdir/${_pkg}/kernel/nvidia.ko \
$pkgdir/lib/modules/${_kernver}/kernel/drivers/video/nvidia.ko
install -d -m755 $pkgdir/etc/modprobe.d
echo "blacklist nouveau" >> $pkgdir/etc/modprobe.d/nouveau_blacklist.conf
sed -i -e "s/KERNEL_VERSION='.*'/KERNEL_VERSION='${_kernver}'/" $startdir/nvidia.install
}
uname -r
2.6.34-pahko
anybody can help me?
thank you and sorry about my english
Last edited by pahko (2010-07-14 04:56:01)
Offline
You probably need the headers as well.
Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.
Offline
how can I build the headers?
Offline
They should be in the PKGBUILD, its a split PKGBUILD currently I think.
Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.
Offline
solved... thankyou...
Offline
I'm having the same problem. What is a split PKGBUILD?
Offline
Figured it out.
Offline