You are not logged in.

#1 2010-03-22 03:25:21

olo
Member
Registered: 2010-03-18
Posts: 32

【solved】custom kernel 2.6.33.1 with Nvida (ASB) error

hi guys, I have compiled custom kernel and want to install Nvidia driver, but unfortunately, I have got the following error. I put vanilla source in /usr/src/linux-2.6.33.1, I think the "source: pointed to a right path.


[root@localhost ~]# ls -l /lib/modules/2.6.33.1/
total 96
lrwxrwxrwx 1 root root    23 Mar 22 11:00 build -> /usr/src/linux-2.6.33.1
drwxr-xr-x 6 root root  4096 Mar 22 12:34 kernel
-rw-r--r-- 1 root root   415 Mar 22 15:03 modules.alias
-rw-r--r-- 1 root root   507 Mar 22 15:03 modules.alias.bin
-rw-r--r-- 1 root root  7696 Mar 22 12:34 modules.builtin
-rw-r--r-- 1 root root 10416 Mar 22 15:03 modules.builtin.bin
-rw-r--r-- 1 root root    69 Mar 22 15:03 modules.ccwmap
-rw-r--r-- 1 root root  1655 Mar 22 15:03 modules.dep
-rw-r--r-- 1 root root  2303 Mar 22 15:03 modules.dep.bin
-rw-r--r-- 1 root root    73 Mar 22 15:03 modules.ieee1394map
-rw-r--r-- 1 root root   141 Mar 22 15:03 modules.inputmap
-rw-r--r-- 1 root root    81 Mar 22 15:03 modules.isapnpmap
-rw-r--r-- 1 root root    74 Mar 22 15:03 modules.ofmap
-rw-r--r-- 1 root root   563 Mar 22 12:34 modules.order
-rw-r--r-- 1 root root   281 Mar 22 15:03 modules.pcimap
-rw-r--r-- 1 root root    43 Mar 22 15:03 modules.seriomap
-rw-r--r-- 1 root root  8073 Mar 22 15:03 modules.symbols
-rw-r--r-- 1 root root  9126 Mar 22 15:03 modules.symbols.bin
-rw-r--r-- 1 root root   189 Mar 22 15:03 modules.usbmap
lrwxrwxrwx 1 root root    23 Mar 22 12:34 source -> /usr/src/linux-2.6.33.1




DIA-Linux-x86_64-190.53-pkg0.run ... Passed
==> Extracting Sources...
==> Starting build()...
Creating directory NVIDIA-Linux-x86_64-190.53-pkg0
Verifying archive integrity... OK
Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86_64 190.53...................................................................................................................................................
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: Build Failed.
    Aborting...

nvidia.install

post_install() {
        KERNEL_VERSION='2.6.33.1'
        depmod $KERNEL_VERSION
}

post_upgrade() {
        post_install
        rmmod nvidia || echo 'In order to use the new nvidia module, exit Xserve
r and unload it manually.'
}

post_remove() {
        KERNEL_VERSION='2.6.33.1'
        depmod $KERNEL_VERSION
}

PKGBUILD


# $Id: PKGBUILD 71315 2010-03-06 17:26:05Z tpowa $
# Maintainer : Thomas Baechler <thomas@archlinux.org>

pkgname=nvidia
pkgver=190.53
_kernver='2.6.33.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.32.3' 'kernel26<2.6.33' "nvidia-utils=${pkgver}")
makedepends=('linux-api-headers>=2.6.32' 'linux-api-headers<2.6.33')
conflicts=('nvidia-96xx' 'nvidia-173xx')
license=('custom')
install=nvidia.install
source=("http://download.nvidia.com/XFree86/Linux-$ARCH/${pkgver}/NVIDIA-Linux-$
ARCH-${pkgver}-pkg0.run")
options=(force)
md5sums=('2e80419f6f9ac16beecd839874d0c5ab')
[ "$CARCH" = "x86_64" ] && md5sums=('3d3e956366f9df0e4c64d2e0299d1029')
build() {
        cd $srcdir
        sh NVIDIA-Linux-$ARCH-${pkgver}-pkg0.run --extract-only
        cd NVIDIA-Linux-$ARCH-${pkgver}-pkg0
        cd usr/src/nv/
        make SYSSRC=/lib/modules/${_kernver}/build module || return 1

        mkdir -p $pkgdir/lib/modules/${_kernver}/kernel/drivers/video/
        install -m644 nvidia.ko $pkgdir/lib/modules/${_kernver}/kernel/drivers/v
ideo/

        sed -i -e "s/KERNEL_VERSION='.*'/KERNEL_VERSION='${_kernver}'/" $startdi
r/nvidia.install
}

could someone help on this? thanks a lot

Last edited by olo (2010-03-23 00:46:07)

Offline

#2 2010-03-22 04:12:42

droog
Member
Registered: 2004-11-18
Posts: 877

Re: 【solved】custom kernel 2.6.33.1 with Nvida (ASB) error

use the nvidia pkgbuild and patch from the testing repo, it includes a patch for using kernel 2.6.33

Last edited by droog (2010-03-22 04:13:23)

Offline

#3 2010-03-22 05:18:31

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,356

Re: 【solved】custom kernel 2.6.33.1 with Nvida (ASB) error

What's the output of `uname -r`?


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

#4 2010-03-22 05:57:32

olo
Member
Registered: 2010-03-18
Posts: 32

Re: 【solved】custom kernel 2.6.33.1 with Nvida (ASB) error

uname -r is

2.6.33.1

Also is there a way to change the kernel symlink ? seems the default is ARCH-kernel

thanks a lot

Last edited by olo (2010-03-22 06:03:08)

Offline

#5 2010-03-22 06:44:51

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: 【solved】custom kernel 2.6.33.1 with Nvida (ASB) error

olo wrote:

pkgver=190.53

If you really need such an old version, then you'll have to patch it. See Nvidia releases.

Offline

#6 2010-03-23 00:48:58

olo
Member
Registered: 2010-03-18
Posts: 32

Re: 【solved】custom kernel 2.6.33.1 with Nvida (ASB) error

Thanks a lot guys, Okey, I have solved this problem. I didnt patch the kernel.
I copied the testing repo nvidia, and comment out

#depends=('kernel>=2.6.33' 'kernel<2.6.34' "nvidia-utils=${pkgver}")
#makedepends=('kernel-api-headers>=2.6.33' 'kernel-api-headers<2.6.34')

and re-compiled. then everythings done.

cheers

Offline

Board footer

Powered by FluxBB