LinuxQuestions.org
Review your favorite Linux distribution.
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 05-14-2003, 01:26 PM   #1
lokee
Member
 
Registered: Feb 2003
Distribution: Gentoo
Posts: 381

Rep: Reputation: 30
Recompiled kernel boot problem...


I have RedHat 8 with grub.

After recompiling my original 2.4.18-14 kernel like this:
-make mrproper
-make xconfig
-make dep
-make bzImage
-make modules
-make modules_install
-make install

When i rebooted I got this error message:
"Kernel Panic: No init found. Try passing the 'init=' argument to the kernel"

So I tried adding 'init=/initrd' in grub, but it didn't solve anything!

Can anyone help?
 
Old 05-14-2003, 03:46 PM   #2
jpbarto
Senior Member
 
Registered: Mar 2003
Location: Pittsburgh, PA
Distribution: Gentoo / NetBSD
Posts: 1,251

Rep: Reputation: 45
<Note: I use lilo, do not use grub so I don't know if this will be of help>

after 'make modules_install' I type 'cp arch/i386/boot/bzImage /boot/new-kernel-image' then add an entry to lilo.conf and I have to rerun lilo to rewrite the boot sector of the disk for the new kernel... (even if you're just replacing an old one.) Is this rewriting of the bootsector possibly also a requirement of Grub? If you make changes to grubs config do you need to rerun grub before restarting the machine?
 
Old 05-14-2003, 08:04 PM   #3
lokee
Member
 
Registered: Feb 2003
Distribution: Gentoo
Posts: 381

Original Poster
Rep: Reputation: 30
the 'make install' command does this automatically...
 
Old 05-14-2003, 08:37 PM   #4
lokee
Member
 
Registered: Feb 2003
Distribution: Gentoo
Posts: 381

Original Poster
Rep: Reputation: 30
I'd like to add this, my original kernel back-up has the same problem!
 
Old 05-14-2003, 10:39 PM   #5
Franklin
Senior Member
 
Registered: Oct 2002
Distribution: Slackware
Posts: 1,348

Rep: Reputation: 217Reputation: 217Reputation: 217
make mrproper
make xconfig
make dep
make clean
make bzImage
make modules
make modules install
make initrd /boot newinitrd-image 2.4.18-14

you should end up with a bzImage, newinitrd-image (in /boot), and new module directory called 2.4.18-14custom.

modify grub.conf to add the new kernel accordingly.

HTH
 
Old 05-15-2003, 05:35 PM   #6
lokee
Member
 
Registered: Feb 2003
Distribution: Gentoo
Posts: 381

Original Poster
Rep: Reputation: 30
That doesn't work either:
it says: no rules to make initrd
But that ain't the problem, make install makes a ramdisk automatically...

Another question: How do you pass parameters to the kernel itself?
 
  


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
Recompiled kernel and LILO wont boot it! pnh73 Linux - Software 9 04-07-2004 02:06 PM
[recompiled kernel] framebuffer problem and some more jacktheripper Slackware 2 01-10-2004 12:42 PM
Inspiron laptop, kernel recompiled -> cannot boot x sedulous Red Hat 2 09-08-2003 07:59 AM
recompiled kernel won't respond to boot-time args turtle Linux - General 2 01-11-2003 10:50 AM
kernel recompiled - but i boot from floppy? gui10 Slackware 8 05-08-2002 12:43 PM

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

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