From nobody Mon Oct 17 17:55:13 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 4Mrl5Q6YkTz4b492 for ; Mon, 17 Oct 2022 17:55:22 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic315-54.consmr.mail.gq1.yahoo.com (sonic315-54.consmr.mail.gq1.yahoo.com [98.137.65.30]) (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 4Mrl5P3k2Kz3jMs for ; Mon, 17 Oct 2022 17:55:21 +0000 (UTC) (envelope-from marklmi@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1666029318; bh=cj8f5Q6W7NLB+hNJnBoBjpVK9wyoAuSv+vhVP/Y1Jwo=; h=From:Subject:Date:To:References:From:Subject:Reply-To; b=jiSv6FD9/BNX845gV45aLXgVnioWzAfoX2/ZbFeOYAkvafR5dMbYX2uke4C0RJtoq6pVA6xMG6uEPITKLl74AKNrlr0n+U6BzAaRGsyoVVWeCpwFya6uKx+O5fAlfdPzCTw/yOTbkXHEpu7gk2Q42xveLvSAvLYcQS9S4GUfclH86EudBg34v7QB/Je7aOfDfKkpuR+AIZmGAv/saxQ77WgTcagcQayJBiJpsOoqUwtOUxmN8AoRtJ5HvCP2D967vBW/aPcdbuocu8XnfWhQfZD4E8CD5R9FcfnYqskkDuDofPvFF8DlKHfOYLT8J/ZHBTo9UsYa5m+FbTlbeyFPmg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1666029318; bh=LQsqI038UzG52FdJPRqv0zPrakNQmswkMKGBFqjkzSQ=; h=X-Sonic-MF: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oWjFtL1gMBiUgAduH6Bf5ZuM.Bd73L J5s6WPSETPMpKBG5fDIJjoNTYeNxdJMOJh2IDdcdmWHai176bYQ4KaykUP5PcqXyJdqM50NTuQaO ohu0FI.GEilmZSQAiCs0iu88jglvRX4igbeNRfEKgBSxgavA7NWV3KC.DYpEIkurBDV.ReJuxo81 cfbbLbr8kN3miYDEU5STqGwReAaCrQ2EST_p2iBAh3g25bWx0MeixOofyvNmFjxyQb8U_qXRAPgd .UaK1dRH.PP0KBedUqtZSDvoMQIcidpLy6gBYBqokkkKFKcl.B7BmoMd3FEUHhFn8y8sZ4OzjSUz w_gzB72qtFf0belkgsn9lVWK_unEagR5gT9U5nVO7DYo3s4vzO3NHvwA5flVg0Go13gaLmeiYXkL 9yztT5tPEwJl.Ao8MLOixnkzZJJkltWOYyNrnbKCzyf7MW2YBwfnY97.ks3DjoKoyY__ri0pqDWy glt.q5CH_1jU3uZzFIJpEl9lB8kPl3q3kuB.rVP3vdX2jv6yIArzesgYd0.k5hAVy X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic315.consmr.mail.gq1.yahoo.com with HTTP; Mon, 17 Oct 2022 17:55:18 +0000 Received: by hermes--production-ne1-5db649d989-57w6q (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 3782c65795a71ac10f5c3404c683a062; Mon, 17 Oct 2022 17:55:15 +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 \(3696.120.41.1.1\)) Subject: Snapshot stable/13-n252734-56533712694 and RPi4B: I had to add the likes of initial_turbo=60 to config.txt to boot from USB3 Message-Id: Date: Mon, 17 Oct 2022 10:55:13 -0700 To: freebsd-arm X-Mailer: Apple Mail (2.3696.120.41.1.1) References: X-Rspamd-Queue-Id: 4Mrl5P3k2Kz3jMs X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=jiSv6FD9; dmarc=pass (policy=reject) header.from=yahoo.com; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.65.30 as permitted sender) smtp.mailfrom=marklmi@yahoo.com X-Spamd-Result: default: False [-2.68 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-0.98)[-0.983]; 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]; NEURAL_HAM_SHORT(-0.19)[-0.193]; 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.65.30: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-ThisMailContainsUnwantedMimeParts: N After dd'ing: FreeBSD-13.1-STABLE-arm64-aarch64-RPI-20221014-56533712694-252734.img to the USB3 media attempting to boot from the media consistently got (note the uhub_reattach_port USB_ERR_TIMEOUT lines): . . . Release APs...done uhub0: 5 ports with 4 removable, self powered Trying to mount root from ufs:/dev/ufs/rootfs [rw]... ugen0.2: at usbus0 uhub1 on uhub0 uhub1: on = usbus0 Root mount waiting for: usbus0 uhub1: 4 ports with 4 removable, self powered Root mount waiting for: usbus0 uhub_reattach_port: port 2 reset failed, error=3DUSB_ERR_TIMEOUT uhub_reattach_port: device problem (USB_ERR_TIMEOUT), disabling port 2 ugen0.3: at usbus0 ure0 on uhub0 ure0: = on usbus0 mountroot: waiting for device /dev/ufs/rootfs... miibus1: on ure0 rgephy0: PHY 0 on miibus1 rgephy0: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, = 1000baseT-FDX, 1000baseT-FDX-master, auto ue0: on ure0 ue0: Ethernet address: ***REDACTED*** Mounting from ufs:/dev/ufs/rootfs failed with error 19. Loader variables: vfs.root.mountfrom=3Dufs:/dev/ufs/rootfs vfs.root.mountfrom.options=3Drw Manual root filesystem specification: : [options] Mount using filesystem and with the specified (optional) option list. eg. ufs:/dev/da0s1a zfs:zroot/ROOT/default cd9660:/dev/cd0 ro (which is equivalent to: mount -t cd9660 -o ro /dev/cd0 /) ? List valid disk boot devices . Yield 1 second (for background tasks) Abort manual input mountroot> ? So I updated config.txt to (shown from after a successful boot): # more /boot/msdos/config.txt=20 [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 [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 That was in order to boot from USB3, no microsd card involved. I've not tried to find an approximately-minimal initial_turbo value. force_turbo=3D1 likely would also work, as would other forms of clock rate controls in config.txt . It appears that FreeBSD is sensitive to variations in the clock rates during booting but the RPi* firmware can (and does) vary relevant clock rates unless it is told not to in some way (initial_turbo use here, there are other ways). Something is needed to avoid timing out too soon. Note: The media is not my USB3 media that requires the likes of usb_pgood_delay for U-Boot in order for U-Boot to find the device. An unmodified/default u-boot.bin works with the media just fine. Only the later FreeBSD activity has a problem. For reference, from the successful boot after the change: . . . Release APs...done Trying to mount root from ufs:/dev/ufs/rootfs [rw]... uhub0: 5 ports with 4 removable, self powered ugen0.2: at usbus0 uhub1 on uhub0 uhub1: on = usbus0 Root mount waiting for: usbus0 uhub1: 4 ports with 4 removable, self powered Root mount waiting for: usbus0 usb_msc_auto_quirk: UQ_MSC_NO_GETMAXLUN set for USB mass storage device = OWC Envoy Pro mini (0x1e91:0xa2a5) ugen0.3: at usbus0 umass0 on uhub0 umass0: on usbus0 umass0: SCSI over Bulk-Only; quirks =3D 0x0100 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 ***REDACTED*** da0: 400.000MB/s transfers da0: 228936MB (468862128 512 byte sectors) da0: quirks=3D0x2 ugen0.4: at usbus0 ure0 on uhub0 ure0: = on usbus0 Warning: no time-of-day clock registered, system time will not be set = accurately Dual Console: Serial Primary, Video Secondary miibus1: on ure0 rgephy0: PHY 0 on miibus1 rgephy0: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, = 1000baseT-FDX, 1000baseT-FDX-master, auto ue0: on ure0 ue0: Ethernet address: ***REDACTED*** Setting hostuuid: 30303031-3030-3030-3265-373238346338. Setting hostid: 0xd2f9b0de. Starting file system checks: /dev/ufs/rootfs: FILE SYSTEM CLEAN; SKIPPING CHECKS /dev/ufs/rootfs: clean, 498385 free (1281 frags, 62138 blocks, 0.1% = fragmentation) . . . =3D=3D=3D Mark Millard marklmi at yahoo.com