LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 01-13-2019, 10:55 AM   #1
gpldecha
LQ Newbie
 
Registered: Jan 2019
Location: London, UK
Posts: 3

Rep: Reputation: Disabled
Smile Unable to build kernel 4.4 with dkms/nvidia-396 on Ubuntu 16.04


Hi,

I am a complete novice when it comes to building a linux kernel from source. I would like to be able to build one as I would either need to patch it with the preempt_rt patch or use it with xenomai.

I am currently running Ubuntu 16.04 with a GTX 1080.

I have tried a few kernel image from v4.x

- 4.4.1
- 4.4.14
- 4.4.169

which I patched with the corresponding kernel-ppa/mainline/ Ubuntu patches.

Then for each of the kernel sources I ran the following:

Code:
make menuconfig
and I simply saved to .config, did not change anything.
The did the following steps:

Code:
make 
sudo make modules_install
sudo make install
sh ./arch/x86/boot/install.sh 4.4.14 arch/x86/boot/bzImage \
	System.map "/boot"
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.14 /boot/vmlinuz-4.4.14
run-parts: executing /etc/kernel/postinst.d/dkms 4.4.14 /boot/vmlinuz-4.4.14
ERROR (dkms apport): kernel package linux-headers-4.4.14 is not supported
Error! Bad return status for module build on kernel: 4.4.14 (x86_64)
Consult /var/lib/dkms/nvidia-396/396.54/build/make.log for more information.
which resulted in the above message. I have tried various combinations of the kernel versions with nvidia-384, nvidia-396 and nvidia-415 which
resulted in the same type of error message.

I would appreciate any help or suggestion on how I can compile a linux kernel which will work with ubuntu nvidia drivers.
 
Old 01-13-2019, 01:44 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Please post the log file content (/var/lib/dkms/nvidia-396/396.54/build/make.log)

The build failure cause will be in this file.
 
Old 01-16-2019, 02:24 PM   #3
gpldecha
LQ Newbie
 
Registered: Jan 2019
Location: London, UK
Posts: 3

Original Poster
Rep: Reputation: Disabled
Since then I have re-installed my OS to Ubuntu 18.04 and do not have the log fails. I remember there being only a few lines one of them
being:

/Kbuild: No such file or directory nvidia-384
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
dkms fails to build even the build process is successful? Crounus Linux - Kernel 1 04-26-2018 04:52 AM
LXer: Vendetta Online 1.8.396 MMORPG Released for Linux, Mac, Windows, and Andriod LXer Syndicated Linux News 0 11-13-2016 09:06 PM
[SOLVED] Linux 4.0 is in unstable, warning: nvidia-kernel-dkms won't build properly Daws Debian 2 05-13-2015 07:59 PM
error 396, on a variable (gcc), learning GCC step by step frenchn00b Programming 2 09-11-2009 01:03 PM
dkms-nvidia-current dkms install fails X86_64 Blackhawkckc Mandriva 5 03-21-2009 04:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 05:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration