How to compile kernel source for FC3
From: Tony Denault (denault_at_hawaii.edu)
Date: 11/30/04
- Previous message: Erwin Zavala: "probles using the system-config application"
- Next in thread: Satish Balay: "Re: How to compile kernel source for FC3"
- Reply: Satish Balay: "Re: How to compile kernel source for FC3"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: Erwin Zavala: "probles using the system-config application"
- Next in thread: Satish Balay: "Re: How to compile kernel source for FC3"
- Reply: Satish Balay: "Re: How to compile kernel source for FC3"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|