LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 06-15-2006, 04:10 AM   #1
Titanas25
Member
 
Registered: Mar 2006
Location: Greece
Distribution: FC5
Posts: 32

Rep: Reputation: 15
Arrow How do i recompile my kernel?


Hello all knowledge seekers.

I have done changes to the hostap driver and i want to recompile my kernel so that i unclude it as a module with the new changes.

How will i start?What are the steps to do?Any help will be appreciated!
 
Old 06-15-2006, 04:15 AM   #2
Zmyrgel
Senior Member
 
Registered: Dec 2005
Location: Finland
Distribution: Slackware, CentOS, RHEL, OpenBSD
Posts: 1,006

Rep: Reputation: 37
Go to directory which holds your kernel source (usually /usr/src/linux).
Type: "make menuconfig" which should open ncurses interface where you can set your kernel
After that you need to compile your kernel and modules using "make && make modules_install".
Then you need to copy your new kernel to /boot "cp arch/i386/boot/bzImage /boot/kernel".
Modify your grub.conf / lilo.conf to use the new kernel and that should be it.

Above is for 2.6 series of kernels and it might need some distro specific modifications. But basicly it goes like that.
 
  


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
kernel recompile error (kernel panic) tombaaaaa Linux - Newbie 4 08-04-2004 05:32 PM
Recompile the kernel kjsubbu Linux - Software 4 06-16-2004 12:53 PM
recompile the kernel!!! :O HELP! gangster_god Mandriva 3 04-06-2004 04:42 PM
How to recompile the kernel? daYz Slackware 13 11-16-2003 06:13 AM
Recompile kernel? wmeitzen Linux - Newbie 5 08-12-2003 01:50 AM

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

All times are GMT -5. The time now is 01:42 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration