kernel procedure

Discuss Programming
Post Reply
worker201
guru
guru
Posts: 668
Joined: Sun Jun 13, 2004 6:38 pm
Location: Hawaii

kernel procedure

Post by worker201 » Thu Aug 25, 2005 8:42 pm

apt has made me kinda forgetful, I guess. I built myself a new kernel (with HFS+ support), and now I need to install it. But I don't quite remember how. Using FC4, what would be the procedure for that? I know I need to copy the System.map and the bzImage to /boot, but what else? Don't I need to initrd or something?

User avatar
Void Main
Site Admin
Site Admin
Posts: 5712
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main » Thu Aug 25, 2005 9:05 pm

Not really a programming question but from the same directory you built it in just do a:

# make modules_install
# make install

See:

http://voidmain.is-a-geek.net/redhat/fe ... build.html

and better yet the README in the same directory you did the make in.

worker201
guru
guru
Posts: 668
Joined: Sun Jun 13, 2004 6:38 pm
Location: Hawaii

Post by worker201 » Fri Aug 26, 2005 12:53 pm

If I had known it would be that easy, I wouldn't have bothered. Most of my experience is with the 2.4 kernel, which had a much more complex installation procedure.

Feel free to move this to the proper forum - or delete it.

User avatar
Void Main
Site Admin
Site Admin
Posts: 5712
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main » Fri Aug 26, 2005 2:18 pm


worker201
guru
guru
Posts: 668
Joined: Sun Jun 13, 2004 6:38 pm
Location: Hawaii

Post by worker201 » Fri Aug 26, 2005 3:48 pm

Ah, but I was also in Slackware, using LILO - which has the same /boot stuff, but the loader needed to be configured manually.

User avatar
Void Main
Site Admin
Site Admin
Posts: 5712
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main » Fri Aug 26, 2005 5:58 pm

Yep, that's Slackware. But that's why you use Slackware right? So things aren't done for you so you learn the nitty gritty? :) If you are running Red Hat/Fedora (and many other distros) and are using either GRUB or LILO and do a "make install" you will find in the /usr/src/linux*/arch/i386/boot/Makefile that a script called "install.sh" (also in that directory) is called. In that script you will see that if a command called "/sbin/installkernel" exists then run it, which in turn copies the newly compiled kernel and associated files to the proper /boot directory and adds the appropriate GRUB/LILO entries.

worker201
guru
guru
Posts: 668
Joined: Sun Jun 13, 2004 6:38 pm
Location: Hawaii

Post by worker201 » Fri Aug 26, 2005 6:08 pm

Aha, and certainly Slackware wouldn't have had /sbin/installkernel back in version 9.1. Actually, I just checked - it doesn't have it now either, on version 10.1.

User avatar
Void Main
Site Admin
Site Admin
Posts: 5712
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main » Fri Aug 26, 2005 6:12 pm

But you could create your own, or look in that install.sh for other possible ideas. This script might actually be included in a slackware package that you don't have installed. It's part of the "mkinitrd" RPM in Red Hat/Fedora.

Post Reply