From owner-freebsd-usb@FreeBSD.ORG Mon Aug 3 22:37:25 2009 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B255C106566B for ; Mon, 3 Aug 2009 22:37:25 +0000 (UTC) (envelope-from a_best01@uni-muenster.de) Received: from zivm-out3.uni-muenster.de (ZIVM-OUT3.UNI-MUENSTER.DE [128.176.192.18]) by mx1.freebsd.org (Postfix) with ESMTP id 47CCA8FC0C for ; Mon, 3 Aug 2009 22:37:24 +0000 (UTC) (envelope-from a_best01@uni-muenster.de) X-IronPort-AV: E=Sophos;i="4.43,317,1246831200"; d="scan'208";a="10098626" Received: from zivmaildisp2.uni-muenster.de (HELO ZIVMAILUSER04.UNI-MUENSTER.DE) ([128.176.188.143]) by zivm-relay3.uni-muenster.de with ESMTP; 04 Aug 2009 00:37:16 +0200 Received: by ZIVMAILUSER04.UNI-MUENSTER.DE (Postfix, from userid 149459) id 5AFB81B008C; Tue, 4 Aug 2009 00:37:16 +0200 (CEST) Date: Tue, 04 Aug 2009 00:37:16 +0200 (CEST) From: Alexander Best Sender: Organization: Westfaelische Wilhelms-Universitaet Muenster To: Hans Petter Selasky Message-ID: In-Reply-To: <200908032127.32353.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org Subject: Re: kernel debugger and usb keyboard X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Aug 2009 22:37:25 -0000 thanks a bunch for the info. although usb keyboard support isn't as mature as at keyboard support in the kernel debugger it's good to have some basic support now. cheers. alex Hans Petter Selasky schrieb am 2009-08-03: > On Monday 03 August 2009 20:55:16 Alexander Best wrote: > > just tried settings `sysctl debug.kdb.panic = 1`. if i use this way > > to > > enter the kernel debugger my usb keyboard works. if i type > > "continue" > > however the kernel panics and the kernel debugger gets yet entered > > again, > > but without the keyboard working. > The USB controller which the keyboard is hooked onto will not work > after panic > has been entered, due to some state not being cleaned up. > To increase the chance of the keyboard working on a panic, connect > the > keyboard to a separate USB controller. > > i don't know how to produce backtraces since the keyboard doesn't > > work. > Ok. > > the other way of entering the debugger without my keyboard working > > was to > > simple press "ctrl+ast+esc". > Yes, because most likely the DDB is entered directly from the USB > keyboard > code, and the USB stack does not allow function recursion in that > case! > --HPS