LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 04-23-2004, 10:48 AM   #1
Hammett
Senior Member
 
Registered: Aug 2003
Location: Barcelona, Catalunya
Distribution: Gentoo
Posts: 1,042

Rep: Reputation: 54
Cannot boot kernel 2.4.25


Hi !!!

I want to upgrate form redhat kernel (2.4.20-8) to 2.4.25, so i did all the config, created bzImage and copied to /boot directory, the same with System.map
Also created the propper entries in grub, using initrc form previous kernel. The problem is that when i try to boot kernel 2.4.25, the kernel says it cannot find any initrc file (kernel panic).

I also tryed to to a "make install" from kernel source directory, but it ends with an error like:

sh -x ./install.sh 2.4.25 bzImage /usr/src/linux-2.4.25/System.map ""
+ '[' -x /root/bin/installkernel ']'
+ '[' -x /sbin/installkernel ']'
+ exec /sbin/installkernel 2.4.25 bzImage /usr/src/linux-2.4.25/System.map ''
/lib/modules/2.4.25 is not a directory.
mkinitrd failed
make[1]: *** [install] Error 1
make[1]: Saliendo directorio `/usr/src/linux-2.4.25/arch/i386/boot'
make: *** [install] Error 2

Grub entry:

title Red Hat Linux (2.4.25)
root (hd0,5)
kernel /boot/vmlinuz-2.4.25 ro root=LABEL=/ hdc=ide-scsi vga=0x31B
initrd /boot/initrd-2.4.20-8.img


Any suggestion?? Why it happens this error??

Thnx in advance
 
Old 04-23-2004, 12:41 PM   #2
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
"/lib/modules/2.4.25 is not a directory" Did you do
make modules_install # after you did
make modules # ?
 
Old 04-23-2004, 01:20 PM   #3
Hammett
Senior Member
 
Registered: Aug 2003
Location: Barcelona, Catalunya
Distribution: Gentoo
Posts: 1,042

Original Poster
Rep: Reputation: 54
I don't do a make bzImage, make modules and make modules_install. Instead of that, you can do a "make install" and does everything, even copying the new kernel image and system.map to /boot directory and add an entry to the bootloader.

My main problem is that 2.4.25 does not recognize the old initrc (God knows why....), even if i symlink to the old, i get the same kernel panic. Anyway, i will give a shot to tha make modules_install, see what's up...

Maybe i should consider to get 2.4.26.....

Last edited by Hammett; 04-23-2004 at 01:22 PM.
 
Old 04-23-2004, 01:43 PM   #4
Hammett
Senior Member
 
Registered: Aug 2003
Location: Barcelona, Catalunya
Distribution: Gentoo
Posts: 1,042

Original Poster
Rep: Reputation: 54
Andrew Benton,

You were right!! i doing "make install" does not make the modules neither installs them. I suppose only do a bzImage and copy it to /boot + adding the entry in the bootloader.

Thanx a lot for the help,
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
DSL Kernel Wont detect Flash drive on boot, cant boot =( Javahulk Linux - General 1 03-24-2005 02:59 PM
Kernel update boot problems, no boot loader StaticSage Red Hat 2 01-09-2004 06:05 AM
CAVEAT: /boot/kernel.h & how not to clobber your kernel sources (Conectiva, Red Hat) JCCyC LinuxQuestions.org Member Success Stories 0 08-07-2003 07:49 AM
Kernel Compile Boot Loader? boot disk? SPMcRuube Linux - Newbie 3 12-03-2002 07:02 PM
What to do with /boot/System.map on dual Kernel boot? cathodion Linux - General 2 05-17-2002 11:19 AM

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

All times are GMT -5. The time now is 08:36 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration