From nobody Fri Sep 30 16:58:18 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 4MfGdd3TnFz4V16P for ; Fri, 30 Sep 2022 16:58:29 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic311-24.consmr.mail.gq1.yahoo.com (sonic311-24.consmr.mail.gq1.yahoo.com [98.137.65.205]) (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 4MfGdc0l24z3wHm for ; Fri, 30 Sep 2022 16:58:28 +0000 (UTC) (envelope-from marklmi@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1664557106; bh=jBAOWT7C0kK+XyOnenVJBFdDq0I0WYlpgaWvFJrcoPc=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=BFLD5C+4I56pVhLC03BQwoUQ9klzX3ijAmD09xkOQKd5UgF4rfs7uAFUPqp84ulcdIFWNztouJxxSGSw0cRq7qAlVpU6dKzjyeoM3dgI686OMd78NfUobXKaww22ZFLPem3M6pww/l7uoTTB9SsrYIpFBQGHRuxhfmXCBptXk9YngaBZmd3YWYx3gMBjBAD5Nn5dCzKolAV1gzwltG9oAQhBkQfWemxEo3nefVANG+ihLocNYVFMcgmZ0QMmtObXKZf9cGNkkfwUGoAfGyf2DsOtUMaGrCIuEtXOnMjX6D+viWcSk09MsYWjhpL98ykPdSo7iaECNwX/YMcbkcKm4Q== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1664557106; bh=d4d4X+5VZ22ccWEZMkhUpL7RKQzrlWgw7z6j1hByD7f=; h=X-Sonic-MF:Subject:From:Date:To:From:Subject; b=SnbbIRgbPztWcb6JWnq6gahvRVJyzwpvQsRUkVMinLX1k0wZJqj17rwKLBKfn5pkAHM5SfzwWo81pHLGMwQeRLhKYhWI998i4w2iVW4Bgv3m1l4SS7XMx7iVyY0Q1odjoWFdVx2RU6olOXezi4oMqELpw3lzcl+Woo2MdPF6wOaughOziAjwwGoviM8yfGFNfZnyjaaDw37BUn5HLa1gafDpau8cxuuD9tEISV3+FBSWRF5WaE1uApJs4sRHbGCgYoaLm45LrAMsUkdGxqY9rko9+kNtxF2e8h57/WkvjrMkkO+5dC44gNizgpF6Ka68KXMFDTEEybosJ+quB51W5A== X-YMail-OSG: 74xZSxEVM1mvpKe8A8J8uRS7xJaywoLiunQnDedmZ3FHvzYB8cxJn50HPtfXLjm EEqzGLhNyd6riwTe7R1LrtfKY1nIKf28ujd897pzwpMOjf7f.8r2h0x8u9u58aUe4mBpeJw3pql7 P1jBqX0kFfAnkY2OTCiS_R3X746PconMHwp9ZJLSmSoLoKwp7iv_zUlirf5EUVz5zYbuzelyABAk gjw1mjk5JNS63SfiV2hulgX8DR8B3QrP.5LHhwarh5htCaCXr0GEkGeVI5Ki9BFaptc_NQ0w0Fnd 3jcFEd8vp0k4zmJ3CzGgXBWvGm02uELE0v63zyECxR0N7g9RXwXi8tDI9KUTEwtkgWkLu4o1Ceck 3tiqJidR5H04vKsMWATD2Da.AU86uB26B_18fvw8T5LkxkU38Ajx1GCCNM__dNRPZR7_Qop8Zvax MH.1AZkEKR7edgMOW1uwSwngQw2oymAzEYsVJtVRUIvd8y71s2BE3oR8jPriHk0bBM2ERPUig4wF _ZJ583czEov03.Y6cG9ximpedH5aJVgruFGisTPrtM2CgYqGoqNZXzI9qjc0ocfJk_iv6j88ThRu NYymSE.lTQL9IkiaaXgm5DjAKhFL7GWJCODnEltu7ww1w1lBXc5UAz3mSmQE7ks21N.dFuIIDzuL 1dgTmOEi388zpkLJefuRCDPiYl52sKGy0a8Zoc0fdSATwypKESM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Bg4d17tG qyDAAfIHQwksuvH1sBi5KGYYf_u5.75mJ36DOZKep6YuZaQXo6_SVbInRbxFAHHkdBDxsF7_vgH4 znRn3QOmnImDSjx0msRsqBuLgQ_jde2jkZksW3R2vCxapVI2A2yrBd726bXzTx6bDW_yLyP1FU7R fI4qmpnyVXBE6JVta7xC.9ZYxIY_YA_0vaGSJhL7vA4KKqEsidNjN5LjAeZcGw00qp.s_N8s_nkA vRPMrxpdzFzhA9qEpNu4gk3wKHeSu_56r4JoIz63mi95AOKHemTsh2eDJln45lfrcl2h9Mmwk2gw vFoYgtn3isCbGV.RcYJcOPI4u.QiCPmOSlqr6DsTZSVVWa5vLGCTvyeuXR_FryV5MGovijDW8MTa LsDxEJr44B..nB5p50kTmpv97GEtPJt7wKN_CSApJ5wHwBpON3upgwk6.1mR5XA0gT2ZGXGhBdzX Jh8j6uwhUOlFspdDJzdEhO1KVnZSyMKhKVaBw128okNhfHGjIsgtQoDnru8QCUlYT3q8.gYGPmr3 UA0Zl_Q-- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic311.consmr.mail.gq1.yahoo.com with HTTP; Fri, 30 Sep 2022 16:58:26 +0000 Received: by hermes--production-ne1-6944b4579f-p7xcb (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID c532b724a534ea1db6a017739b8c02cf; Fri, 30 Sep 2022 16:58:21 +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: <7A431698-1A8C-44BA-AFA2-EF5BAA69574F@googlemail.com> Date: Fri, 30 Sep 2022 09:58:18 -0700 Cc: bob prohaska , freebsd-arm@freebsd.org, Hans Petter Selasky Content-Transfer-Encoding: quoted-printable Message-Id: <924ED901-F9EB-4CFE-8376-1C2653FB6EBE@yahoo.com> References: <6AA65AE6-41F1-405F-A592-7D641EA4C9CF@yahoo.com> <20220929054120.GA77803@www.zefox.net> <20220929151926.GA80020@www.zefox.net> <20220929170927.GB80020@www.zefox.net> <6C5019EC-B4A8-448F-9A85-4A98BC46F7DD@yahoo.com> <20220930002742.GA81169@www.zefox.net> <7A431698-1A8C-44BA-AFA2-EF5BAA69574F@googlemail.com> To: =?utf-8?Q?Klaus_K=C3=BCchemann?= X-Mailer: Apple Mail (2.3696.120.41.1.1) X-Rspamd-Queue-Id: 4MfGdc0l24z3wHm X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=BFLD5C+4; dmarc=pass (policy=reject) header.from=yahoo.com; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.65.205 as permitted sender) smtp.mailfrom=marklmi@yahoo.com X-Spamd-Result: default: False [-3.50 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.998]; 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)[4]; 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.65.205: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-30, at 09:40, Klaus K=C3=BCchemann = wrote: >> Am 30.09.2022 um 02:27 schrieb bob prohaska : >> =E2=80=A6=E2=80=A6 >> . >> I just captured an example now. Because of the file=E2=80=99s >> size it's at=20 >> http://nemesis.zefox.com/~fbsd/=20 >> in a file named=20 > =E2=80=A6=E2=80=A6.. >=20 > O.K., you now have extended logs..fine... > comparing success/fail we see: >=20 > -fail--- This is for: Manufacturer=20 Product U-Boot Root Hub SerialNumber=20 bind node usb1@1 > port 1 returns 0 > pgood_delay=3D2000ms The 2000ms is from the U-Boot build setting usb_pgood_delay explicitly: Bob is using the part of the patch that I use to get my every different devices to boot. > devnum=3D1 poweron: query_delay=3D2000 connect_timeout=3D3000 > usb_control_msg: request: 0x0, requesttype: 0xA3, value 0x0 index 0x1 = length 0x4 > Port 1 Status 311 Change 1 > devnum=3D1 port=3D1: USB dev found > usb_control_msg: request: 0x0, requesttype: 0xA3, value 0x0 index 0x1 = length 0x4 > portstatus 311, change 1, 1.5 Mb/s > ... > STAT_C_CONNECTION =3D 0 STAT_CONNECTION =3D 1 USB_PORT_STAT_ENABLE 0 > Cannot enable port 1 after 5 retries, disabling port. > Maybe the USB cable is bad? > cannot reset port 1!? >=20 > -success---- > port 1 returns 0 > pgood_delay=3D2000ms Same point again. > devnum=3D1 poweron: query_delay=3D2000 connect_timeout=3D3000 > usb_control_msg: request: 0x0, requesttype: 0xA3, value 0x0 index 0x1 = length 0x4 > Port 1 Status 511 Change 1 > devnum=3D1 port=3D1: USB dev found > usb_control_msg: request: 0x0, requesttype: 0xA3, value 0x0 index 0x1 = length 0x4 > portstatus 511, change 1, 480 Mb/s > -- >=20 > So we now know that when it fails, the issue consists of an = underpowered port1 of the USB-Hub > ( what doesn't necessarily mean that the hub itself is the root cause) >=20 > We see the values of query_delay / connect_timeout / pgood_delay=20 > and some informative (device specific)problem descriptions ( as = comments) > in the file :=20 > common/usb_hub.c > ...many possibilities to manipulate delays / max retries / force = resets or whatever, even the log message: "Maybe the USB cable is bad?" = is interesting ;-)... >=20 > I would consider to "force" the King of USB to read this file contents = (usb_hub.c + usb.c): > So consequently I quietly step out of the discussion again=20 > and put HPS to CC :-) lol >=20 =3D=3D=3D Mark Millard marklmi at yahoo.com