Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Recompiled kernel, will not boot up <-- Can ANYONE solve?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
ryan83vt
Guru
Guru


Joined: 28 Oct 2002
Posts: 370
Location: Blacksburg, VA

PostPosted: Wed Nov 06, 2002 4:49 am    Post subject: Recompiled kernel, will not boot up <-- Can ANYONE solve? Reply with quote

Ok I was trying to follow the directions to get alsa working. I was reading in Multimedia "Alsa and recompiling the kernel" about how you need to recompile the kernel. I did make menuconfig, set the options, and typed
make dep && make clean bzImage modules modules_install
and copied the resulting bzImage to /boot and rebooted.
When I rebooted I still saw the same message while the computer was booting up --
Starting sound driver: snd-emu10k1 modprobe: can't locate module
Then it continued until it got stuck on Starting Local... for a while, then it spit out this:
INIT Id "C1" respawning too fast: disabled for 5 minutes
INIT Id "C2" respawning too fast: disabled for 5 minutes
INIT Id "C3" respawning too fast: disabled for 5 minutes
.... etc through "C6". then
no more processes left at runlevel.

I booted to the gentoo cd and from there I got rid of bzImage and renamed my old image (bzImage.old) back to bzImage. Rebooted. Same thing happened. Is linux dead? Please help ASAP!! I want to know what I am doing wrong -- I can compile another bzImage while booted up to this cd.


Last edited by ryan83vt on Wed Nov 06, 2002 6:08 pm; edited 3 times in total
Back to top
View user's profile Send private message
flying_walus
n00b
n00b


Joined: 07 Sep 2002
Posts: 58

PostPosted: Wed Nov 06, 2002 5:57 am    Post subject: Re: Recompiled kernel, will not boot up now <--- Please h Reply with quote

ryan83vt wrote:

When I rebooted I still saw the same message while the computer was booting up --
Starting sound driver: snd-emu10k1 modprobe: can't locate module
Then it continued until it got stuck on like local something for a while, then it spit out this:
INIT Id "C1" respawning too fast: disabled for 5 minutes
INIT Id "C2" respawning too fast: disabled for 5 minutes
INIT Id "C3" respawning too fast: disabled for 5 minutes
.... etc through "C6".


Ok - it may or may not be the kernel, it kinda sounds like you've got som e modules specified (either in /etc/modules.autoload or as a dependency to something in one of the init scripts) which didn't get compiled (possibly you skipped one of the alsa modules or compiled it directly into the kernel).

I recomend booting into single user mode: this will not run any of the init scripts in either "net" or "default" runlevels. if you're still booted from the cd, edit your /boot/grub/menu.lst as follows, or if not, you can temporairly [sic?] from within grub.

what we want is to change the kernel line from something like this:
Code:

kernel /bzImage root=/dev/hda2 vga=773

to something like this
Code:

kernel /bzImage root=/dev/hda2 vga=773 [color=red]-s[/color]

in grub, highlight the menu entry you want, and hit 'e'. highlight the kernel line, and add the '-s' to the end of it. hit enter, and then 'b' to boot.

If i'm right, this will boot you into safe mode with no issues. now, run the init scripts one by one till one of them causes the above problem.

(sorry to be so long winded :)
Back to top
View user's profile Send private message
ryan83vt
Guru
Guru


Joined: 28 Oct 2002
Posts: 370
Location: Blacksburg, VA

PostPosted: Wed Nov 06, 2002 3:25 pm    Post subject: Reply with quote

That didnt work. Still did Starting Local... and the same INIT errors. I tried chroot from the cd to get at my hard drive and typed rc-update del alsasound boot which is the only thing that was different after I switched my original kernel image back --- still didnt work. I'm going to try recompiling my kernel again, and if that doesnt work, go into windowz and wait for you guys to help me out..
Back to top
View user's profile Send private message
ryan83vt
Guru
Guru


Joined: 28 Oct 2002
Posts: 370
Location: Blacksburg, VA

PostPosted: Wed Nov 06, 2002 4:04 pm    Post subject: Reply with quote

I recompiled my kernel again as per the installation instructions and it still didnt work. I am now completely clueless as to how to get my system back up. I refuse to completely go through the installation again!!!!!!!!!!!!
Back to top
View user's profile Send private message
_SkeLeToN_
Guru
Guru


Joined: 12 Sep 2002
Posts: 506
Location: Montreal,Canada

PostPosted: Wed Nov 06, 2002 7:44 pm    Post subject: Reply with quote

