How to compile kernel source for FC3

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


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 Denault                     | Email: [email protected] |
| Institute for Astronomy          |              Phone: (808) 932-2378 |
| 640 North Aohoku Place           |                Fax: (808) 933-0737 |
| Hilo, Hawaii 96720               |                                    |

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux