You are not logged in.
Pages: 1
I have two kernels installed : one is the stock kernel from the repositories (3.2.5) the other is a custom kernel (3.2.4). I have linux-headers (3.2.5) installed but I am booting into the 3.2.4 kernel to build the nvidia proprietary module. The issue is that I have no idea on how to point the build system to the kernel source tree (afaik that's the issue here). These are sources lifted from kernel.org:-
Thanks.
Creating directory NVIDIA-Linux-x86_64-290.10-no-compat32
Verifying archive integrity... OK
Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86_64 290.10........................................................................................................................................
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: A failure occurred in build().
Aborting...
$ ls /usr/src/
-rw-r--r-- 1 root root 81288 Feb 5 19:21 3.2-hardened.config
lrwxrwxrwx 1 root root 17 Feb 14 00:28 linux -> linux-3.2.4-ARCH/
drwxr-xr-x 2 root root 4096 Jan 26 07:47 linux-3.2.2-1-ARCH
drwxrwxr-x 24 root root 4096 Feb 7 00:06 linux-3.2.4-ARCH
-rw-r--r-- 1 root root 78125482 Feb 3 20:48 linux-3.2.4.tar.bz2
drwxr-xr-x 21 root root 4096 Feb 7 07:42 linux-3.2.5-1-ARCHI thought it might be a symlink (shot in the dark) - I'm sure I read that somewhere, I also read that it is no longer used. Is this correct?
$ cat nvidia.install
post_install() {
EXTRAMODULES='extramodules-3.2.4-ARCH'
depmod $(cat /lib/modules/$EXTRAMODULES/version)
echo 'In order to use nvidia module, reboot the system.'
}
post_upgrade() {
EXTRAMODULES='extramodules-3.2.4-ARCH'
depmod $(cat /lib/modules/$EXTRAMODULES/version)
}
post_remove() {
EXTRAMODULES='extramodules-3.2.4-ARCH'
depmod $(cat /lib/modules/$EXTRAMODULES/version)
}cat PKGBUILD
# $Id: PKGBUILD 146818 2012-01-18 17:17:23Z tpowa $
# Maintainer : Thomas Baechler <thomas@archlinux.org>
pkgname=nvidia-custom
pkgver=290.10
_extramodules=extramodules-3.2.4-ARCH
_kernver="$(cat /lib/modules/${_extramodules}/version)"
pkgrel=2
pkgdesc="NVIDIA drivers for linux."
arch=('i686' 'x86_64')
url="http://www.nvidia.com/"
depends=('linux>=3.2' 'linux<3.3' "nvidia-utils=${pkgver}")
makedepends=('linux-headers>=3.2' 'linux-headers<3.3')
conflicts=('nvidia-96xx' 'nvidia-173xx')
license=('custom')
install=nvidia.install
options=(!strip)
if [ "$CARCH" = "i686" ]; then
_arch='x86'
_pkg="NVIDIA-Linux-${_arch}-${pkgver}"
source=("ftp://download.nvidia.com/XFree86/Linux-${_arch}/${pkgver}/${_pkg}.run")
md5sums=('50319a4b3818c12c9c7243525e0e6316')
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=('cebfba9a7e91716a06c66bb5b38d9661')
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/${_extramodules}/nvidia.ko"
install -d -m755 "${pkgdir}/etc/modprobe.d"
#echo "blacklist nouveau" >> "${pkgdir}/etc/modprobe.d/nouveau_blacklist.conf"
sed -i -e "s/EXTRAMODULES='.*'/EXTRAMODULES='${_extramodules}'/" "${startdir}/nvidia.install"
gzip "${pkgdir}/lib/modules/${_extramodules}/nvidia.ko"
}Last edited by YellowSnowIsBad (2012-02-14 01:45:14)
Offline
Bump. I am new to this - need help.
Offline
Pages: 1