LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 10-08-2004, 08:26 AM   #1
jhorton
LQ Newbie
 
Registered: Oct 2004
Posts: 4

Rep: Reputation: 0
Kernel Boots but then hangs. Init Doesn't Start


I'm using Mandrake 10. I have built a new kernel (2.4.27) myself which boots just fine, but when it is time to start init nothing happens. The last message the kernel prints is "Freeing unused kernel memory: 160k freed" then the system just sits there.

I can still boot the stock Mandrake kernels without a problem.

Does anybody have a clue? I was thinking about trying to load the kernel with the init=/bin/sh option, but I haven't tried that yet.

Thanks for you help.
 
Old 10-09-2004, 03:44 AM   #2
opjose
Senior Member
 
Registered: Sep 2004
Location: Outlying D.C.
Distribution: Mandriva
Posts: 2,090

Rep: Reputation: 46
You may need to mkinitrd the kernel version you are using.

Also are all the lib/modules in place?

Why use a non-stock kernel in the first place?

ALL modules are pre-compiled in the stock kernel, so there is RARELY any need to recompile the kernel, people who tell you otherwise not-with-standing.

Finally first look for a prebuild RPM or at worst a .src.rpm for the kernel version you want to install. You can usually find these if you look on the update / devel repositories.

With the source.rpm

rpm kernel-xxx.src.rpm

and go to bed.

You can then install the new kernel with

rpm -Uvh /usr/src/RPM/RPM/i586/kernel-xxxx.i586.rpm

the next day.
 
Old 10-13-2004, 12:50 PM   #3
jhorton
LQ Newbie
 
Registered: Oct 2004
Posts: 4

Original Poster
Rep: Reputation: 0
I need a new kernel becuase I need to run a 2.4 kernel to get my fobbit VOIP device driver to load. It doesn't work with the 2.6 kernels. The stock 2.2.25 kernel with Mandrake 10 doesn't work correctly with Wine.

I downgraded to the 2.4.22 kernel from Mandrake 9.2 which fixes the Wine problems and the problem with getting the fobbit phone device driver to load, but now Apache won't start -- releated to a kernel function that it needs to call for logging that isn't in the 2.4.22 kernel.

I've never had any problems in the past. I've been building kernels since the 1.2 days. I've tried with and without an initrd image, but I always get the same result. It's not a kernel panic. The kernel finishes loading, but init never starts after once the kernel frees it unneeded memory.

Anybody else got any ideas.

Josh
 
Old 10-14-2004, 09:01 AM   #4
opjose
Senior Member
 
Registered: Sep 2004
Location: Outlying D.C.
Distribution: Mandriva
Posts: 2,090

Rep: Reputation: 46
There was a problem in the 2.4.x kernels which affected quite a number of systems.

Have you tried adding the

nolapic

and maybe even

noapm
noacpi

to the kernel load?

Just add it as an argument in Lilo/Grub.
 
Old 10-14-2004, 10:31 AM   #5
ernie
Senior Member
 
Registered: Nov 2001
Location: Toledo, Ohio - USA
Distribution: Mageia 1
Posts: 1,079
Blog Entries: 4

Rep: Reputation: 70
You may need a initrd= line in your lilo configuration. I use the 2.6 kernel, but if you use the advanced function in MCC / bootloader, you get an initrd line space. Make sure it points to the initrd image file associated with your custom kernel, or you can add a line to /etc/lilo.conf like:

initrd=/boot/initrd-2.6.8.1-10mdk.img

but of course, make sure the initrd image file is the one for your custom kernel, not my initrd-2.6.8.1-10mdk.img file .

Also, did you use the kernel-source package from Mandrake, or one from kernel.org. I have had troubles with ones from kernel.org, since they are not 'tweaked' for Mandrake.

HTH,

Last edited by ernie; 10-14-2004 at 10:35 AM.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
kernel parameter is init=/bin/sh , how to start the second tty console? jiawj Slackware 2 04-22-2005 02:10 AM
System hangs,if gives init 3 or init 4 Sailaja Reddy Red Hat 1 09-20-2004 01:31 AM
Redhat linux9.0:System hangs,if gives init 3 or init 4 Sailaja Reddy Linux - Newbie 4 09-16-2004 03:19 AM
why would kernel not start /sbin/init liyuheu Linux - Newbie 5 09-03-2004 12:13 AM
Compiled own kernel and got: Kernel panic: No init found. Try passing init= option to fbl Linux - General 12 01-14-2003 03:38 AM


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