LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Kernel-Headers (3.5.5) (https://www.linuxquestions.org/questions/linux-newbie-8/kernel-headers-3-5-5-a-4175430774/)

msxenix 10-05-2012 08:45 PM

Kernel-Headers (3.5.5)
 
Hi,

I just compiled and installed the Linux 3.5.5 and installed the appropriate Modules as well. The only thing I'm unsure of is where I can get a copy of the Linux-Headers. The Nvidia proprietary drivers require them and I'm not really sure how to get a hold of them.

Any ideas?

I'm running Mint 13 w/ compiled 3.5.5 (Core2Duo x86-64) Kernel

System Specs

Gigabyte GA-G31m-S2L
Core2Duo E6600 @ 3.15Ghz
2 GB Memory
Nvidia Geforce 9800GT


Thanks

Ztcoracat 10-05-2012 09:45 PM

Not sure if you want to use YUM or not but these articles refer to a few differnt ways of How To Install Headers for the Kernel.

http://www.clearfoundation.com/compo...view/id,40863/
http://blog.gambliser.com/2012/08/in...on-oracle-6-3/

You might want to consider the backports and maybe the gcc tools for other architectures depending on your target architecture.

http://forums.linuxmint.com/viewtopic.php?f=47&t=108436

I'm still learning how to as well but I hope this helps.

andrewthomas 10-05-2012 10:08 PM

How did you build your kernel?

Did you build any packages?

Back when I used Debian, I used to build my kernels using the following method:

Alternate Build Method: The Old-Fashioned Debian Way

https://help.ubuntu.com/community/Ke...ned_Debian_Way

which will generate a kernel-headers .deb along with the kernel-image .deb

Ztcoracat 10-05-2012 11:37 PM

I'm not sure how msxenix built his/her 3.5.5 kernel but I'm wondering how as well-

So; msxenix; do tell.....

msxenix 10-06-2012 12:37 AM

I downloaded the source from kernel.org (tar.gz file)
I extracted the source directory to a location in my home directory. (/home/msxenix/src)
I ran a 'make mrproper' in order to make sure that the source was clean
i configured the kernel with 'make menuconfig'
I ran 'make' to build the kernel
I ran 'sudo make install' to install the kernel
I ran 'sudo make modules_install' to install the modules

The kernel boot successfully to Linux 3.5.5. Everything works great, and the GUI might be more responsive.

The only problem is that I can't install the nvidia drivers due to not having the kernel headers.

I'm guessing there may be a step I may have overlooked. I used the directions included with the kernel but I didn't see any mention of installation of Kernel-Headers.

Ztcoracat 10-06-2012 12:50 AM

This article might be your answer.
http://www.cyberciti.biz/faq/howto-i...aders-package/
It's for Debian or Ubuntu but it should help you to get the understanding you need to perform the task to install kernel headers.

Make sure you do an update first as the article recommends it.

I'm thinking you need to run:
Code:

apt-get install linux-headers-$(uname -r)
Does your Mint 13 have Cinnamon?
I'll keep looking to help you-

Ztcoracat 10-06-2012 01:07 AM

Just for grins and giggles I looked in my synaptic package manager.
There are multipule 'kernel headers"
Check your package manager the headers that you need may already be in there.

If not try looking in /usr/src or lib/modules

Here's the driver instructions for your Nvidia drivers for your distro-
http://www.aoaforums.com/forum/linux...s-install.html

msxenix 10-06-2012 01:18 AM

I have the copy with MATE rather than cinnamon.

Modules are present in the /lib/modules

I only have the original 3.2 headers in /usr/src

I'm trying this command right now. It was in one of the links

'fakeroot make-kpkg --initrd --append-to-version=-some-string-here kernel-image kernel-headers'

I had to get kernel-package from apt-get. It's going to take some time to run. I'll let you know if that helped.

Thanks for all the help so far though :-)

Ztcoracat 10-06-2012 01:35 AM

Quote:

Originally Posted by msxenix (Post 4798590)
I have the copy with MATE rather than cinnamon.

Modules are present in the /lib/modules

I only have the original 3.2 headers in /usr/src

I'm trying this command right now. It was in one of the links

'fakeroot make-kpkg --initrd --append-to-version=-some-string-here kernel-image kernel-headers'

I had to get kernel-package from apt-get. It's going to take some time to run. I'll let you know if that helped.

Thanks for all the help so far though :-)

:)Your Welcome

msxenix 10-06-2012 08:22 AM

Ok I have the kernel-headers installed using the fakeroot make-kpkg command i listed.

I was able to get the Nvidia drivers installed in recovery mode afterwards.

Thanks everyone.

andrewthomas 10-06-2012 12:56 PM

Quote:

Originally Posted by msxenix (Post 4798590)
I'm trying this command right now. It was in one of the links

'fakeroot make-kpkg --initrd --append-to-version=-some-string-here kernel-image kernel-headers'

Yes, it was here
Quote:

Originally Posted by andrewthomas (Post 4798517)
Back when I used Debian, I used to build my kernels using the following method:

Alternate Build Method: The Old-Fashioned Debian Way

https://help.ubuntu.com/community/Ke...ned_Debian_Way

which will generate a kernel-headers .deb along with the kernel-image .deb

It is probably a good idea to generate packages that apt/dpkg is aware of, unless you are using a build script that cleans up old versions, such as:

Code:

#!/bin/sh
cd /usr/src/linux-3.6.0-gentoo
cp /boot/config-gentoo .config
make oldconfig
make menuconfig
make -j7 && make modules_install
cp System.map /boot/System.map-3.6.0-gentoo
cp .config /boot/config-3.6.0-gentoo
cp arch/x86_64/boot/bzImage /boot/kernel-3.6.0-gentoo
make mrproper
cp /boot/config-3.6.0-gentoo .config
cd /boot
rm config
rm System.map
rm vmlinuz
rm System.map-3.4.5-gentoo
rm config-3.4.5-gentoo
rm kernel-3.4.5-gentoo
ln -s System.map-3.6.0-gentoo System.map
ln -s config-3.6.0-gentoo config
ln -s kernel-3.6.0-gentoo vmlinuz
rm -r /lib/modules/3.4.5-gentoo
rm -r /usr/src/linux-3.4.5-gentoo
grub2-mkconfig -o /boot/grub2/grub.cfg


Ztcoracat 10-07-2012 12:12 AM

Glad to hear you got the kernel-headers installed and your Nvidia drivers installed!

Good for you Msxenix:)


All times are GMT -5. The time now is 02:56 AM.