00_Spykes
January 21st, 2010, 06:31 PM
Hello there!
In essence, if you don't want to read more than a few lines, this is my question: I know how to compile a kernel, I know how Grub works, how do I do it all manually without disturbing the installation? :)
I'm quite happy with my new installation of this Ubuntu Karmic version, aside from a few things (GDM, not being able to unlock a non-root luks partition on boot, etc.). However, this post is about some questions about the Ubuntu kernel and it's patches and theory and whatnot. It's all a bit new to me, as I've more experience with the manual Gentoo way.
Firstly; I've seen many "How To Compile your own custom kernel"-threads at this forum, so I wonder if I got the theory right. To put it simply, isn't this the preferred way of doing it or am I forgetting something important:
Make sure you can build the kernel. (GCC and stuff? Ncurses? Is this packaged in an unbloated bundle somewhere in synaptic?)
Get the kernel and put it in /usr/src/. (Why all the fuss about headers and stuff, what is that anyways? Educate me :) ).
make menuconfig; make && make modules_install. (Or what is the build commands for building the kernel and the modules? Do all distros have their own magic command?)
Copy the bzImage to /boot/ and edit the Grub menu to your liking. Don't overwrite anything that's already there, just do a new entry.
So I guess my questions are, is this theory right in Ubuntu too? What is the bare minimum of building blocks you would need? Why headers and patches? Is there something that Ubuntu requires you to have in the kernel (not talking about your hardware, just Ubuntu Karmic)? Is there an unbuilt simple Ubuntu-kernel (or Debian) in the repository so that one wouldn't have to download it from kernel.org?
In essence, if you don't want to read more than a few lines, this is my question: I know how to compile a kernel, I know how Grub works, how do I do it all manually without disturbing the installation? :)
I'm quite happy with my new installation of this Ubuntu Karmic version, aside from a few things (GDM, not being able to unlock a non-root luks partition on boot, etc.). However, this post is about some questions about the Ubuntu kernel and it's patches and theory and whatnot. It's all a bit new to me, as I've more experience with the manual Gentoo way.
Firstly; I've seen many "How To Compile your own custom kernel"-threads at this forum, so I wonder if I got the theory right. To put it simply, isn't this the preferred way of doing it or am I forgetting something important:
Make sure you can build the kernel. (GCC and stuff? Ncurses? Is this packaged in an unbloated bundle somewhere in synaptic?)
Get the kernel and put it in /usr/src/. (Why all the fuss about headers and stuff, what is that anyways? Educate me :) ).
make menuconfig; make && make modules_install. (Or what is the build commands for building the kernel and the modules? Do all distros have their own magic command?)
Copy the bzImage to /boot/ and edit the Grub menu to your liking. Don't overwrite anything that's already there, just do a new entry.
So I guess my questions are, is this theory right in Ubuntu too? What is the bare minimum of building blocks you would need? Why headers and patches? Is there something that Ubuntu requires you to have in the kernel (not talking about your hardware, just Ubuntu Karmic)? Is there an unbuilt simple Ubuntu-kernel (or Debian) in the repository so that one wouldn't have to download it from kernel.org?