From nobody Mon Oct 17 19:30:40 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 4MrnCW6Zd2z4fGKW for ; Mon, 17 Oct 2022 19:30:47 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic315-55.consmr.mail.gq1.yahoo.com (sonic315-55.consmr.mail.gq1.yahoo.com [98.137.65.31]) (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 4MrnCV3L0mz3wnq for ; Mon, 17 Oct 2022 19:30:46 +0000 (UTC) (envelope-from marklmi@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1666035043; bh=/8KKEAjdSterY8uEoBo7od07vTjuK4A3LRUW8q6BH5E=; h=From:Subject:Date:Cc:To:References:From:Subject:Reply-To; b=CwEbkugye9yW/k1BJ+uazL3+/Qaf1oVnZiCDkgEoaUX0KquKnhkgIjyzPIwejF2/Fq+A9DZXYfEyksiSw+CtDHnsBwKUl9SeNxHbgiZGKGWJXhD+qr1aN+ikizv5y0OTNcaTnv8+DYEwGbCaUoU1jaEV/FI6KjgVney8gmzrrAhmF/tdlOtlDO89/65L04jAnlzYsEOcUO9A/GL7XY1DxOSMXU+hrbffQgkpWFaMxpY70CDTiPpgFi781E9Knu0yu6Jt3kQdg/S5BcFKBCrAfTL1J1nPAfDVBdwLUjFZHYOZGbFXzmCS08WVE5sHkoyuk5AymfJYx+p+sEpBTAOwOQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1666035043; bh=TvJUc4KAKL/5rpx5P7D4Jy+HAL2KwKjgdp8rs76eFyf=; h=X-Son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b3sQDPdPqnGPBKgEwUhLqG_w4nlsykDr3pBwGCcrTV_xx6wc22m e3YI931JY4hxgHVaOB.7.T20idhmXUIQIN7U0cqrun14U1PlSGV4R_191kRjVCnZCkzmO9DkgWsh zuvoAMIlRWmclm0vn0IGnto1krcfZIAfs1ylQEvMhUAkh9VfGOcMUvBwrzFTgapY7WU2hSeytOxr e6uQknaV1BFB0dRBx1ftxYmi7SER2Wc7QjEPls.NbQpIjaGaW4FkNzjPxFYzx.NBpCllZ6H5DMYF Gz51Icd5YdnbB6TBVS3e0S.7F1M.jHIGkTqUEI9z8gx3y2KmA7lXDdiw_H8uLF80M7KZQ3NmRbFp zZutI8aXj4sfIqIiRSbp6h3TAxgR8r88zbpBldDOErxZBjGfdsD6XMPTyQXt8GzBBDjrOk01nNn0 NAPHDYxJutgnVDjjxomMUVosVi.6fl32BSRggNjyU8bLpZ7TuDULCAPxpmGydL5_AzTCQbsi1Oh3 xcxd7z7G3rfvR65s5eN68YVyfo.UGxFwpEJeaPAXA7oDC9WsSZ.O1RRz3UCx1oDLggO0Ty9djoes qA7E- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic315.consmr.mail.gq1.yahoo.com with HTTP; Mon, 17 Oct 2022 19:30:43 +0000 Received: by hermes--production-ne1-5db649d989-rdwc8 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 01a4db6ba04dd58f71c2be28868ead50; Mon, 17 Oct 2022 19:30:42 +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 first boot "gpart: arg0 'ufs/rootfs': Invalid argument"; also, an alignment question . . . Message-Id: <3DA3BC90-D234-4B37-9125-E7A70F16DD08@yahoo.com> Date: Mon, 17 Oct 2022 12:30:40 -0700 Cc: freebsd-arm , Warner Losh To: Glen Barber X-Mailer: Apple Mail (2.3696.120.41.1.1) References: <3DA3BC90-D234-4B37-9125-E7A70F16DD08.ref@yahoo.com> X-Rspamd-Queue-Id: 4MrnCV3L0mz3wnq X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=CwEbkugy; dmarc=pass (policy=reject) header.from=yahoo.com; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.65.31 as permitted sender) smtp.mailfrom=marklmi@yahoo.com 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.998]; 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)[]; RCPT_COUNT_THREE(0.00)[3]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; TO_MATCH_ENVRCPT_SOME(0.00)[]; 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.31: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 [While the example is an aarch64 context, the issue should be more general.] Issue #0: After dd'ing: FreeBSD-13.1-STABLE-arm64-aarch64-RPI-20221014-56533712694-252734.img to the USB3 media booting got a notice: gpart: arg0 'ufs/rootfs': Invalid argument Showing some context: . . . 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) Growing root partition to fill device random: randomdev_wait_until_seeded unblock wait random: randomdev_wait_until_seeded unblock wait random: unblocking device. GEOM_PART: da0s2 was automatically resized. Use `gpart commit da0s2` to save changes or `gpart undo da0s2` to = revert them. da0s2 resized da0s2a resized gpart: arg0 'ufs/rootfs': Invalid argument super-block backups (for fsck_ffs -b #) at: . . .=20 It looks like the line in question in /etc/rc.d/growfs is: gpart commit "$rootdev" where the prior code: FSTYPE=3D$(mount -p | awk '{ if ( $2 =3D=3D "/") { print $3 }}') FSDEV=3D$(mount -p | awk '{ if ( $2 =3D=3D "/") { print $1 }}') case "$FSTYPE" in ufs) rootdev=3D${FSDEV#/dev/} ;; assigned rootdev based on: For FSTYPE: # mount -p | awk '{ if ( $2 =3D=3D "/") { print $3 }}' ufs For FSDEV: # mount -p | awk '{ if ( $2 =3D=3D "/") { print $1 }}' /dev/ufs/rootfs So: ufs/rootfs I'd guess that the problem is that after the gpart resize -i . . . activities the label ufs/rootfs is no longer effective for gpart (until the growfs -y completes?). Whatever the cause, gpart is rejecting the ufs/rootfs notation. Issue #1 (unsure of the intent, so checking): # gpart show =3D> 63 468862065 da0 MBR (224G) 63 1985 - free - (993K) 2048 102400 1 fat32lba [active] (50M) 104448 468757680 2 freebsd (224G) =3D> 0 468757680 da0s2 BSD (224G) 0 128 - free - (64K) 128 468757552 1 freebsd-ufs (224G) Reviewing the alignments (one is differently aligned than the others): The first is good: 2048 102400 1 fat32lba [active] (50M) aligns to 512*2048 =3D=3D 1 MiByte. The second is likely good: 104448 468757680 2 freebsd (224G) aligns to 512*104448 =3D=3D 51 MiByte, so a 1 MiByte multiple as the alignment. But the 3rd is less aligned (the freebsd-ufs line): 104448 468757680 2 freebsd (224G) =3D> 0 468757680 da0s2 BSD (224G) 0 128 - free - (64K) 128 468757552 1 freebsd-ufs (224G) aligns to 512*104448 + 512*128 but 512*128 is a 64 KiByte offset, so: 51 MiByte + 64 KiByte. This is not 1 MiByte aligned but is 64 KiByte aligned. Is that the intended alignment for the freebsd-ufs area? =3D=3D=3D Mark Millard marklmi at yahoo.com