From owner-freebsd-arm@FreeBSD.ORG Sat Mar 28 18:24:38 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id AB664615 for ; Sat, 28 Mar 2015 18:24:38 +0000 (UTC) Received: from mout2.freenet.de (mout2.freenet.de [IPv6:2001:748:100:40::2:4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.freenet.de", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 617F139E for ; Sat, 28 Mar 2015 18:24:38 +0000 (UTC) Received: from [195.4.92.141] (helo=mjail1.freenet.de) by mout2.freenet.de with esmtpa (ID freebsdnewbie@freenet.de) (port 25) (Exim 4.82 #2) id 1YbvPP-0001Y0-Mm; Sat, 28 Mar 2015 19:24:35 +0100 Received: from localhost ([::1]:55805 helo=mjail1.freenet.de) by mjail1.freenet.de with esmtpa (ID freebsdnewbie@freenet.de) (Exim 4.82 #2) id 1YbvPP-0002Fr-IX; Sat, 28 Mar 2015 19:24:35 +0100 Received: from mx11.freenet.de ([195.4.92.21]:49668) by mjail1.freenet.de with esmtpa (ID freebsdnewbie@freenet.de) (Exim 4.82 #2) id 1YbvNR-0008PM-Sw; Sat, 28 Mar 2015 19:22:33 +0100 Received: from p5ddd79ea.dip0.t-ipconnect.de ([93.221.121.234]:57630 helo=[127.0.0.1]) by mx11.freenet.de with esmtpsa (ID freebsdnewbie@freenet.de) (TLSv1.2:DHE-RSA-AES128-SHA:128) (port 587) (Exim 4.82 #2) id 1YbvNR-0003ns-O1; Sat, 28 Mar 2015 19:22:33 +0100 Message-ID: <5516F163.9020206@freenet.de> Date: Sat, 28 Mar 2015 19:22:27 +0100 From: =?UTF-8?B?TWFudWVsIFN0w7xobg==?= User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: Warner Losh Subject: Re: remote kernel debugging References: <550DD740.2070608@freenet.de> <20150322011054.GA81780@cicely7.cicely.de> <5516D944.80602@freenet.de> In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Antivirus: avast! (VPS 150328-0, 28.03.2015), Outbound message X-Antivirus-Status: Clean X-Originated-At: 93.221.121.234!57630 Cc: freebsd-arm@freebsd.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Mar 2015 18:24:38 -0000 On Sat, 28 Mar 2015 11:11:52 -0600, Warner Losh wrote > >> On Mar 28, 2015, at 10:39 AM, Manuel Stühn wrote: >> >> On Sun, 22 Mar 2015 02:10:54 +0100, Bernd Walter wrote >>> The flags are documented in the uart manpage. >>> 0x10 flag sets the console uart and 0x80 the gdb uart. >>> 0x90 sets both. >>> But it assumes /boot/device.hints to be used, which to my knowledge isn't >>> true on the BBB. >>> The console is setup via stdin/stdout in >>> sys/boot/fdt/dts/arm/beaglebone.dts >>> No idea how gdb or any of the other flags can be entered in the DTS files. >>> >> >> After further investigation I found this flag for loader(8): >> >> set hw.uart.dbgport="mm:0x48022000,br:115200" # uart1 on BBB >> >> (more info in sys/dev/uart/uart_subr.c), which seems to be able to inform the debug-system about the desired uart-port. Unfortunately, when I'm setting this variable like shown above the systems stops right here: >> >> Hit [Enter] to boot immediately, or any other key for command prompt. >> Booting [/boot/kernel/kernel]... >> Using DTB provided by U-Boot at address 0x80000100. >> Kernel entry at 0x80200100... >> Kernel args: (null) >> GDB: debug ports: uart >> >> No further output appears, it seems that the whole system stopped at this point. >> >> Any hints? > > Do you have DDB, KDB and GDB all enabled in the kernel? > > Warner > Yes, all three options are enabled in the kernel. uart1 is also enabled in the device-tree, pinmux setting seems to be correct; i was able to sucessfully connect to another node via uart1 with picocom. -- Manuel