From nobody Sun Dec 19 17:27:48 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 0B4E418E80C2 for ; Sun, 19 Dec 2021 17:28:04 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic312-24.consmr.mail.gq1.yahoo.com (sonic312-24.consmr.mail.gq1.yahoo.com [98.137.69.205]) (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 4JH8nH0q0kz3tKH for ; Sun, 19 Dec 2021 17:28:03 +0000 (UTC) (envelope-from marklmi@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1639934875; bh=LR+8cT25LFW6Uf3iNwibJcQvHgRK377P9k1blwwPUng=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=Q32q665dL2Aq2Y0PueMoRm6bu2Z9wo1ozkPBvxszuRB512XTdRJLA2ijkaC8TQG21d86wCbKI9lESrh1+ycHNTvhgnevyZ4/Pbg++9Ukdr/UzKz8quazZz6DbPOFUaRlDw8Wik7syuRXHo5LdOOtlPNsZnuqPK83d5fTFy1wQez6MfNQk8e0LiI//isn8Y6tUikd/rtMVcFHQMnZ/wgqPfQBIWXdGxXOg7LiZuzVGUDTJQBQOYxKwuTHWkgSkoV1jkzA/rez/4e39tSAdyS72gxjP7GJDPAGxSbaby0Aj2OEPTk/isLWKtcMd3nLa0BFHEKZFllgZdlo48YrHV0Dlg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1639934875; bh=1YOjBVmepPv6i54zDsgJ0bAHh6c+u1idr2G1uKjN+rV=; h=X-Sonic-MF:Subject:From:Date:To:From:Subject; b=dwvfksRVadjiX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My.E.XSMi06fvjQEv5BINVercmWuLtw8_HSLvsxV7Uz.TAGx.MTjRs_Fi4OIzf0EPw5rb fLmNE1d56cqxroHx9VHvkork_FNbf3K4ekoOB7hzvXz2LQndSA8I2UcOCVN3WsxdiquMxYszcVPf 7U8jjXERLJEUiS1mjCk6SPYELIuuCj2Y6nhV1gaj5FSGkg0RKYpJUOxtqBI8uLd9eU.mIJ04uC_C QcCj75mEYdgx2rFqusAQI0EJLrBfDe.ZVyKZ8nKqs33KtKJfCd0GcLjtemH2SHun8.7R4GnOAvh7 7JfHUywY4U3D.mRIWvQt2ggZw6dIVVc69OjITV1p29QMLPoPQ.vrKRtIVYUf.ZKaUo7l6RYoEWK5 kq9vQG4Pix3AEbb3ULM2oKjmNURUClJtiQpQ8SiozLIxKN7yq4Lyu4LEq.kJy1j3tfphx75LlExP lH3wO4p40O9SflTntp8gqU1inbyppTF3LhEtkMw-- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic312.consmr.mail.gq1.yahoo.com with HTTP; Sun, 19 Dec 2021 17:27:55 +0000 Received: by kubenode502.mail-prod1.omega.ne1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 7225ba03912f83a657faec5fa46e7ab9; Sun, 19 Dec 2021 17:27:49 +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 14.0 \(3654.120.0.1.13\)) Subject: Re: Dealing with slow USB disks, was: Re: Saving environment variables in u-boot In-Reply-To: <3F624D6C-1A78-4F08-8AF2-A3959476F86F@yahoo.com> Date: Sun, 19 Dec 2021 09:27:48 -0800 Cc: MJ , freebsd-arm@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <20211217013613.GA4452@www.zefox.net> <20211218005946.GA7670@www.zefox.net> <5C44D0E6-2FF1-4EEB-B21A-83333D6FCF46@yahoo.com> <9D416106-660F-40BB-98D2-1354B53D2FEF@yahoo.com> <20211218223543.GA9484@www.zefox.net> <6105a8a6-e760-2183-72fd-92e5a60aa8df@gmail.com> <20211219005134.GA12292@www.zefox.net> <4910504f-3051-9a95-d8e4-95434042196d@gmail.com> <20211219161816.GA14873@www.zefox.net> <3F624D6C-1A78-4F08-8AF2-A3959476F86F@yahoo.com> To: bob prohaska X-Mailer: Apple Mail (2.3654.120.0.1.13) X-Rspamd-Queue-Id: 4JH8nH0q0kz3tKH X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=Q32q665d; dmarc=pass (policy=reject) header.from=yahoo.com; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.69.205 as permitted sender) smtp.mailfrom=marklmi@yahoo.com X-Spamd-Result: default: False [-1.60 / 15.00]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[yahoo.com]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; DKIM_TRACE(0.00)[yahoo.com:+]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; NEURAL_HAM_SHORT(-1.00)[-0.997]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; NEURAL_SPAM_MEDIUM(0.89)[0.894]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[98.137.69.205:from]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.69.205:from]; FREEMAIL_CC(0.00)[gmail.com,freebsd.org]; RCVD_COUNT_TWO(0.00)[2] Reply-To: marklmi@yahoo.com From: Mark Millard via freebsd-arm X-Original-From: Mark Millard X-ThisMailContainsUnwantedMimeParts: N On 2021-Dec-19, at 09:11, Mark Millard wrote: > On 2021-Dec-19, at 08:18, bob prohaska wrote: >=20 >> On Sun, Dec 19, 2021 at 10:03:47PM +1100, MJ wrote: >>>=20 >>> I would think a mechanical USB is going to pull a "lot" of power = when beginning spin-up, but once rotating should be easily powered by a = USB hub. Though this would not explain how it works on RPI4 unless the = powered hub you're using is USB2. >>>=20 >>=20 >> That's what I thought too. I certainly didn't expect the disk to work >> without a powered hub. The Pi4 is a different animal; it has USB3 = ports >> and more power available. That the mechanical disk works at all on = the=20 >> Pi3's USB2 ports without assistance is quite surprising.=20 >>=20 >> There's a table at >> https://hddfaqs.com/seagate-st1000lm048/ >> listing power requirements for the drive: >> Required Power For Spinup: 1000 mA >=20 > (I'm guessing they list that as the largest surge current. > But they do not list figures for READ or WRITE activity.) >=20 > = https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#typi= cal-power-requirements >=20 > lists the "Maximum total USB peripheral current draw" as: 1.2A > (so 1200 mA) for the B+, 2B, 3B, 3B+, 4B, and Pi400. The 3B and > 3B+ list a "Recommended PSU current capacity" of 2.5A, the 4B > lists 3.0A. >=20 > Some keyboards or other such could lead to problems if also > connected at power up: Having both a keyboard and mouse at > power up, in addition to the drive, could be a problem: >=20 > QUOTE > keyboards and mice can take as little as 100mA or as much as 1000mA > END QUOTE >=20 > So stick to a low total power for your other USB devices that > are to be already connected at power up. You might have to > carefully pick what keyboards/mice/whatever to fit the 200mA > budget that is left --or plug some things in only after the > drive has spun up. There is a separate issue of the USB standards for maximum power for one USB2 port. Quoting: = https://resources.pcb.cadence.com/blog/2020-what-are-the-maximum-power-out= put-and-data-transfer-rates-for-the-usb-standards QUOTE In general, the specifications for a USB 1.0 and 2.0 standard downstream port, delivers up to 500 mA or 0.5A. END QUOTE This means that your drive requires more current (power) than one USB2 port has as a maximum. Using an adapter that gets power from 2 USB2 ports instead of just one would be appropriate if what you are using gets power from only one USB2 port. FYI: USB3.0 provides up to 900mA (0.9A, 4.5W) for non-charging ports (still insufficient) and 1500mA (1.5A, 7.5W) for special charging ports (dedicated to charging or charging downstream). >> Power Required (Seek): 1.7 W >> Power Required (Idle): 1.6 W >> Power Required (Standby): 0.18 W >>=20 >> So far I haven't tried to power cycle the combo, that might not work.=20= >> Still, it's been an informative exercise. Getting rid of the hub is a >> welcome simplification. The machine is still up after standing = overnight. =3D=3D=3D Mark Millard marklmi at yahoo.com