2010-06-02 22:21:12

by Grant Coady

[permalink] [raw]
Subject: How to stop kernel rebooting during startup?

Hi there,

Kernel has a problem mounting root, but it reboots before I can read
the message. Of course nothing gets logged so I cannot see exactly
why the kernel wants to reboot.

Can I stop kernel doing an automatic reboot? How?

It's version 2.6.33.5, .4 has same behaviour. Filesystem is Reiserfs,
Intel ICH9R with Core2Duo, .config is on:

http://bugsplatter.id.au/kernel/boxen/pooh64/config-2.6.33.5a.gz

which worked fine on slackware64-13.0, has this behaviour on slack-
ware64-13.1. Because I cannot read the screen before reboot, no idea
where to look next, or what is actually happening.

Thanks,
Grant.


2010-06-02 22:35:48

by Bob Copeland

[permalink] [raw]
Subject: Re: How to stop kernel rebooting during startup?

On Wed, Jun 2, 2010 at 6:20 PM, Grant Coady <[email protected]> wrote:
> which worked fine on slackware64-13.0, has this behaviour on slack-
> ware64-13.1. ?Because I cannot read the screen before reboot, no idea
> where to look next, or what is actually happening.

Maybe try CONFIG_BOOT_PRINTK_DELAY to see the message?

--
Bob Copeland %% http://www.bobcopeland.com

2010-06-03 17:10:44

by Randy Dunlap

[permalink] [raw]
Subject: Re: How to stop kernel rebooting during startup?

On Wed, 2 Jun 2010 18:35:45 -0400 Bob Copeland wrote:

> On Wed, Jun 2, 2010 at 6:20 PM, Grant Coady <[email protected]> wrote:
> > which worked fine on slackware64-13.0, has this behaviour on slack-
> > ware64-13.1. ?Because I cannot read the screen before reboot, no idea
> > where to look next, or what is actually happening.
>
> Maybe try CONFIG_BOOT_PRINTK_DELAY to see the message?

That's one option.

Can you alter the kernel command line (boot options)?
like add: initcall_debug debug ignore_loglevel pause_on_oops=30


Sounds like it would also be good to have something like:
reboot=hang|spin
(TBD)

---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***