From nobody Mon Jul 04 02:22: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 842C18A9152 for ; Mon, 4 Jul 2022 02:23:06 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic310-22.consmr.mail.gq1.yahoo.com (sonic310-22.consmr.mail.gq1.yahoo.com [98.137.69.148]) (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 4LbqN93YtQz3CbW for ; Mon, 4 Jul 2022 02:23:05 +0000 (UTC) (envelope-from marklmi@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1656901378; bh=lKqOMS6nsdIme+uOF4JTwCTXyrIiOgvbA84kWc3jQ0g=; h=From:Subject:Date:In-Reply-To:Cc:To:References:From:Subject:Reply-To; b=gzQyyyI71SHhWFwUkUo2ZKaXinskX2sQHZj04RbQZoN4aehBd86MhBVLG0lZL0ZS/sD24FKAXFfu7nnby2ZuCAGTewsL4DCVu44ju9Q+qY/CWd7n2PnwB2GQB2bGVL6AyHkyH/qgG66lqwxGUFFcrf31yniTAoXvYHivslIe8Nx3SG6pn9lsMS4ftmJCjGq8309uiPbDgawx5tSL1Hx1wy5BuPRK1vDTThAY461K9S/Y4RRYPIoKkj8TmvwN6cNyL/mcAAV22wVoNhktBj8ZI79TipZX9ffCdDJxCRCUD3uZwd9I5+cao5zOfeOlY7nEZdc14FHeqnxGKLU3JMJHZA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1656901378; bh=8OaWlQtgs0bzUgJzXKXhORqnAlJQguM42DfWEYnpa50=; h=X-Sonic-MF:From:Subject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meMyoQBmin5aSJlw9vD_w23eX6Wf SXPuuXJQL7GYBDRnR.dUaNPpWgdvgRi.oYo2oiat5.wTiUYeP8c9kyz.W_voC7DFsaaAiusgULaE G0apuhF1zHLaTqcq4PY6Ag9fIUmLlYFqTSwo3hXI.oiMAQa89pW8M44gPE.FJwKuzPwPTdHFkUft M3bSLiaW_eMGtCx38akChWbHWN9CV2ZkBMupbC6ac86ExPHG2PCAONyj2tdbv_Vny.rvZMSAbrM9 JaMD.FVmwSchGmKz4kCBdRPBtGoGWeFRlVs5UgA4ypaSZ34zeP47U4BFJaIJBbefDDmCMaWPCDKQ 4ViGtD.jfl_h8VYsZgnCozUv7XRL5pyTp9i765uNsnu4927r6nEFYIOS5WWyzV_uWHs8jtv_kBgL dj8t_91rFC7ZwFAWz2Wv4l4q1_QQ_FJd26FBDPepWHx9F1heouQHkL4Bp.KBfWQjEFao.5Lw98tp yIhnRU68kzfsvWNHkKfxDu7UiXr8xpCZjITOVNtRBOibTGFLGXVccfoq2e6LN_v9wIPeVPf4poLo kq18A X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic310.consmr.mail.gq1.yahoo.com with HTTP; Mon, 4 Jul 2022 02:22:58 +0000 Received: by hermes--production-gq1-56bb98dbc7-jzpzw (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID f445e12d3480b4ad6c37c888bfde428c; Mon, 04 Jul 2022 02:22:57 +0000 (UTC) From: Mark Millard Message-Id: <8820A9EC-A25E-4D0A-9F8F-52114E58B66F@yahoo.com> Content-Type: multipart/mixed; boundary="Apple-Mail=_24D66972-8B17-4B8D-99DF-60972CF0F248" 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: 13.1R problems on Pi3 Date: Sun, 3 Jul 2022 19:22:56 -0700 In-Reply-To: <20220704003639.GA1165@www.zefox.net> Cc: freebsd-arm@freebsd.org To: bob prohaska References: <20220704003639.GA1165@www.zefox.net> X-Mailer: Apple Mail (2.3654.120.0.1.13) X-Rspamd-Queue-Id: 4LbqN93YtQz3CbW X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=gzQyyyI7; dmarc=pass (policy=reject) header.from=yahoo.com; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.69.148 as permitted sender) smtp.mailfrom=marklmi@yahoo.com X-Spamd-Result: default: False [-0.89 / 15.00]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[yahoo.com]; MV_CASE(0.50)[]; HAS_ATTACHMENT(0.00)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; DKIM_TRACE(0.00)[yahoo.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; NEURAL_HAM_SHORT(-0.07)[-0.065]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; 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)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.999]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-0.93)[-0.930]; MIME_GOOD(-0.10)[multipart/mixed,text/plain]; MIME_BAD_ATTACHMENT(1.60)[h]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[98.137.69.148:from]; MLMMJ_DEST(0.00)[freebsd-arm]; RCVD_COUNT_TWO(0.00)[2] X-ThisMailContainsUnwantedMimeParts: N --Apple-Mail=_24D66972-8B17-4B8D-99DF-60972CF0F248 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii On 2022-Jul-3, at 17:36, bob prohaska wrote: > A clean install of 13.1R on a Pi3 still exhibits three long-standing > problems also seen on a Pi3 which started from 13.1RC4 > > Attempts to saveenv under uboot running from microSD fail. > As it happens, I need to set usb_pgood_delay to a larger > value to let the machine find the USB hard disk. Thus far > the workaround has been to manually editenv on the console. So far as I know, U-Boot's saveenv has never worked for any RPi*'s. This is not specific to your context or to recent times. Possibly not even specific to FreeBSD's U-Boot port builds. (Fedora? OpenBSD? . . .) We have exchanged messages before about building U-Boot with the required changes built in, providing an extra file that the build would use. Below I gave the example of what I use: /usr/ports/sysutils/u-boot-rpi-arm64/files/patch-include_configs_rpi.h that looks like: # more /usr/ports/sysutils/u-boot-rpi2/files/patch-include_configs_rpi.h --- include/configs/rpi.h.orig 2022-01-22 06:03:55.862541000 -0800 +++ include/configs/rpi.h 2022-01-22 06:03:05.435341000 -0800 @@ -210,6 +210,8 @@ ENV_DEVICE_SETTINGS \ ENV_DFU_SETTINGS \ ENV_MEM_LAYOUT_SETTINGS \ + "usb_pgood_delay=2000\0" \ + "usb_ready_retry=5\0" \ BOOTENV I have also added the file as an attachment, which may be easier to deal with since I also Email you driectly. You can, of course, change the 2000 and/or the 5 as appropriate or adjust other aspects of the "+" lines. Changing the number of "+" lines gets into making the "@@" line match. Currently it indicates to replace 6 lines by 8 lines. (There are 2 lines with just 1 leading space after the "BOOTENV" line, those are the last 2 of the 6 non-"+" lines.) I picked providing u-boot-rpi-arm64 material because that is what the modern images for aarch64 RPi*'s are based on as I understand. It works on a wider range of devices. > Inbound ping requests are not answered except for a few > seconds around the time ntp runs. > > Inbound ssh connects prompt for a password and then time out. > > The ping and ssh problems can be worked around by starting an > outbound ping process. A few seconds after doing so both ping > and ssh are answered, erratically but usably. > > The problem seems to be confined to the Pi3s. Four Pi2s and a Pi4 > on the same network branch exhibit no such problems. Only the > pair of Pi3s seem to be affected, under 13.1 and -current. > > The network is started with these lines in /etc/rc.conf: > > hostname="www.zefox.org" > ifconfig_ue0="inet 50.1.20.28 netmask 255.255.255.0" > defaultrouter="50.1.20.1" > sshd_enable="YES" Is that only one of the RPi3*'s? Multiple machines with that exact text would conflict with each other, all such trying to use 50.1.20.28 and www.zefox.org as identification. Has whatever provides DHCP and such been configured to reserve 50.1.20.28 and to associate that with the right ethernet address? If you do not have control of such, then, as far as I know, you should not be trying to use what are effectively static IP addresses --unless you have been assigned the static IP addresses by your ISP. > Reference to DHCP has been removed. Why? If you use DHCP on the others, can you check the behavior of using DHCP on these? Does it match the others --or does end up being distinct/problematical? (This testing may not be able to cover the intended use, depending on why you avoid DHCP.) Reminder: I'm no networking expert. > Could that be a source > of mischief? It seems not to cause problems on other hosts. > That reads like you might have tried not using DHCP on the RPi2*'s and RPi4* . Did you? === Mark Millard marklmi at yahoo.com --Apple-Mail=_24D66972-8B17-4B8D-99DF-60972CF0F248 Content-Disposition: attachment; filename=patch-include_configs_rpi.h Content-Type: application/octet-stream; x-unix-mode=0644; name="patch-include_configs_rpi.h" Content-Transfer-Encoding: 7bit --- include/configs/rpi.h.orig 2022-01-22 06:03:55.862541000 -0800 +++ include/configs/rpi.h 2022-01-22 06:03:05.435341000 -0800 @@ -210,6 +210,8 @@ ENV_DEVICE_SETTINGS \ ENV_DFU_SETTINGS \ ENV_MEM_LAYOUT_SETTINGS \ + "usb_pgood_delay=2000\0" \ + "usb_ready_retry=5\0" \ BOOTENV --Apple-Mail=_24D66972-8B17-4B8D-99DF-60972CF0F248--