You are not logged in.
Hi, I want to use nvidia-177 drivers but somehow the installer can't find the prebuild kernel
PKGBUILD
pkgname=nvidia-test
pkgver=177.82
pkgrel=1
pkgdesc="NVIDIA beta drivers for kernel26."
arch=('i686' 'x86_64')
_kernver=`uname -r`
[ "$CARCH" = "i686" ] && ARCH=x86 && NV=0
[ "$CARCH" = "x86_64" ] && ARCH=x86_64 && NV=0
provides=(nvidia=${pkgver})
depends=(kernel26)
conflicts=('nvidia-96xx' 'nvidia-71xx' 'nvidia-legacy')
license=('custom')
install=('nvidia.install')
source=(http://gentoo.osuosl.org/distfiles/NVIDIA-Linux-x86-177.82-pkg0.run)
md5sums=('882f34a662f0175682fdc4a9bec909ba')
[ "$CARCH" = "x86_64" ] && md5sums=('6a6d04411529c8d7616deee3d68c5346')
build()
{
# Extract the nvidia drivers
cd $startdir/src/
sh NVIDIA-Linux-${ARCH}-${pkgver}-pkg${NV}.run --extract-only
cd NVIDIA-Linux-${ARCH}-${pkgver}-pkg${NV}
cd usr/src/nv
ln -s Makefile.kbuild Makefile
make SYSSRC=/lib/modules/2.6.29-ARCH/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/ || return 1
}
All goes fine until it tries to make
*** Unable to determine the target kernel version. ***
make: *** [select_makefile] Error 1
uname -a
Linux pwntigo 2.6.29-ARCH
ls /lib/modules/2.6.29-ARCH/
build@ misc/ modules.alias.bin modules.dep modules.ieee1394map modules.isapnpmap modules.order modules.seriomap modules.symbols.bin
kernel/ modules.alias modules.ccwmap modules.dep.bin modules.inputmap modules.ofmap modules.pcimap modules.symbols modules.usbmap
Offline
i think that version of driver doesn't support kernel 2.6.29. you have to find a patch. i see that gentoo has a patch for kernel 2.6.28. also the build has serios flaws and the driver cannot run without any libs and those are provided by nvidia-utils and you have to make one for your version too.
Give what you have. To someone, it may be better than you dare to think.
Offline