Friday, April 26, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 837  / 1 Year ago, tue, january 31, 2023, 12:31:06

I am using Kernel 3.7.9 in Ubuntu 12.04. I currently can not build the Nvidia packages for Bumblebee.



There is a bugfix available, but I have no clue how to use it.



The instructions are:



[Impact] Nvidia and fglrx drivers need to be updated in order to build against Linux 3.7

[Test case]
1. Install the latest upstream kernel as described at https://wiki.ubuntu.com/Kernel/MainlineBuilds
2. confirm that the nvidia and fglrx drivers fail to compile against this kernel, and that rebooting to this kernel gives no binary driver.
3. upgrade to the packages in precise-proposed.
4. confirm that the new version of the package successfully builds the kernel module.


The error:



Building initial module for 3.7.9-030709-generic
ERROR (dkms apport): kernel package linux-headers-3.7.9-030709-generic is not supported
Error! Bad return status for module build on kernel: 3.7.9-030709-generic (x86_64)


Would it be better to use another kernel version?


More From » 12.04

 Answers
0

Download NVIDIA-x86_64-310-32.run and execute: ./NVIDIA-x86_64-310-32.run --extract-only.



Open file ./NVIDIA-x86_64-310-32/kernel/conftest.sh and go to line 1706. Inside the test syntax for SUBLEVEL replace $SUBLEVEL -le 5 by $SUBLEVEL -le 9 and save the file.



Go to directory ./NVIDIA-x86_64-310-32/ and run ./nvidia-installer. It will work correctly.



Enjoy






--- conftest.sh 2013-01-14 23:41:17.000000000 +0100
+++ conftest-patched.sh 2013-03-04 23:23:05.581357849 +0100
@@ -1703,7 +1703,7 @@
SUBLEVEL=$(grep "^SUBLEVEL =" $MAKEFILE | cut -d " " -f 3)

if [ -n "$PATCHLEVEL" -a $PATCHLEVEL -ge 6
- -a -n "$SUBLEVEL" -a $SUBLEVEL -le 5 ]; then
+ -a -n "$SUBLEVEL" -a $SUBLEVEL -le 9 ]; then
SELECTED_MAKEFILE=Makefile.kbuild
RET=0
fi

[#32451] Tuesday, January 31, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ormlai

Total Points: 292
Total Questions: 106
Total Answers: 115

Location: Cape Verde
Member since Fri, Sep 16, 2022
2 Years ago
ormlai questions
Wed, Sep 28, 22, 00:17, 2 Years ago
Sun, Aug 7, 22, 22:05, 2 Years ago
Wed, Jun 16, 21, 03:50, 3 Years ago
Sun, Feb 6, 22, 09:11, 2 Years ago
Mon, Jul 12, 21, 10:00, 3 Years ago
;