From owner-freebsd-arm@FreeBSD.ORG Sat Apr 26 23:34:45 2014 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2B846F06 for ; Sat, 26 Apr 2014 23:34:45 +0000 (UTC) Received: from mail.bitblocks.com (ns1.bitblocks.com [173.228.5.8]) by mx1.freebsd.org (Postfix) with ESMTP id 10F7E11D2 for ; Sat, 26 Apr 2014 23:34:44 +0000 (UTC) Received: from bitblocks.com (localhost [127.0.0.1]) by mail.bitblocks.com (Postfix) with ESMTP id 49123B827; Sat, 26 Apr 2014 16:34:38 -0700 (PDT) To: Winston Smith Subject: Re: Looking for FreeBSD u-boot/kernel debugging help (BeagleBone Black) In-reply-to: Your message of "Sat, 26 Apr 2014 18:29:35 EDT." References: Comments: In-reply-to Winston Smith message dated "Sat, 26 Apr 2014 18:29:35 -0400." Date: Sat, 26 Apr 2014 16:34:38 -0700 From: Bakul Shah Message-Id: <20140426233438.49123B827@mail.bitblocks.com> Cc: FreeBSD ARM X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Apr 2014 23:34:45 -0000 On Sat, 26 Apr 2014 18:29:35 EDT Winston Smith wrote: > I also discovered that if I disconnect my > serial terminal and reconnect it, it seems to bring the FreeBSD kernel > to a debug prompt of sorts -- is there any documentation on this? I suspect disconnecting/reconnecting the serial cable looks like a break to the kernel and that drops it into the debugger "ddb". [Though I can't seem to send a real break to it using kermit!] Type c and hit return to continue. To disable this behavior I think you can do sysctl debug.kbd.break_to_debugger=0 or add debug.kbd.break_to_debugger=0 to /etc/sysctl.conf man 1 ddb -- for debugger commands man 4 ddb -- for kernel config options to control ddb behavior