From nobody Tue Sep 27 19:20:40 2022 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4McTxD1rkdz4chxZ for ; Tue, 27 Sep 2022 19:20:48 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic317-20.consmr.mail.gq1.yahoo.com (sonic317-20.consmr.mail.gq1.yahoo.com [98.137.66.146]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4McTxB5bhFz466q for ; Tue, 27 Sep 2022 19:20:46 +0000 (UTC) (envelope-from marklmi@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1664306445; bh=3btk8fkch2w9FMs/8J9gzWskHhhKFUSZql8OoySjRsg=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=s7V1YWR8CCP/jSQ3iIjHxDmc8D1Yudf3m+vSGmtkENUG2C6gCdOBwynXesthLaIBIfJruoqiOaFxrW1mr5iYAylV9YzZR7R4zZAQ//fz01rjmTW/UB/w3ZwX81hU7P1Iz41Orw/EPXHYByocS2RKUs6IoC2O8kbsbrptIIWDe0BIUApVg48jZxUyPiMxkBRucJMhwMIV9+rF/Q/rZHzZqK8fwZXdRI2j5cg6PHxHtHm8nDnMNIslBZCQILebqPi5O1q4YO/H5cP+AAhF2MKkMtyYlzNQ8zv796R1dsP6ubcetyLkIosm+aq5bjjmE1HZkdnM2IvGfnt7q+jCID3JRg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1664306445; bh=yhvzshJSiun3Lp1YHMxp5zlfnr3sik2ZbvrX6HSSAjH=; h=X-Sonic-MF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t6yXPc8JBRM77nYqKJUe3gxLrb0SX5Ql I8dmLH.4IAv9H2RtwNbjHmWV.Y_ImdjZU5dk4K.4X.6grdRJGsE5jB58YmWD8MzyROFvNElTDDvx fXWOJA6MUWgHs9sIxiRFWX8nLxcwa1QaktQpYXNINo.fxNg0sxMGq3hJTO71lRkw4EIshpls4YDF 8gG_1P7DY.8dDlB.QPwKP5MpPKAhlA708YqdcO9y3sZvAFnCB8Ybo1y39hruDCbgC3ESIEs.zMv5 4ocPntj6VNQsJukM4XAOFkb179hiW8mcw6fAvb7SmdYt0FmkGlrZo1IgeSolhldZGq6Zhtx7RI2a cmqlxDci8io_rd3t.64pfAwzhF9XC8jI4HBzeVHtna1Go8P7K.qi.x0rGnzC5cTnNKmVOFcFQHks 6sELQEGZB75rvnP3YcOvd_zdQ0lr8Jj6vo40BJ9BukTaQAlre2aYedJhXeDCKpyAW1uApTnA_kHU HHMKI_mcHdPssnJLqvAdOfhpDHNQGsPSBA1kxHMuzYB37DkQ.JvTkbTOBVBySKX91zo4MNDp3CdU VOmb_GSzc X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic317.consmr.mail.gq1.yahoo.com with HTTP; Tue, 27 Sep 2022 19:20:45 +0000 Received: by hermes--production-gq1-7dfd88c84d-9chzc (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID c12e233e3654473d0d325959813d1d54; Tue, 27 Sep 2022 19:20:40 +0000 (UTC) Content-Type: text/plain; charset=utf-8 List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Subject: Re: u-boot debug, was: Re: U-boot on RPI3, sees disk but won't boot it From: Mark Millard In-Reply-To: <4154AFCB-7428-4005-843A-4EF8C0EBCCB8@googlemail.com> Date: Tue, 27 Sep 2022 12:20:40 -0700 Cc: bob prohaska , freebsd-arm@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <20220921154240.GA37735@www.zefox.net> <8CC2A42B-21AC-44C6-BD02-44D320CADF63@yahoo.com> <20220921175026.GA45144@www.zefox.net> <5DB9C93B-B9E1-418D-ABA3-8A0CFCE85C0F@yahoo.com> <3781CF46-C4F7-4579-8655-B7558B724C0A@yahoo.com> <20220922014500.GA46697@www.zefox.net> <20220925160531.GA63213@www.zefox.net> <20220925193415.GA63733@www.zefox.net> <3D6CF13E-261D-41D2-AC5B-923C0BF54087@yahoo.com> <20220927160328.GA71742@www.zefox.net> <67C09E9F-AD1D-4D0D-9E6F-9C1B046D8952@googlemail.com> <4154AFCB-7428-4005-843A-4EF8C0EBCCB8@googlemail.com> To: =?utf-8?Q?Klaus_K=C3=BCchemann?= X-Mailer: Apple Mail (2.3696.120.41.1.1) X-Rspamd-Queue-Id: 4McTxB5bhFz466q X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=s7V1YWR8; dmarc=pass (policy=reject) header.from=yahoo.com; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.66.146 as permitted sender) smtp.mailfrom=marklmi@yahoo.com X-Spamd-Result: default: False [-3.48 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.98)[-0.984]; MV_CASE(0.50)[]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; MIME_GOOD(-0.10)[text/plain]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; RCVD_IN_DNSWL_NONE(0.00)[98.137.66.146:from]; RCVD_COUNT_THREE(0.00)[3]; FREEMAIL_FROM(0.00)[yahoo.com]; TO_DN_SOME(0.00)[]; RCVD_TLS_LAST(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; FROM_EQ_ENVFROM(0.00)[]; FREEMAIL_TO(0.00)[googlemail.com]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; MIME_TRACE(0.00)[0:+]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org] X-ThisMailContainsUnwantedMimeParts: N On 2022-Sep-27, at 11:33, Klaus K=C3=BCchemann = wrote: >> Am 27.09.2022 um 19:58 schrieb Klaus K=C3=BCchemann = : >>=20 >>=20 >>> Am 27.09.2022 um 18:03 schrieb bob prohaska : >>>=20 >>> I did look at common/usb.c but it's far from obvious how one >>> can turn on the logging feature so as to report more errors >>> to the console. >>=20 >> you can add the following to common/usb.c (e.g. insert in line 44): >>=20 >> #define DEBUG >>=20 >> -- >>=20 >> that should then print out all debug functions inside the usb.c file = to the console=20 >> after recompilation of u-boot. >>=20 >> Regards >>=20 >> Klaus >=20 > I saw there is /*#include */ available in usb.c=20 > so you could also try to add : >=20 > #define LOG_DEBUG >=20 > to the common/usb.c file which should also then enable the debug = functions > which then would be output in logging style. >=20 > You will need the debug output to to narrow down the issue. >=20 > just a guess :=20 > electrical problem(of the Pi itself) which could perhaps be fixed by = manipulating the scan delay time . Looks to me like: https://github.com/u-boot/u-boot/blob/master/common/usb_hub.c might be relevant, not just: https://github.com/u-boot/u-boot/blob/master/common/usb.c For example, usb_hub.c is where usb_pgood_delay is involved. (My patch to enable my boot media assigns that, not that such helped Bob.) But I've not been able to uniquely identify all the specific identifiers for all the (relevant) "usb boot scan delays", although I'd expect that pgood_delay (and its usb_pgood_delay) would be considered an example. =3D=3D=3D Mark Millard marklmi at yahoo.com