Re: Kernel Compilation

From: General Schvantzkoph (schvantzkoph_at_yahoo.com)
Date: 07/29/05


Date: Fri, 29 Jul 2005 03:58:10 -0400

On Thu, 28 Jul 2005 19:02:19 -0700, vkj wrote:

> Hi all,
>
> Thanks a lot for your comments.
>
>> I'd urge you to grab a Core 4 update FTP site and install the RPM or build
>> from the SRPM. It will also iinform you of dependencies on glibc, modutils,
>> and other packages that you may encounter.
>>
>> Why not simply upgrade to FC4 and then do the updates? FC2 is now
>> deprectated.
>
> The purpose of this exercise is to teach me about linux kernel. I am
> learning how to build the kernel from the sources and to write my own
> modules & drivers. So installing the newer kernel using rpm will not
> server my purpose, though will take care of all the headache.
>
> Okay, I have more questions. I am going to post them in a seperate
> thread.
>
> Cordially
> Vineet

You can put the kernel source directory any where you want. The procedure
for building a kernel is as follows,

make gconfig
(This brings up a configuration GUI, you select the options that you want
and then save them in the .config file)

make all
(make everything, you can do this as a user or as root)

make modules_install
(installs the modules, you need to be root to do this)

make install
(install the kernel, also updates /etc/grub.conf or /etc/lilo.conf)



Relevant Pages

  • SUSE Security Announcement: Linux Kernel (SuSE-SA:2004:001)
    ... installable through rpm, because of a bug in RPM (update of ... the kernel source is not ... sources that the binary kernel rpm packages are made from. ... are being offered to install from the maintenance web. ...
    (Bugtraq)
  • [Full-Disclosure] SUSE Security Announcement: Linux Kernel (SuSE-SA:2004:001)
    ... installable through rpm, because of a bug in RPM (update of ... the kernel source is not ... sources that the binary kernel rpm packages are made from. ... are being offered to install from the maintenance web. ...
    (Full-Disclosure)
  • RE: EL4 ES kernel recompile
    ... We need to build the source rpm to get the sources. ... Install kernel-.src.rpm (given the default RPM configuration, ... the kernel tree will be located ...
    (RedHat)
  • Re: Is Linux always this slow?
    ... but since I use command-line rpm all the time this does not bother me ... Installing a new kernel is really easy. ... modules_install; make install', ... you are lucky, you get a nice kernel RPM you can install just like any ...
    (linux.redhat)
  • [Full-Disclosure] SUSE Security Announcement: kernel (SuSE-SA:2004:010)
    ... The update packages for the SuSE Linux Enterprise Server 7 ... contain any binary kernel in bootable form. ... sources that the binary kernel rpm packages are made from. ... are being offered to install from the maintenance web. ...
    (Full-Disclosure)