GreenRaccoon
December 17th, 2011, 01:03 AM
I've been searching all over but haven't been able to find an answer to this. I was wondering if there's a way to configure/customize a kernel using Ubuntu's .deb kernel packages (http://kernel.ubuntu.com/~kernel-ppa/mainline/) instead of the basic Linux kernel from kernel.org. I believe that Ubuntu developers take their kernels from kernel.org and customize them for Ubuntu specifically. I really don't know that much about compiling kernels (or compiling anything, really), so please bear with me.
I was looking at this guide: http://www.cyberciti.biz/tips/compiling-linux-kernel-26.html. Basically, it has you extract the .tar.bz2 file from kernel.org into the /usr/src folder and configure it from there. Then you compile it into a compressed image, compile the modules, install the modules, and install the image. Then you create an initrd image in /boot and run a "sudo update-grub".
This article shows a different (easier) method: http://www.howtogeek.com/howto/ubuntu/how-to-customize-your-ubuntu-kernel/ After configuring the kernel, it simply has you compile the kernel into two .deb files: a "kernel_image" one and a "kernel_headers" one. Then you install them, of course.
The three .deb kernel packages that Ubuntu has you install are "linux-headers...generic...all", "linux-headers...amd64" (or i386), and "linux-image...amd64" (or i386). After installing these packages (which creates two folders in /usr/src), could you configure them from /usr/src? And then use one of the two above methods to make another kernel? If this is possible, would I configure the Kconfig file in "linux-headers..." or "linux-headers...generic..."? (I would guess that it's the generic one, but I really don't know)
I don't see why this wouldn't work, but the fact that there are two different folders in /usr/src is messing me up.
I was looking at this guide: http://www.cyberciti.biz/tips/compiling-linux-kernel-26.html. Basically, it has you extract the .tar.bz2 file from kernel.org into the /usr/src folder and configure it from there. Then you compile it into a compressed image, compile the modules, install the modules, and install the image. Then you create an initrd image in /boot and run a "sudo update-grub".
This article shows a different (easier) method: http://www.howtogeek.com/howto/ubuntu/how-to-customize-your-ubuntu-kernel/ After configuring the kernel, it simply has you compile the kernel into two .deb files: a "kernel_image" one and a "kernel_headers" one. Then you install them, of course.
The three .deb kernel packages that Ubuntu has you install are "linux-headers...generic...all", "linux-headers...amd64" (or i386), and "linux-image...amd64" (or i386). After installing these packages (which creates two folders in /usr/src), could you configure them from /usr/src? And then use one of the two above methods to make another kernel? If this is possible, would I configure the Kconfig file in "linux-headers..." or "linux-headers...generic..."? (I would guess that it's the generic one, but I really don't know)
I don't see why this wouldn't work, but the fact that there are two different folders in /usr/src is messing me up.