From nobody Tue Dec 27 20:31:56 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 4NhRCf48yLz1HbyG for ; Tue, 27 Dec 2022 20:32:14 +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 4NhRCd2gDZz4PYd for ; Tue, 27 Dec 2022 20:32:13 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=cViwslOG; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.69.147 as permitted sender) smtp.mailfrom=marklmi@yahoo.com; dmarc=pass (policy=reject) header.from=yahoo.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1672173129; bh=XU3VUvrseopfEUZ7lB1rac7ZAndIoHbYs0s06TD8cdo=; h=From:Subject:Date:To:References:From:Subject:Reply-To; b=cViwslOG8FvFVyflte57jydS8nbmqjJ2oYVmMKRhkRNneqPs4psFewwb9M+4WMos0TKHywQN8lC0iQNpKpLjywDg5axTxAiPFdgsarqtAnz+tNkJp1+BHnHAKWn4CY/SqmcHJ5TQWNR/KzPZVGuHmObugVfaQG3tQU/BPEKcQfZ963t5kcOmlc5WnusnbZhi9BcISdADIcRyW7/K2M8oYYjW58cBX5CsfItIYnImfRZbo2bmrsI1fsMY/6RDskix0nB3FGIVUMCfm2la+IBigbnBO1m8wgcdY0HPYioKR8fUbINuKhQlIWiLa6+jGIVOaXlR6YNNoqv8R1gQjUebYA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1672173129; bh=w0yMqPPOcFS/vg3FmloWmj4TWkHi+4rbnUm3UgFvfu5=; h=X-Sonic-MF:From:Subject:Date:To:From:Subject; b=NJllIH39QulLTsGbtcSbnIPlH0MuZ80fby5tb8/R8MWIujhdbiKkA8lfQ3R1YWI31jcxyijXRBsKG2Tdgzvpv6S8Bru2HEZLhWQdhFzkaBoBuzCrxBlyVvDZlMhhLyUPnB4VGgPWYda5PIUltqp6RJ321AYNESSJOQ4FO96zxqER/v3ZsKBEScBYDzNz8NyCoNEhjKQan00zgmBcwIUDZo9JnLXieH3idXQOemFAhnK98jV/d8w5tEdZ8B8+lu+OZI5Yk9lO2jVgTc3jOepUtj6W11wC2UxQG7v84kbocG+NY3LcqbMM1yBUkqd12vqg7vxt6T+V7o5e3s1pFyT/aw== X-YMail-OSG: SXvKIXUVM1moI2RT_tDGcPa0V4LiphzmLlysmFIqAcmxF0NJkK2IhY5qT8rvavI Y0.okFxoRGrbNGOzzXUAHtFRjrEz7p.dpGH69fc0bEGufyoCukW4qovR8TNZjFtVP697_VHWxYD. jdvGSH2hi51LvohGXI7fZuPvSnuB.YPXqiIUbYBSUNkRVU4r6n9MqFQfmcS_whsAT9uQl12Awoio 4MOqmelfiLLpB95rKTLY0MTxTP0ubKrEAINJ2fWHThLgLD1T.8G1.Sj8Dwy4hNyQ2cfpvOx7kjOg uCQjcMnAac5Ajp7dr9Mhm_umq.KnnDiSuHkWvVAj7rrh_ypIke95I7hphAhUCahC3NJ_qqHbS.RJ KNs1d_TmCq6n_sciHqKq5UWqvsngcJHdAdFH4BaDnSw0_xuvhSQ2WcMPPn06.c3Zb_OmyU2LL5J2 6scmNjSkxolVHEr_XbFAqKhxfhOwkGqX5YoGfPl69jfPNGeWFchDTQVDIZsofPv27JAfi9xXhCHt 2vprksvMYiob139OXYJXynjZsHb.VV5Q1SWarL.bI0BmIV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InKmvUrvfdDM.yZqyf2URru OMeqe7iZBnNOz7QMgaNDUVS4KGdJ67GYVQmghSxMLDTCAHZghrywp.JYkisaZf5M6qXFkhVviTyZ GEAlVTYxMrhhqkrtTh3f7RNu0uM1.GCzJ8q8knBTHzil3LC3LHVGkH0mVm.kd3s3vRiQMlhDnv4p ousiBf3jsFtqSEp6iWWSbJhTCKkRWZ6xFHhWkw9H0pANh3HfYTd8RbjDbBrant1QtLIuF9NZkGky hixtw72sQdNTpJbHoeuniPKGR7klBopcNNKfsW9He_uCdFPaRfRml33YshkIdrLwOq2LHwJFRq9t PCwKxBxLv5pQvK4IcBQNWosAemRx3LbSmKOZFvkLA_q_LPnyY2RTdNzokZ1nNESvu4YWmkr7e1TH q0EkiwDs5wy1tQjFRd2W53IYZnCy6UsE2etUgkitgU0TnlbR9FK_4QtpK1mSowPIdNl.UtNvsBQh qRqZyCZYCEwnj3jjFhR32inY50AXXYoehaPaf_gI9L9xM4nvQLMaUW_CPTMCCO8ncYzt2hRVUedl 1aL5fvPIBkvR7vQr9bLfsjTNed6.I9FfkD1LNlAzBDxzJAHjBUBaeTkCZLxD5e8VxFSipNiTrI7p I8vQZ8teInZ2bWof_m8nrVqgVwrfu678goQYio1EOjzWb8IdCZrpTeLE6w0Q- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic310.consmr.mail.gq1.yahoo.com with HTTP; Tue, 27 Dec 2022 20:32:09 +0000 Received: by hermes--production-gq1-d898c4779-tqz7n (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID da129cd794327e86f7956dae441c2a56; Tue, 27 Dec 2022 20:32:07 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii 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 \(3731.300.101.1.3\)) Subject: RPi4B: booting USB3 SSD media vs. config.txt in FreeBSD snapshot builds (and relelase builds): avoiding error=USB_ERR_TIMEOUT Message-Id: Date: Tue, 27 Dec 2022 12:31:56 -0800 To: freebsd-arm X-Mailer: Apple Mail (2.3731.300.101.1.3) References: 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.999]; 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)[text/plain]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; RCPT_COUNT_ONE(0.00)[1]; 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.69.147:from]; TO_DN_ALL(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; FREEMAIL_FROM(0.00)[yahoo.com]; 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-Rspamd-Queue-Id: 4NhRCd2gDZz4PYd X-Spamd-Bar: --- X-ThisMailContainsUnwantedMimeParts: N This is about "no microsd cards involved" booting of USB3 SSD media on RPI4B's. For some time I've had to edit the default config.txt that FreeBSD uses or booting USB3 SSDs fails. (Leading whitespace possibly not preserved:) # diff -u99 /boot/msdos/config.txt.orig /boot/msdos/config.txt --- /boot/msdos/config.txt.orig 2022-12-23 22:17:48.000000000 +0000 +++ /boot/msdos/config.txt 2022-12-27 17:22:08.000000000 +0000 @@ -1,11 +1,16 @@ [all] arm_64bit=3D1 dtparam=3Daudio=3Don,i2c_arm=3Don,spi=3Don dtoverlay=3Dmmc dtoverlay=3Ddisable-bt device_tree_address=3D0x4000 kernel=3Du-boot.bin =20 [pi4] hdmi_safe=3D1 armstub=3Darmstub8-gic.bin +# +# Local addition that avoids USB3 SSD boot failures that look like: +# uhub_reattach_port: port ? reset failed, error=3DUSB_ERR_TIMEOUT +# uhub_reattach_port: device problem (USB_ERR_TIMEOUT), disabling = port ? +initial_turbo=3D60 The latest example is from an experiment with: # uname -apKU FreeBSD generic 13.1-STABLE FreeBSD 13.1-STABLE #0 = stable/13-n253304-461210143fbb: Fri Dec 23 23:25:49 UTC 2022 = root@releng3.nyi.freebsd.org:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC = arm64 aarch64 1301510 1301510 that was otherwise unchanged. But this has been going on for some time. Given what makes it go from timeout to working, it suggests sensitivity to variations in clock rate that initial_turbo=3D60 (or analogous) avoids. (I've not tried to find an estimate of the minimum time figure that could be used.) FYI: the context happens to be serial console, no HDMI connection. It may be that the EEPROM vintage is involved in the variability. (Old enough ones might not have the variability?) But the EEPROM vintage may not be relevant, I do not know. I normally track: https://github.com/raspberrypi/rpi-eeprom/releases So I'm currently using RPI4B's with EEPROM content based on: rpi-boot-eeprom-recovery-2022-12-07-vl805-000138a1 materials. But, again, the issue is older. I do not have a first-failure time frame, however. Given the history and the boot failures, it looks to me like an initial_turbo assignment in the default FreeBSD rpi firmware port's config.txt would be appropriate. (Presumes no one deals with avoiding there being a frequency-variation sensitivity in the first place. I've not managed to identify where any sensitivities happen to be.) =3D=3D=3D Mark Millard marklmi at yahoo.com