kernel procedure

Discuss Programming

kernel procedure

Postby 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?
worker201
guru
guru
 
Posts: 668
Joined: Sun Jun 13, 2004 6:38 pm
Location: Hawaii

Postby 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.
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby 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.
worker201
guru
guru
 
Posts: 668
Joined: Sun Jun 13, 2004 6:38 pm
Location: Hawaii

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

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

Postby 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.
worker201
guru
guru
 
Posts: 668
Joined: Sun Jun 13, 2004 6:38 pm
Location: Hawaii

Postby 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.
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby 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.
worker201
guru
guru
 
Posts: 668
Joined: Sun Jun 13, 2004 6:38 pm
Location: Hawaii

Postby 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.
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA


Return to Programming

Who is online

Users browsing this forum: No registered users and 1 guest