RE: EL4 ES kernel recompile

From: Saripalli, Venkata Ramanamurthy (STSD) (saripalli_at_hp.com)
Date: 05/09/05

  • Next message: Dave Francis: "RE: EL4 ES kernel recompile"
    Date: Mon, 9 May 2005 10:17:59 +0530
    To: "General Red Hat Linux discussion list" <redhat-list@redhat.com>
    
    

    The RHEL 4 Distribution does not install sources under
    /usr/src/linux-2.6.
    We need to build the source rpm to get the sources.

    Install kernel-<version>.src.rpm (given the default RPM configuration,
    the files this package contains will be written to /usr/src/redhat/)

    Change directory to /usr/src/redhat/SPECS/, and issue the
    following command:

    rpmbuild -bp --target=<arch> kernel.spec
    (Where <arch> is the desired target architecture.)
    On a default RPM configuration, the kernel tree will be located

    in /usr/src/redhat/BUILD/.

    In resulting tree, the configurations for the specific kernels shipped
    in Red Hat Enterprise Linux 3.95 are in the /configs/ directory. For
    example, the i686 SMP configuration file is named
    /configs/kernel-<version>-i686-smp.config. Issue the following
    command to place the desired configuration file in the proper place for
    building:
    cp <desired-file> ./.config

    Issue the following command:
    make oldconfig

    thanks,
    murthy.

    -----Original Message-----
    From: redhat-list-bounces@redhat.com
    [mailto:redhat-list-bounces@redhat.com] On Behalf Of Dave Francis
    Sent: Monday, May 09, 2005 10:08 AM
    To: redhat-list@redhat.com
    Subject: EL4 ES kernel recompile

    Hi Guys
     
    Im trying to recompile the kernel in EL4 ES in order to get the clock
    running correctly under VMware ESX.
     
    As Redhat dont provide much info on the process for this under EL4, ive
    kinda worked blind up to here, and now Im stuck.
    Fresh build.
    First, ive updated (up2date). (inc Kernel).
    Next I installed the kernel source through up2date.
    Then I tried a make mrproper, and thats where Im stuck.
     
    ************************************
     

    [root@albns001 2.6.9-5.0.5.EL-i686]# make mrproper
    grep: /usr/include/bits/stat.h: No such file or directory
    scripts/Makefile.clean:10: Documentation/DocBook/Makefile: No such file
    or
    directory
    make[1]: *** No rule to make target `Documentation/DocBook/Makefile'.
    Stop.
    make: *** [_mrproper_Documentation/DocBook] Error 2

    [root@albns001 2.6.9-5.0.5.EL-i686]# pwd
    /usr/src/kernels/2.6.9-5.0.5.EL-i686

    [root@albns001 2.6.9-5.0.5.EL-i686]# uname -a
    Linux albns001.nzaa.co.nz 2.6.9-5.0.5.EL #1 Fri Apr 8 14:21:35 EDT 2005
    i686
    i686 i386 GNU/Linux

    ********************************
     
    Has anybody got any ideas about what Im doing wrong?
     
    All help appreciated.
    Cheers
    Dave
     
     

    ATTENTION: The information contained in this message and/or attachments
    is intended only for the person or entity to which it is addressed and
    may contain confidential and/or privileged material. Any review,
    retransmission, dissemination or other use of, or taking of any action
    in reliance upon, this information by persons or entities other than the
    intended recipient is prohibited. If you received this in error, please
    contact the sender and delete the material from any system and destroy
    any copies. Thank you.
    DISCLAIMER: To the maximum extent permitted by law, the sender and/or
    any related party is not liable (including in respect of negligence) for
    viruses or other defects or for changes made to this email or to any
    attachments. Before opening or using attachments, check them for viruses
    and other effects.

    -- 
    redhat-list mailing list
    unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
    https://www.redhat.com/mailman/listinfo/redhat-list
    -- 
    redhat-list mailing list
    unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
    https://www.redhat.com/mailman/listinfo/redhat-list
    

  • Next message: Dave Francis: "RE: EL4 ES kernel recompile"

    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: 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)
    • 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. ...
      (Bugtraq)
    • [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)