boot & grub... where do I put kernel pointers?
I've just downloaded and configured my first kernel. I've done make modules_install and make install. I've tweaked my menu.lst to list all kernels (instead of using the escape button)and now I need to add grub entrees so it can find the kernel. This is the part that confuses me. The howto I used said that make install would take care of this, but it didn't seem to. This is the grub entry for my working kernel:
title Ubuntu 7.10, kernel 2.6.22-14-generic
kernel /vmlinuz-2.6.22-14-generic root-UUID=my_root_id ro quiet
I'm pretty sure that the important lines here are the last two, but I'm having trouble making sense of what they are.
Also, I believe I need to do something with the System.map file but am not sure what. Anything else that I need to do? I'm sooo close to building and properly installing my first kernel but just need a little help.
The generic format of an entry in menu.lst:
root (hdx,y) #the location of /boot directory
kernel /boot/<kernelname> root=/dev/xxxx <other optional arguments)
The above assume that there is no separate partition for /boot---ie "/" is mounted at the location equivalent to (hdx,y)
<kernelname> and <initfilename> are the actual names. What I always do is alias them to generic names--eg "vmlinuz" and "initrd". then, my menu.lst entries are always the same.
root=/dev/xxxx is a command passed to the kernel which tells it where to mount "/" Suppose it is /dev/hda3. Then the root (hdx,y) command would be (hd0,2) (Grub counts from zero.)
More in the "booting" link below
I'll sink my teeth into this and post my success/failure.
Sorry, forgot to follow up on System.map. I found this explanation online:
"Every time you compile a new kernel, the addresses of various symbol names are bound to change. When you compile a new kernel, your old System.map has wrong symbol information. A new System.map is generated with each kernel compile and you need to replace the old copy with your new copy."
Indeed, I see that my newly compiled kernel has a System.map in the top of the directory tree. Do I need to replace the older /boot/System.map with this new one?
Thanks for your help and patience,
In any event it is a separate issue from setting up grub.
|All times are GMT -5. The time now is 12:43 PM.|