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:
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.