LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-12-2004, 08:30 AM   #1
Snerkel
Member
 
Registered: Jul 2004
Location: England
Distribution: 1 Gentoo 2005.0 system(desktop), 1 hardened-gentoo SeLinux stage1 server ;)
Posts: 262

Rep: Reputation: 30
questions about apdating the kernel


Hi, im in the middle of compiling a new kernel im reading through the included readme to guide me through the installation but theres something in the readme that has confused me and i was wondering if anyone could help?
the readme is directed towards the LILO boot loader but i use grub.

In the readme is says:

- In order to boot your new kernel, you'll need to copy the kernel
image (e.g. .../linux/arch/i386/boot/bzImage after compilation)
to the place where your regular bootable kernel is found.

If you boot Linux from the hard drive, chances are you use LILO which
uses the kernel image as specified in the file /etc/lilo.conf. The
kernel image file is usually /vmlinuz, /boot/vmlinuz, /bzImage or
/boot/bzImage. To use the new kernel, save a copy of the old image
and copy the new image over the old one. Then, you MUST RERUN LILO
to update the loading map!! If you don't, you won't be able to boot
the new kernel image.


but im not sure where that is, in my /etc/grub.conf file it says:

default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Fedora Core (2.6.5-1.358smp)
root (hd0,0)
kernel /vmlinuz-2.6.5-1.358smp ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.5-1.358smp.img
title Fedora Core-up (2.6.5-1.358)
root (hd0,0)
kernel /vmlinuz-2.6.5-1.358 ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.5-1.358.img

would the kernel boot image be kernel /vmlinuz-2.6.5-1.358smp ro root=LABEL=/ rhgb quiet so kernel /vmlinuz-2.6.5-1.358smp where the kernel is stored?

Also if anyone could give me an example new entry for /etc/grub.conf i would appricate it.

Thank you very much for any help given it will all be greatly appricated,
Ben

Last edited by Snerkel; 08-12-2004 at 08:32 AM.
 
Old 08-12-2004, 10:16 AM   #2
m_yates
Senior Member
 
Registered: Aug 2003
Location: Upstate
Distribution: Debian, Mint, Mythbuntu
Posts: 1,249

Rep: Reputation: 101Reputation: 101
Quote:
would the kernel boot image be kernel /vmlinuz-2.6.5-1.358smp ro root=LABEL=/ rhgb quiet so kernel /vmlinuz-2.6.5-1.358smp where the kernel is stored?
Yes, that is your current kernel. You just need to copy your new kernel image and name is something like: /vmlinuz-2.6.7-1smp (I just made up a name). If you are using initrd to boot, you will have to create an initrd for this kernel as well. Make an entry for the new kernel in menu.lst like:

title Fedora Core (2.6.7-1smp)
root (hd0,0)
kernel /vmlinuz-2.6.7-1smp ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.7-1smp.img
 
Old 08-12-2004, 10:55 AM   #3
Snerkel
Member
 
Registered: Jul 2004
Location: England
Distribution: 1 Gentoo 2005.0 system(desktop), 1 hardened-gentoo SeLinux stage1 server ;)
Posts: 262

Original Poster
Rep: Reputation: 30
this is my /boot dir:

[root@myroom boot]# ls
config-2.6.5-1.358 initrd-2.6.5-1.358.img System.map-2.6.5-1.358 vmlinuz-2.6.5-1.358smp
config-2.6.5-1.358smp initrd-2.6.5-1.358smp.img System.map-2.6.5-1.358smp
grub lost+found vmlinuz-2.6.5-1.358

would vmlinuz-2.6.5-1.358 be the kernel or vmlinuz-2.6.5-1.358smp ?

What does smp mean ?

how do i create an initrd for the new kernel ? i use GRUB to boot.
 
Old 08-12-2004, 11:01 AM   #4
Snerkel
Member
 
Registered: Jul 2004
Location: England
Distribution: 1 Gentoo 2005.0 system(desktop), 1 hardened-gentoo SeLinux stage1 server ;)
Posts: 262

Original Poster
Rep: Reputation: 30
ok i might sound very dumb here :| but i cant find the new kernel boot image here is the dir of the new kernel that i decompressed:

[root@myroom linux-2.6.7]# ls
arch crypto fs ipc MAINTAINERS Module.symvers REPORTING-BUGS sound vmlinux
COPYING Documentation include kernel Makefile net scripts System.map
CREDITS drivers init lib mm README security usr

would the new boot image be vmlinux ?
 
Old 08-12-2004, 11:09 AM   #5
m_yates
Senior Member
 
Registered: Aug 2003
Location: Upstate
Distribution: Debian, Mint, Mythbuntu
Posts: 1,249

Rep: Reputation: 101Reputation: 101
Quote:
would vmlinuz-2.6.5-1.358 be the kernel or vmlinuz-2.6.5-1.358smp ?
They are both kernel images. You have two entries listed in menu.lst, one for each.
Quote:
What does smp mean ?
The smp is for multiple processors. If you only have one cpu, you don't want the smp processor.
Quote:
how do i create an initrd for the new kernel ?
You need the mkinitrd program to make the initrd for the new kernel. Type "man mkinitrd". The command would be something like:
Code:
mkinitrd /boot/initrd-2.6.7.img 2.6.7
At least I think. I use Debian, and it is done a little differently.
 
Old 08-12-2004, 11:26 AM   #6
Snerkel
Member
 
Registered: Jul 2004
Location: England
Distribution: 1 Gentoo 2005.0 system(desktop), 1 hardened-gentoo SeLinux stage1 server ;)
Posts: 262

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by m_yates
They are both kernel images. You have two entries listed in menu.lst, one for each.
The smp is for multiple processors. If you only have one cpu, you don't want the smp processor. You need the mkinitrd program to make the initrd for the new kernel. Type "man mkinitrd". The command would be something like:
Code:
mkinitrd /boot/initrd-2.6.7.img 2.6.7
At least I think. I use Debian, and it is done a little differently.
ok now this is strange, man mkinitrd works but when i try "mkinitrd /boot/initrd-2.6.7.img 2.6.7" it gives me this:

[root@myroom boot]# mkinitrd /boot/initrd-2.6.7.img 2.6.7
bash: mkinitrd: command not found

why would it do this ?
 
Old 08-12-2004, 12:05 PM   #7
ky-lab_rat
Member
 
Registered: Jan 2004
Posts: 44

Rep: Reputation: 15
Try these links. They saved my butt more then a few times. They walk you through it step-by-step..

(this page loads a little slow but great info!)
http://www.digitalhermit.com/linux/K...ild-HOWTO.html


http://www.keyspan.com/support/linux/docs/recompile/
 
Old 08-12-2004, 12:09 PM   #8
m_yates
Senior Member
 
Registered: Aug 2003
Location: Upstate
Distribution: Debian, Mint, Mythbuntu
Posts: 1,249

Rep: Reputation: 101Reputation: 101
You need to install the mkinitrd program: http://www2.linuxforum.net/RPM/fedor...14-1.i386.html
 
  


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
Kernel Questions jimbo-62 Debian 2 08-08-2005 09:49 PM
Kernel Questions. rvijay Linux - General 3 01-09-2005 04:33 PM
2.6.7 Kernel questions deiussum Linux - Software 4 08-04-2004 08:32 AM
kernel questions matt_w_lambert Linux - General 2 12-27-2003 08:47 PM
kernel questions SLaCk_KiD Slackware 2 06-05-2003 12:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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