LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-22-2007, 02:51 PM   #1
vineet7kumar
Member
 
Registered: Aug 2005
Posts: 75

Rep: Reputation: 15
how to install the source code of the kernel


Hi,
I got the 2.6.23 kernel from kernel.org .
I am using F7. I know howto rebuild the kernel .

I need to install ndiswrapper for which I also need to install the kernel source code .
How do I install the Kernel source code?

Thanks,
Vineet
 
Old 10-22-2007, 03:54 PM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
First, one does not need the kernel source code to install ndiswrapper, you do need to have the kernel-devel and kernel-headers rpm packages however. Install the freshrpms-release package;

rpm -ivh http://ftp.freshrpms.net/pub/freshrp....fc.noarch.rpm

Or download it then install; http://zod.freshrpms.net/rpm.html?id=118

rpm -ivh freshrpms-release-1.1-1.fc.noarch.rpm

When done as root type: yum install dkms-ndiswrapper

If you have a working Internet connection then the command above should install the additional packages required. if not as i already said you need to have install the kernel-devel and kernel-headers rpm packages for your running kernel along with the dkms rpm package.

Second, the kernel source you downloaded from kernel.org will not work as you intend. The fine folks at Fedora typically make changes (enhancements, tweaks and other 'improvements'). If you want the full kernel source for Fedora then you need to get the source rpm file from them;

http://download.fedora.redhat.com/pu.../source/SRPMS/

You can build a working kernel using the source you downloaded from kernel.org the instructions are here;

http://www.kernel.org/pub/linux/kern...le/gregkh/lkn/

The file lkn_pdf.tar.bz2 is what you want to get and review, the short instructions are after downloading and expanding the kernel source are;

make mrproper
make oldconfig
make menuconfig
make
make modules_install
make install

The 'make oldconfig' and 'make menuconfig' steps configure and verify that the kernel will build for your hardware correctly. Do take the time while using 'make menuconfig' to insure all your hardware is configured and to make any adjustments required.

Last edited by Lenard; 10-22-2007 at 03:56 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
help getting kernel source code extendedping Linux - Kernel 24 10-06-2006 06:59 AM
centos4, can not install kernel source code lnthai2002 Linux - Enterprise 2 12-20-2005 02:54 PM
Q: install kernel source code Tux136 Linux - Newbie 9 08-30-2005 09:59 AM
How do I install the Linux kernel source code?? thearchitect Linux - Newbie 3 08-13-2005 12:07 AM
mandrake10 install kernel source code /radeon 9800xtpro drivers UberNo0ber Mandriva 0 06-07-2004 05:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration