From nobody Fri Sep 30 05:23:20 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 4MdzCf5bynz4V44J for ; Fri, 30 Sep 2022 05:23:26 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic303-23.consmr.mail.gq1.yahoo.com (sonic303-23.consmr.mail.gq1.yahoo.com [98.137.64.204]) (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 4MdzCd5wPkz3wl7 for ; Fri, 30 Sep 2022 05:23:25 +0000 (UTC) (envelope-from marklmi@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1664515404; bh=3pFJ6LrWaTw7fjioFySoMKRWI3D7+aZILtu/01QDqMc=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=tu+Y70gzqhrChWGXIoNyMYbghVxOi383rwX34mrVNIjVf8ucfgOOra6o8b8Bl5NAOXGk4zrTlqRKcWV62aI7F1ma6jKh2myI9IUDSzZOJU3HZHvdn5sPc5Yvw1te4FUaP/Ba9r+T2U1bcslFtnObEa0/WdxvbJk4s1HM5UjHnpvCWmDfYDmdnVrY9djqRrIg/mQLa8DMcEeSMcDLRaFkw1HLy9gO32I2C3nApcT6W9IS9S3YK2huEU0rvAl0+2grJOZDfr4a18T9fSXcsM1p7NvUQYQ6jzvNwzC8FdHOep78qGJBtPoNGD/LL90aYZItur7f0P2am9N44dfO/w3rrQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1664515404; bh=hajLbrtYGDoWkfQtV3+0qhYySygH8yEyPr4ILacNUbG=; h=X-Sonic-M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R5MisLDkI080o6IgVyIJZ6AIYKx4u uq2JDADMvQAqspm1O4YpyuGfyBvm2o4sYwVmDI8RcqvdcOj5jSG6QumDKuTSZlH_ukIAdkdieHTh Xu0FUkDH95e6Ywm4XqWtmsHkGAPxVVZ3dXnAkzVinU3g9E1NitDFIRRBTiy_2Hensb6Q2pDdRBjT 7LIhDjCpuJlIoRYkwKqws9KlJsXdkgKYE37z6opx_6hT.s6QhkmvhlTCss.mINQ1hTpcB7EdamkZ s0JUcTsdW0hfcijsA8i0DWTqyOddEzy9QjquVrQd9hx5AQNKRpHnKJg3zHVUsNhdnRxpl6hSNqTa pmMv2iYAZUKj6mHdJRojHU6f_bcJMbAqNQOrasBPvbBS2DvfBPnEXmysnJWXWfH3OAnU0rXlcPUV wtj0fy4Wq9BA_rSUwpit5QEBuH7nGswsu3.sqEEi5888A11VSy280iZoxxX9UwTONG6rAJC8EC0F L5ve4wTLwV2xjWCAlhnTzkDDSqy.OuyAq9spkGVZGJ4havzGm5Ia99NtjMfFzSqdBKHm1RYlwK75 2 X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic303.consmr.mail.gq1.yahoo.com with HTTP; Fri, 30 Sep 2022 05:23:24 +0000 Received: by hermes--production-bf1-5fb9f4c8b8-5vhqb (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 3fd5b292d3d95c7721c2f21b153a6935; Fri, 30 Sep 2022 05:23:22 +0000 (UTC) Content-Type: text/plain; charset=us-ascii 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: Date: Thu, 29 Sep 2022 22:23:20 -0700 Cc: freebsd-arm , freebsd-uboot@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <894FEFBF-12BA-49CD-BE87-662CD110C03F@yahoo.com> References: <81F58716-72CE-45E8-951A-B7B92AD0FE95@yahoo.com> <20220928172839.GA75564@www.zefox.net> <62A7FD9D-DFAD-46B2-8681-F6EF0E5AC0DE@yahoo.com> <8CB25EDF-704A-4F86-B0D4-40818291C161@yahoo.com> <20220928234341.GA77046@www.zefox.net> <20220929002131.GA77106@www.zefox.net> <197D3C46-063B-4C67-AB1A-A3A072521D7F@yahoo.com> <6AA65AE6-41F1-405F-A592-7D641EA4C9CF@yahoo.com> <20220929054120.GA77803@www.zefox.net> To: bob prohaska X-Mailer: Apple Mail (2.3696.120.41.1.1) X-Rspamd-Queue-Id: 4MdzCd5wPkz3wl7 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=tu+Y70gz; dmarc=pass (policy=reject) header.from=yahoo.com; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.64.204 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)[-1.000]; MV_CASE(0.50)[]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; MIME_GOOD(-0.10)[text/plain]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; ARC_NA(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[98.137.64.204:from]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; RCVD_TLS_LAST(0.00)[]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org]; RCVD_COUNT_THREE(0.00)[3]; FREEMAIL_FROM(0.00)[yahoo.com]; TO_DN_SOME(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.64.204:from] X-ThisMailContainsUnwantedMimeParts: N On 2022-Sep-29, at 00:18, Mark Millard wrote: > On 2022-Sep-28, at 23:59, Mark Millard wrote: >=20 >> On 2022-Sep-28, at 22:41, bob prohaska wrote: >>=20 >>> I've put the full output from a failed (no storage >>> device found) attempt at >>> http://www.zefox.net/~fbsd/rpi3/u-boot/u-boot-debug-log >>>=20 >>> The obvious error message is: >>> Cannot enable port 1 after 5 retries, disabling port. >>> Nothing about device 152d. >>=20 >> The RPi3B has 5 USB ports for devices, one being internal >> that is tied to the EtherNet port if I remember correctly. >> It also has a root hub,6 six overall. >>=20 >> Your failure log is about failing to get the root >> hub working --which in turn blocks all the other >> ports form being accessible. >>=20 >>> Tomorrow I'll try to capture a complete log of a=20 >>> successful boot for comparison. The boot success >>> rate is so far is 7 in 9 or 10, depending on how >>> one counts.=20 >>=20 >> I'd also recommend recording a bunch of failures >> and seeing what wort of variety exists in the >> details of them. >>=20 >> FYI: My log shows a Root Hub Port 1 status >> sequence: 511, 511, 503. Yours: 311, 311, >> (5 times:) 301. So it looks like what the >> status encoding is and what the implications >> are. >=20 > Accidental send. Continuing. . . >=20 > The output uses %x (so: hexadecimal). For reference: >=20 > ./include/usb_defs.h:#define USB_PORT_STAT_CONNECTION 0x0001 > ./include/usb_defs.h:#define USB_PORT_STAT_ENABLE 0x0002 > ./include/usb_defs.h:#define USB_PORT_STAT_SUSPEND 0x0004 > ./include/usb_defs.h:#define USB_PORT_STAT_OVERCURRENT 0x0008 > ./include/usb_defs.h:#define USB_PORT_STAT_RESET 0x0010 > ./include/usb_defs.h:#define USB_PORT_STAT_POWER 0x0100 > ./include/usb_defs.h:#define USB_PORT_STAT_LOW_SPEED 0x0200 > ./include/usb_defs.h:#define USB_PORT_STAT_HIGH_SPEED 0x0400 /* = support for EHCI */ > ./include/usb_defs.h:#define USB_PORT_STAT_SUPER_SPEED 0x0600 /* = faking support to XHCI */ > ./include/usb_defs.h:#define USB_PORT_STAT_SPEED_MASK \ > ./include/usb_defs.h: (USB_PORT_STAT_LOW_SPEED | = USB_PORT_STAT_HIGH_SPEED) > ./include/usb_defs.h:#define USB_SS_PORT_STAT_MASK = (USB_PORT_STAT_CONNECTION | \ > ./include/usb_defs.h: = USB_PORT_STAT_ENABLE | \ > ./include/usb_defs.h: = USB_PORT_STAT_OVERCURRENT | \ > ./include/usb_defs.h: = USB_PORT_STAT_RESET) > ./include/usb_defs.h:#define USB_PORT_STAT_C_CONNECTION 0x0001 > ./include/usb_defs.h:#define USB_PORT_STAT_C_ENABLE 0x0002 > ./include/usb_defs.h:#define USB_PORT_STAT_C_SUSPEND 0x0004 > ./include/usb_defs.h:#define USB_PORT_STAT_C_OVERCURRENT 0x0008 > ./include/usb_defs.h:#define USB_PORT_STAT_C_RESET 0x0010 >=20 > Note: USB_PORT_STAT_C_* is for port status change information. >=20 > 0x311 and 0x301 indicate USB_PORT_STAT_LOW_SPEED instead of > USB_PORT_STAT_HIGH_SPEED. They also indicate lack of > USB_PORT_STAT_ENABLE. As for what happens just before each of the 4 log file's "0 Storage Device(s) found", all the examples are the same. For: Manufacturer=20 Product U-Boot Root Hub SerialNumber=20 bind node usb1@1 it ends up with the portstatus sequence of values: 311, 311, (5 times, 4 from retries:) 301 instead of what it gets when it later gets "1 Storage Device(s) found": 511, 511, 503 So no other port or device is found when it ends up with "0 Storage Device(s) found". 311: USB_PORT_STAT_LOW_SPEED |USB_PORT_STAT_POWER |USB_PORT_STAT_RESET |USB_PORT_STAT_CONNECTION 301: USB_PORT_STAT_LOW_SPEED |USB_PORT_STAT_POWER |USB_PORT_STAT_CONNECTION 511: USB_PORT_STAT_HIGH_SPEED |USB_PORT_STAT_POWER |USB_PORT_STAT_RESET |USB_PORT_STAT_CONNECTION 503: USB_PORT_STAT_HIGH_SPEED |USB_PORT_STAT_POWER |USB_PORT_STAT_ENABLE |USB_PORT_STAT_CONNECTION I've no clue what makes the distinction happen on/for "U-Boot Root Hub". Nor does it looks likely that I'd figure such out. =3D=3D=3D Mark Millard marklmi at yahoo.com