public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Sitsofe Wheeler <sitsofe@yahoo.com>
To: Nico -telmich- Schottelius 
	<nico-linux-ipw3945-devel@schottelius.org>,
	"John W. Linville" <linville@tuxdriver.com>,
	Nico Schottelius <nico-linux-20090313@schottelius.org>,
	LKML <linux-kernel@vger.kernel.org>,
	ipw3945-devel@lists.sourceforge.net
Subject: Re: Strange reboots on 2.6.29-rc6-wl
Date: Sat, 21 Mar 2009 13:03:53 +0000	[thread overview]
Message-ID: <20090321130353.GA5009@silver.sucs.org> (raw)
In-Reply-To: <20090320102107.GA17975@denkbrett.schottelius.org>

On Fri, Mar 20, 2009 at 11:21:07AM +0100, Nico -telmich- Schottelius wrote:
> Sitsofe Wheeler [Tue, Mar 17, 2009 at 02:57:53PM +0000]:
> > On Tue, Mar 17, 2009 at 08:54:24AM +0100, Nico -telmich- Schottelius wrote:
> > > 
> > > Has anyone a clue on howto debug the build environment or
> > > debugging the kernel before it's getting booted?
> > 
> > If you have a serial console you can probably get output on that.
> 
> There's no native serial port on the machine :-/
> 
> > If you have flipped EMBEDDED to Y then you might also have to enable
> > EARLY_PRINTK. Another trick might be to turn set
> > BOOT_PRINTK_DELAY (Kernel hacking -> Delay each boot printk message by N
> > milliseconds) to something like 2000 and see if you can read/catch the
> > messages before the kernel reboots...
> 
> I've EARLY_PRINTK set, but other than the edd probing message
> I don't see anything.

What about when you set BOOT_PRINTK_DELAY to a value high enough to
cause pauses - do you see more messages? Additionally are booting your
kernel without the quiet option? Have you checked to make sure the
kernel isn't set to reboot on oops/panic etc? Are you using any binary
drivers?

> > Failing that start a git bisection (
> > http://www.kernel.org/doc/local/git-quick.html#bisect or
> > http://www.stardust.webpages.pl/files/handbook/handbook-en-0.3-rc1.pdf )
> > from the last good kernel...
> 
> I really don't think that it's the kernel's fault, because _all_
> new versions I compile instantly reboot.

So even a freshly compiled 2.6.27 and 2.6.28 reboot instantly?! If even
old kernels that worked suddently don't work that hints strongly at
hardware errors or a duff compiler toolchain...

You can also make the kernel spit out decompression error messages by
enabling CONFIG_X86_VERBOSE_BOOTUP . I guess it would also be wise to
make sure CONFIG_DOUBLEFAULT is also set. Are you sure nothing else has
changed though? Have you enabled some kernel option that was not set
before?  Have you changed any BIOS settings recently?

> Last one I tried was v2.6.29-rc8-241-g65c2449 (linux-2.6).
> Isn't there some flag to enable step by step execution (like in gdb)?

I don't think I undrstand what you mean - the kernel isn't a debugger...
If you are running a User Mode Linux kernel or running inside QEMU etc.
then you can do what you describe because your "machine" is a program
but I think the only way to do that with real hardware is to learn how
to use KGDB ( http://kgdb.sourceforge.net ) and have another machine to
hand. I suppose you could also sprinkle beep patches/debug printks about
the place to see just how far it gets before it reboots...

-- 
Sitsofe | http://sucs.org/~sits/

  reply	other threads:[~2009-03-21 13:04 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-13 20:06 Strange reboots on 2.6.29-rc6-wl Nico Schottelius
2009-03-13 20:41 ` John W. Linville
2009-03-17  7:54   ` Nico -telmich- Schottelius
2009-03-17 14:57     ` Sitsofe Wheeler
2009-03-20 10:21       ` Nico -telmich- Schottelius
2009-03-21 13:03         ` Sitsofe Wheeler [this message]
2009-03-24 16:47 ` [ipw3945-devel] " Nico -telmich- Schottelius

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090321130353.GA5009@silver.sucs.org \
    --to=sitsofe@yahoo.com \
    --cc=ipw3945-devel@lists.sourceforge.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linville@tuxdriver.com \
    --cc=nico-linux-20090313@schottelius.org \
    --cc=nico-linux-ipw3945-devel@schottelius.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox