From nobody Fri Sep 30 19:58:52 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 4MfLdx15ygz4YHZc for ; Fri, 30 Sep 2022 19:59:01 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic310-21.consmr.mail.gq1.yahoo.com (sonic310-21.consmr.mail.gq1.yahoo.com [98.137.69.147]) (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 4MfLdw2MN7z3NwN for ; Fri, 30 Sep 2022 19:59:00 +0000 (UTC) (envelope-from marklmi@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1664567938; bh=D6fKcpzQuemVpyYG6FWs2sVluaJe3dMSf4d12WD0ZUo=; h=From:Subject:Date:In-Reply-To:Cc:To:References:From:Subject:Reply-To; b=Lz/Wv0yOFaJKUb5/km9WY7QgGc42/j6cR8zNp6Y5SDCI1qanecCggLtQO7jheHJnJ2akwBg5aRdZ25M03SkdU6/+T4eF5Q8xW0wyyiOAi5Zo34rCeF6ZM983Ps+ysDDeUTsa3FuOq7Z2f13cxa1me7CSo4IsFazyiQ28DMkHD2R4NPhWbgo64v74p+sl5VMbFBGWT8UIRdvQ3LlYf1o361PjCBQVh9k0FOJwhQTANQx+24PqFqNWkqPQ6LwEGVbWAwjBolcijHV/g1ZA6SgX4b9da5SEMYaSdei9GI54dYctAR4ijjnxsQJHVVVkujsInZVHv465kCLwEElIopEU0A== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1664567938; bh=50UgU3lq1HkG/R1mt1v7yodTgmHJxwmvQdcj+U6tKne=; h=X-Sonic-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Rz_1VWw594P8qsOoSQt_kO4h4kZkA48ztBdQtxIS_1 8f2xcLE2KMJremlciK487DMPjkKtQkJjpPFpO9awHNIaK8BXKFESkF.4f0cPWHuzYS1oa.vm_K0O auAQ3EAXzv7RIMDR1BLFVtQt_onF6Kheqk8Ro6jGU8eKD1fVyJv_qwhQAhJjSeYzNIUZ3gZbJClq frbwUMoM3jO5xUofD5nKAgOqY5dC7kiZPdPo7dA8ECjdFIdm8n_OcWqomJTHHDezc88I_oJXNOll jDzNkT_zipoSdpK7qetJo5OCr1iZhffQdDYHuNvQabLNREZ7JDmHqMuaqu3iyFCGhzUipwZSIASy aDYnXHKiTcqRulq7BGL8wGP2aI3QdK4isNZmNhNjiVRxblsd5v9ClkbzAeelekro0pi0PMBNt0V9 8LrHHmsanKvOEGNA5d7QJtIUBuVH4VJeByakEJaGjHmRWA6fup0HKarFOltTcqVRAzavfL8Opcbk OpouYz6VU5eVl8vMh2WHRvHwxp88URfjfqGz_klaq6k0TSzGe2atYGoBW7FbfHbRNyR5rNH9.7UH 64XmfchyzKQ-- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic310.consmr.mail.gq1.yahoo.com with HTTP; Fri, 30 Sep 2022 19:58:58 +0000 Received: by hermes--production-gq1-94b89944-5szfq (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID d7dd1ec8d403d56e2a0698f873654bf9; Fri, 30 Sep 2022 19:58:53 +0000 (UTC) From: Mark Millard Message-Id: <38721E60-40DD-41F4-9E2E-73D6239ED268@yahoo.com> Content-Type: multipart/mixed; boundary="Apple-Mail=_A59A7C89-AA51-46CB-96C3-C756A893A854" 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 12:58:52 -0700 In-Reply-To: <939C6F7E-4B92-4F72-9AFD-C29C8B59B42A@googlemail.com> Cc: freebsd-arm , =?utf-8?Q?Klaus_K=C3=BCchemann?= To: bob prohaska 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> <924ED901-F9EB-4CFE-8376-1C2653FB6EBE@yahoo.com> <97AB11F6-2F4D-4026-8A96-50FC68B6EF8C@googlemail.com> <5F180C78-BC07-4605-A042-0BEC8A6FD185@googlemail.com> <8CE490A2-B512-4170-95BC-D0584F2B254A@yahoo.com> <939C6F7E-4B92-4F72-9AFD-C29C8B59B42A@googlemail.com> X-Mailer: Apple Mail (2.3696.120.41.1.1) X-Rspamd-Queue-Id: 4MfLdw2MN7z3NwN X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b="Lz/Wv0yO"; dmarc=pass (policy=reject) header.from=yahoo.com; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.69.147 as permitted sender) smtp.mailfrom=marklmi@yahoo.com X-Spamd-Result: default: False [-3.50 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.997]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; MV_CASE(0.50)[]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; MIME_GOOD(-0.10)[multipart/mixed,text/plain]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; RCVD_IN_DNSWL_NONE(0.00)[98.137.69.147:from]; MID_RHS_MATCH_FROM(0.00)[]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org]; RCVD_COUNT_THREE(0.00)[3]; HAS_ATTACHMENT(0.00)[]; FREEMAIL_FROM(0.00)[yahoo.com]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; TO_DN_ALL(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[]; FREEMAIL_CC(0.00)[freebsd.org,googlemail.com] X-ThisMailContainsUnwantedMimeParts: N --Apple-Mail=_A59A7C89-AA51-46CB-96C3-C756A893A854 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 On 2022-Sep-30, at 12:36, Klaus K=C3=BCchemann = wrote: > =E2=80=A6`found someone in the WWW who fixed similar issues of an = even earlier rpi-model=20 > by increasing/adding mdelay values, no clue if something like that = would be a valid test worth=E2=80=A6 > Like this : > * requests in the first microframe, the stick crashes. Wait about > * one microframe duration here (1mS for USB 1.x , 125uS for = USB 2.0). > */ > - mdelay(1); > + mdelay(300); >=20 > /* only support for one config for now */ > err =3D usb_get_configuration_len(dev, 0); > + mdelay(100); >=20 > usb_set_maxpacket(dev); > + mdelay(100); I've included a patch-common_usb.c update with these lines adjusted/added (with a suffix comment for each). Reverting to the official rpi_arm64_fragment could be used to also test without the debug output. =3D=3D=3D Mark Millard marklmi at yahoo.com --Apple-Mail=_A59A7C89-AA51-46CB-96C3-C756A893A854 Content-Disposition: attachment; filename=patch-common_usb.c Content-Type: application/octet-stream; x-unix-mode=0644; name="patch-common_usb.c" Content-Transfer-Encoding: 7bit --- common/usb.c.orig 2022-04-04 07:31:32.000000000 -0700 +++ common/usb.c 2022-09-30 12:49:31.876729000 -0700 @@ -16,6 +16,8 @@ * (C) Copyright 2001 Denis Peter, MPL AG Switzerland */ +#define LOG_DEBUG +#define DEBUG /* * How it works: * @@ -1098,10 +1100,11 @@ * requests in the first microframe, the stick crashes. Wait about * one microframe duration here (1mS for USB 1.x , 125uS for USB 2.0). */ - mdelay(1); + mdelay(300); //MMJNK: was: 1, comment above not adusted /* only support for one config for now */ err = usb_get_configuration_len(dev, 0); + mdelay(100); //MMJNK: new mdelay if (err >= 0) { tmpbuf = (unsigned char *)malloc_cache_aligned(err); if (!tmpbuf) @@ -1119,6 +1122,7 @@ usb_parse_config(dev, tmpbuf, 0); free(tmpbuf); usb_set_maxpacket(dev); + mdelay(100); //MMJNK: new mdelay /* * we set the default configuration here * This seems premature. If the driver wants a different configuration --Apple-Mail=_A59A7C89-AA51-46CB-96C3-C756A893A854--