From owner-freebsd-arm@FreeBSD.ORG Sat Mar 28 17:12:03 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 542F7200 for ; Sat, 28 Mar 2015 17:12:03 +0000 (UTC) Received: from mail-pd0-f181.google.com (mail-pd0-f181.google.com [209.85.192.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 20296C3D for ; Sat, 28 Mar 2015 17:12:02 +0000 (UTC) Received: by pddn5 with SMTP id n5so12551684pdd.2 for ; Sat, 28 Mar 2015 10:11:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:mime-version:content-type:from :in-reply-to:date:cc:message-id:references:to; bh=LDcL27s/8wHoD1bwohLVaLzvvcEX/CmrhV5Uy3pkn5s=; b=IVtIlmjoOedJ+w32lZt3GwjVLzsDahDljOuKxNanUESXsVLOUINtiNlsFSPu7HyL1K 7AZhKrgLuDz25t4JkubiltCEiFYowljSeTOUl4yqzIWcZJEieuHWLptI9ZlOA8YJlK1J VTRO4eWVg6zdS5TI5/0Huo4Hp0Uf/Uvw/Bfi2ICJR4gOd7gvf47WHEYw4BI0XMTAjtiS f1FYgnp3Ugo4KKOioWqd20JP6itu2jtloQIT4Ba6fp5sNs6gBwBy5DVIzMq7M4NZRjWh LRf7ypQXTAQMYX3/nAHXi9eIDDA7vi7RiAgJDD6khICcfspeRTZWNl0Hzajc173uc6BU mGnQ== X-Gm-Message-State: ALoCoQlEjMzdMR9LbyeSGzXdAWXlnc7gp6BTK2APGmBCuSu+3v1MSfHpypE4mjuL+Iu/34VX6p6q X-Received: by 10.68.254.226 with SMTP id al2mr13573545pbd.44.1427562716609; Sat, 28 Mar 2015 10:11:56 -0700 (PDT) Received: from lgwl-achen.corp.netflix.com ([69.53.236.236]) by mx.google.com with ESMTPSA id gl2sm5559477pbc.52.2015.03.28.10.11.54 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 28 Mar 2015 10:11:55 -0700 (PDT) Sender: Warner Losh Subject: Re: remote kernel debugging Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) Content-Type: multipart/signed; boundary="Apple-Mail=_F9BE13BA-8207-486C-A27C-161D55FB55E4"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Pgp-Agent: GPGMail 2.5b6 From: Warner Losh In-Reply-To: <5516D944.80602@freenet.de> Date: Sat, 28 Mar 2015 11:11:52 -0600 Message-Id: References: <550DD740.2070608@freenet.de> <20150322011054.GA81780@cicely7.cicely.de> <5516D944.80602@freenet.de> To: =?utf-8?Q?Manuel_St=C3=BChn?= X-Mailer: Apple Mail (2.2070.6) Cc: freebsd-arm@freebsd.org, 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 17:12:03 -0000 --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 = 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--