From owner-freebsd-usb@FreeBSD.ORG Mon Aug 3 22:16:32 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 BB865106564A for ; Mon, 3 Aug 2009 22:16:32 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outU.internet-mail-service.net (outu.internet-mail-service.net [216.240.47.244]) by mx1.freebsd.org (Postfix) with ESMTP id A1C248FC15 for ; Mon, 3 Aug 2009 22:16:32 +0000 (UTC) (envelope-from julian@elischer.org) Received: from idiom.com (mx0.idiom.com [216.240.32.160]) by out.internet-mail-service.net (Postfix) with ESMTP id 906E79E446; Mon, 3 Aug 2009 15:03:14 -0700 (PDT) X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e Received: from julian-mac.elischer.org (home.elischer.org [216.240.48.38]) by idiom.com (Postfix) with ESMTP id 50CB22D6011; Mon, 3 Aug 2009 15:03:01 -0700 (PDT) Message-ID: <4A775E9B.8070900@elischer.org> Date: Mon, 03 Aug 2009 15:03:07 -0700 From: Julian Elischer User-Agent: Thunderbird 2.0.0.22 (Macintosh/20090605) MIME-Version: 1.0 To: Hans Petter Selasky References: <200908032127.32353.hselasky@c2i.net> In-Reply-To: <200908032127.32353.hselasky@c2i.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Alexander Best , 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:16:33 -0000 Hans Petter Selasky wrote: > 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". try entering it from the sysctl debug.kdb.enter (set it to 1) > > 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 > > _______________________________________________ > freebsd-usb@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-usb > To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd.org"