From nobody Fri Jun 11 02:57:39 2021 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 5EDB67C8E55 for ; Fri, 11 Jun 2021 02:57:45 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic312-25.consmr.mail.gq1.yahoo.com (sonic312-25.consmr.mail.gq1.yahoo.com [98.137.69.206]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4G1QWF0Fpxz3MTj for ; Fri, 11 Jun 2021 02:57:44 +0000 (UTC) (envelope-from marklmi@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1623380263; bh=d364mP47l9veJ5xqWnLIprbVuJXuWhBWSeE+5R9Q1yg=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=Ns/NdBIm99/0FaZwBu6j6FkKv7wT4hW4TuMvfa2lb02FSyKtTYsgVWK/5HnqIEXVpdK+9itFy/vvbBUnxtPhNUII8D9Fn17kYmOMVKaJ3dAUcFWQBHx0Znog8tDl9lrWhCb5Bo+3XJskT3M+xAintd2ckh5pVIWYEVB7TDQVA/p8vu7eXzYUKkpmWZVu1FfCzupPZi0F4V65i0p6MlVQEj3h4G8+jUkaojsg7btfTN3a2rJuFCZ9lOv+wIhOeciQoP+QSgjsQv45Hfn+krlx7nGm9Wk2hxHyKdkVoTfWz2W6jhr9wFjemTrlJesV1QSMkEkYd7fRjVGU0UEdlcZftw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1623380263; bh=L+9yhPucZOV5pIx7eu7/Zp2Pv39usE5uUnphLFQp+0J=; h=X-Sonic-MF:Subject:From:Date:To:From:Subject; b=HLbI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F8UkWuU1SxwWeZqsQkl rFszlgDnHS.EgWQWZQnnZLMBGs6NpP0w9PGrRh5CC18yhoTJMvOvSPUfKpWUupEBIq80uI55FOsB 0tK.WcePXrMY9WAb8t052Z1QhpseI8hF.Fv0KPHfWq9Wlh9GqHvpCBwlXfjwzadzU2SfH9_T8kpk 4Qx7K_643g0YZlVCDoapRFGfE2IbbzNzhUJQAfdcQyLqZtEI_M2Pcom6bm7pzlEqpdmHwXtm6DcQ ZNnWsxGq8JGsHbOsa17L04Dk9krSBCZVvu1KR0pgm8xiaj4r.Dzy36nvc4kJm2IbeA30iG0zx2TT oO.VLkFRCW_1DaXFPbjJYRjxqcDgg0IbXVFmQsrB4tkodehRsQk49TZMcdbfYqjXsxp86dMeNCbv wWpzRMreQPStb5exjjLJs2Fh34kuKWc6pso_EA39LWg81wjQEqQemGfdDVww9fOE.E0r_Y5GTXf8 QbWuIquZQD_VfCKSWY9lKGY_y96r1vhWKnoo1qYp.R6f0ZhTlm3j9pzGn_zv1DlimsdkMTtlq_iR sRO6j5pKddQpANM7nnl4GM8Q_4iDYSR59ZUCoRfjUCRsw9JrB._IXGzeycV21uM4Y6H0CHDNWvMl kPFvG8iGvLrrKwKpuVZXFolQ8ls_ADIAMng6B770jle9grV54yuXjyBdZOtLDsTfJWv40.urb8I_ Lvjjyj8WSz4O4i1t4XX7fIb3JKdbDEnF_iHyWEO4tLumDPPPHknCT3HEbYBgxQk9RqAQUfWJY4WW E0NIh_TVHW6ID46r1 X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic312.consmr.mail.gq1.yahoo.com with HTTP; Fri, 11 Jun 2021 02:57:43 +0000 Received: by kubenode528.mail-prod1.omega.ne1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 492b6126a7deac069939499b7a42bb5d; Fri, 11 Jun 2021 02:57:41 +0000 (UTC) Content-Type: text/plain; charset=utf-8 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 14.0 \(3654.100.0.2.22\)) Subject: Re: Boot from USB on RPi4 8GB? In-Reply-To: Date: Thu, 10 Jun 2021 19:57:39 -0700 Cc: freebsd-arm Content-Transfer-Encoding: quoted-printable Message-Id: References: <4F3EE8D2-649B-4522-AD5A-7C308291802F@dsllsn.net> <43FAEEAC-EE36-4810-88AA-FF82AFBCC128@yahoo.com> <2F58272B-BD9C-464B-9A98-BF638971BA86@dsllsn.net> To: William Carson X-Mailer: Apple Mail (2.3654.100.0.2.22) X-Rspamd-Queue-Id: 4G1QWF0Fpxz3MTj X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] Reply-To: marklmi@yahoo.com From: Mark Millard via freebsd-arm X-Original-From: Mark Millard X-ThisMailContainsUnwantedMimeParts: N On 2021-Jun-10, at 17:22, William Carson via freebsd-arm wrote: > On May 30, 2021, at 6:54 PM, William Carson via freebsd-arm = wrote: >>=20 >>>=20 >>> On May 30, 2021, at 4:08 PM, Mark Millard wrote: >>>=20 >>> On 2021-May-30, at 13:50, Mark Millard via freebsd-arm wrote: >>>=20 >>>> On 2021-May-30, at 10:59, William Carson via freebsd-arm = wrote: >>>>=20 >>>>>> . . . >>>>>> I use a USB3 SSD that has small enough power requirements >>>>>> to not require a powered hub. (I also use a 5.1V 3.5A >>>>>> power supply as part of that context.) I've never tried >>>>>> spinning rust or higher powered USB3 media. >>>>=20 >>>> I view the power supply that I use as just giving a little >>>> more margin, not as a way to increase what the devices >>>> total to. >>>>=20 >>>>> . . . I'm not sure what's considered "high powered" but the = Samsung tech specs say this particular model uses 5.7 W on average and = 10.0 W maximum. But it does seem curious that the Raspberry PI OS will = boot this disk without issue, so I don't think it's the drive. I also = tried a Samsung 950 PRO using a different enclosure (QNINE NVME = Enclosure, M.2 PCIe SSD (M Key) to USB 3.0 External Case), but it = behaved the same. >>>> . . . >>>>=20 >>>> Then you need to use a powered hub for that device. >>>=20 >>> I should have just referred to independent power. You >>> had written: >>>=20 >>> QUOTE >>> I'm trying to use a SAMSUNG (MZ-V7E500BW) 970 EVO SSD 500GB - M.2 = NVMe, attached via the Geekworm X872 M.2 NVMe 2280/2260/2242/2230 SSD = Expansion Board. >>> END QUOTE >>>=20 >>> = https://geekworm.com/products/raspberry-pi-4-x872-m-2-nvme-2280-2260-2242-= 2230-ssd-expansion-board >>>=20 >>> shows that it has its own power connector and has an image >>> that says "please power x872 via DC Jack of XH2.54 connector >>> if SSD is not recognized or low power". Later text on the >>> page says: >>>=20 >>> QUOTE >>> Specifications: >>> Power Supply >>> =E2=80=A2 5Vdc +/-5% , Powered by Raspberry Pi USB port >>> =E2=80=A2 5Vdc via DC power jack or XH2.5 connector, Extra power = for the SSD >>> END QUOTE >>>=20 >>> So, if I gather right, you need to connect a power >>> supply to the X872 and another to the RPi4B. >>>=20 >>> Another image says "Note: NOT recommended to use SAMSUNG SSD, >>> if use SAMSUNG SSD, please close WiFi". Later text on the page >>> says the same. >>=20 >> A-ha, indeed. I just noticed that as well. I've gone ahead and = ordered a supplementary power supply and a lower-power NVMe to do more = testing. I'll send an update once I've received and tested them. >>=20 >> Thank you for hopefully pointing me in the right direction. >=20 > Alright, so, I ended up buying a WDS500G2B0C, which seems to only use = a maximum of 75 mW (this seems ... low, to say the least, but the column = is unlabeled in the spec sheet I found here = https://documents.westerndigital.com/content/dam/doc-library/en_us/assets/= public/western-digital/product/internal-drives/wd-blue-nvme-ssd/product-br= ief-wd-blue-sn550-nvme-ssd.pdf). That document says for WDS500G2B0C: QUOTE Maximum Operating power 3.5W END QUOTE So at about 5V: about 0.7A maximum. Of itself, that is under the 1.2A figure. The X872 must take some power as well. But I do not find any W or A specifications for it. I do not know what other power draws in the overall system might be. Any combination that might use more than about 0.5A? (So: more than about 2.5W total)? Unless you specify otherwise, I'm going to presume: no. So I'm not expecting power to be a problem. > Sadly, it also would not boot from either of my NVMe-USB adapters. Is the failing behavior identical to before? If not, what evidence is it now producing when trying to boot? ("would not boot" leaves open all possible ways of failing.) You previously reported getting: QUOTE scanning bus xhci_pci for devices... Device NOT ready Request Sense returned 02 04 01 END QUOTE Someone else recently was getting that and got around the problem while trying 3 U-Boot extra steps. They are listed below and I leave in the indication of which happened to work in that context. The point is to establish a configuration setting before U-Boot tries to scan the USB buses looking for the storage media. Otherwise a "usb reset" would need to happen after making the configuration change. QUOTE > Looking around on the web I see reports of the: >=20 > Request Sense returned 02 04 01 >=20 > (and the matching Device NOT ready) mean that the > problem will occur and that repeating usb start > or usb reset again until it does not report that > leads to things working. >=20 > But I've also seen other, more complete information > indicating that there is a environment setting > (showing an example value): >=20 > usb_ready_retry=3D5 >=20 > to set up before the usb restart (or usb start) > command. It deals with the issue more explicitly > for slow devices. >=20 > Another one is (units: msec): >=20 > usb_pgood_delay=3D10000 >=20 Presto! using editenv usb_pgood_delay prompted for input, typing 10000 and hitting return set the value and the disk was found. It looks like the setting can only be saved to microSD. With no card saveenv reports Saving Environment to FAT... Card did not respond to voltage select! Failed (1) > There are also device that have problems with > large transfers and require extra protocol to > deal with transfer problems before they will > work again, U-Boot not doing that. >=20 > usb_max_blk=3D20 >=20 > sets a old historical value that generally > just works for such devices form what I read. >=20 > I see no indication that other usb commands are > worthwhile until one has avoided that "Request > Sense returned 02 04 01" message for usb reset > (a.k.a. usb start). >=20 > The reports of this sort of thing are not limited > to RPi's and go back to at least 2014. >=20 > If I understand correctly, usb_ready_retry and > usb_pgood_delay and usb_max_blk are part of > normal U-Boot builds these days. But I'm not > certain of that. END QUOTE > After a while of getting frustrating forgetting which combination of = image + usb adapter + drive configuration I had or hadn't tried, I = thought to myself.. what would happen if I tried one of the USB2 ports? = Bingo! It booted FreeBSD no problem. >=20 > So I'm not sure what exactly that means, except that I know the = power/usb adapter/drive/image is not the issue. For the new device, anyway. > I don't think I really "need" the performance improvement of the USB3 = port at the moment, but maybe that's something that will help = troubleshoot the issue? It would certainly be nice to use little USB = bridge pcb "cable" to have a neater installation though. >=20 > Any ideas? See above. >>> = https://www.raspberrypi.org/documentation/hardware/raspberrypi/power/READM= E.md >>>> lists: >>>>=20 >>>> "Maximum total USB peripheral current draw" as: 1.2A , >>>> which at 5.1V is 6W. I either should have listed 5V or instead have listed 6.12W. >>>> That figure is the total for all USB devices attached >>>> that are not powered independently. >>>>=20 >>>> That document also says that a 5.1V supply is required, >>>> not 5V. >>>>=20 >>>> The power supply that the RPi folks supply is 5.1V @ 3A >>>> or 15.3W. Even the 5.1V 3.5A power supply that I use >>>> only multiplies out to 17.85W. >>>=20 >>=20 =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)