LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 04-05-2007, 11:51 PM   #1
ravindra1103
LQ Newbie
 
Registered: Apr 2007
Posts: 7

Rep: Reputation: 0
error in recompiling the code


make mrproper
make menuconfig
i didnot update anything with this.

make dep
make bzImage
make modules
make modules_install
mv arch/i386/boot/bzImage /boot/subbu
cd /boot/grub

i added new entry to grub.conf


title Red Hat Linux (2.4.20-8)
root (hd0.8)
kernel /boot/subbu ro root =LABEL=/ hdb=ide-scsi
initrd /boot/initrd-2.4.20-8.img


but it is giving kernel panic error init not found..


is there any wrong in updated grub.conf




grub.conf file contains this entry before compilation...

title Red Hat Linux (2.4.20-8)
root (hd0.8)
kernel /boot/vmlinuz-2.4.20-8 ro root =LABEL=/ hdb=ide-scsi
initrd /boot/initrd-2.4.20-8.img
 
Old 04-06-2007, 04:35 AM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Because you made a couple of fatal mistakes;

make menuconfig
i didnot update anything with this.

Without applying a working configuration or creating one here, you built a bad kernel, try again.

The last step should be: make install
not: mv arch/i386/boot/bzImage /boot/subbu

The /boot/grub/grub.conf file will be updated automatically and the files you forgot to copy to the /boot directory will be in place also.
 
  


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
Lilo error after recompiling xp1o1d5 Linux - General 12 07-26-2006 10:50 AM
URGENT: Problems recompiling C++ source code when upgrading to Linux 9 ldsimon Linux - General 7 09-22-2004 08:03 PM
Recompiling 2.6.1.358 mouse code into 2.6.8 yaBoy Linux - General 2 08-25-2004 04:07 PM
error recompiling 2.6.7 (2.6.6 recompiled fine) powadha Debian 2 07-05-2004 04:50 PM
RECompiling Xine error...I'm stumped MunCH Fedora 2 06-11-2004 12:33 AM

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

All times are GMT -5. The time now is 11:41 AM.

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