Nvidia fails to rebuild on Kernel Upgrade [Solved]

Questions about hardware and drivers
Forum rules
Before you post please read how to get help

Nvidia fails to rebuild on Kernel Upgrade [Solved]

Postby GeneC on Mon Aug 08, 2011 4:44 pm

I installed Nvidia driver via the "debian method" through synaptic, when I first loaded Debian (64bit) last Christmas when it first came out.
It worked fine.

I soon installed the Liquorix kernel to solve my problem of not being able to suspend or hibernate, that worked well also.

Now Liquorix had LOTS of updates to its kernel. I will guess I have have had about 10 upgrades to Liquorix since last Dec.
All worked perfectly with Nvidia automatically recompiling through dkms.
Also had several (4-5?) Nvidia upgrades, again all went automatically and went well.

Never had a problem.... Until a few days ago.

I upgraded from Liquorix 2.6.39-3 to 2.6.39-4

Nvidia broke

I booted back into the 2.6.39-3 kernel...all was fine.
I thought I would wait for a new kernel upgrade to try again, but feeling experimental I went into the "SID" repo today and downloaded the new Debian 3.0.0-1 (image and headers).
Same problem.

Code: Select all
Preconfiguring packages ...
Selecting previously deselected package linux-image-3.0.0-1-amd64.
(Reading database ... 178952 files and directories currently installed.)
Unpacking linux-image-3.0.0-1-amd64 (from .../linux-image-3.0.0-1-amd64_3.0.0-1_amd64.deb) ...
Selecting previously deselected package linux-headers-3.0.0-1-common.
Unpacking linux-headers-3.0.0-1-common (from .../linux-headers-3.0.0-1-common_3.0.0-1_amd64.deb) ...
Selecting previously deselected package linux-kbuild-3.0.0.
Unpacking linux-kbuild-3.0.0 (from .../linux-kbuild-3.0.0_3.0.0-2_amd64.deb) ...
Selecting previously deselected package linux-headers-3.0.0-1-amd64.
Unpacking linux-headers-3.0.0-1-amd64 (from .../linux-headers-3.0.0-1-amd64_3.0.0-1_amd64.deb) ...
Setting up linux-image-3.0.0-1-amd64 (3.0.0-1) ...
Running depmod.
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/dkms 3.0.0-1-amd64 /boot/vmlinuz-3.0.0-1-amd64

dkms.conf: Error! No 'BUILT_MODULE_NAME' directive specified for record #0.
Error! Bad conf file.
File:
does not represent a valid dkms.conf file.

run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.0.0-1-amd64 /boot/vmlinuz-3.0.0-1-amd64
update-initramfs: Generating /boot/initrd.img-3.0.0-1-amd64
run-parts: executing /etc/kernel/postinst.d/pm-utils 3.0.0-1-amd64 /boot/vmlinuz-3.0.0-1-amd64
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.0.0-1-amd64 /boot/vmlinuz-3.0.0-1-amd64
Generating grub.cfg ...
Found background image: linuxmint.png
Found Debian background: linuxmint.png
Found linux image: /boot/vmlinuz-3.0.0-1-amd64
Found initrd image: /boot/initrd.img-3.0.0-1-amd64
Found linux image: /boot/vmlinuz-2.6.39-3.dmz.2-liquorix-amd64
Found initrd image: /boot/initrd.img-2.6.39-3.dmz.2-liquorix-amd64
Found Ubuntu 11.04 (11.04) on /dev/sda3
done
Setting up linux-headers-3.0.0-1-common (3.0.0-1) ...
Setting up linux-kbuild-3.0.0 (3.0.0-2) ...
Setting up linux-headers-3.0.0-1-amd64 (3.0.0-1) ...
Examining /etc/kernel/header_postinst.d.
run-parts: executing /etc/kernel/header_postinst.d/dkms 3.0.0-1-amd64

dkms.conf: Error! No 'BUILT_MODULE_NAME' directive specified for record #0.
Error! Bad conf file.
File:
does not represent a valid dkms.conf file.


Seems to be a problem with the Nvidia dkms

Boots to prompt
entered "startx"
I forget the exact message, but something like "...Fatal server error.."

After many successful kernel upgrades why this sudden problem?

I am happy with my current functioning kernel (liquorix 2.6.39-3), but I will want to upgrade in the future.

I am thinking I would have to delete (or edit) my xorg.conf (nvidia), so I can boot back in Nouveau (or VESA), and then reload Nvidia??

Is this the case?

Also , any Idea why this would break now after so many sucessful kernel AND driver upgrades?
Last edited by GeneC on Tue Aug 09, 2011 11:42 am, edited 2 times in total.
GeneC

AMD Phenom2x4 3.2 ghz, 12GB DDR3, Nvidia GTX 460

Sparky Cin 2.2 (Debian Testing)
Manjaro .9.0dev (Cin 2.4) Unstable
Sparky Gnome 3.14 (SID)
User avatar
GeneC
Level 7
Level 7
 
Posts: 1575
Joined: Fri Sep 03, 2010 1:59 pm
Location: Maine, USA

Linux Mint is funded by ads and donations.
 

Re: Nvidia fails to rebuild on Kernel Upgrade

Postby GeneC on Mon Aug 08, 2011 6:40 pm

Well, I solved this issue.

I installed and used SMXI to upgrade Liquorix, and then Nvidia (Even got the later 280 driver).
http://smxi.org/

The first time you use SMXI it seems a tad confusing (to an old senile fart like me, anyway) :roll:
But, I am sure it will get easier each time I use it (like Clonezilla was).

Thanks to the folks at SMXI.
GeneC

AMD Phenom2x4 3.2 ghz, 12GB DDR3, Nvidia GTX 460

Sparky Cin 2.2 (Debian Testing)
Manjaro .9.0dev (Cin 2.4) Unstable
Sparky Gnome 3.14 (SID)
User avatar
GeneC
Level 7
Level 7
 
Posts: 1575
Joined: Fri Sep 03, 2010 1:59 pm
Location: Maine, USA

Re: Nvidia fails to rebuild on Kernel Upgrade

Postby CiaW on Wed Aug 10, 2011 6:40 pm

GeneC wrote:I installed and used SMXI to upgrade Liquorix, and then Nvidia (Even got the later 280 driver).
http://smxi.org/

Thanks to the folks at SMXI.

+1 to that! On Debian squeeze I installed the 2.6.38bpo (backports) kernel and dkms didn't work. So after some fussing with various things I also added smxi and it worked great. It removed the dkms & related nvidia stuff for the 32 kernel, so I had to run the script while booted to both kernels to get working nvidia on both.
CiaW
Level 3
Level 3
 
Posts: 170
Joined: Fri Sep 10, 2010 11:39 am
Location: Spokane Wash, USA

Re: Nvidia fails to rebuild on Kernel Upgrade [Solved]

Postby h2-1 on Wed Aug 10, 2011 7:26 pm

Actually that's not correct, for nvidia, once you install the current driver for your card, or any driver actually, but easiest is current, anyway, install to running kernel, then: sgfxi -! 40 will build modules for all other kernels. Not quite as easy as dkms but it certainly works.

Note that sgfxi always assumes you are building modules for current latest driver for your system, so if you are using some other driver you should pass that module number to sgfxi with the -o option, that has to be installed via sgfxi by the way or it doesn't work. Or the -B option if it was a beta, but again, the beta driver can change or be removed at any point.

Read sgfxi --help for better explanation.

this is an nvidia only feature, fglrx is incapable of any advanced options like that.
smxi/sgfxi site (manuals, how-to's, faqs) :: script forums :: Check out inxi sys info script!
h2-1
Level 3
Level 3
 
Posts: 118
Joined: Sat Oct 16, 2010 4:02 pm

Re: Nvidia fails to rebuild on Kernel Upgrade [Solved]

Postby GeneC on Wed Aug 10, 2011 7:44 pm

h2-1 wrote:......, install to running kernel, then: sgfxi -! 40 will build modules for all other kernels. Not quite as easy as dkms but it certainly works.
...............
Read sgfxi --help for better explanation.

this is an nvidia only feature, fglrx is incapable of any advanced options like that.


Thanks for the explanation on that.
I'll try it on next use.
GeneC

AMD Phenom2x4 3.2 ghz, 12GB DDR3, Nvidia GTX 460

Sparky Cin 2.2 (Debian Testing)
Manjaro .9.0dev (Cin 2.4) Unstable
Sparky Gnome 3.14 (SID)
User avatar
GeneC
Level 7
Level 7
 
Posts: 1575
Joined: Fri Sep 03, 2010 1:59 pm
Location: Maine, USA


Return to Hardware Support

Who is online

Users browsing this forum: No registered users and 3 guests