NetBSD Problem Report #48446

From paul@whooppee.com  Sat Dec 14 02:33:01 2013
Return-Path: <paul@whooppee.com>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id C0291A61C3
	for <gnats-bugs@gnats.NetBSD.org>; Sat, 14 Dec 2013 02:33:00 +0000 (UTC)
Message-Id: <20131214023259.01BC524824E@screamer.whooppee.com>
Date: Fri, 13 Dec 2013 18:32:58 -0800 (PST)
From: paul@whooppee.com
Reply-To: paul@whooppee.com
To: gnats-bugs@NetBSD.org
Subject: 'boot -d' doesn't enter ddb
X-Send-Pr-Version: 3.95

>Number:         48446
>Category:       kern
>Synopsis:       'boot -d' doesn't enter ddb
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Dec 14 02:35:00 +0000 2013
>Closed-Date:    Sun Jul 24 22:36:11 +0000 2016
>Last-Modified:  Sun Jul 24 22:36:11 +0000 2016
>Originator:     Paul Goyette
>Release:        NetBSD 6.99.28
>Organization:
-------------------------------------------------------------------------
| Paul Goyette     | PGP Key fingerprint:     | E-mail addresses:       |
| Customer Service | FA29 0E3B 35AF E8AE 6651 | paul at whooppee.com    |
| Network Engineer | 0786 F758 55DE 53BA 7731 | pgoyette at juniper.net |
| Kernel Developer |                          | pgoyette at netbsd.org  |
-------------------------------------------------------------------------
>Environment:


System: NetBSD screamer.whooppee.com 6.99.28 NetBSD 6.99.28 (WHOOPPEE (shared) 2013-12-09 01:36:15) #7: Sun Dec 8 17:48:48 PST 2013 paul@screamer.whooppee.com:/build/netbsd-local/obj/amd64/sys/arch/amd64/compile/WHOOPPEE amd64
Architecture: x86_64
Machine: amd64
>Description:
	While attempting to debug some other issue, I tried to 'boot -d'
	in order to set an initial breakpoint.  Instead of entering ddb,
	the machine simply rebooted.

>How-To-Repeat:
	'boot -d'

>Fix:
	unknown


>Release-Note:

>Audit-Trail:
From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/48446: 'boot -d' doesn't enter ddb
Date: Sat, 14 Dec 2013 11:57:54 +0100

 On Sat, Dec 14, 2013 at 02:35:00AM +0000, paul@whooppee.com wrote:
 > >How-To-Repeat:
 > 	'boot -d'

 I just did that yesterday and it worked for me - I guess there must be 
 something more to it. This was on a notebook with internal keyboard,
 maybe it only breaks with usb keyboard?

 Martin

From: Paul Goyette <paul@vps1.whooppee.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/48446: 'boot -d' doesn't enter ddb
Date: Sun, 29 Nov 2015 15:24:42 +0800 (PHT)

 I just tried this again on my nearly-current 7.99.21 machine.

 If I enter 'boot -d' at the boot prompt, it does indeed enter the
 debugger, even when using a USB keyboard.

 However, the keyboard is no longer available to enter any debugging
 commands.  I'm guessing that the system has taken over the keyboard
 from the BIOS's legacy code, but our USB stack is not yet alive, so
 the keyboard is non-functional.

 If it matters, this machine has a UEFI BIOS (mouse-enabled rather
 than simple text-based).


 +------------------+--------------------------+-------------------------+
 | Paul Goyette     | PGP Key fingerprint:     | E-mail addresses:       |
 | (Retired)        | FA29 0E3B 35AF E8AE 6651 | paul at whooppee.com    |
 | Kernel Developer | 0786 F758 55DE 53BA 7731 | pgoyette at netbsd.org  |
 +------------------+--------------------------+-------------------------+

State-Changed-From-To: open->closed
State-Changed-By: pgoyette@NetBSD.org
State-Changed-When: Sun, 24 Jul 2016 22:36:11 +0000
State-Changed-Why:
This is working correctly now, even with ukbd attached via xhci.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.