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.
Write an article for LinuxForums Today! Win Great Prizes!
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > The Linux Kernel > Installing kernel

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

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds
Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 02-07-2004   #1 (permalink)
Linux Newbie
 
robak's Avatar
 
Join Date: Jan 2004
Posts: 136
Send a message via ICQ to robak
Installing kernel

Hi !

what is there to do to install a new kernel after unpacking the sources and making menuconfig?

is there an easier way on gentoo-linux?
(perhaps with "emerge" or something)

thx in adavance
__________________
make install not love

Registered Linux user number 369245
robak is offline  



Reply With Quote
Old 02-07-2004   #2 (permalink)
Linux Engineer
 
Join Date: Nov 2002
Location: Queens, NY
Posts: 1,319
Send a message via AIM to bpark
There probably is an easier way that each distros can compile the kernel. I know Debian at least has one.

Well, after running make menuconfig, you probably want to run either 'make install' or 'make bzImage'. The prior should take care of moving the compressed kernel to the /boot, edit boot configuration files to add the new kernel and etc. The latter will not.

After you've done that, you want to compile and install modules. To do that, run 'make modules' and then 'make modules_install'.
__________________
The best things in life are free.
bpark is offline   Reply With Quote
Old 02-07-2004   #3 (permalink)
Linux Engineer
 
Giro's Avatar
 
Join Date: Jul 2003
Location: England
Posts: 1,219
After make menuconfig i always use
Code:
make bzImage
and copy the compressed kernel image to boot like so
Code:
cp arch/i386/boot/bzImage /boot/bzImage
And i normally call it bzImage-version where version is the kernels version. Then just edit you boot loader and reboot. Also keep your orignal kernel always then you know if something has gone wrong you have a stable kernel to boot with.
Giro is offline   Reply With Quote
Old 02-08-2004   #4 (permalink)
Linux Newbie
 
robak's Avatar
 
Join Date: Jan 2004
Posts: 136
Send a message via ICQ to robak
thanks guys for your posts
__________________
make install not love

Registered Linux user number 369245
robak is offline   Reply With Quote
Old 02-08-2004   #5 (permalink)
Linux Engineer
 
Join Date: Sep 2003
Location: Knoxhell, TN
Posts: 1,078
Send a message via MSN to lordnothing
gentoo has a utility called genkernel that will configure and compile a kernel for you.. if you run genkernel --config it will make menuconfig and then compile the kernel and modules. after it does that it makes an initrd for you, also. some people don't like genkernel, but i've not had any problems with it (yet).
__________________
Their code will be beautiful, even if their desks are buried in 3 feet of crap. - esr
lordnothing is offline   Reply With Quote
Old 02-08-2004   #6 (permalink)
Linux Newbie
 
robak's Avatar
 
Join Date: Jan 2004
Posts: 136
Send a message via ICQ to robak
cool

how and where do i have to start genkernel?

in the kernel home-dir?

Code:
cd /mnt/RAM/kernel-2.6.2
genkernel --config
right??
__________________
make install not love

Registered Linux user number 369245
robak is offline   Reply With Quote
Old 02-09-2004   #7 (permalink)
Linux Engineer
 
Join Date: Sep 2003
Location: Knoxhell, TN
Posts: 1,078
Send a message via MSN to lordnothing
you can run genkernel anywhere... you just have to run it with root privileges.. the only thing you have to be sure of is that the /usr/src/linux symlink points to the version of the kernel that you want to compile.
__________________
Their code will be beautiful, even if their desks are buried in 3 feet of crap. - esr
lordnothing is offline   Reply With Quote
Old 02-10-2004   #8 (permalink)
Linux Newbie
 
robak's Avatar
 
Join Date: Jan 2004
Posts: 136
Send a message via ICQ to robak
i found a good way to install a kernel under gentoo with genkernel.
you can run it from anywhere and with any kernel without making a symlink

Code:
genkernel --kerneldir=kerneldirectory --install --all
genkernel configures the kernel with all drivers you need automatically, but if you what your own config just add --menuconfig before --install

__________________
make install not love

Registered Linux user number 369245
robak is offline   Reply With Quote
Old 03-23-2004   #9 (permalink)
Just Joined!
 
Join Date: Mar 2004
Posts: 6
Send a message via MSN to lnthai2002 Send a message via Yahoo to lnthai2002
only make install worked

I used make bzImage then I copy it to /boot as vmlinuz-verion.img and change path in Grup, but it does not boot untill I use make install (I noticed that the path in Grup is the same)
Anybody know why it happend? [/i]
lnthai2002 is offline   Reply With Quote
Old 05-26-2004   #10 (permalink)
Just Joined!
 
Join Date: May 2004
Location: Irapuato,Gto, Mexico
Posts: 7
Send a message via MSN to masterLoki Send a message via Yahoo to masterLoki
Kernel Compile... D'huh

Hi there is a precompiled kernel in gentoo linux so i don't have to compile it (or create its image), honestly i tried it about 6 moth ago and I give up, But I want to go out this FC1 box
masterLoki is offline   Reply With Quote
Reply


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
A Newbie's Getting Started Guide to Linux
Learn the basics of the Linux operating systems. Get to know what it is all about, and familiarize yourself with the practical side. Basically, if you're a complete Linux newbie and looking for a quick and easy guide to get you started this is it.
subscribe
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 11:32 AM.






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

Content Relevant URLs by vBSEO 3.3.1