Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Mar 2015 11:11:52 -0600
From:      Warner Losh <imp@bsdimp.com>
To:        =?utf-8?Q?Manuel_St=C3=BChn?= <freebsdnewbie@freenet.de>
Cc:        freebsd-arm@freebsd.org, ticso@cicely.de
Subject:   Re: remote kernel debugging
Message-ID:  <AB5F8E72-7972-48B4-B07A-11AAF0B0BFF3@bsdimp.com>
In-Reply-To: <5516D944.80602@freenet.de>
References:  <550DD740.2070608@freenet.de> <20150322011054.GA81780@cicely7.cicely.de> <5516D944.80602@freenet.de>

next in thread | previous in thread | raw e-mail | index | archive | help

--Apple-Mail=_F9BE13BA-8207-486C-A27C-161D55FB55E4
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8


> On Mar 28, 2015, at 10:39 AM, Manuel St=C3=BChn =
<freebsdnewbie@freenet.de> wrote:
>=20
> 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.
>>=20
>=20
> After further investigation I found this flag for loader(8):
>=20
> set hw.uart.dbgport=3D"mm:0x48022000,br:115200" # uart1 on BBB
>=20
> (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:
>=20
> 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
>=20
> No further output appears, it seems that the whole system stopped at =
this point.
>=20
> Any hints?

Do you have DDB, KDB and GDB all enabled in the kernel?

Warner


--Apple-Mail=_F9BE13BA-8207-486C-A27C-161D55FB55E4
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP using GPGMail

-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - https://gpgtools.org

iQIcBAEBCgAGBQJVFuDZAAoJEGwc0Sh9sBEAzLQP/j3yOtJE7lqoxktX3fY1Dlm4
L1boPxkujgja/cz9qZZD5WZriU6TfnYx0Q9VMSo1fd0rkGjh3JVksp3so6QJX1rb
Moq1xqOPcmYTU9gvQh6ZNI4ZGJcI1YsaUOsj0Y3ive+I9LTRRolkrWlKvtk4RqEl
sM2ApFip5bbLa7u9Zp1T92SdvGc6IEuzGaHBFeXwdNigaq0ILwUSYOOPJi7lIpQI
625FCD33pwFdo+RKV/3LvZSD+wGDhsq9t7+ihwXCOkjgTeuPPwzzR8Xm55MGvPX4
Uf9HQtQ8Yf6NGjCZGL7WJ6gDFtoo36qWVfJ2OYYhrIifdCvR98s7ag2Ol8xmgJie
fvmZ1Fo2dfxNNlcMVCzWbNDQXDmOFzZxX6hT22GCIJCAEJfa6Ut2ksPdsT8YzZn2
c/MBnGQ2pLK8x15l9/WP0GHYyHumSbHvAc/Nmlc/3Z5le47W7qffO0B/GdVGHLQr
USSbJH1ovWReCllfTr5Os9Bh0bBkXLr5z44CL65GR36+komW5rJTMmc8m/hZvi6B
ulgFermtjDU344Zp/EB4HAc2v8CZfg1OQiTtk1Y+84LjIZvfLLPJks7GVQHIKY5t
5gQcrRy/UrwZR5C67ldMjo9bzihtLH0rnElemZHl6+vmDDfOhhatnDqwHlsQWz6T
nGgc9d5F+szTbNEaYj9+
=G0aB
-----END PGP SIGNATURE-----

--Apple-Mail=_F9BE13BA-8207-486C-A27C-161D55FB55E4--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AB5F8E72-7972-48B4-B07A-11AAF0B0BFF3>