Solved

Compile Kernel in RH 7.1

Posted on 2001-08-13
4
310 Views
Last Modified: 2010-05-18
I want to compile kernel using RH 7.1, I had completed 'make menuconfig', 'make depend', 'make clean', 'make bzImage', 'make modules', 'make modules_install', What is the new kernel location and what are next steps to complete all processes.
0
Comment
Question by:kennycpu
  • 2
4 Comments
 
LVL 51

Expert Comment

by:ahoffmann
Comment Utility
kernel can be found in /usr/src/linux/arch/i386/boot, usualy (i386 is the type of processor you have).
If you use lilo as boot loader, you need to make a new section for the new kernel image in /etc/lilo.conf, then run lilo.
It's wise to copy the new build kernel to you boot directory (/boot usualy) with a uniqe name, and then use this kernel image in lilo.conf.
0
 
LVL 51

Expert Comment

by:ahoffmann
Comment Utility
BTW, what has this to do with "Linux Networking"?
0
 
LVL 2

Accepted Solution

by:
ifincham earned 50 total points
Comment Utility
Hi,

Yes.... its a bit out of the networking context but anyway (assuming 2.4.7 kernel) :

cd /usr/src/linux
cp arch/i386/boot/bzImage /boot/vmlinuz-2.4.7
cp System.map /boot/System.map-2.4.7

You <may> need an initrd image - see from your lilo.conf if it says initrd=/boot/initrd-2.4.2-2.img or suchlike. If not don't bother, otherwise do :

/sbin/mkinitrd /boot/initrd-2.4.7.img 2.4.7

Then add a section to /etc/lilo.conf

image=/boot/vmlinuz-2.4.7
      label=linux247
      root=/dev/hdb5           <--- copy from existing
      read-only  

(Also copy any 'append', 'initrd' or other lines you have in your existing 'image' block.)


Then update the binary lilo image..

/sbin/lilo -v

Reboot and you should have another option on the boot menu.


0
 
LVL 17

Expert Comment

by:dorward
Comment Utility
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now