I'm reading Robert Love's Linux Kernel Development in order to learn more about, well, Linux kernel development!
But in Chapter 2: Getting Started with the Kernel, I'm instructed to download and install the kernel. This confuses me. "Building the kernel is easy", he says. Yet the thought of installing a Linux kernel inside a Linux environment doesn't make sense to me- as if I'd be running this new Linux virtually?
The steps he gives are to obtain the kernel source
$ git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git $ git pull
Then decompress the tarball (two different methods in case it's GNU zip but here's the bzip2 method),
$ tar xvjf linux-x.y.z.tar.bz2
Then from there you build the kernel by running
Then you install the new kernel. He explains that the install is "architecture and boot-loader-dependent" and to "consult the directions for [my] boot loader on where to copy the kernel image." He then provides an example of where one might copy the image and then to run
$ make modules_install
and then the chapter simply goes no further on this tutorial of installing the kernel.
This is where I'm lost. Up to this point I understand all of the commands so far (I've been using Fedora for a few years, writing system code in C, etc.) but I don't understand this concept of "installing" the the Linux kernel in my already Linux environment. There's no explanation of what's going on here (maybe he goes into detail later) or how to actually get the kernel running. Do I put it on a new hard drive? Do I run in like a VM? Do I choose some boot-up option in BIOS? How do I actually run it? This step is not in this chapter, nor in Chapter 3 or 4.