You are not logged in.

#1 2006-09-30 01:00:37

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Upgrading to 2.6.18 broke NVidia [SOLVED]

(This ramble is about the upgrade to kernel 2.6.18.)

I'm on Arch64. I did pacman -Syu, and it wouldn't upgrade. It complained that glibc needed the upgraded kernel-header files. It wasn't included in the upgrade, but it was on the server. I downloaded and upgraded (after renaming a couple of files to resolve complaints). So it all went through. I restarted the system and NVidia is incompatible with the new setup. Honestly, I'm not real sure how to downgrade to a usable state. Will running makepkg on nvidia and nvidia-utils do the trick? Or am I missing something more obvious?

Offline

#2 2006-09-30 01:31:53

iBertus
Member
From: Greenville, NC
Registered: 2004-11-04
Posts: 2,228

Re: Upgrading to 2.6.18 broke NVidia [SOLVED]

Did you get a new nvidia package from the -Syu? If not, you'll have to install versions of the driver complied the kernel you're using. If the driver isn't in the repos yet, change the kernel in the nvidia PKGBUILD and rebuild the package.

Offline

#3 2006-09-30 01:56:21

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Upgrading to 2.6.18 broke NVidia [SOLVED]

iBertus,

Thanks for the quick responce. I figured if anyone knew what the hell my post said, they would understand the problem.

I didn't grab the nvidia and nvidia-utils files off of the server because it isn't an update. I was hoping that there was already packages built. I'll just rebuild; It's easy enough to do.

It didn't work.

Offline

#4 2006-09-30 03:25:24

iBertus
Member
From: Greenville, NC
Registered: 2004-11-04
Posts: 2,228

Re: Upgrading to 2.6.18 broke NVidia [SOLVED]

I'm assuming you changed the _kernver variable to the same as what is reported by 'uname -r'?

Offline

#5 2006-09-30 03:27:04

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Upgrading to 2.6.18 broke NVidia [SOLVED]

I used the current PKGBUILD files. The variable is already set set for 2.6.18:

pkgname=nvidia
pkgver=1.0.8774
_nver=1.0-8774
_kernver='2.6.18-ARCH'
pkgrel=2

Offline

#6 2006-09-30 06:04:22

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Upgrading to 2.6.18 broke NVidia [SOLVED]

I started again with the package build. It turns out that the NVidia driver does not build correctly. Yes, makepkg generates a package file, but it's broken. I'm having difficulties figuring out exactly where it breaks. It does mention something like 'nvidia.ko failed to build'. It's an all too familiar error, but it's been a long time since I've had to think about it.

Offline

#7 2006-09-30 15:06:23

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Upgrading to 2.6.18 broke NVidia [SOLVED]

My PKGBUILD file was wrong. This is a modified version of the official file that will work on the x86_64 architecture:

# $Id: PKGBUILD,v 1.57 2006/09/20 10:32:24 tpowa Exp $
# Maintainer : Tobias Powalowski <tpowa>


pkgname=nvidia
pkgver=1.0.8774
_nver=1.0-8774
_kernver='2.6.18-ARCH'
pkgrel=2
pkgdesc="NVIDIA drivers for Arch kernel."
arch=(x86_64)
url="http://www.nvidia.com/"
depends=(kernel26 nvidia-utils)
install=nvidia.install
source=(http://download.nvidia.com/XFree86/Linux-x86_64/${_nver}/NVIDIA-Linux-x86_64-${_nver}-pkg2.run)

build()
{
  # Extract
  cd $startdir/src/
  sh NVIDIA-Linux-x86_64-${_nver}-pkg0.run --extract-only
  cd NVIDIA-Linux-x86_64-${_nver}-pkg0
  
  # 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 nvidia.ko $startdir/pkg/lib/modules/${_kernver}/kernel/drivers/video/

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

Of course you will need all of the other files, patches and stuff, from the official package.

Offline

Board footer

Powered by FluxBB