UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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:
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.
title whatever
root (hdx,y) #the location of /boot directory
kernel /boot/<kernelname> root=/dev/xxxx <other optional arguments)
initrd /boot/<initfilename>
boot
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.)
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.