ubuntu-x-swat team mailing list archive
-
ubuntu-x-swat team
-
Mailing list archive
-
Message #09747
[Bug 395635] [NEW] nvidia-173-kernel-source build issue solved. (patch)
Public bug reported:
Binary package hint: nvidia-173-kernel-source
lsb_release -rd
Description: Ubuntu 9.04
Release: 9.04
------------------------------------------------------------------------------------
pt-cache policy nvidia-173-kernel-source
nvidia-173-kernel-source:
Installed: 173.14.16-0ubuntu1
Candidate: 173.14.16-0ubuntu1
Version table:
*** 173.14.16-0ubuntu1 0
500 http://us.archive.ubuntu.com jaunty/restricted Packages
100 /var/lib/dpkg/status
------------------------------------------------------------------------------------
Problem:
No matter what, whether I use the nvidia installer or attempt to 'make
module' under package source provided, the make attempt would exit with
an error at line 130 of os-interface.c. I did some searching with Uncle
Google, and found a patch. I applied the patch to version 173.14.16 of
the module source and it built with NO complaint and NO errors. In
fact, its the ONLY way I got my nvidia card driver into the kernel with
no problems - all other attempts failed.
Solution, as follows: @os-interface.c:line 127-ish
change line 'spin_lock_init(&os_sema->lock);'
to
#ifdef CONFIG_PREEMPT_RT
rt_spin_lock_init(&os_sema->lock);
#else
spin_lock_init(&os_sema->lock);
#endif
... and voila, it will handle kernels built with varying preemption
configurations.
Here is the link to the original solution:
http://www.nvnews.net/vbulletin/showthread.php?t=132145
I urge you to patch the current 173.14.16 version immediately, and test
it for yourself.
Further:
I urge you to push this fix up-channel to nVidia itself as ALL
installers croak at the exact same point with the exact same problem on
your distro's kernel. Also, I would like you to extract 173.14.20 from
the installer (or however you got the 173.14.16 source) and test the
patch with that version. If it works: WILL YOU PLEASE UPDATE THIS
PACKAGE TO 173.14.20 with the patch and fixes?!? -OR- email me with how
to extract the source from the installer and I'll build and test it
myself and report my findings back. Seriously, once I got the error
message through my head it took 20 minutes to fix this problem, its not
that hard ... please maintain this critical package.
Thanks,
G. Gibson
** Affects: nvidia-graphics-drivers-173 (Ubuntu)
Importance: Undecided
Status: New
--
nvidia-173-kernel-source build issue solved. (patch)
https://bugs.launchpad.net/bugs/395635
You received this bug notification because you are a member of Ubuntu-X,
which is subscribed to nvidia-graphics-drivers-173 in ubuntu.
Follow ups
References