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 Hosts
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 Installing 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

Reply
 
Thread Tools Display Modes
Old 02-07-2004   #1 (permalink)
robak
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)
bpark
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)
Giro
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)
robak
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)
lordnothing
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)
robak
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)
lordnothing
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)
robak
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)
lnthai2002
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]
__________________
Signature removed by moderator
lnthai2002 is offline   Reply With Quote
Old 05-26-2004   #10 (permalink)
masterLoki
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, trying to understand the universe

AMD Sempron 2400+
256 MB
ATI Radeon PowerColor 128 Mb
KUbuntu + 2.6.12 Kernel
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




All times are GMT. The time now is 02:00 AM.




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

Content Relevant URLs by vBSEO 3.0.0