Solved

Compile Kernel in RH 7.1

Posted on 2001-08-13
4
316 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
ID: 6379259
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
ID: 6379265
BTW, what has this to do with "Linux Networking"?
0
 
LVL 2

Accepted Solution

by:
ifincham earned 50 total points
ID: 6381753
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
ID: 6382075
0

Featured Post

Manage your data center from practically anywhere

The KN8164V features HD resolution of 1920 x 1200, FIPS 140-2 with level 1 security standards and virtual media transmissions at twice the speed. Built for reliability, the KN series provides local console and remote over IP access, ensuring 24/7 availability to all servers.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

821 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