LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-01-2007, 11:14 PM   #1
beeblequix
Member
 
Registered: Oct 2005
Location: Tierra Firma, Earth
Distribution: Debian of course...
Posts: 198

Rep: Reputation: 30
compile & install new kernel


basic notes for myself on compiling a new kernel


cd /usr/src/linux
make mrproper -- return src to original state
make xconfig -- graphical, needs X windows
or
make menuconfig -- needs ncurses
or
make config -- very simple, a pain if you want to change something because you have to got through the whole thing all over again (which is where xconfig is nice)

<Processor type and features>...select desired features (ie, the best cpu match)
..<Main Menu>...<Save and Exit>
<OK>

change new kernel label:
ie, vi the Makefile --> change the EXTRAVERSION setting to something other than the generic (-something). save changes: x!

compile kernel:
make dep -- indentify dependencies
make clean -- removes old files & ambiguities
make bzImage -- make compressed kernel image file (location will be something like /usr/src/linux/arch/i386/boot/bzImage/vmlinuz-2.6.18-something)
make modules -- compile modular components

install kernel:
move kernel image to /boot (cp -p /usr/src/linux/arch/i386/bzimage /boot/vmlinuz-2.6.18-something)

install kernel modules:
make modules_install -- installs modular components of kernel in correct directory.
cp System.map /boot/System.map-linux-2.6.18-something

alternate: make dep clean bzImage modules modules_install
 
Old 02-02-2007, 05:09 AM   #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
Much better to download and keep handy the Linux Kernel in a Netshell;

ftp://ftp.kernel.org/pub/linux/kerne...kn_pdf.tar.bz2
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to install & compile ndiswrapper? meping Linux - Wireless Networking 2 06-03-2006 05:53 PM
Wireless card & Kernel Compile dauphinfay Linux - General 1 03-18-2006 03:47 AM
Printer & Sensors not working after kernel compile DaBlade Linux - Hardware 1 03-11-2006 06:37 AM
Returned to Slack: ipw2200 & Compile kernel svarreby Slackware 1 05-27-2005 12:07 PM
To Compile my kernel with Local & IO APIC or not? haimeltjnfg Linux - Software 0 05-31-2004 01:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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