From nobody Sat Oct 1 18:08:05 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 4Mfw7g4ysfz4dfpm for ; Sat, 1 Oct 2022 18:08:15 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic309-21.consmr.mail.gq1.yahoo.com (sonic309-21.consmr.mail.gq1.yahoo.com [98.137.65.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 4Mfw7f1dDvz4G44 for ; Sat, 1 Oct 2022 18:08:13 +0000 (UTC) (envelope-from marklmi@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1664647692; bh=Yj6yfoBMzJKHMV43ZXZGCsC+aeswMc2ig6z/lhlLUs4=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=Adi7KWfXLcWumryhq1dR4BotZJEdotgfG5ZF6vZLUMPJfbx119WTQmwAvT5K42/28F0Wn+cp2FQyT+gFkPjbkqbHSYMwQm7mUZtErX14e86CvBiIzR6Pq2cIX17EWShtq2kPK9qrurpZd7b1B7lWKxYrhq+CzOPcaNL1a8NNYXnENmMpi5Nk8wNxNeVj0igruRIX7buR+JL/xty1qAKkZeiBwEx6ejFoXAtmkJ8GvjHYkYgP9AHVKh/E3sXROx3BM38p1a3VmlPu+WmsOeQDzfmtSRy48mGcNqAF5rny1hXn4SVm66jGdfg8/2wzkFAGzKgGFBD92/HpxVUhMTPr0w== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1664647692; bh=Zv9hG9ZJLgPwJ91AKr9L+n8nXtALPZ5wyOQ30h9WTyf=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p201JxxdZoJZPoyHqzN3FUmGKBXWUuP0xJYIz1TC44yqb4hBW2RI73PG6T0lHM_lyWYJvYH.m 2boebQMJnkUQWEFnHz2HcBEuVskLp6R.aR.4lPIdjBKDEz9e3MmlRTavIi_jG1JxZ4KqdrztvuZE Rcja7btXA2WdgBngESSzr9C6URQaUGvZBHVGaPR_My09UeV7wfvTd7PBzlSkgrSnNm1o6u7fdYdm QRFwUYV6ZFpVumq1T08t0MQyWy71jPrQkbThJRik7UEeGYEPf67wTQeXahLLS62dIl5PzLzD6TTe kiLqS4HLMhujWBoP4lqM5LgZEBD.Vv65Uwby.lunQ6kXe_6DxDwO9ZUmztw2YqzUTu1gnyjWbDbc OPsRxE00y5pmuwCcKq7wmBB_zuTKAn.rF9fBhRdZVbBr4nMciPNDRWEtPL3Tae2MpiBb5gjs_zYL d_Op9CHdCXu8iva59fppmPpRt4A3BYbh_W1mbNH1BNaHQ4we7UUFr6VoKd1MdIxLh0sVspYPS.W5 .WhpnVyETsPjfaeM0rOfBVauPptrFv5fX95N1TSL_HKDNfcBnSiSxV4bNoTBoOK90krllbOUgxPM rZ67rQw-- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic309.consmr.mail.gq1.yahoo.com with HTTP; Sat, 1 Oct 2022 18:08:12 +0000 Received: by hermes--production-ne1-6944b4579f-9v6rl (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID c3a68fc71f6c357948a8162e33e25060; Sat, 01 Oct 2022 18:08:07 +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: <20221001163323.GB97581@www.zefox.net> Date: Sat, 1 Oct 2022 11:08:05 -0700 Cc: freebsd-arm , freebsd-uboot@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <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> <20220930214234.GA86711@www.zefox.net> <20221001152242.GA97581@www.zefox.net> <51B729B0-3792-4870-9DEA-3E47F8BCB37F@yahoo.com> <20221001163323.GB97581@www.zefox.net> To: bob prohaska X-Mailer: Apple Mail (2.3696.120.41.1.1) X-Rspamd-Queue-Id: 4Mfw7f1dDvz4G44 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=Adi7KWfX; dmarc=pass (policy=reject) header.from=yahoo.com; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.65.147 as permitted sender) smtp.mailfrom=marklmi@yahoo.com X-Spamd-Result: default: False [-3.47 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.97)[-0.970]; 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)[3]; 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.147: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:+]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org] X-ThisMailContainsUnwantedMimeParts: N On 2022-Oct-1, at 09:33, bob prohaska wrote: > On Sat, Oct 01, 2022 at 09:12:23AM -0700, Mark Millard wrote: >> On 2022-Oct-1, at 08:22, bob prohaska wrote: >>=20 >>> On Fri, Sep 30, 2022 at 05:51:03PM -0700, Mark Millard wrote: >>>>=20 >>>> By the way, it looks like having the line: >>>>=20 >>>> CONFIG_CMD_LOG=3Dy >>>>=20 >>>> in files/rpi_arm64_fragment would try to build the >>>> log command into U-Boot. >>>>=20 >>>=20 >>> Done and working. Now to learn how to use it. >>=20 >> Good. >>=20 >> Have you tried the updated patch-common_usb.c that >> has the 3 mdelay(...) adjustments? Does it lead to >> avoiding the problem? Any change in observed >> behavior? >>=20 >>=20 > Not yet. >=20 > However, with logging enabled (but still not understood) > there are more mountroot failures. Here's a list of tries, > where > S means I issued shutdown -r=20 > P means I had to powercycle > R means I issued a reset to u-boot > L means the Pi got stuck in a loop > U means usb reset was issued > M means the Pi stopped at mountroot (self-reset) > B means I issued a boot at the loader prompt >=20 > The sequence was: > PRSSSSBSSSSULPMSSM >=20 > I've placed the log script at > http://nemesis.zefox.com/~fbsd/ with mountroot in the filename. >=20 > I'll try your patch next. >=20 A failure leading to mount root failure: usb_msc_auto_quirk: UQ_MSC_NO_GETMAXLUN set for USB mass storage device = JMicron USB Mass Storage (0x152d:0x0577) usb_msc_auto_quirk: UQ_MSC_NO_PREVENT_ALLOW set for USB mass storage = device JMicron USB Mass Storage (0x152d:0x0577) Root mount waiting for: usbus1 usbd_req_re_enumerate: addr=3D5, set address failed! (USB_ERR_IOERROR, = ignored) Root mount waiting for: usbus1 usbd_setup_device_desc: getting device descriptor at addr 5 failed, = USB_ERR_IOERROR Root mount waiting for: usbus1 ugen1.5: at usbus1 umass0 on uhub2 umass0: on = usbus1 umass0: SCSI over Bulk-Only; quirks =3D 0x8100 umass0:0:0: Attached to scbus0 uhub_reattach_port: device problem (USB_ERR_STALLED), disabling port 3 (probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 00 00 00 24 00=20 (probe0:umass-sim0:0:0:0): CAM status: CCB request completed with an = error (probe0:umass-sim0:0:0:0): Retrying command, 3 more tries remain ugen1.6: at usbus1 ugen1.5: at usbus1 (disconnected) umass0: at uhub2, port 4, addr 5 (disconnected) (probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 00 00 00 24 00=20 (probe0:umass-sim0:0:0:0): CAM status: CCB request completed with an = error (probe0:umass-sim0:0:0:0): Retrying command, 2 more tries remain . . . da0: Fixed Direct Access SPC-4 SCSI device da0: Serial Number DD564198838F9 Another failure leading to such: usb_msc_auto_quirk: UQ_MSC_NO_GETMAXLUN set for USB mass storage device = JMicron USB Mass Storage (0x152d:0x0577) usb_msc_auto_quirk: UQ_MSC_NO_PREVENT_ALLOW set for USB mass storage = device JMicron USB Mass Storage (0x152d:0x0577) usbd_req_re_enumerate: addr=3D5, set address failed! (USB_ERR_IOERROR, = ignored) Root mount waiting for: usbus1 Root mount waiting for: usbus1 usbd_setup_device_desc: getting device descriptor at addr 5 failed, = USB_ERR_IOERROR ugen1.5: at usbus1 umass0 on uhub2 umass0: on = usbus1 umass0: SCSI over Bulk-Only; quirks =3D 0x8100 umass0:0:0: Attached to scbus0 Root mount waiting for: usbus1 CAM ugen1.6: at usbus1 ugen1.5: at usbus1 (disconnected) umass0: at uhub2, port 4, addr 5 (disconnected) (probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 00 00 00 24 00=20 (probe0:umass-sim0:0:0:0): CAM status: CCB request completed with an = error (probe0:umass-sim0:0:0:0): Retrying command, 3 more tries remain umass0: detached Yet another failure leading to such: usb_msc_auto_quirk: UQ_MSC_NO_GETMAXLUN set for USB mass storage device = JMicron USB Mass Storage (0x152d:0x0577) usb_msc_auto_quirk: UQ_MSC_NO_PREVENT_ALLOW set for USB mass storage = device JMicron USB Mass Storage (0x152d:0x0577) usbd_req_re_enumerate: addr=3D5, set address failed! (USB_ERR_IOERROR, = ignored) Root mount waiting for: usbus1 Root mount waiting for: usbus1 usbd_setup_device_desc: getting device descriptor at addr 5 failed, = USB_ERR_IOERROR Root mount waiting for: usbus1 ugen1.5: at usbus1 umass0 on uhub2 umass0: on = usbus1 umass0: SCSI over Bulk-Only; quirks =3D 0x8100 umass0:0:0: Attached to scbus0 da0 at umass-sim0 bus 0 scbus0 target 0 lun 0 da0: Fixed Direct Access SPC-4 SCSI device da0: Serial Number DD564198838F9 da0: 40.000MB/s transfers da0: 953869MB (1953525168 512 byte sectors) da0: quirks=3D0x2 ugen1.6: at usbus1 ugen1.5: at usbus1 (disconnected) umass0: at uhub2, port 4, addr 5 (disconnected) (da0:umass-sim0:0:0:0): READ(10). CDB: 28 00 74 70 6d af 00 00 01 00=20 (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error (da0:umass-sim0:0:0:0): Retrying command, 3 more tries remain da0 at umass-sim0 bus 0 scbus0 target 0 lun 0 da0: s/n DD564198838F9 detached g_dev_taste: g_dev_taste(da0) failed to g_attach, error=3D6 (da0:umass-sim0:0:0:0): Periph destroyed umass0: detached All 3 got: usbd_req_re_enumerate: addr=3D5, set address failed! (USB_ERR_IOERROR, = ignored) as the first failure of the sequence. This establishes that U-Boot is not the only thing to have problems with your equipment. I'll note that the: da0: Fixed Direct Access SPC-4 SCSI device da0: Serial Number DD564198838F9 does not match other log files: da0: Fixed Direct Access SPC-4 SCSI device da0: Serial Number 000000000000A but it may well be an example of garbage-in/garbage-out. The same goes for the usual: umass0: SCSI over Bulk-Only; quirks =3D 0x8100 vs. the 3 odd examples: umass0: SCSI over Bulk-Only; quirks =3D 0xc105 umass0: SCSI over Bulk-Only; quirks =3D 0xc105 umass0: SCSI over Bulk-Only; quirks =3D 0x8101 You also got another "0 Storage Device(s) found". It again has the sequence for portstatus: 311, 311, (sequence of 5 instanced of:) 301 for: Manufacturer=20 Product U-Boot Root Hub SerialNumber=20 bind node usb1@1 So, just like the others. =3D=3D=3D Mark Millard marklmi at yahoo.com