LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 10-05-2003, 01:33 PM   #1
Kramer
Member
 
Registered: Aug 2003
Location: Somewhere south of sanity...
Distribution: Mandrake 9.1
Posts: 550

Rep: Reputation: 30
Question Does anyone have a good step by step on compiling a Kernel?


Im going to try to compile the 2.6 kernel, get rid of what I dont need and see if I can add in the ACPI support and get it working. Anyone have a good how-to?
 
Old 10-05-2003, 01:48 PM   #2
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Check out:
http://www.redhat.com/docs/manuals/l...om-kernel.html
 
Old 10-05-2003, 10:46 PM   #3
Kramer
Member
 
Registered: Aug 2003
Location: Somewhere south of sanity...
Distribution: Mandrake 9.1
Posts: 550

Original Poster
Rep: Reputation: 30
Is it pretty much the same procedure for Mandrake?
 
Old 10-06-2003, 03:12 PM   #4
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Kernel compiling is kernel compiling no matter which distro for linux.

Hope this helps
Brian1
 
Old 10-06-2003, 05:02 PM   #5
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
Well - I did this with 2.6.0-test4 with no probs under Mandrake 9.1 with LILO.

Get hold of the kernel source.

Download either to /usr/src or home directory – you can always extract to a directory in /home then use the mv command to move the newly extracted directory to /usr/src – change into that directory with cd - once youve cd'd into the extracted directory (or symlink to extracted directory) then do

make xconfig
make clean
make bzImage
make modules
make modules_install

cp System.map /boot/System.map-2.6.0-test4

cp arch/i386/boot/bzImage /boot/bzImage-2.6.0-test4

kedit /etc/lilo.conf

Copy the whole normal entry for your distro then change 2 things – the image path and the label name – save it

/sbin/lilo

Dr Ozz's guide is worth checking out for more info.

(remember with 2.6........... you dont need to make dep anymore)

Last edited by Skyline; 10-06-2003 at 05:05 PM.
 
Old 10-06-2003, 05:51 PM   #6
nrunge
Member
 
Registered: Oct 2003
Distribution: Debian Woody (2.4.22)
Posts: 182

Rep: Reputation: 30
If you use bzlilo instead of bzimage it will make entries in lilo for you. But you still have to move the files to /boot.
 
  


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
Step by step updating to kernel 2.6.12.5 for me Master Fox Slackware 13 08-24-2005 04:13 PM
Trouble compiling kernel, mkinitrd step shrndegruv Linux - Software 3 01-23-2005 12:57 AM
Step by step kernel compile for fedora core 3 Braveheart1980 Fedora 6 11-11-2004 01:41 AM
step by step installation of my kernel source zexter Linux - Software 4 11-05-2004 10:31 AM
Step-by-Step: Making integrated Broadcome wireless adapter work with Mandrake 9.2 jmp875 Linux - Wireless Networking 16 06-30-2004 12:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 06:52 PM.

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