From nobody Thu Sep 29 07:18:51 2022 X-Original-To: freebsd-uboot@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 4MdPqS0zCcz4V0tR for ; Thu, 29 Sep 2022 07:19:00 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic309-22.consmr.mail.gq1.yahoo.com (sonic309-22.consmr.mail.gq1.yahoo.com [98.137.65.148]) (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 4MdPqQ6Zzvz47kh for ; Thu, 29 Sep 2022 07:18:58 +0000 (UTC) (envelope-from marklmi@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1664435936; bh=BU63Hby/UuDfpAYz6lFi+FFjC6kXshVi7yx2/WBHxE0=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=sSqJ1VZ1b4Y1TlVn6uOQd785bfszewiiatCp4lWycuqOECVuCCIdv/M1lRNf9So8L8mwRsvWwjhgMQocNOXPtphtEjOX/4MyJOMp1vGqqLX0Dz6uuCkhrPM46pHGSjAZPpOye35gp7bXyaCtcLw2Nvj7u/VvppDm/ihMCOC/qj7WgEPI3xU0TUXfRS9qRFOUeuHrd6X781H72bf4bDC7K4UhwWuBsYUFNl5L2neGL8D1gaTcNivhelgkpqkQdEoSVlFUS0u1wMRZnyK/j8gmJPIbiXD0lDhwEopHV+FTsZ1WUfWQRNZjDRZECophdXiiZah/azLsnW9vPE5qbDyLaQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1664435936; bh=z8h9vh9ncHhV+msp6pMWMB/ElND+2v6siFXXSO2J87b=; h=X-S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D37zclY0VOIdoV42kXSLUC1Fs9K3OfcboOci3sSoc3UZk0HKBdCOs35QhXfvY0ZvJA.hAg HIkBF.tzqjkLz42tN4dcSbdt13i261MN9L5bzPWRoKroz9309vW7BYHxnEvFcBkFJ5Mlczxnbmh8 nwZMvAXufF1o0x2SaWYtNd96adYartJeu1RAaftrbZ5t6MQI7oQYfBzoAi79axqfXc7Dge6x8L_0 j00eTgkPmLFJy1G8wSN3o_RNwpkKFnvcL1FyxhJe.VK1AQZUot0LONRRzcDjtGUy6SUM0Y21N74F YWvabQ5cVXKKVC57CsnNZBAR1bMgspPhnZTKdjtmmSFDmmtiwvQUr9RF014qFwUz.wTjRDogLHkq UghglEPcKWy5sCHZbbUwpmghVyd6xtAXnM1oxrZuWoxBEevk.iKzcde23mnjabkg1UqiJbeK_Tx4 Eh9L4WGkGsrrvxA9wt3wU_iUKlOeLCYwYxXgUgVyOMuYvWccPzc3H91jdwwxdVgX2cVTnTfjLHVb Qde0jOOlIhhemQQQcWlSRGmFe8rsHPn413e2DuTfvqdPXze4ra7BrOGO4TyZ5wq5emnlhlzAjRpB tnA4- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic309.consmr.mail.gq1.yahoo.com with HTTP; Thu, 29 Sep 2022 07:18:56 +0000 Received: by hermes--production-bf1-759bcdd488-6vlh5 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID ca61200380e24ec2a832679b62d24835; Thu, 29 Sep 2022 07:18:54 +0000 (UTC) Content-Type: text/plain; charset=us-ascii List-Id: Discussions List-Archive: https://lists.freebsd.org/archives/freebsd-uboot List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-uboot@freebsd.org X-BeenThere: freebsd-uboot@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 00:18:51 -0700 Cc: freebsd-arm , freebsd-uboot@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: 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: 4MdPqQ6Zzvz47kh X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=sSqJ1VZ1; dmarc=pass (policy=reject) header.from=yahoo.com; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.65.148 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.999]; 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.65.148:from]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; RCVD_TLS_LAST(0.00)[]; MLMMJ_DEST(0.00)[freebsd-uboot@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.65.148:from] X-ThisMailContainsUnwantedMimeParts: N On 2022-Sep-28, at 23:59, Mark Millard wrote: > 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. Accidental send. Continuing. . . The output uses %x (so: hexadecimal). For reference: ./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 Note: USB_PORT_STAT_C_* is for port status change information. 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. =3D=3D=3D Mark Millard marklmi at yahoo.com