You are not logged in.

#1 2009-04-08 18:37:36

funkmuscle
Member
Registered: 2006-02-09
Posts: 534

nvidia and kernel-2.6.29.1_rt4

hey, which nvidia-rt-173xx driver works? I keep getting errors...
*** Unable to determine the target kernel version. ***

make: *** [select_makefile] Error 1
install: cannot stat `nvidia.ko': No such file or directory

I've tried 173.14.12 and 173.14.18

do I need kernel-firmware from testing??
I removed the kernel-firmware when I tried rt1

this was mentioned, thanx to fackamato...

Yeah it fails because it can't find the kernel sources/headers... I had to manually do sudo sh NVIDIA-driver.sh --with-kernel-source=/path/to/kernel26-rt/src/linux-2.6.29.1 .

185.19 works for me this way. I guess something should be changed in the PKGBUILD in order for this not to be needed...

one problem, can you explain this: "--with-kernel-source=/path/to/kernel26-rt/src/linux-2.6.29.1"
that fails with this command: sudo sh NVIDIA-Linux-x86-173.14.18-pkg1.run

Offline

#2 2009-04-08 19:18:31

Ranguvar
Member
Registered: 2008-08-12
Posts: 2,544

Re: nvidia and kernel-2.6.29.1_rt4

Linux modules install into a kernel directory under /lib/modules/ depending on the kernel version. You need to force nvidia to install its modules into the right directory. Change the _kernver variable to your kernel version that uname gives you, and change the dependencies etc. to follow.

Offline

#3 2009-04-08 19:32:34

funkmuscle
Member
Registered: 2006-02-09
Posts: 534

Re: nvidia and kernel-2.6.29.1_rt4

thanx Ranguvar but this is the PKGBUILD I'm using that I got from AUR and edited for the latest kernel26rt.


pkgname=nvidia-rt-173xx
pkgver=173.14.18
_kernver='2.6.29-rt'
pkgrel=5
pkgdesc="NVIDIA legacy drivers for kernel26rt 173xx branch."
arch=('i686' 'x86_64')
[ "$CARCH" = "i686"   ] && ARCH=x86
[ "$CARCH" = "x86_64" ] && ARCH=x86_64

url="http://www.nvidia.com/"
depends=('kernel26rt>=2.6.29.1_rt4' 'nvidia-173xx-utils')
conflicts=('nvidia' 'nvidia-96xx' 'nvidia-71xx' 'nvidia-legacy')
license=('custom')
install=nvidia.install

source=(http://download.nvidia.com/XFree86/Linux-x86/${pkgver}/NVIDIA-Linux-x86-${pkgver}-pkg1.run)
md5sums=()
[ "$CARCH" = "x86_64" ] && md5sums=()

build()
{
  # Extract
  cd $startdir/src/
  sh NVIDIA-Linux-$ARCH-${pkgver}-pkg1.run --extract-only
  cd NVIDIA-Linux-$ARCH-${pkgver}-pkg1
 
  # Any extra patches are applied in here...

  cd usr/src/nv/
  ln -s Makefile.kbuild Makefile
  make SYSSRC=/lib/modules/${_kernver}/build module
 
  # install kernel module
  mkdir -p $startdir/pkg/lib/modules/${_kernver}/kernel/drivers/video/
  install -m644 nvidiafb.ko $startdir/pkg/lib/modules/2.6.29-rt/kernel/drivers/video/

  sed -i -e "s/KERNEL_VERSION='.*'/KERNEL_VERSION='2.6.29-rt'/" $startdir/*.install
}

Where am I going wrong?

Offline

#4 2009-04-08 22:05:26

Zariel
Member
Registered: 2008-10-07
Posts: 446

Re: nvidia and kernel-2.6.29.1_rt4

you can just use kernver=$(uname -r)

Offline

#5 2009-04-08 23:49:29

funkmuscle
Member
Registered: 2006-02-09
Posts: 534

Re: nvidia and kernel-2.6.29.1_rt4

Zariel,

you can just use kernver=$(uname -r)

don't I need to be booting into that kernel for it to work? I can boot the kernel but it end at a dark screen. Can't get into X or to console screen.

I tried forcing it as mentioned earlier by dropping into console mode but it still said that X was running after I killed it all.

Offline

#6 2009-04-10 02:21:44

funkmuscle
Member
Registered: 2006-02-09
Posts: 534

Re: nvidia and kernel-2.6.29.1_rt4

maybe my explanation is not too clear... I'm running both kernel-2.6.29-ARCH and kernel-2.6.29-rt.

The nvidia-173xx works on the kernel-2.6.29-ARCH but not the real-time.
I've been using both ARCH and rt kernel for a few years now and never had an issue upgrading.

When I build the nvidia-rt-173xx, it says it can't find the rt kernel.
My kernel builds fine. I built it from AUR many times and the lateset at least 5 tries.

Does anyone know what is going on?

*** Unable to determine the target kernel version. ***

make: *** [select_makefile] Error 1
install: cannot stat `nvidia.ko': No such file or directory

I cannot boot into console screen for the RT kernel... the kernel boots to a flashing cursor. I can't ctrl+alt+F1 or ctrl+alt+backspace, etc.

Last edited by funkmuscle (2009-04-10 02:24:32)

Offline

#7 2009-04-11 15:23:27

JF
Member
From: France
Registered: 2009-03-27
Posts: 39

Re: nvidia and kernel-2.6.29.1_rt4

Hi funkmuscle, what about booting once without X in order to have a working CLI to work with ? It's also very usefull to set / test X or video drivers.

Offline

#8 2009-04-11 15:29:59

funkmuscle
Member
Registered: 2006-02-09
Posts: 534

Re: nvidia and kernel-2.6.29.1_rt4

JF, what's the command for that? I know how to get there from X but not from booting. The maintainer of the nvidia-rt is having the same issue as me so I'll wait to see what he resolves.
Thanx JF but can you still tell me how to boot without X.

Offline

#9 2009-04-11 15:44:07

JF
Member
From: France
Registered: 2009-03-27
Posts: 39

Re: nvidia and kernel-2.6.29.1_rt4

Well there are several ways to start X during boot, you can try looking in your /etc/rc.conf if your display manager (eg: kdm for KDE, gdm for Gnome) is listed here, in the "DAEMON=" line.

If yes just add a "!" before the daemon's name to disable it. When you want x to start again during boot, just remove the "!".

Offline

#10 2009-04-11 19:30:50

funkmuscle
Member
Registered: 2006-02-09
Posts: 534

Re: nvidia and kernel-2.6.29.1_rt4

oh yeah, I forgot that one... thanx again.

Offline

Board footer

Powered by FluxBB