Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux HostsFree MagazinesJobs
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > GNU Linux Zone > The Linux Kernel
Reload this Page i want the full steps to compile the kernel
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

The Linux Kernel Compiling, theory, programming or other discussion about the linux kernel

Closed Thread
 
Thread Tools Display Modes
Old 09-14-2004   #1 (permalink)
Just Joined!
 
Join Date: Jun 2004
Location: Bahrain
Posts: 12
i want the full steps to compile the kernel

can i have the full steps to compile my kernel
i mean the steps that i must do it in shell
like
Code:
make dep
make bzImage
etc
i have mandrake 9.1 Bamboo
i want to compile the new one 2.6.8.1
thanks a lot
__________________
I love distortion
Menno Man is offline  
Old 09-14-2004   #2 (permalink)
Just Joined!
 
Join Date: Sep 2004
Posts: 26
Send a message via AIM to AAnarchYY
Ive had nothing but problems trying to update a mandrake kernel but here ya go
  • first go and get the source tree and extract it
  • in the directory it just created, as root, type "make xconfig"
  • search through and make sure all your hardware is checked off as modules
  • search through and see if there is anything else you want compiled in or whatever
  • save and exit the xconfig
  • type "make bzImage && make modules && make modules_install"
  • copy the bzImage file that resides in arch/i386/ to /boot and rename it something apropriate, like vmlinuz-2.6.9-rc2 or whichever kernel you got
  • edit /etc/lilo.conf to put your new kernel in
  • IMPORTANT: be sure and run the /sbin/lilo command on your system may not boot back up
  • reboot and choose your new kernel
  • enjoy =)
__________________
Registered Linux user# 366379
=-Kilroy-=
AAnarchYY is offline  
Old 09-15-2004   #3 (permalink)
jzh
Just Joined!
 
Join Date: Sep 2004
Location: BeiJing, China
Posts: 3
first change the current directory to /usr/src/linux-xxx/include

1. if link 'asm' doesn't exist, use 'ln -s asm-i386 asm'

//generate the kernel config file
2. make menuconfig(config...)

//generate the kernel image file, modules
3. make all

//install modules to /lib/modules/
4. make modules_install

//install the kernel image to /boot
5. make install
jzh is offline  
Old 09-15-2004   #4 (permalink)
Linux Newbie
 
zdawg's Avatar
 
Join Date: Jan 2004
Location: Canada
Posts: 218
rm -f /usr/src/linux && ln -sf /usr/src/linux-2.6.8<version if
any>
cd /usr/src/linux && make menuconfig
<select all needed, pay close attention to processor and filesystems ... know your hardware (lspci can help there)
make install && make modules modules_install
(If /boot is already mounted then this should also copy the image there, otherwise cp it to /boot)
__________________
Me & Myself just ganged up on I....... Now We all have problems..and none of Us are speaking!
http://blog.johnnywhitedog.com
http://johnnywhitedog.com
bash-3.00$ uname -a
SunOS sparky 5.11 OpenSolaris-swa sun4u sparc SUNW,Ultra-Enterprise
zdawg is offline  
Old 09-23-2004   #5 (permalink)
Just Joined!
 
Join Date: Sep 2004
Posts: 7
http://www.linuxquestions.org/questi...rnel+compiling
zWaR is offline  
Old 10-19-2004   #6 (permalink)
Just Joined!
 
Join Date: Oct 2004
Posts: 4
I can not find the /usr/src/linux-xxx/include dir

Hi,

I installed RH9.0.
Now I need to compile and install the linux-wlan driver. The compilation requires the kernel to be at least configured.

So I choose add/remove application and install kernel source from the RH9.0 installation CD. In the directory "/usr/src/linux-2.4.20-8/" I found something new, such as a Makefile, a 'Document' dir, and etc. HOWEVER, I can not find include dir, why? Ofcause, I can not config the kernel compilation without 'include' directory.

Thanks,
Hill

Quote:
Originally Posted by jzh
first change the current directory to /usr/src/linux-xxx/include

1. if link 'asm' doesn't exist, use 'ln -s asm-i386 asm'

//generate the kernel config file
2. make menuconfig(config...)

//generate the kernel image file, modules
3. make all

//install modules to /lib/modules/
4. make modules_install

//install the kernel image to /boot
5. make install
hillxy is offline  
Old 02-06-2008   #7 (permalink)
Linux Newbie
 
Join Date: Feb 2008
Location: Bangalore, India
Posts: 112
Send a message via Yahoo to ynilesh
I found this link preety simple and east to understand and follow.
Red Hat Kernel Compilation
__________________
bigunix.blogspot.com
Registered Linux User: #476440
ynilesh is offline  
Closed Thread



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
 

Free Magazines
Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe
Systems Management News, the newspaper for IT systems administration and data center managers!
Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe
The Enterprise Newsweekly
eWeek is the essential technology information source for builders of e-business.
subscribe
Oracle Magazine
Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe
Total Telecom
Total Telecom is "The Economist of the communications industry".
subscribe
More free magazines »



All times are GMT. The time now is 12:07 PM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.2.0