LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-03-2003, 03:46 PM   #1
VIP3R
Member
 
Registered: Mar 2003
Posts: 99

Rep: Reputation: 15
Recompiling Kernel


I'm trying to recompile Kernl v. 2.4.20-13.8! There's always a problem with it though (It never boots). So could someone please give me A SHORT briefing of how to recompile the kernel from scratch, and how to obtain good settings for my computer, yet reseting the current ones that I have saved? DONT TELL ME TO SEARCH FOR A TUTORIAL ON THE NET! Thank you!
 
Old 06-03-2003, 03:49 PM   #2
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 469Reputation: 469Reputation: 469Reputation: 469Reputation: 469
What is your distro? RedHat, for example, provide the kernel via RPM. Is this applicable to you?
 
Old 06-03-2003, 03:56 PM   #3
VIP3R
Member
 
Registered: Mar 2003
Posts: 99

Original Poster
Rep: Reputation: 15
RH8.0 --> Yeah i know..but that's not the problem. I want a smaller sized kernel with certain tweaks and settings that I need. Besides, a smaller sized kernel would run a lil faster and speed is everything when you have a 500 Mhz system with only 192mb of ram!
 
Old 06-03-2003, 04:02 PM   #4
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 469Reputation: 469Reputation: 469Reputation: 469Reputation: 469
Have you been to www.kernel.org or www.tldp.org? The first has kernels, the second has how-tos. Word of caution - the RH kernel is an RH tweaked version, adding a custom kernel may cause things to stop working.

Good luck.
 
Old 06-03-2003, 04:23 PM   #5
Nerd2
Member
 
Registered: Apr 2003
Location: Brissle, England
Posts: 97

Rep: Reputation: 19
Quote:
Originally posted by VIP3R
RH8.0 --> Yeah i know..but that's not the problem. I want a smaller sized kernel with certain tweaks and settings that I need. Besides, a smaller sized kernel would run a lil faster and speed is everything when you have a 500 Mhz system with only 192mb of ram!
Bah! P2 266 ownz you!
 
Old 06-03-2003, 04:25 PM   #6
VIP3R
Member
 
Registered: Mar 2003
Posts: 99

Original Poster
Rep: Reputation: 15
LOL ACTUALLY!!! i'm a celeron :P! BEAT THAT MR. KOOL CPU HAVING MAN! I have less L2 Cache memory! LOL It's sad when you brag about how bad your cpu is!
 
Old 06-03-2003, 08:17 PM   #7
tangle
Senior Member
 
Registered: Apr 2002
Location: Smithville, TN
Distribution: Slackware
Posts: 1,745

Rep: Reputation: 71
First download the kernel that you want. Unpack it to /usr/src, then:
cd /usr/src/<directory of your new kernel>
make menuconfig or make xconfig
make dept
make clean
make bzImage
make modules
make modules_install
Then copy /boot/vmlinuz to vmlinuz.old
Then copy /usr/src/<directory of your new kernel>/arch/i386/boot/bzImage to /boot /vmlinuz
Then copy /usr/src/<directory of your new kernel>/arch/i386/boot/bzImage to /boot /System.map to /boot/System.map
Edit your /etc/lilo.conf or /boot/grub/grub.conf to add a configuration line for your new kernel.
If using lilo run /sbin/lilo
You should be done then.
Is this what you wanted?
 
  


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
recompiling kernel DaveyB Linux - Newbie 3 08-10-2004 10:45 AM
can i compile just one kernel module whithout recompiling the whole kernel? edman007 Linux - Software 3 02-17-2004 04:05 PM
What does recompiling the kernel do? direwolf20 Linux - Newbie 2 10-08-2003 01:06 AM
What use does recompiling the kernel have? twinkers Debian 8 10-06-2003 11:46 AM
recompiling kernel slacknewbie Linux - General 3 05-08-2002 11:24 AM


All times are GMT -5. The time now is 10:54 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