You are not logged in.

#1 2009-11-04 01:04:30

slacknatcher
Member
From: Chile
Registered: 2009-07-08
Posts: 55

[SOLVED]nvidia PKGBUILD doesn't install in custom kernel

hello folks

anyone has experienced problem installing the nvidia driver 190.42 in a custom kernel?

i never got anykind of issues installing this driver in my customs kernel, but this update in particular has making my kernel unusable ( for desktop use )

i am using the 2.6.31.5 compiled with safe options and working before the update

i got this when i am trying to install it

Creating directory NVIDIA-Linux-x86_64-190.42-pkg0
Verifying archive integrity... OK
Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86_64 190.42.........................................
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

my kernel is compiled for K8 amd (x86_64)

and the PKGBUILD and te nvidia.install file are fine too , customized.

look

PKGBUILD

# $Id: PKGBUILD 56687 2009-10-25 15:28:13Z pierre $
# Maintainer : Thomas Baechler <thomas@archlinux.org>

pkgname=nvidia-a
pkgver=190.42
_kernver='2.6.31.5'
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.31' 'kernel26<2.6.32' "nvidia-utils=${pkgver}")
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")
md5sums=('f94806feee87de756d14fe3e9bcaf05a')
[ "$CARCH" = "x86_64" ] && md5sums=('ae431ff849ec01446e6724f9fcfe3bb4')
build() {
        cd $srcdir
        sh NVIDIA-Linux-$ARCH-${pkgver}-pkg0.run --extract-only
        cd NVIDIA-Linux-$ARCH-${pkgver}-pkg0

        cd usr/src/nv/
        ln -s Makefile.kbuild Makefile
        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/video/

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

and nvidia.install

post_install() {
        KERNEL_VERSION='2.6.31.5'
        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.31.5'
        depmod $KERNEL_VERSION
}

anyone has experienced the same issue? is in a bugtracker? the packager know that this issue exist?
thanks in advance

slacker tongue

Last edited by slacknatcher (2009-11-06 20:48:10)


Miscusi for my bad english

Offline

#2 2009-11-04 02:29:27

toxygen
Member
Registered: 2008-08-22
Posts: 713

Re: [SOLVED]nvidia PKGBUILD doesn't install in custom kernel

did you change

_kernver='2.6.31.5'

to your custom kernel name?


"I know what you're thinking, 'cause right now I'm thinking the same thing. Actually, I've been thinking it ever since I got here:
Why oh why didn't I take the BLUE pill?"

Offline

#3 2009-11-04 02:44:29

slacknatcher
Member
From: Chile
Registered: 2009-07-08
Posts: 55

Re: [SOLVED]nvidia PKGBUILD doesn't install in custom kernel

yes my custom kernel name is 2.6.31.5 and the modules are in /lib/modules/2.6.31.5
the archlinux kernel is under the name of 2.6.31-ARCH and it has his modules under /lib/modules/2.6.31-arch

and yes y put  _kernver=2.6.31.5 like you could see above smile


Miscusi for my bad english

Offline

#4 2009-11-04 04:32:46

toxygen
Member
Registered: 2008-08-22
Posts: 713

Re: [SOLVED]nvidia PKGBUILD doesn't install in custom kernel

slacknatcher wrote:

yes my custom kernel name is 2.6.31.5 and the modules are in /lib/modules/2.6.31.5
the archlinux kernel is under the name of 2.6.31-ARCH and it has his modules under /lib/modules/2.6.31-arch

and yes y put  _kernver=2.6.31.5 like you could see above smile

i see that now.  smile sorry

got me bud


"I know what you're thinking, 'cause right now I'm thinking the same thing. Actually, I've been thinking it ever since I got here:
Why oh why didn't I take the BLUE pill?"

Offline

#5 2009-11-04 07:22:48

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

Re: [SOLVED]nvidia PKGBUILD doesn't install in custom kernel

Its a problem with your custom kernel not having some file or other that the nvidia Makefile looks for, I believe. Had this issue with kernel26rt and kernel26-ice before. I believe it was solved by symlinking something in /usr/src...


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

#6 2009-11-04 09:29:40

s3kt0r
Member
Registered: 2009-01-20
Posts: 208

Re: [SOLVED]nvidia PKGBUILD doesn't install in custom kernel

_kernver='uname -r'

try that.


box1: Arch (linux-3.17-rc5)
box2: Gentoo (linux-3.17-rc5)
wm: subtle

Offline

#7 2009-11-04 10:37:24

klixon
Member
From: Nederland
Registered: 2007-01-17
Posts: 525

Re: [SOLVED]nvidia PKGBUILD doesn't install in custom kernel

you should check if /lib/modules/2.6.31.5/build is a symlink to your kernel source-tree
if it is, did you run make clean after building the kernel?
if so, go to your kernel source-tree and run this

make modules-prepare

and try again


Stand back, intruder, or i'll blast you out of space! I am Klixon and I don't want any dealings with you human lifeforms. I'm a cyborg!

Offline

#8 2009-11-04 19:01:27

slacknatcher
Member
From: Chile
Registered: 2009-07-08
Posts: 55

Re: [SOLVED]nvidia PKGBUILD doesn't install in custom kernel

i tried the "make modules-prepare" and i didn't work :S,
i tried to install the nvidia driver in the oldschool-way and i noted that i am missing a file, specifically the /lib/modules/2.6.31.5/build/include/linux/version.h doesn't exist !, that is weird :S never happened me before, now i am going to rebuild my kernel and see if a did something wrong :S

or there is another way to recover the version.h without rebuild?, if anyody know please say it !, it would safe me from recompile ! XD

thanks in advance
slack


Miscusi for my bad english

Offline

#9 2009-11-04 21:08:14

klixon
Member
From: Nederland
Registered: 2007-01-17
Posts: 525

Re: [SOLVED]nvidia PKGBUILD doesn't install in custom kernel

here's mine that works on 2.6.31-zen6 for reference. I'm way too lazy to run diff on both atm

pkgname=nvidia-zen
pkgver=190.42
_kernver=$( uname -r )
pkgrel=99
pkgdesc="NVIDIA drivers for zen kernel."
arch=('i686' 'x86_64')
[ "$CARCH" = "i686"   ] && ARCH=x86
[ "$CARCH" = "x86_64" ] && ARCH=x86_64
url="http://www.nvidia.com/"
depends=("nvidia-utils=${pkgver}")
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")
md5sums=('f94806feee87de756d14fe3e9bcaf05a')
[ "$CARCH" = "x86_64" ] && md5sums=('ae431ff849ec01446e6724f9fcfe3bb4')
build() {
    cd $srcdir
    sh NVIDIA-Linux-$ARCH-${pkgver}-pkg0.run --extract-only
    cd NVIDIA-Linux-$ARCH-${pkgver}-pkg0

    cd usr/src/nv/
    ln -s Makefile.kbuild Makefile
    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/video/

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

Stand back, intruder, or i'll blast you out of space! I am Klixon and I don't want any dealings with you human lifeforms. I'm a cyborg!

Offline

#10 2009-11-06 20:47:36

slacknatcher
Member
From: Chile
Registered: 2009-07-08
Posts: 55

Re: [SOLVED]nvidia PKGBUILD doesn't install in custom kernel

well i finally surrender and back to windows ... ( just kidding XD)

no i rebuild the kernel and everyworks fine :S weird, i don't really know what erase my version.h :S

i am going to maked as solved


Miscusi for my bad english

Offline

Board footer

Powered by FluxBB