Ok so you can still log into your box even with error.

When you recompile your module you will loose the alsa driver module so you need to re emerge alsa driver.

One question: do you get any error when you compile your kernel does it finish successfuly ? if so.

1) emerge unmerge alsa-driver.

2) do rm -rf /lib/modules/2.4.19 or gentoo-2.4.19-r* ( the name of folder is different depending which kernel you emerge)

3) In your kernel configuration make sur to compile the sound as module but do not include ANY DRIVER !!!! just the first one as module.

4) save your kernel

5) make dep && make clean bzImage modules modules_install

6) mv /boot/bzImage /boot/bzImage.old
7) cp /usr/src/linux/arch/i386/boot/bzImage /boot/
8 ) emerge alsa-driver (you may need to re emerge nvidia driver because we deleted the /lib/modules/2.4.19...)
10) Make sure your grub is properly configured ( sorry cant help not a grub user ... )
11) look at the documentation for the alsa driver there is some stuff to configure in /etc/conf.d/alsa.

12) Reboot and see ...

Note : I suggestion you include your old bzImage into grub so if the new kernel doesn't work you can still load into the old one and fix the problem.

Hope this will help.


Last edited by _SkeLeToN_ on Wed Nov 06, 2002 9:04 pm; edited 1 time in total
Back to top
View user's profile Send private message
ryan83vt
Guru
Guru


Joined: 28 Oct 2002
Posts: 370
Location: Blacksburg, VA

PostPosted: Wed Nov 06, 2002 8:58 pm    Post subject: Reply with quote

no errors when i compile. I'll try all that and get back to you. And actually I cant login I have to boot the cd and then mount my root partition.
Back to top
View user's profile Send private message
ryan83vt
Guru
Guru


Joined: 28 Oct 2002
Posts: 370
Location: Blacksburg, VA

PostPosted: Wed Nov 06, 2002 11:31 pm    Post subject: Reply with quote

Nope. Rebooted, same thing. Starting Local.... CRAP!!
Back to top
View user's profile Send private message
simcop2387
Apprentice
Apprentice


Joined: 14 Aug 2002
Posts: 200
Location: Galactic Sector ZZ9 Plural Z Alpha

PostPosted: Thu Nov 07, 2002 1:29 am    Post subject: Reply with quote

did you have a seperate /boot partition also? if you did are you mounting that too?
Back to top
View user's profile Send private message
ryan83vt
Guru
Guru


Joined: 28 Oct 2002
Posts: 370
Location: Blacksburg, VA

PostPosted: Thu Nov 07, 2002 2:19 am    Post subject: Reply with quote

simcop2387 wrote:
did you have a seperate /boot partition also? if you did are you mounting that too?


yes i did but i didnt change anything that I had before - i copied my bzImage to both /boot and the boot partition just to make sure i got it in the right place.
Back to top
View user's profile Send private message
_SkeLeToN_
Guru
Guru


Joined: 12 Sep 2002
Posts: 506
Location: Montreal,Canada

PostPosted: Thu Nov 07, 2002 2:47 am    Post subject: Reply with quote

did you put anything in /etc/init.d/local ???

if you do this : ./etc/init.d/locat stop and ./etc/init.d/locat start

and tell us if you get the same error as when you boot.
Back to top
View user's profile Send private message
ryan83vt
Guru
Guru


Joined: 28 Oct 2002
Posts: 370
Location: Blacksburg, VA

PostPosted: Thu Nov 07, 2002 4:08 am    Post subject: Reply with quote

_SkeLeToN_ wrote:
did you put anything in /etc/init.d/local ???

if you do this : ./etc/init.d/locat stop and ./etc/init.d/locat start

and tell us if you get the same error as when you boot.

I did that and I got the same error, but when I did stop and start I got a message that said
cat: /mnt/.init.d/softlevel No such file or directory.

But anyway I am thinking that it is not local that is the problem. I am thinking this because it says starting local and an [ok] at the far right side. I dont think it would say ok if it wasnt ok. Does anyone know what happens after starting local? That would be a big help. I have been reading all the files in init.d and local uses another file to start up local stuff, and it reads it from a file. I opened that file, and it was empty except for comments. So maybe it is whatever goes after local that is the problem. Then I might be able to diagnose this better. Thanks

Oh and btw, after I did my latest recompilation of the kernel, alsa does not give error messages when I boot up, in fact i believe it says module loaded or something like that.... so it's not alsa... now I just need to get booted to enjoy the sound!
Back to top
View user's profile Send private message
_SkeLeToN_
Guru
Guru


Joined: 12 Sep 2002
Posts: 506
Location: Montreal,Canada

PostPosted: Thu Nov 07, 2002 4:20 am    Post subject: Reply with quote

Great at least we near to fix your problem. btw make sure to include your user to the audio group or only root will be able to hear something.

For the local I'm a bit stuck on this one anyone have an idea....

Are you sure there nothing in the file local use to read the stuff. maybe you put something without knowing it. I know it sound silly but it happen to me several time.
Back to top
View user's profile Send private message
ryan83vt
Guru
Guru


Joined: 28 Oct 2002
Posts: 370
Location: Blacksburg, VA

PostPosted: Thu Nov 07, 2002 4:36 am    Post subject: Reply with quote

I looked in /etc/conf.d/local.start and there was nothing except comments.
Do you know what starts after local? That might help, because I can find that file and read through and see what causes the message to output.
Back to top
View user's profile Send private message
ryan83vt
Guru
Guru


Joined: 28 Oct 2002
Posts: 370
Location: Blacksburg, VA

PostPosted: Thu Nov 07, 2002 5:49 am    Post subject: Reply with quote

Hmmmm..... when I wait a while, they all repeat. Then when I ctrl+alt+del before the message "Sending the TERM signal..." I see something like "switching to runlevel 6" and I booted up my roommates debian box and i saw it say INIT: Entering Runlevel: 2
The init looks familiar...... I wonder if I can find that file that has the default runlevel in it if i change it I will get anywhere... i just gotta find that file.
Back to top
View user's profile Send private message
thinker5555
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jun 2002
Posts: 77
Location: Texas

PostPosted: Thu Nov 07, 2002 5:54 am    Post subject: Reply with quote

/etc/inittab
Back to top
View user's profile Send private message
ryan83vt
Guru
Guru


Joined: 28 Oct 2002
Posts: 370
Location: Blacksburg, VA

PostPosted: Thu Nov 07, 2002 6:00 am    Post subject: Reply with quote

check this out. I looked in /etc/inittab this is what I found:

# System initialization (runs when system boots).
#DE:S12345:respawn:/sbin/devfsd /dev -fg
# Script to run when going single user (runlevel 1).
~~:S:wait:/sbin/sulogin

si:S:sysinit:/sbin/rc boot
l0:0:wait:/sbin/rc shutdown
l1:1:wait:/sbin/rc single
l2:2:wait:/sbin/rc nonetwork
l3:3:wait:/sbin/rc default
l4:4:wait:/sbin/rc default
l5:5:wait:/sbin/rc default
l6:6:wait:/sbin/rc reboot
z6:6:respawn:/sbin/sulogin

# TERMINALS
c1:12345:respawn:/sbin/agetty 38400 tty1 linux
c2:12345:respawn:/sbin/agetty 38400 tty2 linux
c3:12345:respawn:/sbin/agetty 38400 tty3 linux
c4:12345:respawn:/sbin/agetty 38400 tty4 linux
c5:12345:respawn:/sbin/agetty 38400 tty5 linux
c6:12345:respawn:/sbin/agetty 38400 tty6 linux

this is what is "respawning" too quickly. Dont know what to do though.
Back to top
View user's profile Send private message
_SkeLeToN_
Guru
Guru


Joined: 12 Sep 2002
Posts: 506
Location: Montreal,Canada

PostPosted: Thu Nov 07, 2002 6:33 am    Post subject: Reply with quote

Do you have this entry in /etc/inittab ?
Code:

id:3:initdefault:


before this section

#System initialization (runs when system boots).
#DE:S12345:respawn:/sbin/devfsd /dev -fg
# Script to run when going single user (runlevel 1).
~~:S:wait:/sbin/sulogin
Back to top
View user's profile Send private message
ryan83vt
Guru
Guru


Joined: 28 Oct 2002
Posts: 370
Location: Blacksburg, VA

PostPosted: Thu Nov 07, 2002 3:26 pm    Post subject: Reply with quote

yes
Back to top
View user's profile Send private message
ryan83vt
Guru
Guru


Joined: 28 Oct 2002
Posts: 370
Location: Blacksburg, VA

PostPosted: Fri Nov 08, 2002 3:59 am    Post subject: Reply with quote

ok guys i will stop bugging you about this -- its finally solved, and I'm not too happy about my solution -- I just went into the install cd and downloaded the stage2 tarball and installed it.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum