LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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, 02: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, 02:49 PM   #2
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
What is your distro? RedHat, for example, provide the kernel via RPM. Is this applicable to you?
 
Old 06-03-2003, 02: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, 03:02 PM   #4
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
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, 03: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, 03: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, 07:17 PM   #7
tangle
Senior Member
 
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761

Rep: Reputation: 78
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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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