From owner-freebsd-arm@FreeBSD.ORG Tue Oct 15 18:39:06 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id F3E34B1F; Tue, 15 Oct 2013 18:39:05 +0000 (UTC) (envelope-from jiashiun@gmail.com) Received: from mail-wg0-x22c.google.com (mail-wg0-x22c.google.com [IPv6:2a00:1450:400c:c00::22c]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 6DA422E7B; Tue, 15 Oct 2013 18:39:05 +0000 (UTC) Received: by mail-wg0-f44.google.com with SMTP id n12so7896370wgh.11 for ; Tue, 15 Oct 2013 11:39:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=D+MHWxQoa8D2UimcVWY5FvD9tiLLh4MYyBGn6mAvuLQ=; b=TG3IjXUfaY9mY9i69BEqQqbp6HopNsv8oldiI5APaCawarMcoR3bgiR5Xro1bZdIcQ g6MItzYxIVowRgUQEA+7IjuhbRsv86FyaGkG76JVjQNMkDuciEevHrhIU729nI+s2xB8 NlOQK/utiVK4gDqMDZvf/8yEGq+79ncuUvzweL/WHQgMNxTwxA2ixNFbgAceGfT+ZtoX tcE+8LGK93GY2wjShAxbWtZN+yO0BKobVjhF2PjVZgdjd+vO5BJhmpj9gJFrSDH3e5z2 haldZ8N1x5km9or3/Vi+5q1Zq4nFjIKiM+FNsufCDQIrFAQqxpfP9NPdR4bS+1gRz/fX FtMA== X-Received: by 10.194.176.163 with SMTP id cj3mr35623343wjc.8.1381862343761; Tue, 15 Oct 2013 11:39:03 -0700 (PDT) MIME-Version: 1.0 Received: by 10.227.206.132 with HTTP; Tue, 15 Oct 2013 11:38:32 -0700 (PDT) In-Reply-To: <1381861694.42859.144.camel@revolution.hippie.lan> References: <1381861694.42859.144.camel@revolution.hippie.lan> From: Jia-Shiun Li Date: Wed, 16 Oct 2013 02:38:32 +0800 Message-ID: Subject: Re: BBB triggered trap when disconnecting uart To: Ian Lepore Content-Type: text/plain; charset=UTF-8 Cc: "freebsd-arm@freebsd.org" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Oct 2013 18:39:06 -0000 On Wed, Oct 16, 2013 at 2:28 AM, Ian Lepore wrote: > Is the usb adapter you're talking about your console cable? If so, I > wonder if unplugging it is sending an rs232 break (a long string of 0 > bits) and that's dropping into the debugger? If that's the case, you > should be able to type "continue" at the db> prompt and everything will > resume running. > > It used to be possible to disable an rs232 break but enable the > alt-break sequence. I'm not sure if that's still the case (too busy to > go code-spelunking at the moment). > Unplugging cables on the BBB header side (3 wires) cause the same behavior. So it seems not term or dongle. And the term prints the kdb message before completely disconnected: login: KDB: enter: Break to debugger [ thread pid 838 tid 100053 ] Stopped at $d: ldrb r15, [r15, r15, ror r15]! db> ^R so I tried turn off _break_to_debugger sysctls, and then it can survive without being interrupted. Indeed this looks like what you said, sending break rs232 signal. Guess I need to have a proper sequence disabling break before disconnecting from BBB and turning off my PC. ;) Jia-Shiun.