How to compile kernel source for FC3

From: Tony Denault (denault_at_hawaii.edu)
Date: 11/30/04

  • Next message: Luke Rosenthal: "FC3 aic7xxx woes?"
    Date: Tue, 30 Nov 2004 12:06:42 -1000 (HST)
    To: fedora-list@redhat.com
    
    

    I needed to recompile the kernel for an inhouse development project.
    Following the threads _almost_ told me what to do. I'll posted
    how I got the kernel source install, compile and running
    reference. Or please correct any error....thanks,

       Download,install & compile kernel source.
       Example using kernel version 2.6.9-1.681_FC3 for Fedora Core3.

       Following the direction in the release notes for getting source tree:

       # rpm -ivh kernel-2.6.9-1.681_FC3.src.rpm
       # cd /usr/src/redhat/SPECS
       # rpmbuild -bp --target=i686 kernel-2.6.spec <-- slightly difference from the release notes
       # cd /usr/src/redhat/BUILD

       Kernel soures is located in /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/
       Copy the tree to /usr/src/linux-2.6.x

       # cd /usr/src/redhat/BUILD/kernel-2.6.9
       # tar cf - linux-2.6.9 | ( cd /usr/src; tar xf - )

       Then proceed as usual.

       # cd /usr/src
       # ln -s linux-2.6.9 linux-2.6

       # cd /usr/src/linux-2.6
       # make clean
       # make mrproper
       # make oldconfig -> generate a .config file based on the running kernel
       # make bzImage
       # make modules
       # make modules_install
       # make install

       For some unknown reason it calls the kernel '2.6.9-prep'
       The kernel name can be modified by editing /usr/src/linux-2.6/Makefile

    I did peek-and-poke around and this was the 2.6.9-1.681_FC3. I think
    the Makefile should call it 2.6.9-1.681_FC3-custom rather that -prep

    Not sure you need to copy the source to /usr/src, but I'm used to this;
    plus I'm not sure what happens to /usr/src/redhat when a new kernel
    updates arrives.

    Tony

    /-----------------------------------------------------------------------\
    | Tony Denault | Email: denault@irtf.ifa.hawaii.edu |
    | Institute for Astronomy | Phone: (808) 932-2378 |
    | 640 North Aohoku Place | Fax: (808) 933-0737 |
    | Hilo, Hawaii 96720 | |
    \-----------------------------------------------------------------------/

    -- 
    fedora-list mailing list
    fedora-list@redhat.com
    To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
    

  • Next message: Luke Rosenthal: "FC3 aic7xxx woes?"

    Relevant Pages

    • Re: Oops after 30 days of uptime
      ... I have another problem with your oops. ... /proc/ksyms from another running kernel. ... The running kernel is not the last one I compiled. ... I have the old config file - so it might be possible to recreate the ...
      (Linux-Kernel)
    • 2.6.12-rc5-mm1: configuring vmware workstation modules
      ... problem occurs when I change kernel to linux-2.6.12-rc5-mm1 and try to ... In which directory do you want to install the application's icon? ... Trying to find a suitable vmmon module for your running kernel. ...
      (Linux-Kernel)
    • Re: [PATCH 0/2] kbuild updates
      ... >> or without a separate output directory. ... > are for the running kernel will be broken) is still valid. ... and in Makefile, use conditionals to adapt to the configuration. ...
      (Linux-Kernel)
    • [opensuse] Re: VMware & 11.0 problem
      ... or fire up yast and search for the kernel. ... and VMware Server may crash if you'll continue. ... your system (you need to have a C compiler installed on your system)? ... running kernel. ...
      (SuSE)
    • Re: VMware does not compile
      ... >> o You must upgrade the kernel modules and configuration using the ... your version of vmware. ... Trying to find a suitable vmmon module for your running kernel. ...
      (Fedora)