LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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
 
LinkBack Search this Thread
Old 07-16-2007, 06:30 AM   #1
cjagdish69
Member
 
Registered: Oct 2003
Location: Bombay,Maharashtra,India
Posts: 60

Rep: Reputation: 15
Error :While Compiling Kernel 2.4.18-14


I have a HP-Compaq celeron machine having 2.2 Ghz,128 MB RAM , 80GB ide hdd.

Previously the machine was loaded with Mandrake linux. Now i am to load RH8. The installation is perfect.

Now after installation of RH8, i am trying to compile the kernel as per my needs. I am doing it as follows The Kernel Source is also loaded).

# cd /usr/src/linux-2.4.18

# make menuconfig
( Here i am selecting the options i want to be in kernel).

# make dep

# make install
Here the compilation goes smoothly. No error occurs. This is the custom kernel. Also the command 'make install' creates necessary entry in grub.conf file also.

If i Reboot the machines and boots with the custom kernel I am getting following errors :

"kmod: failed to exec /sbin/modprobe -s -k ext3, error = 2
kmod: failed to exec /sbin/modprobe -s -k freeext3 error = 2

mount: error 19 mounting ext3
pivotroot: pivot_root(/sysroot,/sysroot/initrd) failed: 2
umount /initrd/proc failed: 2
freeing unused kernel memory 184k freed
Kernel panic:No init found. Try passing init= option to kernel."

I have also tried to edit the kernel entry in grub and added the option init=5 (also tried init = 3) and tried to boot this kernel. But i am getting the same error.

Can somebody guide me in this regard ?

Thanks in Advance.

_ Jagdish.
 
Old 07-16-2007, 06:45 AM   #2
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
Quote:
Now i am to load RH8.
Goodness me... why?!
Quote:
# make menuconfig
... "make xconfig" ... surely?

You forgot to mention...

make modules
make modules install

you have to copy th bzimage into /root (and give it a proper name)
you have to make the initrd
you have to check the created grub.conf entry ... I am not aware of makefiles below 2.4.22 doing this properly. (Certainly didn't for me!)

Quote:
"kmod: failed to exec /sbin/modprobe -s -k ext3, error = 2
But it looks like you forgot to compile the module for the filesystem.
 
Old 07-16-2007, 08:00 AM   #3
cjagdish69
Member
 
Registered: Oct 2003
Location: Bombay,Maharashtra,India
Posts: 60

Original Poster
Rep: Reputation: 15
Custom Kernel Compilation 2.4.18-14.

I am doing the compilation from text. Hence i have mentioned the stemp as :

# make menuconfig


Yes. I forgot to compile the module for ext3. So i selected that modules from file systems and compiled the kernel.

Now it is working perfectly.

But i have not followed the steps

# make modules
# make modules_install

Still it is working properly.

Thanks for the reply.
 
Old 07-16-2007, 08:03 PM   #4
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
So why RH8? You realize there will be no end of trouble with it?
You are probably better using it as the starting point for an LFS install!

You may be thinking that it is none of my business?
However... legacy distros can have security problems (updating the kernel will have addressed some of this) and the experience of others in the community affects perceptions of linux as a whole.

And I have an interest in how people find legacy distros useful.
 
  


Reply

Tags
compilation, custom, kernel


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error@Re-compiling kernel math_1048 Linux - Kernel 6 01-05-2007 10:36 AM
Error in Kernel.h file, while compiling the kernel Nishant Desai Linux - Kernel 0 11-13-2006 11:19 PM
Compiling Kernel Error joirnange Linux - Newbie 5 05-30-2006 09:39 AM
Error compiling kernel 2.6.8 tmp_versions Linux - Software 14 08-29-2004 09:53 PM
error compiling kernel GJoz Linux - General 5 02-05-2003 01:30 PM


All times are GMT -5. The time now is 10:54 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration