From nobody Fri Sep 30 16:40:10 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 4MfGDb0lGxz4TyQl for ; Fri, 30 Sep 2022 16:40:15 +0000 (UTC) (envelope-from maciphone2@googlemail.com) Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) (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-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MfGDZ2d5vz3s5C for ; Fri, 30 Sep 2022 16:40:14 +0000 (UTC) (envelope-from maciphone2@googlemail.com) Received: by mail-ed1-x52d.google.com with SMTP id m3so6683046eda.12 for ; Fri, 30 Sep 2022 09:40:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20210112; h=message-id:in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:from:to:cc:subject:date; bh=6pk9oDiUviyNMzIduK9ylM5i7Cf3LjfzMdDJ3ssSm1E=; b=fnQLnmonYecWGTnqIl+SVWAq76wLOxe/D0c5ODb+fcEnN9rcCUiN++sJ+We+UFfLrO yFS50/9CSWcTn/BAAqB4un6Xup+yEVWN8cnIT3KtPNeMs3ceeiWZRAwl1HnL3S769Btt 4zcZGTH49It9JO0OJM9/VIrX7nDij+V8rZ6x71MnXEiPL5/3VLIU1IBG7EE4YpudkqkO RH+9qmVPlqlwZJa7aMIRLs4Pt5GF3fR/vfrTDU65irXPMVrFKJsym4zZL7VtHal1UHu2 XMKWr+idt7QOgVMWoxbN5rbhkX7C6ZpShlg2d7kn31z8eIghIhqsByzPkKAGxboNw4Dx MFQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=message-id:in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:x-gm-message-state:from:to:cc :subject:date; bh=6pk9oDiUviyNMzIduK9ylM5i7Cf3LjfzMdDJ3ssSm1E=; b=wcwxnYnZ1Y/rfxUX6qBrPYSifE3VpFzdX4G/67FJ0oSEXsPVCNCWkPz6c+ij83ZSwe uw7z6xJNOTGcPBpvNgFmDZVIiYvLuxbQuzysc3o9hlExn5lMOg8/ODfLr5MHUzIy0bHs ltsPrOS2xAng53O3gY71hJ12+PpQxZ+jKcuE6CNVgrLzJa1/fpW5n11C3CMEphQUg+Rs x5mJO45VEm3Z8ImDRJOpETc6FwGvbwueVkJeTIMAK9zRisbH/x6UxqZK9z7WLjT0RLpi uAPyWaBR6oDSG0pUOtNkZWsr69w0YwOo1m9McmSlYaTz/gX0xOWOLdKQNtdbhmBvnh6p SoNA== X-Gm-Message-State: ACrzQf2gVWjvfrJKsfhnvB2n4dFxzA4pAdecXfL+k+n9DRjNLHoguqWf dcv9iz0YSHKJVgZIfR770Y/8jZfI4VQKZA== X-Google-Smtp-Source: AMsMyM4eVA8v7f+sVHGqA6Cx5uFadmflAwbidBAjekJdvROKRkDtm0UUZmYY8RzZkh07zLS4hRqoxw== X-Received: by 2002:a05:6402:f1d:b0:458:8f4b:778e with SMTP id i29-20020a0564020f1d00b004588f4b778emr2054612eda.323.1664556013028; Fri, 30 Sep 2022 09:40:13 -0700 (PDT) Received: from smtpclient.apple (dynamic-046-114-061-204.46.114.pool.telefonica.de. [46.114.61.204]) by smtp.googlemail.com with ESMTPSA id j14-20020aa7ca4e000000b0045723aa48ccsm1921338edt.93.2022.09.30.09.40.11 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 30 Sep 2022 09:40:12 -0700 (PDT) From: =?utf-8?Q?Klaus_K=C3=BCchemann?= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 Date: Fri, 30 Sep 2022 18:40:10 +0200 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> To: bob prohaska , Mark Millard , freebsd-arm@freebsd.org, Hans Petter Selasky In-Reply-To: <20220930002742.GA81169@www.zefox.net> Message-Id: <7A431698-1A8C-44BA-AFA2-EF5BAA69574F@googlemail.com> X-Mailer: Apple Mail (2.3696.120.41.1.1) X-Rspamd-Queue-Id: 4MfGDZ2d5vz3s5C X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=googlemail.com header.s=20210112 header.b=fnQLnmon; dmarc=pass (policy=quarantine) header.from=googlemail.com; spf=pass (mx1.freebsd.org: domain of maciphone2@googlemail.com designates 2a00:1450:4864:20::52d as permitted sender) smtp.mailfrom=maciphone2@googlemail.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)[googlemail.com,quarantine]; R_DKIM_ALLOW(-0.20)[googlemail.com:s=20210112]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; MIME_GOOD(-0.10)[text/plain]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; DWL_DNSWL_NONE(0.00)[googlemail.com:dkim]; RCPT_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; MID_RHS_MATCH_FROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::52d:from]; RCVD_COUNT_THREE(0.00)[3]; FREEMAIL_FROM(0.00)[googlemail.com]; TO_DN_SOME(0.00)[]; RCVD_TLS_LAST(0.00)[]; DKIM_TRACE(0.00)[googlemail.com:+]; FROM_EQ_ENVFROM(0.00)[]; FREEMAIL_TO(0.00)[www.zefox.net,yahoo.com,freebsd.org,selasky.org]; FREEMAIL_ENVFROM(0.00)[googlemail.com]; MIME_TRACE(0.00)[0:+]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org] X-ThisMailContainsUnwantedMimeParts: N > 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.. O.K., you now have extended logs..fine... comparing success/fail we see: -fail--- port 1 returns 0 pgood_delay=3D2000ms 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!? -success---- port 1 returns 0 pgood_delay=3D2000ms 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 -- 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) 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 ;-)... 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 Regards Klaus