ubuntu-x-swat team mailing list archive
-
ubuntu-x-swat team
-
Mailing list archive
-
Message #131983
[Bug 795562] [NEW] Dkms fails to build nvidia module for kernel 3.0-01
Public bug reported:
As the new kernel is greater than 2.6, the dkms.conf dont accept the 3 version, so nvidia users cant use the latest kernel.
But someone have found what is needed to be tweaked:
1. patch /usr/src/linux-3.0-0-generic/include/linux/rcupdate.h
according to http://choon.net/forum/read.php?21,82725
2. this file /usr/src/nvidia-current-275.09.04/dkms.conf prevents build with kernels newer than 2.6, so you have to modify the line:
OBSOLETE_BY=3.0.0
3. in the file /usr/src/nvidia-current-275.09.04/nv-linux.h, there's a section:
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 4, 7)
# error This driver does not support 2.4 kernels older than 2.4.7!
#elif LINUX_VERSION_CODE < KERNEL_VERSION(2, 5, 0)
# define KERNEL_2_4
#elif LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 0)
# error This driver does not support 2.5 kernels!
#elif LINUX_VERSION_CODE < KERNEL_VERSION(2, 7, 0)
# define KERNEL_2_6
#else
# error BLAHBLAH
#endif
so you have to replace error BLAHBLAH with something like define KERNEL_2_6
so that we pretend it's a 2.6 kernel.
You should then run
sudo dkms build -m nvidia-current -v 275.09.04 -k 3.0-0-generic
sudo dkms install -m nvidia-current -v 275.09.04 -k 3.0-0-generic
ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: nvidia-current 270.41.06-0ubuntu1
ProcVersionSignature: Ubuntu 2.6.39-3.10-generic-pae 2.6.39
Uname: Linux 2.6.39-3-generic-pae i686
NonfreeKernelModules: nvidia
.proc.driver.nvidia.gpus.0: Error: [Errno 21] est un dossier: '/proc/driver/nvidia/gpus/0'
.proc.driver.nvidia.registry: Binary: ""
.proc.driver.nvidia.version:
NVRM version: NVIDIA UNIX x86 Kernel Module 270.41.06 Mon Apr 18 14:54:25 PDT 2011
GCC version: gcc version 4.6.1 (Ubuntu/Linaro 4.6.0-11ubuntu2)
Architecture: i386
CompizPlugins: No value set for `/apps/compiz-1/general/screen0/options/active_plugins'
CompositorRunning: None
Date: Fri Jun 10 16:02:15 2011
DistUpgraded: Fresh install
DistroCodename: oneiric
DistroVariant: ubuntu
GraphicsCard:
nVidia Corporation G86 [GeForce 8500 GT] [10de:0421] (rev a1) (prog-if 00 [VGA controller])
Subsystem: ASUSTeK Computer Inc. Device [1043:824f]
JockeyStatus:
xorg:nvidia_173 - Pilote d'accélération graphique NVIDIA (Propriétaire, Désactivé, Non utilisé)
xorg:nvidia_current - Pilote d'accélération graphique NVIDIA (Propriétaire, Activé, Non utilisé)
Lsusb:
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
MachineType: ASUSTEK COMPUTER INC P5W DH Deluxe
ProcEnviron:
LANGUAGE=fr_FR:fr:en_GB:en
PATH=(custom, no user)
LANG=fr_FR.utf8
LC_MESSAGES=fr_FR.utf8
SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.39-3-generic-pae root=UUID=9e61e83e-bca9-43cf-aa90-5a68892213fa ro vga=792 quiet crashkernel=384M-2G:64M,2G-:128M quiet splash vt.handoff=7
Renderer: Unknown
SourcePackage: nvidia-graphics-drivers
UpgradeStatus: No upgrade log present (probably fresh install)
XorgConf:
Section "Device"
Identifier "Default Device"
Option "NoLogo" "True"
EndSection
dmi.bios.date: 10/22/2009
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 3001
dmi.board.asset.tag: To Be Filled By O.E.M.
dmi.board.name: P5W DH Deluxe
dmi.board.vendor: ASUSTeK Computer INC.
dmi.board.version: Rev 1.xx
dmi.chassis.asset.tag: Asset-1234567890
dmi.chassis.type: 3
dmi.chassis.vendor: Chassis Manufacture
dmi.chassis.version: Chassis Version
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr3001:bd10/22/2009:svnASUSTEKCOMPUTERINC:pnP5WDHDeluxe:pvrSystemVersion:rvnASUSTeKComputerINC.:rnP5WDHDeluxe:rvrRev1.xx:cvnChassisManufacture:ct3:cvrChassisVersion:
dmi.product.name: P5W DH Deluxe
dmi.product.version: System Version
dmi.sys.vendor: ASUSTEK COMPUTER INC
version.compiz: compiz 1:0.9.4+bzr20110606-0ubuntu3
version.libdrm2: libdrm2 2.4.25+git20110515.61be9401-0ubuntu0sarvatt~oneiric
version.libgl1-mesa-dri: libgl1-mesa-dri 7.10.2-0ubuntu2
version.libgl1-mesa-dri-experimental: libgl1-mesa-dri-experimental N/A
version.libgl1-mesa-glx: libgl1-mesa-glx 7.11.0+git20110530.76056510-0ubuntu0sarvatt
version.nvidia-graphics-drivers: nvidia-graphics-drivers N/A
version.xserver-xorg: xserver-xorg 1:7.6+4ubuntu3
version.xserver-xorg-video-ati: xserver-xorg-video-ati N/A
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.15.0-3ubuntu1
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:0.0.16+git20110411+8378443-1
** Affects: nvidia-graphics-drivers (Ubuntu)
Importance: Undecided
Status: New
** Tags: apport-bug i386 oneiric ubuntu unity-2d
--
You received this bug notification because you are a member of Ubuntu-X,
which is subscribed to nvidia-graphics-drivers in Ubuntu.
https://bugs.launchpad.net/bugs/795562
Title:
Dkms fails to build nvidia module for kernel 3.0-01
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers/+bug/795562/+subscriptions
Follow ups
References