From owner-freebsd-arm@FreeBSD.ORG Sat Mar 28 16:43:39 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 05730AD4 for ; Sat, 28 Mar 2015 16:43:39 +0000 (UTC) Received: from mout3.freenet.de (mout3.freenet.de [IPv6:2001:748:100:40::2:5]) (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 B1EA497A for ; Sat, 28 Mar 2015 16:43:38 +0000 (UTC) Received: from [195.4.92.140] (helo=mjail0.freenet.de) by mout3.freenet.de with esmtpa (ID freebsdnewbie@freenet.de) (port 25) (Exim 4.82 #2) id 1Ybtpb-0006xW-OM; Sat, 28 Mar 2015 17:43:31 +0100 Received: from localhost ([::1]:35021 helo=mjail0.freenet.de) by mjail0.freenet.de with esmtpa (ID freebsdnewbie@freenet.de) (Exim 4.82 #2) id 1Ybtpb-00018G-I3; Sat, 28 Mar 2015 17:43:31 +0100 Received: from mx6.freenet.de ([195.4.92.16]:54195) by mjail0.freenet.de with esmtpa (ID freebsdnewbie@freenet.de) (Exim 4.82 #2) id 1Ybtls-0007lC-De; Sat, 28 Mar 2015 17:39:40 +0100 Received: from p5ddd79ea.dip0.t-ipconnect.de ([93.221.121.234]:52032 helo=[127.0.0.1]) by mx6.freenet.de with esmtpsa (ID freebsdnewbie@freenet.de) (TLSv1.2:DHE-RSA-AES128-SHA:128) (port 587) (Exim 4.82 #2) id 1Ybtls-0001UC-Ao; Sat, 28 Mar 2015 17:39:40 +0100 Message-ID: <5516D944.80602@freenet.de> Date: Sat, 28 Mar 2015 17:39:32 +0100 From: =?windows-1252?Q?Manuel_St=FChn?= User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: freebsd-arm@freebsd.org Subject: Re: remote kernel debugging References: <550DD740.2070608@freenet.de> <20150322011054.GA81780@cicely7.cicely.de> In-Reply-To: <20150322011054.GA81780@cicely7.cicely.de> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 150328-0, 28.03.2015), Outbound message X-Antivirus-Status: Clean X-Originated-At: 93.221.121.234!52032 Cc: ticso@cicely.de 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 16:43:39 -0000 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? Thanks, Manuel