Date: Sat, 28 Mar 2015 19:22:27 +0100 From: =?UTF-8?B?TWFudWVsIFN0w7xobg==?= <freebsdnewbie@freenet.de> To: Warner Losh <imp@bsdimp.com> Cc: freebsd-arm@freebsd.org Subject: Re: remote kernel debugging Message-ID: <5516F163.9020206@freenet.de> In-Reply-To: <AB5F8E72-7972-48B4-B07A-11AAF0B0BFF3@bsdimp.com> References: <550DD740.2070608@freenet.de> <20150322011054.GA81780@cicely7.cicely.de> <5516D944.80602@freenet.de> <AB5F8E72-7972-48B4-B07A-11AAF0B0BFF3@bsdimp.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 28 Mar 2015 11:11:52 -0600, Warner Losh wrote > >> On Mar 28, 2015, at 10:39 AM, Manuel Stühn <freebsdnewbie@freenet.de> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5516F163.9020206>